PaymentConsent

data class PaymentConsent(val id: String? = null, val requestId: String? = null, val customerId: String? = null, var paymentMethod: PaymentMethod? = null, val initialPaymentIntentId: String? = null, val nextTriggeredBy: PaymentConsent.NextTriggeredBy? = null, val merchantTriggerReason: PaymentConsent.MerchantTriggerReason? = null, val requiresCvc: Boolean = false, val metadata: Map<String, Any?>? = null, val status: PaymentConsent.PaymentConsentStatus? = null, val createdAt: Date? = null, val updatedAt: Date? = null, val nextAction: NextAction? = null, val clientSecret: String? = null) : AirwallexModel, Parcelable

Constructors

Link copied to clipboard
constructor(id: String? = null, requestId: String? = null, customerId: String? = null, paymentMethod: PaymentMethod? = null, initialPaymentIntentId: String? = null, nextTriggeredBy: PaymentConsent.NextTriggeredBy? = null, merchantTriggerReason: PaymentConsent.MerchantTriggerReason? = null, requiresCvc: Boolean = false, metadata: Map<String, Any?>? = null, status: PaymentConsent.PaymentConsentStatus? = null, createdAt: Date? = null, updatedAt: Date? = null, nextAction: NextAction? = null, clientSecret: String? = null)

Types

Link copied to clipboard

Only applicable when next_triggered_by is merchant

Link copied to clipboard

The party to trigger subsequent payments.

Link copied to clipboard

Only applicable when next_triggered_by is merchant

Properties

Link copied to clipboard
val clientSecret: String? = null

Client secret for browser or app

Link copied to clipboard
val createdAt: Date? = null

Time at which this PaymentConsent was created

Link copied to clipboard
val customerId: String? = null

Airwallex ID of the customer for whom the PaymentConsent is created

Link copied to clipboard
val id: String? = null

Unique identifier of this PaymentConsent

Link copied to clipboard

ID of the initial PaymentIntent confirmed with this PaymentConsent

Link copied to clipboard

Only applicable when next_triggered_by is merchant. One of scheduled, unscheduled

Link copied to clipboard
val metadata: Map<String, Any?>? = null

A set of key-value pairs that can be attached to this PaymentConsent

Link copied to clipboard
val nextAction: NextAction? = null

Next action for merchant

Link copied to clipboard

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

Link copied to clipboard

PaymentMethod information attached for subsequent payments

Link copied to clipboard
val requestId: String? = null

Unique request ID specified by the merchant

Link copied to clipboard
val requiresCvc: Boolean = false

Only applicable when next_triggered_by is customer. If false, the customer must provide cvc for subsequent payments with this PaymentConsent.

Link copied to clipboard

Status of this PaymentConsent. One of PENDING_VERIFICATION, VERIFIED, DISABLED

Link copied to clipboard
val updatedAt: Date? = null

Time at which this PaymentConsent was last updated

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)