UNPKG

@bebapps/rapyd-sdk

Version:

An un-official [Rapyd](https://rapyd.net) SDK for Node.js.

27 lines (26 loc) 864 B
export interface AddPaymentMethodToCustomerRequest { /** * ID of the customer. String starting with **cus_**. */ customer: `cus_${string}`; /** * 'address' object. For details, see [Address Object](ref:address-object). */ address?: string; /** * Object that contains the fields that are required for the specific payment method. Required if the `token` field is not used. See [Get Payment Method Required Fields](ref:get-payment-method-required-fields). */ fields?: string; /** * A JSON object defined by the client. */ metadata?: object; /** * ID of the payment method. String starting with **card_** or **other_**. Required when the `type` field and the `fields` object are not used. */ token?: `card_${string}`; /** * Name of the payment method. Required when `token` is not used. */ type: string; };