/**
* The payment intent you would like to checkout
* Refer to [Airwallex Client API](https://www.airwallex.com/docs/api#/Payment_Acceptance/Payment_Intents/Intro)
*
* ***Hint***:
* This interface only contain the necessary information when shopper checkout
* For the detail meaning of each field you can refer to above api document
*/
export interface Intent {
/**
* Id of intent
*/
id: string;
/**
* client_secret of intent
*/
client_secret?: string;
/**
* Your request id when create payment intent
*/
request_id?: string;
amount?: number;
currency?: string;
merchant_order_id?: string;
customer_id?: string;
status?: string;
created_at?: string;
updated_at?: string;
payment_consent_id?: string;
customer_payment_consents?: {
id: string;
next_triggered_by: 'merchant' | 'customer';
status: 'PENDING_VERIFICATION' | 'VERIFIED' | 'DISABLED';
payment_method: {
id?: string;
type: 'card' | 'ach_direct_debit' | 'becs_direct_debit';
ach_direct_debit?: {
aba_routing_number: string;
account_number: string;
owner_name: string;
owner_email: string;
};
becs_direct_debit?: {
bsb_number: string;
account_number: string;
owner_name: string;
owner_email: string;
};
card?: {
brand: string;
bin: string;
last4: string;
number_type: 'AIRWALLEX_NETWORK_TOKEN' | 'EXTERNAL_NETWORK_TOKEN' | 'PAN';
fingerprint: string;
};
};
}[];
customer_payment_methods?: {
id: string;
card?: {
brand: string;
bin: string;
last4: string;
number_type: 'AIRWALLEX_NETWORK_TOKEN' | 'EXTERNAL_NETWORK_TOKEN' | 'PAN';
fingerprint: string;
};
}[];
}
/**
* Interface for paymentmethod which will return to merchant, trigger by method call with createPaymentConsent
*/
export interface PaymentMethodBasicInfo {
/**
* The id of the payment method
*/
id: string;
/**
* The card detail of the payment method
*/
card: {
/**
* The bin code of the card
*/
bin?: string;
/**
* The last 4 numbers of the card
*/
last4?: string;
/**
* The brand of the card
*/
brand?: string;
/**
* The cardholder name of the card
*/
name?: string;
};
}
Source