Class Migration2022Endpoint
java.lang.Object
com.maplander.backend.controller.endpoint.cron.Migration2022Endpoint
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchangeBrand
(String apiKey, String email, BrandTypeEnum newBrand, BrandTypeEnum oldBrand) changeOfficeInUser
(String apiKey, String email, String newExternalId, BrandTypeEnum brand) changeOfficeInUserV2
(String apiKey, String email, String newEmailAdmin) deleteFullProperty
(String sku, BrandTypeEnum brand) deleteOldUsers
(String apiKey, BrandTypeEnum brand, Long userId) deletePropertyByExternalIdAndBrand
(String apiKey, BrandTypeEnum brand, String externalId) deleteUserAndOfficeByBrand
(BrandTypeEnum brand, Integer limit, String cursor) deleteUserByDocument
(String apiKey, ListIds listIds) expiredPropertyByList
(String apiKey, ListIds ids) fixOfficeExternalId
(String apiKey, String adminEmail, String externalId) fixUserExternalId
(String apiKey, String email, String externalId) getAccount
(Long userId) getOfficeMigration
(String apiKey, BrandTypeEnum brand, Integer limit, String cursor) getUserMigration
(String apiKey, BrandTypeEnum brand, Integer limit, String cursor) getUsersWithoutPhone
(Integer limit, String cursor) listAccountsByBrand
(BrandTypeEnum brand, Integer limit, String cursor) listPropertyIdsByBrand
(BrandTypeEnum brand, Integer limit, String cursor) listUserIds
(Integer limit, String cursor) saveAccount
(Account account) saveFullPropertyOnly
(Boolean forceDraft, FullProperty fullProperty) updateOfficeToFix
(String apiKey, BrandTypeEnum brand, Office office) updateWhatsToUser
(String apiKey, BrandTypeEnum brand, String email, String whatsApp)
-
Field Details
-
key
- See Also:
-
-
Constructor Details
-
Migration2022Endpoint
public Migration2022Endpoint()
-
-
Method Details
-
changeOfficeInUser
public EntityResponse<Office> changeOfficeInUser(String apiKey, String email, String newExternalId, BrandTypeEnum brand) -
changeOfficeInUserV2
-
getOfficeMigration
public EntityCollectionResponse<OfficeMigration> getOfficeMigration(String apiKey, BrandTypeEnum brand, Integer limit, String cursor) -
getUserMigration
public EntityCollectionResponse<UserMigration> getUserMigration(String apiKey, BrandTypeEnum brand, Integer limit, String cursor) -
updateWhatsToUser
public DefaultResponse updateWhatsToUser(String apiKey, BrandTypeEnum brand, String email, String whatsApp) -
saveAccount
-
getAccount
-
listAccountsByBrand
public EntityCollectionResponse<Account> listAccountsByBrand(BrandTypeEnum brand, Integer limit, String cursor) -
listAccountsWithoutBCByBrand
-
setBCard
-
saveFullPropertyOnly
public EntityResponse<FullProperty> saveFullPropertyOnly(Boolean forceDraft, FullProperty fullProperty) -
deleteFullProperty
-
deletePropertyByExternalIdAndBrand
public DefaultResponse deletePropertyByExternalIdAndBrand(String apiKey, BrandTypeEnum brand, String externalId) -
fixOfficeExternalId
-
fixUserExternalId
-
expiredPropertyByList
-
listPropertyIdsByBrand
public EntityCollectionResponse<PropertyIds> listPropertyIdsByBrand(BrandTypeEnum brand, Integer limit, String cursor) -
listPropertyIdsByBrandBQ
-
listUserIds
-
deleteUserAndOfficeByBrand
public EntityCollectionResponse<Long> deleteUserAndOfficeByBrand(BrandTypeEnum brand, Integer limit, String cursor) -
deleteUserByDocument
-
deleteOldUsers
-
updateOfficeToFix
-
changeBrand
public DefaultResponse changeBrand(String apiKey, String email, BrandTypeEnum newBrand, BrandTypeEnum oldBrand) -
getUsersWithoutPhone
-