import { CustomerType, IPaymentMethodDetails } from './customer.types'; export type ICustomerPaymentMethodsPayload = { connector: { name: string; }; customer: CustomerType; }; export type ICustomerPaymentMethodsResponse = { customer: string; payment_methods: IPaymentMethod[]; raw_data: { object: string; data: IPaymentMethod[]; has_more: boolean; url: string; }; }; export type IPaymentMethod = { id: string; type: string; details: IPaymentMethodDetails; is_default: boolean; }; export type ICreateSetupIntentPayload = { payment_method_types: string[]; mandate_data?: { customer_acceptance: { type: string; }; }; } & ICustomerPaymentMethodsPayload; export type ISetDefaultPaymentMethodPayload = { payment_method_id: string; } & ICustomerPaymentMethodsPayload; export type IConnectorCredentials = { publishable_key: string; account_id: string; }; export type ISetupIntentResponse = { customer: string | null; reference_id: string | null; client_secret: string | null; return_url: string | null; raw_data: object | null; };