// File generated from our OpenAPI spec declare module 'stripe' { namespace Stripe { interface CustomerSourceCreateParams { /** * Please refer to full [documentation](https://stripe.com/docs/api) instead. */ source: string; /** * Specifies which fields in the response should be expanded. */ expand?: Array; /** * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. */ metadata?: Stripe.MetadataParam; validate?: boolean; } interface CustomerSourceRetrieveParams { /** * Specifies which fields in the response should be expanded. */ expand?: Array; } interface CustomerSourceUpdateParams { /** * The name of the person or business that owns the bank account. */ account_holder_name?: string; /** * The type of entity that holds the account. This can be either `individual` or `company`. */ account_holder_type?: CustomerSourceUpdateParams.AccountHolderType; /** * City/District/Suburb/Town/Village. */ address_city?: string; /** * Billing address country, if provided when creating card. */ address_country?: string; /** * Address line 1 (Street address/PO Box/Company name). */ address_line1?: string; /** * Address line 2 (Apartment/Suite/Unit/Building). */ address_line2?: string; /** * State/County/Province/Region. */ address_state?: string; /** * ZIP or postal code. */ address_zip?: string; /** * Two digit number representing the card's expiration month. */ exp_month?: string; /** * Four digit number representing the card's expiration year. */ exp_year?: string; /** * Specifies which fields in the response should be expanded. */ expand?: Array; /** * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. */ metadata?: Stripe.Emptyable; /** * Cardholder name. */ name?: string; owner?: CustomerSourceUpdateParams.Owner; } namespace CustomerSourceUpdateParams { type AccountHolderType = 'company' | 'individual'; interface Owner { /** * Owner's address. */ address?: Stripe.AddressParam; /** * Owner's email address. */ email?: string; /** * Owner's full name. */ name?: string; /** * Owner's phone number. */ phone?: string; } } interface CustomerSourceListParams extends PaginationParams { /** * Specifies which fields in the response should be expanded. */ expand?: Array; /** * Filter sources according to a particular object type. */ object?: string; } interface CustomerSourceDeleteParams { /** * Specifies which fields in the response should be expanded. */ expand?: Array; } interface CustomerSourceVerifyParams { /** * Two positive integers, in *cents*, equal to the values of the microdeposits sent to the bank account. */ amounts?: Array; /** * Specifies which fields in the response should be expanded. */ expand?: Array; } } }