AI-generated Key Takeaways
-
The
ChargeType
enum defines how a user will be charged for a purchase, such as using wallet balance, credit card, loan, adding to the bill, or deducting from the main balance. -
Each
ChargeType
value has a corresponding user-facing message that explains how the purchase will be processed and displayed to them before confirmation. -
Operators can use the
ChargeType
enum to offer flexible payment options to users, catering to different preferences and scenarios.
LINT.IfChange The way in which the user would be charged for purchase.
Enums | |
---|---|
WALLET_BALANCE |
The balance for purchase will be deducted from existing wallet balance. If this payment method is set for an offer, then the user will be shown "Deducted from account balance" prior to the purchase. |
CREDIT_CARD_ON_FILE |
The purchase will be charged to credit card on file. For this form of payment the user will be shown "Charged using your saved payment method". |
LOAN |
The operator is extending a loan to the user. So, the purchase will succeed but the user is expected to pay the operator later. For this form of payment the user will be shown "Deducted from your next account balance top up". |
ADD_TO_BILL |
The purchase will be added to the current billing cycle and will show up on the bill. For this form of payment the user will be shown "Added to your current billing cycle". |
MAIN_BALANCE |
The balance for purchase will be deducted from existing main balance. For this form of payment the user will be shown "Deducted from main balance". |