Class PaymentEndpoint
java.lang.Object
com.maplander.backend.controller.endpoint.fiabci.PaymentEndpoint
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncancelAccount
(Long userId) cancelAccountToFree
(Long userId) cancelSubscriptionPayment
(Long userId) changeCardSubscription
(Long userId, String token) changeSubscriptionsToIndividual
(Long officeId) changeSubscriptionTrial
(Long userId, SubscriptionTypeEnum type) createPaymentUser
(Long userId, SubscriptionTypeEnum typeEnum, String token) createPaymentUserAndSubscriptionCharge
(Long userId, String token, SubscriptionTypeEnum type) Deprecated.createPaymentUserNew
(Long userId, SubscriptionTypeEnum typeEnum, String token) createUserAndToken
(String token, DeviceTypeEnum type, String appleId, User user) creditsAvailable
(Long userId) Deprecated.fixPaymentUser2024
(Long userId, SubscriptionTypeEnum typeEnum, SubscriptionStatusEnum statusEnum, String apiKey) getPlans()
getSubscription
(Long userId) pauseAccountPayment
(Long userId) reactivePlan
(Long officeId) sendPlansApple
(Long userId) subscriptionCharge
(Long userId, SubscriptionTypeEnum type, Boolean annual) subscriptionChargeGift
(Long userId, Long giftId, SubscriptionTypeEnum type) subscriptionChargeReward
(Long userId, Long giftId, SubscriptionTypeEnum type) trialSubscription
(Long userId, SubscriptionTypeEnum type, Boolean annual)
-
Constructor Details
-
PaymentEndpoint
public PaymentEndpoint()
-
-
Method Details
-
createTokenPayment
-
createUserAndToken
public EntityResponse<UserAndToken> createUserAndToken(String token, DeviceTypeEnum type, String appleId, User user) -
createPaymentUser
public EntityResponse<PaymentUser> createPaymentUser(Long userId, SubscriptionTypeEnum typeEnum, String token) -
fixPaymentUser2024
public EntityResponse<PaymentUser> fixPaymentUser2024(Long userId, SubscriptionTypeEnum typeEnum, SubscriptionStatusEnum statusEnum, String apiKey) -
createPaymentUserNew
public EntityResponse<PaymentUser> createPaymentUserNew(Long userId, SubscriptionTypeEnum typeEnum, String token) -
createPaymentUserAndSubscriptionCharge
@Deprecated public EntityResponse<PaymentUser> createPaymentUserAndSubscriptionCharge(Long userId, String token, SubscriptionTypeEnum type) Deprecated. -
cancelSubscriptionPayment
-
pauseAccountPayment
-
cancelAccount
-
cancelAccountToFree
-
getSubscription
-
subscriptionCharge
public EntityResponse<PaymentUser> subscriptionCharge(Long userId, SubscriptionTypeEnum type, Boolean annual) -
trialSubscription
public EntityResponse<PaymentUser> trialSubscription(Long userId, SubscriptionTypeEnum type, Boolean annual) -
changeSubscriptionTrial
-
subscriptionChargeGift
public EntityResponse<PaymentUser> subscriptionChargeGift(Long userId, Long giftId, SubscriptionTypeEnum type) -
subscriptionChargeReward
public EntityResponse<PaymentUser> subscriptionChargeReward(Long userId, Long giftId, SubscriptionTypeEnum type) -
creditsAvailable
Deprecated. -
getPlans
-
changeCardSubscription
-
changeSubscriptionsToIndividual
-
sendPlansApple
-
reactivePlan
-