Payment Methods
List Payment Methods
client.accounts.paymentMethods.list(PaymentMethodListParams { account_id, page, per_page } params, RequestOptionsoptions?): V4PagePaginationArray<PaymentMethodListResponse { id, address, address2, 22 more } >
GET/accounts/{account_id}/payment-methods
Create Payment Method
client.accounts.paymentMethods.create(PaymentMethodCreateParams { account_id, address, address2, 20 more } params, RequestOptionsoptions?): PaymentMethodCreateResponse { id, address, address2, 22 more }
POST/accounts/{account_id}/payment-methods
Get Payment Method
client.accounts.paymentMethods.get(stringpaymentMethodID, PaymentMethodGetParams { account_id } params, RequestOptionsoptions?): PaymentMethodGetResponse { id, address, address2, 22 more }
GET/accounts/{account_id}/payment-methods/{payment_method_id}
Update Payment Method
client.accounts.paymentMethods.update(stringpaymentMethodID, PaymentMethodUpdateParams { account_id, address, address2, 20 more } params, RequestOptionsoptions?): PaymentMethodUpdateResponse { id, address, address2, 22 more }
PUT/accounts/{account_id}/payment-methods/{payment_method_id}
Delete Payment Method
client.accounts.paymentMethods.delete(stringpaymentMethodID, PaymentMethodDeleteParams { account_id } params, RequestOptionsoptions?): PaymentMethodDeleteResponse
DELETE/accounts/{account_id}/payment-methods/{payment_method_id}
Set Default Payment Method
client.accounts.paymentMethods.setAsDefault(stringpaymentMethodID, PaymentMethodSetAsDefaultParams { account_id } params, RequestOptionsoptions?): PaymentMethodSetAsDefaultResponse
POST/accounts/{account_id}/payment-methods/{payment_method_id}/set-as-default