PaymentConsentOptions

data class PaymentConsentOptions(val nextTriggeredBy: PaymentConsent.NextTriggeredBy, val merchantTriggerReason: PaymentConsent.MerchantTriggerReason? = null, val termsOfUse: PaymentConsentOptions.TermsOfUse? = null) : AirwallexRequestModel, Parcelable

Data class for payment_consent options in PaymentIntentConfirmRequest as per Airwallex API

Constructors

Link copied to clipboard
constructor(nextTriggeredBy: PaymentConsent.NextTriggeredBy, merchantTriggerReason: PaymentConsent.MerchantTriggerReason? = null, termsOfUse: PaymentConsentOptions.TermsOfUse? = null)

Types

Link copied to clipboard

The agreed type of amounts for subsequent payment

Link copied to clipboard
data class PaymentSchedule(val period: Int? = null, val periodUnit: PaymentConsentOptions.PeriodUnit? = null) : AirwallexRequestModel, Parcelable
Link copied to clipboard

Specifies billing frequency

Link copied to clipboard
data class TermsOfUse(val paymentAmountType: PaymentConsentOptions.PaymentAmountType, val fixedPaymentAmount: BigDecimal? = null, val maxPaymentAmount: BigDecimal? = null, val minPaymentAmount: BigDecimal? = null, val firstPaymentAmount: BigDecimal? = null, val paymentCurrency: String? = null, val billingCycleChargeDay: Int? = null, val startDate: String? = null, val endDate: String? = null, val totalBillingCycles: Int? = null, val paymentSchedule: PaymentConsentOptions.PaymentSchedule? = null) : AirwallexRequestModel, Parcelable

Properties

Link copied to clipboard

Only applicable when next_triggered_by is merchant. One of scheduled, unscheduled, installments (optional)

Link copied to clipboard

The party to trigger subsequent payments. One of merchant, customer (required)

Link copied to clipboard
open val sdkType: String
Link copied to clipboard
open val sdkVersion: String
Link copied to clipboard

Terms of use for this PaymentConsent (optional)

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
open override fun toParamMap(): Map<String, Any>
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)