UNPKG

payrex-js-sdk

Version:
35 lines (33 loc) 914 B
type CustomerResource = { id: string; resource: string; billing_statement_prefix: string; email: string; currency: string; livemode: boolean; metadata: Record<string, string> | null; name: string; next_billing_statement_sequence_number: string; created_at: number; updated_at: number; }; type CreateCustomerPayload = { currency: string; name: string; email: string; billing_statement_prefix?: string; next_billing_statement_sequence_number?: string; metadata?: Record<string, string>; }; type UpdateCustomerPayload = Partial<CreateCustomerPayload> & { id: string; }; type CustomerSearchParams = { limit?: number; before?: string; after?: string; email?: string; name?: string; metadata?: Record<string, string>; }; export type { CreateCustomerPayload, CustomerResource, CustomerSearchParams, UpdateCustomerPayload };