resources

package
v1.40.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var V1AccountLinksCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/account_links",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"account": {
			Type:             "string",
			ShortDescription: "The identifier of the account to create an account link for",
			Required:         true,
			MostCommon:       true,
		},
		"collect": {
			Type:             "string",
			ShortDescription: "The collect parameter is deprecated",
			Enum: []resource.EnumSpec{
				{Value: "currently_due"},
				{Value: "eventually_due"},
			},
		},
		"collection_options.fields": {
			Type:             "string",
			ShortDescription: "Specifies whether the platform collects only currently_due requirements (`currently_due`) or both currently_due and eventually_due requirements (`eventually_due`)",
			Enum: []resource.EnumSpec{
				{Value: "currently_due"},
				{Value: "eventually_due"},
			},
		},
		"collection_options.future_requirements": {
			Type:             "string",
			ShortDescription: "Specifies whether the platform collects future_requirements in addition to requirements in Connect Onboarding",
			Enum: []resource.EnumSpec{
				{Value: "include"},
				{Value: "omit"},
			},
		},
		"refresh_url": {
			Type:             "string",
			ShortDescription: "The URL the user will be redirected to if the account link is expired, has been previously-visited, or is otherwise invalid",
			MostCommon:       true,
		},
		"return_url": {
			Type:             "string",
			ShortDescription: "The URL that the user will be redirected to upon leaving or completing the linked flow",
			MostCommon:       true,
		},
		"type": {
			Type:             "string",
			ShortDescription: "The type of account link the user is requesting",
			Required:         true,
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "account_onboarding"},
				{Value: "account_update"},
			},
		},
	},
}
View Source
var V1AccountSessionsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/account_sessions",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"account": {
			Type:             "string",
			ShortDescription: "The identifier of the account to create an Account Session for",
			Required:         true,
			MostCommon:       true,
		},
		"components.account_management.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether the embedded component is enabled",
		},
		"components.account_management.features.disable_stripe_user_authentication": {
			Type:             "boolean",
			ShortDescription: "Whether Stripe user authentication is disabled",
		},
		"components.account_management.features.external_account_collection": {
			Type:             "boolean",
			ShortDescription: "Whether external account collection is enabled",
		},
		"components.account_onboarding.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether the embedded component is enabled",
		},
		"components.account_onboarding.features.disable_stripe_user_authentication": {
			Type:             "boolean",
			ShortDescription: "Whether Stripe user authentication is disabled",
		},
		"components.account_onboarding.features.external_account_collection": {
			Type:             "boolean",
			ShortDescription: "Whether external account collection is enabled",
		},
		"components.balances.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether the embedded component is enabled",
		},
		"components.balances.features.disable_stripe_user_authentication": {
			Type:             "boolean",
			ShortDescription: "Whether Stripe user authentication is disabled",
		},
		"components.balances.features.edit_payout_schedule": {
			Type:             "boolean",
			ShortDescription: "Whether to allow payout schedule to be changed",
		},
		"components.balances.features.external_account_collection": {
			Type:             "boolean",
			ShortDescription: "Whether external account collection is enabled",
		},
		"components.balances.features.instant_payouts": {
			Type:             "boolean",
			ShortDescription: "Whether instant payouts are enabled for this component",
		},
		"components.balances.features.standard_payouts": {
			Type:             "boolean",
			ShortDescription: "Whether to allow creation of standard payouts",
		},
		"components.disputes_list.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether the embedded component is enabled",
		},
		"components.disputes_list.features.capture_payments": {
			Type:             "boolean",
			ShortDescription: "Whether to allow capturing and cancelling payment intents",
		},
		"components.disputes_list.features.destination_on_behalf_of_charge_management": {
			Type:             "boolean",
			ShortDescription: "Whether connected accounts can manage destination charges that are created on behalf of them",
		},
		"components.disputes_list.features.dispute_management": {
			Type:             "boolean",
			ShortDescription: "Whether responding to disputes is enabled, including submitting evidence and accepting disputes",
		},
		"components.disputes_list.features.refund_management": {
			Type:             "boolean",
			ShortDescription: "Whether sending refunds is enabled",
		},
		"components.documents.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether the embedded component is enabled",
		},
		"components.financial_account.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether the embedded component is enabled",
		},
		"components.financial_account.features.disable_stripe_user_authentication": {
			Type:             "boolean",
			ShortDescription: "Whether Stripe user authentication is disabled",
		},
		"components.financial_account.features.external_account_collection": {
			Type:             "boolean",
			ShortDescription: "Whether external account collection is enabled",
		},
		"components.financial_account.features.send_money": {
			Type:             "boolean",
			ShortDescription: "Whether to allow sending money",
		},
		"components.financial_account.features.transfer_balance": {
			Type:             "boolean",
			ShortDescription: "Whether to allow transferring balance",
		},
		"components.financial_account_transactions.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether the embedded component is enabled",
		},
		"components.financial_account_transactions.features.card_spend_dispute_management": {
			Type:             "boolean",
			ShortDescription: "Whether to allow card spend dispute management features",
		},
		"components.instant_payouts_promotion.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether the embedded component is enabled",
		},
		"components.instant_payouts_promotion.features.disable_stripe_user_authentication": {
			Type:             "boolean",
			ShortDescription: "Whether Stripe user authentication is disabled",
		},
		"components.instant_payouts_promotion.features.external_account_collection": {
			Type:             "boolean",
			ShortDescription: "Whether external account collection is enabled",
		},
		"components.instant_payouts_promotion.features.instant_payouts": {
			Type:             "boolean",
			ShortDescription: "Whether instant payouts are enabled for this component",
		},
		"components.issuing_card.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether the embedded component is enabled",
		},
		"components.issuing_card.features.card_management": {
			Type:             "boolean",
			ShortDescription: "Whether to allow card management features",
		},
		"components.issuing_card.features.card_spend_dispute_management": {
			Type:             "boolean",
			ShortDescription: "Whether to allow card spend dispute management features",
		},
		"components.issuing_card.features.cardholder_management": {
			Type:             "boolean",
			ShortDescription: "Whether to allow cardholder management features",
		},
		"components.issuing_card.features.spend_control_management": {
			Type:             "boolean",
			ShortDescription: "Whether to allow spend control management features",
		},
		"components.issuing_cards_list.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether the embedded component is enabled",
		},
		"components.issuing_cards_list.features.card_management": {
			Type:             "boolean",
			ShortDescription: "Whether to allow card management features",
		},
		"components.issuing_cards_list.features.card_spend_dispute_management": {
			Type:             "boolean",
			ShortDescription: "Whether to allow card spend dispute management features",
		},
		"components.issuing_cards_list.features.cardholder_management": {
			Type:             "boolean",
			ShortDescription: "Whether to allow cardholder management features",
		},
		"components.issuing_cards_list.features.disable_stripe_user_authentication": {
			Type:             "boolean",
			ShortDescription: "Whether Stripe user authentication is disabled",
		},
		"components.issuing_cards_list.features.spend_control_management": {
			Type:             "boolean",
			ShortDescription: "Whether to allow spend control management features",
		},
		"components.notification_banner.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether the embedded component is enabled",
		},
		"components.notification_banner.features.disable_stripe_user_authentication": {
			Type:             "boolean",
			ShortDescription: "Whether Stripe user authentication is disabled",
		},
		"components.notification_banner.features.external_account_collection": {
			Type:             "boolean",
			ShortDescription: "Whether external account collection is enabled",
		},
		"components.payment_details.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether the embedded component is enabled",
		},
		"components.payment_details.features.capture_payments": {
			Type:             "boolean",
			ShortDescription: "Whether to allow capturing and cancelling payment intents",
		},
		"components.payment_details.features.destination_on_behalf_of_charge_management": {
			Type:             "boolean",
			ShortDescription: "Whether connected accounts can manage destination charges that are created on behalf of them",
		},
		"components.payment_details.features.dispute_management": {
			Type:             "boolean",
			ShortDescription: "Whether responding to disputes is enabled, including submitting evidence and accepting disputes",
		},
		"components.payment_details.features.refund_management": {
			Type:             "boolean",
			ShortDescription: "Whether sending refunds is enabled",
		},
		"components.payment_disputes.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether the embedded component is enabled",
		},
		"components.payment_disputes.features.destination_on_behalf_of_charge_management": {
			Type:             "boolean",
			ShortDescription: "Whether connected accounts can manage destination charges that are created on behalf of them",
		},
		"components.payment_disputes.features.dispute_management": {
			Type:             "boolean",
			ShortDescription: "Whether responding to disputes is enabled, including submitting evidence and accepting disputes",
		},
		"components.payment_disputes.features.refund_management": {
			Type:             "boolean",
			ShortDescription: "Whether sending refunds is enabled",
		},
		"components.payments.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether the embedded component is enabled",
		},
		"components.payments.features.capture_payments": {
			Type:             "boolean",
			ShortDescription: "Whether to allow capturing and cancelling payment intents",
		},
		"components.payments.features.destination_on_behalf_of_charge_management": {
			Type:             "boolean",
			ShortDescription: "Whether connected accounts can manage destination charges that are created on behalf of them",
		},
		"components.payments.features.dispute_management": {
			Type:             "boolean",
			ShortDescription: "Whether responding to disputes is enabled, including submitting evidence and accepting disputes",
		},
		"components.payments.features.refund_management": {
			Type:             "boolean",
			ShortDescription: "Whether sending refunds is enabled",
		},
		"components.payout_details.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether the embedded component is enabled",
		},
		"components.payouts.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether the embedded component is enabled",
		},
		"components.payouts.features.disable_stripe_user_authentication": {
			Type:             "boolean",
			ShortDescription: "Whether Stripe user authentication is disabled",
		},
		"components.payouts.features.edit_payout_schedule": {
			Type:             "boolean",
			ShortDescription: "Whether to allow payout schedule to be changed",
		},
		"components.payouts.features.external_account_collection": {
			Type:             "boolean",
			ShortDescription: "Whether external account collection is enabled",
		},
		"components.payouts.features.instant_payouts": {
			Type:             "boolean",
			ShortDescription: "Whether instant payouts are enabled for this component",
		},
		"components.payouts.features.standard_payouts": {
			Type:             "boolean",
			ShortDescription: "Whether to allow creation of standard payouts",
		},
		"components.payouts_list.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether the embedded component is enabled",
		},
		"components.tax_registrations.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether the embedded component is enabled",
		},
		"components.tax_settings.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether the embedded component is enabled",
		},
	},
}
View Source
var V1AccountsCapabilities = resource.OperationSpec{
	Name:   "capabilities",
	Path:   "/v1/accounts/{account}/capabilities",
	Method: "GET",
}
View Source
var V1AccountsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/accounts",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"account_token": {
			Type:             "string",
			ShortDescription: "An [account token](https://api.stripe.com#create_account_token), used to securely provide details to the account",
		},
		"business_profile.annual_revenue.amount": {
			Type:             "integer",
			ShortDescription: "A non-negative integer representing the amount in the [smallest currency unit](/currencies#zero-decimal)",
		},
		"business_profile.annual_revenue.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Format:           "currency",
		},
		"business_profile.annual_revenue.fiscal_year_end": {
			Type:             "string",
			ShortDescription: "The close-out date of the preceding fiscal year in ISO 8601 format",
		},
		"business_profile.estimated_worker_count": {
			Type:             "integer",
			ShortDescription: "An estimated upper bound of employees, contractors, vendors, etc. currently working for the business",
		},
		"business_profile.mcc": {
			Type:             "string",
			ShortDescription: "[The merchant category code for the account](/connect/setting-mcc)",
		},
		"business_profile.minority_owned_business_designation": {
			Type:             "array",
			ShortDescription: "Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business",
		},
		"business_profile.monthly_estimated_revenue.amount": {
			Type:             "integer",
			ShortDescription: "A non-negative integer representing how much to charge in the [smallest currency unit](/currencies#zero-decimal)",
		},
		"business_profile.monthly_estimated_revenue.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Format:           "currency",
		},
		"business_profile.name": {
			Type:             "string",
			ShortDescription: "The customer-facing business name",
		},
		"business_profile.product_description": {
			Type:             "string",
			ShortDescription: "Internal-only description of the product sold by, or service provided by, the business",
		},
		"business_profile.support_address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"business_profile.support_address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"business_profile.support_address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"business_profile.support_address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"business_profile.support_address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"business_profile.support_address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"business_profile.support_email": {
			Type:             "string",
			ShortDescription: "A publicly available email address for sending support issues to",
		},
		"business_profile.support_phone": {
			Type:             "string",
			ShortDescription: "A publicly available phone number to call with support issues",
		},
		"business_profile.support_url": {
			Type:             "string",
			ShortDescription: "A publicly available website for handling support issues",
		},
		"business_profile.url": {
			Type:             "string",
			ShortDescription: "The business's publicly available website",
		},
		"business_type": {
			Type:             "string",
			ShortDescription: "The business type",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "government_entity"},
				{Value: "individual"},
				{Value: "non_profit"},
			},
		},
		"capabilities.acss_debit_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.affirm_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.afterpay_clearpay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.alma_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.amazon_pay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.au_becs_debit_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.bacs_debit_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.bancontact_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.bank_transfer_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.billie_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.blik_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.boleto_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.card_issuing.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.card_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.cartes_bancaires_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.cashapp_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.crypto_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.eps_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.fpx_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.gb_bank_transfer_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.giropay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.grabpay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.ideal_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.india_international_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.jcb_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.jp_bank_transfer_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.kakao_pay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.klarna_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.konbini_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.kr_card_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.legacy_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.link_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.mb_way_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.mobilepay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.multibanco_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.mx_bank_transfer_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.naver_pay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.nz_bank_account_becs_debit_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.oxxo_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.p24_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.pay_by_bank_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.payco_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.paynow_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.payto_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.pix_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.promptpay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.revolut_pay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.samsung_pay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.satispay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.sepa_bank_transfer_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.sepa_debit_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.sofort_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.swish_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.tax_reporting_us_1099_k.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.tax_reporting_us_1099_misc.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.transfers.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.treasury.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.twint_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.upi_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.us_bank_account_ach_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.us_bank_transfer_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.zip_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"company.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"company.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"company.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"company.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"company.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"company.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"company.address_kana.city": {
			Type:             "string",
			ShortDescription: "City or ward",
		},
		"company.address_kana.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"company.address_kana.line1": {
			Type:             "string",
			ShortDescription: "Block or building number",
		},
		"company.address_kana.line2": {
			Type:             "string",
			ShortDescription: "Building details",
		},
		"company.address_kana.postal_code": {
			Type:             "string",
			ShortDescription: "Postal code",
		},
		"company.address_kana.state": {
			Type:             "string",
			ShortDescription: "Prefecture",
		},
		"company.address_kana.town": {
			Type:             "string",
			ShortDescription: "Town or cho-me",
		},
		"company.address_kanji.city": {
			Type:             "string",
			ShortDescription: "City or ward",
		},
		"company.address_kanji.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"company.address_kanji.line1": {
			Type:             "string",
			ShortDescription: "Block or building number",
		},
		"company.address_kanji.line2": {
			Type:             "string",
			ShortDescription: "Building details",
		},
		"company.address_kanji.postal_code": {
			Type:             "string",
			ShortDescription: "Postal code",
		},
		"company.address_kanji.state": {
			Type:             "string",
			ShortDescription: "Prefecture",
		},
		"company.address_kanji.town": {
			Type:             "string",
			ShortDescription: "Town or cho-me",
		},
		"company.directors_provided": {
			Type:             "boolean",
			ShortDescription: "Whether the company's directors have been provided",
		},
		"company.directorship_declaration.date": {
			Type:             "integer",
			ShortDescription: "The Unix timestamp marking when the directorship declaration attestation was made",
			Format:           "unix-time",
		},
		"company.directorship_declaration.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the directorship declaration attestation was made",
		},
		"company.directorship_declaration.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the directorship declaration attestation was made",
		},
		"company.executives_provided": {
			Type:             "boolean",
			ShortDescription: "Whether the company's executives have been provided",
		},
		"company.export_license_id": {
			Type:             "string",
			ShortDescription: "The export license ID number of the company, also referred as Import Export Code (India only)",
		},
		"company.export_purpose_code": {
			Type:             "string",
			ShortDescription: "The purpose code to use for export transactions (India only)",
		},
		"company.name": {
			Type:             "string",
			ShortDescription: "The company's legal name",
		},
		"company.name_kana": {
			Type:             "string",
			ShortDescription: "The Kana variation of the company's legal name (Japan only)",
		},
		"company.name_kanji": {
			Type:             "string",
			ShortDescription: "The Kanji variation of the company's legal name (Japan only)",
		},
		"company.owners_provided": {
			Type:             "boolean",
			ShortDescription: "Whether the company's owners have been provided",
		},
		"company.ownership_declaration.date": {
			Type:             "integer",
			ShortDescription: "The Unix timestamp marking when the beneficial owner attestation was made",
			Format:           "unix-time",
		},
		"company.ownership_declaration.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the beneficial owner attestation was made",
		},
		"company.ownership_declaration.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the beneficial owner attestation was made",
		},
		"company.ownership_exemption_reason": {
			Type:             "string",
			ShortDescription: "This value is used to determine if a business is exempt from providing ultimate beneficial owners",
			Enum: []resource.EnumSpec{
				{Value: "qualified_entity_exceeds_ownership_threshold"},
				{Value: "qualifies_as_financial_institution"},
			},
		},
		"company.phone": {
			Type:             "string",
			ShortDescription: "The company's phone number (used for verification)",
		},
		"company.registration_date.day": {
			Type:             "integer",
			ShortDescription: "The day of registration, between 1 and 31",
		},
		"company.registration_date.month": {
			Type:             "integer",
			ShortDescription: "The month of registration, between 1 and 12",
		},
		"company.registration_date.year": {
			Type:             "integer",
			ShortDescription: "The four-digit year of registration",
		},
		"company.registration_number": {
			Type:             "string",
			ShortDescription: "The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes",
		},
		"company.representative_declaration.date": {
			Type:             "integer",
			ShortDescription: "The Unix timestamp marking when the representative declaration attestation was made",
			Format:           "unix-time",
		},
		"company.representative_declaration.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the representative declaration attestation was made",
		},
		"company.representative_declaration.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the representative declaration attestation was made",
		},
		"company.structure": {
			Type:             "string",
			ShortDescription: "The category identifying the legal structure of the company or legal entity",
			Enum: []resource.EnumSpec{
				{Value: "free_zone_establishment"},
				{Value: "free_zone_llc"},
				{Value: "government_instrumentality"},
				{Value: "governmental_unit"},
				{Value: "incorporated_non_profit"},
				{Value: "incorporated_partnership"},
				{Value: "limited_liability_partnership"},
				{Value: "llc"},
				{Value: "multi_member_llc"},
				{Value: "private_company"},
				{Value: "private_corporation"},
				{Value: "private_partnership"},
				{Value: "public_company"},
				{Value: "public_corporation"},
				{Value: "public_partnership"},
				{Value: "registered_charity"},
				{Value: "single_member_llc"},
				{Value: "sole_establishment"},
				{Value: "sole_proprietorship"},
				{Value: "tax_exempt_government_instrumentality"},
				{Value: "unincorporated_association"},
				{Value: "unincorporated_non_profit"},
				{Value: "unincorporated_partnership"},
			},
		},
		"company.tax_id": {
			Type:             "string",
			ShortDescription: "The business ID number of the company, as appropriate for the company’s country",
		},
		"company.tax_id_registrar": {
			Type:             "string",
			ShortDescription: "The jurisdiction in which the `tax_id` is registered (Germany-based companies only)",
		},
		"company.vat_id": {
			Type:             "string",
			ShortDescription: "The VAT number of the company",
		},
		"company.verification.document.back": {
			Type:             "string",
			ShortDescription: "The back of a document returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `additional_verification`",
		},
		"company.verification.document.front": {
			Type:             "string",
			ShortDescription: "The front of a document returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `additional_verification`",
		},
		"controller.fees.payer": {
			Type:             "string",
			ShortDescription: "A value indicating the responsible payer of Stripe fees on this account",
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "application"},
			},
		},
		"controller.losses.payments": {
			Type:             "string",
			ShortDescription: "A value indicating who is liable when this account can't pay back negative balances resulting from payments",
			Enum: []resource.EnumSpec{
				{Value: "application"},
				{Value: "stripe"},
			},
		},
		"controller.requirement_collection": {
			Type:             "string",
			ShortDescription: "A value indicating responsibility for collecting updated information when requirements on the account are due or change",
			Enum: []resource.EnumSpec{
				{Value: "application"},
				{Value: "stripe"},
			},
		},
		"controller.stripe_dashboard.type": {
			Type:             "string",
			ShortDescription: "Whether this account should have access to the full Stripe Dashboard (`full`), to the Express Dashboard (`express`), or to no Stripe-hosted dashboard (`none`)",
			Enum: []resource.EnumSpec{
				{Value: "express"},
				{Value: "full"},
				{Value: "none"},
			},
		},
		"country": {
			Type:             "string",
			ShortDescription: "The country in which the account holder resides, or in which the business is legally established",
			MostCommon:       true,
		},
		"default_currency": {
			Type:             "string",
			ShortDescription: "Three-letter ISO currency code representing the default currency for the account",
			Format:           "currency",
		},
		"documents.bank_account_ownership_verification.files": {
			Type:             "array",
			ShortDescription: "One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`",
		},
		"documents.company_license.files": {
			Type:             "array",
			ShortDescription: "One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`",
		},
		"documents.company_memorandum_of_association.files": {
			Type:             "array",
			ShortDescription: "One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`",
		},
		"documents.company_ministerial_decree.files": {
			Type:             "array",
			ShortDescription: "One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`",
		},
		"documents.company_registration_verification.files": {
			Type:             "array",
			ShortDescription: "One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`",
		},
		"documents.company_tax_id_verification.files": {
			Type:             "array",
			ShortDescription: "One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`",
		},
		"documents.proof_of_address.files": {
			Type:             "array",
			ShortDescription: "One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`",
		},
		"documents.proof_of_registration.files": {
			Type:             "array",
			ShortDescription: "One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`",
		},
		"documents.proof_of_registration.signer.person": {
			Type:             "string",
			ShortDescription: "The token of the person signing the document, if applicable",
		},
		"documents.proof_of_ultimate_beneficial_ownership.files": {
			Type:             "array",
			ShortDescription: "One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`",
		},
		"documents.proof_of_ultimate_beneficial_ownership.signer.person": {
			Type:             "string",
			ShortDescription: "The token of the person signing the document, if applicable",
		},
		"email": {
			Type:             "string",
			ShortDescription: "The email address of the account holder",
			MostCommon:       true,
		},
		"external_account": {
			Type:             "string",
			ShortDescription: "A card or bank account to attach to the account for receiving [payouts](/connect/bank-debit-card-payouts) (you won’t be able to use it for top-ups)",
		},
		"groups.payments_pricing": {
			Type:             "string",
			ShortDescription: "The group the account is in to determine their payments pricing, and null if the account is on customized pricing",
		},
		"individual.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"individual.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"individual.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"individual.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"individual.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"individual.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"individual.address_kana.city": {
			Type:             "string",
			ShortDescription: "City or ward",
		},
		"individual.address_kana.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"individual.address_kana.line1": {
			Type:             "string",
			ShortDescription: "Block or building number",
		},
		"individual.address_kana.line2": {
			Type:             "string",
			ShortDescription: "Building details",
		},
		"individual.address_kana.postal_code": {
			Type:             "string",
			ShortDescription: "Postal code",
		},
		"individual.address_kana.state": {
			Type:             "string",
			ShortDescription: "Prefecture",
		},
		"individual.address_kana.town": {
			Type:             "string",
			ShortDescription: "Town or cho-me",
		},
		"individual.address_kanji.city": {
			Type:             "string",
			ShortDescription: "City or ward",
		},
		"individual.address_kanji.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"individual.address_kanji.line1": {
			Type:             "string",
			ShortDescription: "Block or building number",
		},
		"individual.address_kanji.line2": {
			Type:             "string",
			ShortDescription: "Building details",
		},
		"individual.address_kanji.postal_code": {
			Type:             "string",
			ShortDescription: "Postal code",
		},
		"individual.address_kanji.state": {
			Type:             "string",
			ShortDescription: "Prefecture",
		},
		"individual.address_kanji.town": {
			Type:             "string",
			ShortDescription: "Town or cho-me",
		},
		"individual.dob.day": {
			Type:             "integer",
			ShortDescription: "The day of birth, between 1 and 31",
		},
		"individual.dob.month": {
			Type:             "integer",
			ShortDescription: "The month of birth, between 1 and 12",
		},
		"individual.dob.year": {
			Type:             "integer",
			ShortDescription: "The four-digit year of birth",
		},
		"individual.email": {
			Type:             "string",
			ShortDescription: "The individual's email address",
		},
		"individual.first_name": {
			Type:             "string",
			ShortDescription: "The individual's first name",
		},
		"individual.first_name_kana": {
			Type:             "string",
			ShortDescription: "The Kana variation of the individual's first name (Japan only)",
		},
		"individual.first_name_kanji": {
			Type:             "string",
			ShortDescription: "The Kanji variation of the individual's first name (Japan only)",
		},
		"individual.full_name_aliases": {
			Type:             "array",
			ShortDescription: "A list of alternate names or aliases that the individual is known by",
		},
		"individual.gender": {
			Type:             "string",
			ShortDescription: "The individual's gender",
		},
		"individual.id_number": {
			Type:             "string",
			ShortDescription: "The government-issued ID number of the individual, as appropriate for the representative's country",
		},
		"individual.id_number_secondary": {
			Type:             "string",
			ShortDescription: "The government-issued secondary ID number of the individual, as appropriate for the representative's country, will be used for enhanced verification checks",
		},
		"individual.last_name": {
			Type:             "string",
			ShortDescription: "The individual's last name",
		},
		"individual.last_name_kana": {
			Type:             "string",
			ShortDescription: "The Kana variation of the individual's last name (Japan only)",
		},
		"individual.last_name_kanji": {
			Type:             "string",
			ShortDescription: "The Kanji variation of the individual's last name (Japan only)",
		},
		"individual.maiden_name": {
			Type:             "string",
			ShortDescription: "The individual's maiden name",
		},
		"individual.phone": {
			Type:             "string",
			ShortDescription: "The individual's phone number",
		},
		"individual.political_exposure": {
			Type:             "string",
			ShortDescription: "Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction",
			Enum: []resource.EnumSpec{
				{Value: "existing"},
				{Value: "none"},
			},
		},
		"individual.registered_address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"individual.registered_address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"individual.registered_address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"individual.registered_address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"individual.registered_address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"individual.registered_address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"individual.relationship.director": {
			Type:             "boolean",
			ShortDescription: "Whether the person is a director of the account's legal entity",
		},
		"individual.relationship.executive": {
			Type:             "boolean",
			ShortDescription: "Whether the person has significant responsibility to control, manage, or direct the organization",
		},
		"individual.relationship.owner": {
			Type:             "boolean",
			ShortDescription: "Whether the person is an owner of the account’s legal entity",
		},
		"individual.relationship.percent_ownership": {
			Type:             "number",
			ShortDescription: "The percent owned by the person of the account's legal entity",
		},
		"individual.relationship.title": {
			Type:             "string",
			ShortDescription: "The person's title (e.g., CEO, Support Engineer)",
		},
		"individual.ssn_last_4": {
			Type:             "string",
			ShortDescription: "The last four digits of the individual's Social Security Number (U.S. only)",
		},
		"individual.verification.additional_document.back": {
			Type:             "string",
			ShortDescription: "The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`",
		},
		"individual.verification.additional_document.front": {
			Type:             "string",
			ShortDescription: "The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`",
		},
		"individual.verification.document.back": {
			Type:             "string",
			ShortDescription: "The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`",
		},
		"individual.verification.document.front": {
			Type:             "string",
			ShortDescription: "The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`",
		},
		"settings.bacs_debit_payments.display_name": {
			Type:             "string",
			ShortDescription: "The Bacs Direct Debit Display Name for this account",
		},
		"settings.branding.icon": {
			Type:             "string",
			ShortDescription: "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) An icon for the account",
		},
		"settings.branding.logo": {
			Type:             "string",
			ShortDescription: "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) A logo for the account that will be used in Checkout instead of the icon and without the account's name next to it if provided",
		},
		"settings.branding.primary_color": {
			Type:             "string",
			ShortDescription: "A CSS hex color value representing the primary branding color for this account",
		},
		"settings.branding.secondary_color": {
			Type:             "string",
			ShortDescription: "A CSS hex color value representing the secondary branding color for this account",
		},
		"settings.card_issuing.tos_acceptance.date": {
			Type:             "integer",
			ShortDescription: "The Unix timestamp marking when the account representative accepted the service agreement",
			Format:           "unix-time",
		},
		"settings.card_issuing.tos_acceptance.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the account representative accepted the service agreement",
		},
		"settings.card_issuing.tos_acceptance.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the account representative accepted the service agreement",
		},
		"settings.card_payments.decline_on.avs_failure": {
			Type:             "boolean",
			ShortDescription: "Whether Stripe automatically declines charges with an incorrect ZIP or postal code",
		},
		"settings.card_payments.decline_on.cvc_failure": {
			Type:             "boolean",
			ShortDescription: "Whether Stripe automatically declines charges with an incorrect CVC",
		},
		"settings.card_payments.statement_descriptor_prefix": {
			Type:             "string",
			ShortDescription: "The default text that appears on credit card statements when a charge is made",
		},
		"settings.card_payments.statement_descriptor_prefix_kana": {
			Type:             "string",
			ShortDescription: "The Kana variation of the default text that appears on credit card statements when a charge is made (Japan only)",
		},
		"settings.card_payments.statement_descriptor_prefix_kanji": {
			Type:             "string",
			ShortDescription: "The Kanji variation of the default text that appears on credit card statements when a charge is made (Japan only)",
		},
		"settings.invoices.hosted_payment_method_save": {
			Type:             "string",
			ShortDescription: "Whether to save the payment method after a payment is completed for a one-time invoice or a subscription invoice when the customer already has a default payment method on the hosted invoice page",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "never"},
				{Value: "offer"},
			},
		},
		"settings.payments.statement_descriptor": {
			Type:             "string",
			ShortDescription: "The default text that appears on statements for non-card charges outside of Japan",
		},
		"settings.payments.statement_descriptor_kana": {
			Type:             "string",
			ShortDescription: "The Kana variation of `statement_descriptor` used for charges in Japan",
		},
		"settings.payments.statement_descriptor_kanji": {
			Type:             "string",
			ShortDescription: "The Kanji variation of `statement_descriptor` used for charges in Japan",
		},
		"settings.payouts.debit_negative_balances": {
			Type:             "boolean",
			ShortDescription: "A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account",
		},
		"settings.payouts.schedule.delay_days": {
			Type:             "string",
			ShortDescription: "The number of days charge funds are held before being paid out",
		},
		"settings.payouts.schedule.interval": {
			Type:             "string",
			ShortDescription: "How frequently available funds are paid out",
			Enum: []resource.EnumSpec{
				{Value: "daily"},
				{Value: "manual"},
				{Value: "monthly"},
				{Value: "weekly"},
			},
		},
		"settings.payouts.schedule.monthly_anchor": {
			Type:             "integer",
			ShortDescription: "The day of the month when available funds are paid out, specified as a number between 1--31",
		},
		"settings.payouts.schedule.monthly_payout_days": {
			Type:             "array",
			ShortDescription: "The days of the month when available funds are paid out, specified as an array of numbers between 1--31",
		},
		"settings.payouts.schedule.weekly_anchor": {
			Type:             "string",
			ShortDescription: "The day of the week when available funds are paid out, specified as `monday`, `tuesday`, etc",
			Enum: []resource.EnumSpec{
				{Value: "friday"},
				{Value: "monday"},
				{Value: "saturday"},
				{Value: "sunday"},
				{Value: "thursday"},
				{Value: "tuesday"},
				{Value: "wednesday"},
			},
		},
		"settings.payouts.schedule.weekly_payout_days": {
			Type:             "array",
			ShortDescription: "The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]",
		},
		"settings.payouts.statement_descriptor": {
			Type:             "string",
			ShortDescription: "The text that appears on the bank account statement for payouts",
		},
		"settings.treasury.tos_acceptance.date": {
			Type:             "integer",
			ShortDescription: "The Unix timestamp marking when the account representative accepted the service agreement",
			Format:           "unix-time",
		},
		"settings.treasury.tos_acceptance.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the account representative accepted the service agreement",
		},
		"settings.treasury.tos_acceptance.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the account representative accepted the service agreement",
		},
		"tos_acceptance.date": {
			Type:             "integer",
			ShortDescription: "The Unix timestamp marking when the account representative accepted their service agreement",
			Format:           "unix-time",
		},
		"tos_acceptance.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the account representative accepted their service agreement",
		},
		"tos_acceptance.service_agreement": {
			Type:             "string",
			ShortDescription: "The user's service agreement type",
		},
		"tos_acceptance.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the account representative accepted their service agreement",
		},
		"type": {
			Type:             "string",
			ShortDescription: "The type of Stripe account to create",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "custom"},
				{Value: "express"},
				{Value: "standard"},
			},
		},
	},
}
View Source
var V1AccountsDelete = resource.OperationSpec{
	Name:   "delete",
	Path:   "/v1/accounts/{account}",
	Method: "DELETE",
}
View Source
var V1AccountsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/accounts",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type:             "integer",
			ShortDescription: "Only return connected accounts that were created during the given date interval",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1AccountsPersons = resource.OperationSpec{
	Name:   "persons",
	Path:   "/v1/accounts/{account}/persons",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1AccountsReject = resource.OperationSpec{
	Name:   "reject",
	Path:   "/v1/accounts/{account}/reject",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"reason": {
			Type:             "string",
			ShortDescription: "The reason for rejecting the account",
			Required:         true,
			MostCommon:       true,
		},
	},
}
View Source
var V1AccountsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/account",
	Method: "GET",
}
View Source
var V1AccountsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/accounts/{account}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"account_token": {
			Type:             "string",
			ShortDescription: "An [account token](https://api.stripe.com#create_account_token), used to securely provide details to the account",
		},
		"business_profile.annual_revenue.amount": {
			Type:             "integer",
			ShortDescription: "A non-negative integer representing the amount in the [smallest currency unit](/currencies#zero-decimal)",
		},
		"business_profile.annual_revenue.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Format:           "currency",
		},
		"business_profile.annual_revenue.fiscal_year_end": {
			Type:             "string",
			ShortDescription: "The close-out date of the preceding fiscal year in ISO 8601 format",
		},
		"business_profile.estimated_worker_count": {
			Type:             "integer",
			ShortDescription: "An estimated upper bound of employees, contractors, vendors, etc. currently working for the business",
		},
		"business_profile.mcc": {
			Type:             "string",
			ShortDescription: "[The merchant category code for the account](/connect/setting-mcc)",
		},
		"business_profile.minority_owned_business_designation": {
			Type:             "array",
			ShortDescription: "Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business",
		},
		"business_profile.monthly_estimated_revenue.amount": {
			Type:             "integer",
			ShortDescription: "A non-negative integer representing how much to charge in the [smallest currency unit](/currencies#zero-decimal)",
		},
		"business_profile.monthly_estimated_revenue.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Format:           "currency",
		},
		"business_profile.name": {
			Type:             "string",
			ShortDescription: "The customer-facing business name",
		},
		"business_profile.product_description": {
			Type:             "string",
			ShortDescription: "Internal-only description of the product sold by, or service provided by, the business",
		},
		"business_profile.support_address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"business_profile.support_address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"business_profile.support_address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"business_profile.support_address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"business_profile.support_address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"business_profile.support_address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"business_profile.support_email": {
			Type:             "string",
			ShortDescription: "A publicly available email address for sending support issues to",
		},
		"business_profile.support_phone": {
			Type:             "string",
			ShortDescription: "A publicly available phone number to call with support issues",
		},
		"business_profile.support_url": {
			Type:             "string",
			ShortDescription: "A publicly available website for handling support issues",
		},
		"business_profile.url": {
			Type:             "string",
			ShortDescription: "The business's publicly available website",
		},
		"business_type": {
			Type:             "string",
			ShortDescription: "The business type",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "government_entity"},
				{Value: "individual"},
				{Value: "non_profit"},
			},
		},
		"capabilities.acss_debit_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.affirm_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.afterpay_clearpay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.alma_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.amazon_pay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.au_becs_debit_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.bacs_debit_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.bancontact_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.bank_transfer_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.billie_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.blik_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.boleto_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.card_issuing.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.card_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.cartes_bancaires_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.cashapp_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.crypto_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.eps_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.fpx_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.gb_bank_transfer_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.giropay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.grabpay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.ideal_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.india_international_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.jcb_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.jp_bank_transfer_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.kakao_pay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.klarna_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.konbini_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.kr_card_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.legacy_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.link_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.mb_way_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.mobilepay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.multibanco_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.mx_bank_transfer_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.naver_pay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.nz_bank_account_becs_debit_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.oxxo_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.p24_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.pay_by_bank_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.payco_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.paynow_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.payto_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.pix_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.promptpay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.revolut_pay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.samsung_pay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.satispay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.sepa_bank_transfer_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.sepa_debit_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.sofort_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.swish_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.tax_reporting_us_1099_k.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.tax_reporting_us_1099_misc.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.transfers.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.treasury.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.twint_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.upi_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.us_bank_account_ach_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.us_bank_transfer_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"capabilities.zip_payments.requested": {
			Type:             "boolean",
			ShortDescription: "Passing true requests the capability for the account, if it is not already requested",
		},
		"company.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"company.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"company.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"company.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"company.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"company.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"company.address_kana.city": {
			Type:             "string",
			ShortDescription: "City or ward",
		},
		"company.address_kana.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"company.address_kana.line1": {
			Type:             "string",
			ShortDescription: "Block or building number",
		},
		"company.address_kana.line2": {
			Type:             "string",
			ShortDescription: "Building details",
		},
		"company.address_kana.postal_code": {
			Type:             "string",
			ShortDescription: "Postal code",
		},
		"company.address_kana.state": {
			Type:             "string",
			ShortDescription: "Prefecture",
		},
		"company.address_kana.town": {
			Type:             "string",
			ShortDescription: "Town or cho-me",
		},
		"company.address_kanji.city": {
			Type:             "string",
			ShortDescription: "City or ward",
		},
		"company.address_kanji.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"company.address_kanji.line1": {
			Type:             "string",
			ShortDescription: "Block or building number",
		},
		"company.address_kanji.line2": {
			Type:             "string",
			ShortDescription: "Building details",
		},
		"company.address_kanji.postal_code": {
			Type:             "string",
			ShortDescription: "Postal code",
		},
		"company.address_kanji.state": {
			Type:             "string",
			ShortDescription: "Prefecture",
		},
		"company.address_kanji.town": {
			Type:             "string",
			ShortDescription: "Town or cho-me",
		},
		"company.directors_provided": {
			Type:             "boolean",
			ShortDescription: "Whether the company's directors have been provided",
		},
		"company.directorship_declaration.date": {
			Type:             "integer",
			ShortDescription: "The Unix timestamp marking when the directorship declaration attestation was made",
			Format:           "unix-time",
		},
		"company.directorship_declaration.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the directorship declaration attestation was made",
		},
		"company.directorship_declaration.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the directorship declaration attestation was made",
		},
		"company.executives_provided": {
			Type:             "boolean",
			ShortDescription: "Whether the company's executives have been provided",
		},
		"company.export_license_id": {
			Type:             "string",
			ShortDescription: "The export license ID number of the company, also referred as Import Export Code (India only)",
		},
		"company.export_purpose_code": {
			Type:             "string",
			ShortDescription: "The purpose code to use for export transactions (India only)",
		},
		"company.name": {
			Type:             "string",
			ShortDescription: "The company's legal name",
		},
		"company.name_kana": {
			Type:             "string",
			ShortDescription: "The Kana variation of the company's legal name (Japan only)",
		},
		"company.name_kanji": {
			Type:             "string",
			ShortDescription: "The Kanji variation of the company's legal name (Japan only)",
		},
		"company.owners_provided": {
			Type:             "boolean",
			ShortDescription: "Whether the company's owners have been provided",
		},
		"company.ownership_declaration.date": {
			Type:             "integer",
			ShortDescription: "The Unix timestamp marking when the beneficial owner attestation was made",
			Format:           "unix-time",
		},
		"company.ownership_declaration.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the beneficial owner attestation was made",
		},
		"company.ownership_declaration.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the beneficial owner attestation was made",
		},
		"company.ownership_exemption_reason": {
			Type:             "string",
			ShortDescription: "This value is used to determine if a business is exempt from providing ultimate beneficial owners",
			Enum: []resource.EnumSpec{
				{Value: "qualified_entity_exceeds_ownership_threshold"},
				{Value: "qualifies_as_financial_institution"},
			},
		},
		"company.phone": {
			Type:             "string",
			ShortDescription: "The company's phone number (used for verification)",
		},
		"company.registration_date.day": {
			Type:             "integer",
			ShortDescription: "The day of registration, between 1 and 31",
		},
		"company.registration_date.month": {
			Type:             "integer",
			ShortDescription: "The month of registration, between 1 and 12",
		},
		"company.registration_date.year": {
			Type:             "integer",
			ShortDescription: "The four-digit year of registration",
		},
		"company.registration_number": {
			Type:             "string",
			ShortDescription: "The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes",
		},
		"company.representative_declaration.date": {
			Type:             "integer",
			ShortDescription: "The Unix timestamp marking when the representative declaration attestation was made",
			Format:           "unix-time",
		},
		"company.representative_declaration.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the representative declaration attestation was made",
		},
		"company.representative_declaration.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the representative declaration attestation was made",
		},
		"company.structure": {
			Type:             "string",
			ShortDescription: "The category identifying the legal structure of the company or legal entity",
			Enum: []resource.EnumSpec{
				{Value: "free_zone_establishment"},
				{Value: "free_zone_llc"},
				{Value: "government_instrumentality"},
				{Value: "governmental_unit"},
				{Value: "incorporated_non_profit"},
				{Value: "incorporated_partnership"},
				{Value: "limited_liability_partnership"},
				{Value: "llc"},
				{Value: "multi_member_llc"},
				{Value: "private_company"},
				{Value: "private_corporation"},
				{Value: "private_partnership"},
				{Value: "public_company"},
				{Value: "public_corporation"},
				{Value: "public_partnership"},
				{Value: "registered_charity"},
				{Value: "single_member_llc"},
				{Value: "sole_establishment"},
				{Value: "sole_proprietorship"},
				{Value: "tax_exempt_government_instrumentality"},
				{Value: "unincorporated_association"},
				{Value: "unincorporated_non_profit"},
				{Value: "unincorporated_partnership"},
			},
		},
		"company.tax_id": {
			Type:             "string",
			ShortDescription: "The business ID number of the company, as appropriate for the company’s country",
		},
		"company.tax_id_registrar": {
			Type:             "string",
			ShortDescription: "The jurisdiction in which the `tax_id` is registered (Germany-based companies only)",
		},
		"company.vat_id": {
			Type:             "string",
			ShortDescription: "The VAT number of the company",
		},
		"company.verification.document.back": {
			Type:             "string",
			ShortDescription: "The back of a document returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `additional_verification`",
		},
		"company.verification.document.front": {
			Type:             "string",
			ShortDescription: "The front of a document returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `additional_verification`",
		},
		"default_currency": {
			Type:             "string",
			ShortDescription: "Three-letter ISO currency code representing the default currency for the account",
			Format:           "currency",
		},
		"documents.bank_account_ownership_verification.files": {
			Type:             "array",
			ShortDescription: "One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`",
		},
		"documents.company_license.files": {
			Type:             "array",
			ShortDescription: "One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`",
		},
		"documents.company_memorandum_of_association.files": {
			Type:             "array",
			ShortDescription: "One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`",
		},
		"documents.company_ministerial_decree.files": {
			Type:             "array",
			ShortDescription: "One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`",
		},
		"documents.company_registration_verification.files": {
			Type:             "array",
			ShortDescription: "One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`",
		},
		"documents.company_tax_id_verification.files": {
			Type:             "array",
			ShortDescription: "One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`",
		},
		"documents.proof_of_address.files": {
			Type:             "array",
			ShortDescription: "One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`",
		},
		"documents.proof_of_registration.files": {
			Type:             "array",
			ShortDescription: "One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`",
		},
		"documents.proof_of_registration.signer.person": {
			Type:             "string",
			ShortDescription: "The token of the person signing the document, if applicable",
		},
		"documents.proof_of_ultimate_beneficial_ownership.files": {
			Type:             "array",
			ShortDescription: "One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`",
		},
		"documents.proof_of_ultimate_beneficial_ownership.signer.person": {
			Type:             "string",
			ShortDescription: "The token of the person signing the document, if applicable",
		},
		"email": {
			Type:             "string",
			ShortDescription: "The email address of the account holder",
			MostCommon:       true,
		},
		"external_account": {
			Type:             "string",
			ShortDescription: "A card or bank account to attach to the account for receiving [payouts](/connect/bank-debit-card-payouts) (you won’t be able to use it for top-ups)",
		},
		"groups.payments_pricing": {
			Type:             "string",
			ShortDescription: "The group the account is in to determine their payments pricing, and null if the account is on customized pricing",
		},
		"individual.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"individual.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"individual.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"individual.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"individual.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"individual.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"individual.address_kana.city": {
			Type:             "string",
			ShortDescription: "City or ward",
		},
		"individual.address_kana.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"individual.address_kana.line1": {
			Type:             "string",
			ShortDescription: "Block or building number",
		},
		"individual.address_kana.line2": {
			Type:             "string",
			ShortDescription: "Building details",
		},
		"individual.address_kana.postal_code": {
			Type:             "string",
			ShortDescription: "Postal code",
		},
		"individual.address_kana.state": {
			Type:             "string",
			ShortDescription: "Prefecture",
		},
		"individual.address_kana.town": {
			Type:             "string",
			ShortDescription: "Town or cho-me",
		},
		"individual.address_kanji.city": {
			Type:             "string",
			ShortDescription: "City or ward",
		},
		"individual.address_kanji.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"individual.address_kanji.line1": {
			Type:             "string",
			ShortDescription: "Block or building number",
		},
		"individual.address_kanji.line2": {
			Type:             "string",
			ShortDescription: "Building details",
		},
		"individual.address_kanji.postal_code": {
			Type:             "string",
			ShortDescription: "Postal code",
		},
		"individual.address_kanji.state": {
			Type:             "string",
			ShortDescription: "Prefecture",
		},
		"individual.address_kanji.town": {
			Type:             "string",
			ShortDescription: "Town or cho-me",
		},
		"individual.dob.day": {
			Type:             "integer",
			ShortDescription: "The day of birth, between 1 and 31",
		},
		"individual.dob.month": {
			Type:             "integer",
			ShortDescription: "The month of birth, between 1 and 12",
		},
		"individual.dob.year": {
			Type:             "integer",
			ShortDescription: "The four-digit year of birth",
		},
		"individual.email": {
			Type:             "string",
			ShortDescription: "The individual's email address",
		},
		"individual.first_name": {
			Type:             "string",
			ShortDescription: "The individual's first name",
		},
		"individual.first_name_kana": {
			Type:             "string",
			ShortDescription: "The Kana variation of the individual's first name (Japan only)",
		},
		"individual.first_name_kanji": {
			Type:             "string",
			ShortDescription: "The Kanji variation of the individual's first name (Japan only)",
		},
		"individual.full_name_aliases": {
			Type:             "array",
			ShortDescription: "A list of alternate names or aliases that the individual is known by",
		},
		"individual.gender": {
			Type:             "string",
			ShortDescription: "The individual's gender",
		},
		"individual.id_number": {
			Type:             "string",
			ShortDescription: "The government-issued ID number of the individual, as appropriate for the representative's country",
		},
		"individual.id_number_secondary": {
			Type:             "string",
			ShortDescription: "The government-issued secondary ID number of the individual, as appropriate for the representative's country, will be used for enhanced verification checks",
		},
		"individual.last_name": {
			Type:             "string",
			ShortDescription: "The individual's last name",
		},
		"individual.last_name_kana": {
			Type:             "string",
			ShortDescription: "The Kana variation of the individual's last name (Japan only)",
		},
		"individual.last_name_kanji": {
			Type:             "string",
			ShortDescription: "The Kanji variation of the individual's last name (Japan only)",
		},
		"individual.maiden_name": {
			Type:             "string",
			ShortDescription: "The individual's maiden name",
		},
		"individual.phone": {
			Type:             "string",
			ShortDescription: "The individual's phone number",
		},
		"individual.political_exposure": {
			Type:             "string",
			ShortDescription: "Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction",
			Enum: []resource.EnumSpec{
				{Value: "existing"},
				{Value: "none"},
			},
		},
		"individual.registered_address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"individual.registered_address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"individual.registered_address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"individual.registered_address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"individual.registered_address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"individual.registered_address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"individual.relationship.director": {
			Type:             "boolean",
			ShortDescription: "Whether the person is a director of the account's legal entity",
		},
		"individual.relationship.executive": {
			Type:             "boolean",
			ShortDescription: "Whether the person has significant responsibility to control, manage, or direct the organization",
		},
		"individual.relationship.owner": {
			Type:             "boolean",
			ShortDescription: "Whether the person is an owner of the account’s legal entity",
		},
		"individual.relationship.percent_ownership": {
			Type:             "number",
			ShortDescription: "The percent owned by the person of the account's legal entity",
		},
		"individual.relationship.title": {
			Type:             "string",
			ShortDescription: "The person's title (e.g., CEO, Support Engineer)",
		},
		"individual.ssn_last_4": {
			Type:             "string",
			ShortDescription: "The last four digits of the individual's Social Security Number (U.S. only)",
		},
		"individual.verification.additional_document.back": {
			Type:             "string",
			ShortDescription: "The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`",
		},
		"individual.verification.additional_document.front": {
			Type:             "string",
			ShortDescription: "The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`",
		},
		"individual.verification.document.back": {
			Type:             "string",
			ShortDescription: "The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`",
		},
		"individual.verification.document.front": {
			Type:             "string",
			ShortDescription: "The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`",
		},
		"settings.bacs_debit_payments.display_name": {
			Type:             "string",
			ShortDescription: "The Bacs Direct Debit Display Name for this account",
		},
		"settings.branding.icon": {
			Type:             "string",
			ShortDescription: "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) An icon for the account",
		},
		"settings.branding.logo": {
			Type:             "string",
			ShortDescription: "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) A logo for the account that will be used in Checkout instead of the icon and without the account's name next to it if provided",
		},
		"settings.branding.primary_color": {
			Type:             "string",
			ShortDescription: "A CSS hex color value representing the primary branding color for this account",
		},
		"settings.branding.secondary_color": {
			Type:             "string",
			ShortDescription: "A CSS hex color value representing the secondary branding color for this account",
		},
		"settings.card_issuing.tos_acceptance.date": {
			Type:             "integer",
			ShortDescription: "The Unix timestamp marking when the account representative accepted the service agreement",
			Format:           "unix-time",
		},
		"settings.card_issuing.tos_acceptance.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the account representative accepted the service agreement",
		},
		"settings.card_issuing.tos_acceptance.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the account representative accepted the service agreement",
		},
		"settings.card_payments.decline_on.avs_failure": {
			Type:             "boolean",
			ShortDescription: "Whether Stripe automatically declines charges with an incorrect ZIP or postal code",
		},
		"settings.card_payments.decline_on.cvc_failure": {
			Type:             "boolean",
			ShortDescription: "Whether Stripe automatically declines charges with an incorrect CVC",
		},
		"settings.card_payments.statement_descriptor_prefix": {
			Type:             "string",
			ShortDescription: "The default text that appears on credit card statements when a charge is made",
		},
		"settings.card_payments.statement_descriptor_prefix_kana": {
			Type:             "string",
			ShortDescription: "The Kana variation of the default text that appears on credit card statements when a charge is made (Japan only)",
		},
		"settings.card_payments.statement_descriptor_prefix_kanji": {
			Type:             "string",
			ShortDescription: "The Kanji variation of the default text that appears on credit card statements when a charge is made (Japan only)",
		},
		"settings.invoices.default_account_tax_ids": {
			Type:             "array",
			ShortDescription: "The list of default Account Tax IDs to automatically include on invoices",
		},
		"settings.invoices.hosted_payment_method_save": {
			Type:             "string",
			ShortDescription: "Whether to save the payment method after a payment is completed for a one-time invoice or a subscription invoice when the customer already has a default payment method on the hosted invoice page",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "never"},
				{Value: "offer"},
			},
		},
		"settings.payments.statement_descriptor": {
			Type:             "string",
			ShortDescription: "The default text that appears on statements for non-card charges outside of Japan",
		},
		"settings.payments.statement_descriptor_kana": {
			Type:             "string",
			ShortDescription: "The Kana variation of `statement_descriptor` used for charges in Japan",
		},
		"settings.payments.statement_descriptor_kanji": {
			Type:             "string",
			ShortDescription: "The Kanji variation of `statement_descriptor` used for charges in Japan",
		},
		"settings.payouts.debit_negative_balances": {
			Type:             "boolean",
			ShortDescription: "A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account",
		},
		"settings.payouts.schedule.delay_days": {
			Type:             "string",
			ShortDescription: "The number of days charge funds are held before being paid out",
		},
		"settings.payouts.schedule.interval": {
			Type:             "string",
			ShortDescription: "How frequently available funds are paid out",
			Enum: []resource.EnumSpec{
				{Value: "daily"},
				{Value: "manual"},
				{Value: "monthly"},
				{Value: "weekly"},
			},
		},
		"settings.payouts.schedule.monthly_anchor": {
			Type:             "integer",
			ShortDescription: "The day of the month when available funds are paid out, specified as a number between 1--31",
		},
		"settings.payouts.schedule.monthly_payout_days": {
			Type:             "array",
			ShortDescription: "The days of the month when available funds are paid out, specified as an array of numbers between 1--31",
		},
		"settings.payouts.schedule.weekly_anchor": {
			Type:             "string",
			ShortDescription: "The day of the week when available funds are paid out, specified as `monday`, `tuesday`, etc",
			Enum: []resource.EnumSpec{
				{Value: "friday"},
				{Value: "monday"},
				{Value: "saturday"},
				{Value: "sunday"},
				{Value: "thursday"},
				{Value: "tuesday"},
				{Value: "wednesday"},
			},
		},
		"settings.payouts.schedule.weekly_payout_days": {
			Type:             "array",
			ShortDescription: "The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]",
		},
		"settings.payouts.statement_descriptor": {
			Type:             "string",
			ShortDescription: "The text that appears on the bank account statement for payouts",
		},
		"settings.treasury.tos_acceptance.date": {
			Type:             "integer",
			ShortDescription: "The Unix timestamp marking when the account representative accepted the service agreement",
			Format:           "unix-time",
		},
		"settings.treasury.tos_acceptance.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the account representative accepted the service agreement",
		},
		"settings.treasury.tos_acceptance.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the account representative accepted the service agreement",
		},
		"tos_acceptance.date": {
			Type:             "integer",
			ShortDescription: "The Unix timestamp marking when the account representative accepted their service agreement",
			Format:           "unix-time",
		},
		"tos_acceptance.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the account representative accepted their service agreement",
		},
		"tos_acceptance.service_agreement": {
			Type:             "string",
			ShortDescription: "The user's service agreement type",
		},
		"tos_acceptance.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the account representative accepted their service agreement",
		},
	},
}
View Source
var V1ApplePayDomainsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/apple_pay/domains",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"domain_name": {
			Type:       "string",
			Required:   true,
			MostCommon: true,
		},
	},
}
View Source
var V1ApplePayDomainsDelete = resource.OperationSpec{
	Name:   "delete",
	Path:   "/v1/apple_pay/domains/{domain}",
	Method: "DELETE",
}
View Source
var V1ApplePayDomainsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/apple_pay/domains",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"domain_name": {
			Type: "string",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1ApplePayDomainsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/apple_pay/domains/{domain}",
	Method: "GET",
}
View Source
var V1ApplicationFeesList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/application_fees",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"charge": {
			Type:             "string",
			ShortDescription: "Only return application fees for the charge specified by this charge ID",
		},
		"created": {
			Type:             "integer",
			ShortDescription: "Only return applications fees that were created during the given date interval",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1ApplicationFeesRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/application_fees/{id}",
	Method: "GET",
}
View Source
var V1AppsSecretsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/apps/secrets",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"expires_at": {
			Type:             "integer",
			ShortDescription: "The Unix timestamp for the expiry time of the secret, after which the secret deletes",
			MostCommon:       true,
			Format:           "unix-time",
		},
		"name": {
			Type:             "string",
			ShortDescription: "A name for the secret that's unique within the scope",
			Required:         true,
			MostCommon:       true,
		},
		"payload": {
			Type:             "string",
			ShortDescription: "The plaintext secret value to be stored",
			Required:         true,
			MostCommon:       true,
		},
		"scope.type": {
			Type:             "string",
			ShortDescription: "The secret scope type",
			Required:         true,
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "user"},
			},
		},
		"scope.user": {
			Type:             "string",
			ShortDescription: "The user ID",
		},
	},
}
View Source
var V1AppsSecretsDeleteWhere = resource.OperationSpec{
	Name:   "delete_where",
	Path:   "/v1/apps/secrets/delete",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"name": {
			Type:             "string",
			ShortDescription: "A name for the secret that's unique within the scope",
			Required:         true,
			MostCommon:       true,
		},
		"scope.type": {
			Type:             "string",
			ShortDescription: "The secret scope type",
			Required:         true,
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "user"},
			},
		},
		"scope.user": {
			Type:             "string",
			ShortDescription: "The user ID",
		},
	},
}
View Source
var V1AppsSecretsFind = resource.OperationSpec{
	Name:   "find",
	Path:   "/v1/apps/secrets/find",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"name": {
			Type:             "string",
			ShortDescription: "A name for the secret that's unique within the scope",
			Required:         true,
		},
	},
}
View Source
var V1AppsSecretsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/apps/secrets",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1BalanceRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/balance",
	Method: "GET",
}
View Source
var V1BalanceSettingsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/balance_settings",
	Method: "GET",
}
View Source
var V1BalanceSettingsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/balance_settings",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"payments.debit_negative_balances": {
			Type:             "boolean",
			ShortDescription: "A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account",
		},
		"payments.payouts.schedule.interval": {
			Type:             "string",
			ShortDescription: "How frequently available funds are paid out",
			Enum: []resource.EnumSpec{
				{Value: "daily"},
				{Value: "manual"},
				{Value: "monthly"},
				{Value: "weekly"},
			},
		},
		"payments.payouts.schedule.monthly_payout_days": {
			Type:             "array",
			ShortDescription: "The days of the month when available funds are paid out, specified as an array of numbers between 1--31",
		},
		"payments.payouts.schedule.weekly_payout_days": {
			Type:             "array",
			ShortDescription: "The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]",
		},
		"payments.payouts.statement_descriptor": {
			Type:             "string",
			ShortDescription: "The text that appears on the bank account statement for payouts",
		},
		"payments.settlement_timing.delay_days_override": {
			Type:             "integer",
			ShortDescription: "Change `delay_days` for this account, which determines the number of days charge funds are held before becoming available",
		},
	},
}
View Source
var V1BalanceTransactionsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/balance_transactions",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type:             "integer",
			ShortDescription: "Only return transactions that were created during the given date interval",
		},
		"currency": {
			Type:             "string",
			ShortDescription: "Only return transactions in a certain currency",
			Format:           "currency",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"payout": {
			Type:             "string",
			ShortDescription: "For automatic Stripe payouts only, only returns transactions that were paid out on the specified payout ID",
		},
		"source": {
			Type:             "string",
			ShortDescription: "Only returns transactions associated with the given object",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"type": {
			Type:             "string",
			ShortDescription: "Only returns transactions of the given type",
		},
	},
}
View Source
var V1BalanceTransactionsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/balance_transactions/{id}",
	Method: "GET",
}
View Source
var V1BankAccountsDelete = resource.OperationSpec{
	Name:   "delete",
	Path:   "/v1/accounts/{account}/external_accounts/{id}",
	Method: "DELETE",
}
View Source
var V1BankAccountsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/accounts/{account}/external_accounts/{id}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"account_holder_name": {
			Type:             "string",
			ShortDescription: "The name of the person or business that owns the bank account",
		},
		"account_holder_type": {
			Type:             "string",
			ShortDescription: "The type of entity that holds the account",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"account_type": {
			Type:             "string",
			ShortDescription: "The bank account type",
			Enum: []resource.EnumSpec{
				{Value: "checking"},
				{Value: "futsu"},
				{Value: "savings"},
				{Value: "toza"},
			},
		},
		"address_city": {
			Type:             "string",
			ShortDescription: "City/District/Suburb/Town/Village",
		},
		"address_country": {
			Type:             "string",
			ShortDescription: "Billing address country, if provided when creating card",
		},
		"address_line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (Street address/PO Box/Company name)",
		},
		"address_line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (Apartment/Suite/Unit/Building)",
		},
		"address_state": {
			Type:             "string",
			ShortDescription: "State/County/Province/Region",
		},
		"address_zip": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"default_for_currency": {
			Type:             "boolean",
			ShortDescription: "When set to true, this becomes the default external account for its currency",
			MostCommon:       true,
		},
		"documents.bank_account_ownership_verification.files": {
			Type:             "array",
			ShortDescription: "One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`",
		},
		"exp_month": {
			Type:             "string",
			ShortDescription: "Two digit number representing the card’s expiration month",
		},
		"exp_year": {
			Type:             "string",
			ShortDescription: "Four digit number representing the card’s expiration year",
		},
		"name": {
			Type:             "string",
			ShortDescription: "Cardholder name",
		},
	},
}
View Source
var V1BankAccountsVerify = resource.OperationSpec{
	Name:   "verify",
	Path:   "/v1/customers/{customer}/sources/{id}/verify",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amounts": {
			Type:             "array",
			ShortDescription: "Two positive integers, in *cents*, equal to the values of the microdeposits sent to the bank account",
			MostCommon:       true,
		},
	},
}
View Source
var V1BillingAlertsActivate = resource.OperationSpec{
	Name:   "activate",
	Path:   "/v1/billing/alerts/{id}/activate",
	Method: "POST",
}
View Source
var V1BillingAlertsArchive = resource.OperationSpec{
	Name:   "archive",
	Path:   "/v1/billing/alerts/{id}/archive",
	Method: "POST",
}
View Source
var V1BillingAlertsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/billing/alerts",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"alert_type": {
			Type:             "string",
			ShortDescription: "The type of alert to create",
			Required:         true,
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "usage_threshold"},
			},
		},
		"title": {
			Type:             "string",
			ShortDescription: "The title of the alert",
			Required:         true,
			MostCommon:       true,
		},
		"usage_threshold.gte": {
			Type:             "integer",
			ShortDescription: "Defines the threshold value that triggers the alert",
			MostCommon:       true,
		},
		"usage_threshold.meter": {
			Type:             "string",
			ShortDescription: "The [Billing Meter](/api/billing/meter) ID whose usage is monitored",
			MostCommon:       true,
		},
		"usage_threshold.recurrence": {
			Type:             "string",
			ShortDescription: "Defines how the alert will behave",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "one_time"},
			},
		},
	},
}
View Source
var V1BillingAlertsDeactivate = resource.OperationSpec{
	Name:   "deactivate",
	Path:   "/v1/billing/alerts/{id}/deactivate",
	Method: "POST",
}
View Source
var V1BillingAlertsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/billing/alerts",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"alert_type": {
			Type:             "string",
			ShortDescription: "Filter results to only include this type of alert",
			Enum: []resource.EnumSpec{
				{Value: "usage_threshold"},
			},
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"meter": {
			Type:             "string",
			ShortDescription: "Filter results to only include alerts with the given meter",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1BillingAlertsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/billing/alerts/{id}",
	Method: "GET",
}
View Source
var V1BillingCreditBalanceSummariesRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/billing/credit_balance_summary",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"customer": {
			Type:             "string",
			ShortDescription: "The customer whose credit balance summary you're retrieving",
		},
		"customer_account": {
			Type:             "string",
			ShortDescription: "The account representing the customer whose credit balance summary you're retrieving",
		},
	},
}
View Source
var V1BillingCreditBalanceTransactionsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/billing/credit_balance_transactions",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"credit_grant": {
			Type:             "string",
			ShortDescription: "The credit grant for which to fetch credit balance transactions",
		},
		"customer": {
			Type:             "string",
			ShortDescription: "The customer whose credit balance transactions you're retrieving",
		},
		"customer_account": {
			Type:             "string",
			ShortDescription: "The account representing the customer whose credit balance transactions you're retrieving",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1BillingCreditBalanceTransactionsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/billing/credit_balance_transactions/{id}",
	Method: "GET",
}
View Source
var V1BillingCreditGrantsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/billing/credit_grants",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount.monetary.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) of the `value` parameter",
			Format:           "currency",
		},
		"amount.monetary.value": {
			Type:             "integer",
			ShortDescription: "A positive integer representing the amount of the credit grant",
		},
		"amount.type": {
			Type:             "string",
			ShortDescription: "The type of this amount",
			Required:         true,
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "monetary"},
			},
		},
		"applicability_config.scope.price_type": {
			Type:             "string",
			ShortDescription: "The price type that credit grants can apply to",
			Enum: []resource.EnumSpec{
				{Value: "metered"},
			},
		},
		"category": {
			Type:             "string",
			ShortDescription: "The category of this credit grant",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "paid"},
				{Value: "promotional"},
			},
		},
		"customer": {
			Type:             "string",
			ShortDescription: "ID of the customer receiving the billing credits",
			MostCommon:       true,
		},
		"customer_account": {
			Type:             "string",
			ShortDescription: "ID of the account representing the customer receiving the billing credits",
			MostCommon:       true,
		},
		"effective_at": {
			Type:             "integer",
			ShortDescription: "The time when the billing credits become effective-when they're eligible for use",
			MostCommon:       true,
			Format:           "unix-time",
		},
		"expires_at": {
			Type:             "integer",
			ShortDescription: "The time when the billing credits expire",
			MostCommon:       true,
			Format:           "unix-time",
		},
		"name": {
			Type:             "string",
			ShortDescription: "A descriptive name shown in the Dashboard",
			MostCommon:       true,
		},
		"priority": {
			Type:             "integer",
			ShortDescription: "The desired priority for applying this credit grant",
			MostCommon:       true,
		},
	},
}
View Source
var V1BillingCreditGrantsExpire = resource.OperationSpec{
	Name:   "expire",
	Path:   "/v1/billing/credit_grants/{id}/expire",
	Method: "POST",
}
View Source
var V1BillingCreditGrantsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/billing/credit_grants",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"customer": {
			Type:             "string",
			ShortDescription: "Only return credit grants for this customer",
		},
		"customer_account": {
			Type:             "string",
			ShortDescription: "Only return credit grants for this account representing the customer",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1BillingCreditGrantsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/billing/credit_grants/{id}",
	Method: "GET",
}
View Source
var V1BillingCreditGrantsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/billing/credit_grants/{id}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"expires_at": {
			Type:             "integer",
			ShortDescription: "The time when the billing credits created by this credit grant expire",
			MostCommon:       true,
		},
	},
}
View Source
var V1BillingCreditGrantsVoidGrant = resource.OperationSpec{
	Name:   "void_grant",
	Path:   "/v1/billing/credit_grants/{id}/void",
	Method: "POST",
}
View Source
var V1BillingMeterEventAdjustmentsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/billing/meter_event_adjustments",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"cancel.identifier": {
			Type:             "string",
			ShortDescription: "Unique identifier for the event",
		},
		"event_name": {
			Type:             "string",
			ShortDescription: "The name of the meter event",
			Required:         true,
			MostCommon:       true,
		},
		"type": {
			Type:             "string",
			ShortDescription: "Specifies whether to cancel a single event or a range of events for a time period",
			Required:         true,
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "cancel"},
			},
		},
	},
}
View Source
var V1BillingMeterEventSummariesList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/billing/meters/{id}/event_summaries",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"customer": {
			Type:             "string",
			ShortDescription: "The customer for which to fetch event summaries",
			Required:         true,
		},
		"end_time": {
			Type:             "integer",
			ShortDescription: "The timestamp from when to stop aggregating meter events (exclusive)",
			Required:         true,
			Format:           "unix-time",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"start_time": {
			Type:             "integer",
			ShortDescription: "The timestamp from when to start aggregating meter events (inclusive)",
			Required:         true,
			Format:           "unix-time",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"value_grouping_window": {
			Type:             "string",
			ShortDescription: "Specifies what granularity to use when generating event summaries",
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "hour"},
			},
		},
	},
}
View Source
var V1BillingMeterEventsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/billing/meter_events",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"event_name": {
			Type:             "string",
			ShortDescription: "The name of the meter event",
			Required:         true,
			MostCommon:       true,
		},
		"identifier": {
			Type:             "string",
			ShortDescription: "A unique identifier for the event",
			MostCommon:       true,
		},
		"timestamp": {
			Type:             "integer",
			ShortDescription: "The time of the event",
			MostCommon:       true,
			Format:           "unix-time",
		},
	},
}
View Source
var V1BillingMetersCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/billing/meters",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"customer_mapping.event_payload_key": {
			Type:             "string",
			ShortDescription: "The key in the meter event payload to use for mapping the event to a customer",
			MostCommon:       true,
		},
		"customer_mapping.type": {
			Type:             "string",
			ShortDescription: "The method for mapping a meter event to a customer",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "by_id"},
			},
		},
		"default_aggregation.formula": {
			Type:             "string",
			ShortDescription: "Specifies how events are aggregated",
			Required:         true,
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "count"},
				{Value: "last"},
				{Value: "sum"},
			},
		},
		"display_name": {
			Type:             "string",
			ShortDescription: "The meter’s name",
			Required:         true,
			MostCommon:       true,
		},
		"event_name": {
			Type:             "string",
			ShortDescription: "The name of the meter event to record usage for",
			Required:         true,
			MostCommon:       true,
		},
		"event_time_window": {
			Type:             "string",
			ShortDescription: "The time window which meter events have been pre-aggregated for, if any",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "hour"},
			},
		},
		"value_settings.event_payload_key": {
			Type:             "string",
			ShortDescription: "The key in the usage event payload to use as the value for this meter",
			MostCommon:       true,
		},
	},
}
View Source
var V1BillingMetersDeactivate = resource.OperationSpec{
	Name:   "deactivate",
	Path:   "/v1/billing/meters/{id}/deactivate",
	Method: "POST",
}
View Source
var V1BillingMetersList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/billing/meters",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"status": {
			Type:             "string",
			ShortDescription: "Filter results to only include meters with the given status",
			Enum: []resource.EnumSpec{
				{Value: "active"},
				{Value: "inactive"},
			},
		},
	},
}
View Source
var V1BillingMetersReactivate = resource.OperationSpec{
	Name:   "reactivate",
	Path:   "/v1/billing/meters/{id}/reactivate",
	Method: "POST",
}
View Source
var V1BillingMetersRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/billing/meters/{id}",
	Method: "GET",
}
View Source
var V1BillingMetersUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/billing/meters/{id}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"display_name": {
			Type:             "string",
			ShortDescription: "The meter’s name",
			MostCommon:       true,
		},
	},
}
View Source
var V1BillingPortalConfigurationsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/billing_portal/configurations",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"business_profile.headline": {
			Type:             "string",
			ShortDescription: "The messaging shown to customers in the portal",
		},
		"business_profile.privacy_policy_url": {
			Type:             "string",
			ShortDescription: "A link to the business’s publicly available privacy policy",
		},
		"business_profile.terms_of_service_url": {
			Type:             "string",
			ShortDescription: "A link to the business’s publicly available terms of service",
		},
		"default_return_url": {
			Type:             "string",
			ShortDescription: "The default URL to redirect customers to when they click on the portal's link to return to your website",
			MostCommon:       true,
		},
		"features.customer_update.allowed_updates": {
			Type:             "array",
			ShortDescription: "The types of customer updates that are supported",
		},
		"features.customer_update.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether the feature is enabled",
		},
		"features.invoice_history.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether the feature is enabled",
		},
		"features.payment_method_update.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether the feature is enabled",
		},
		"features.payment_method_update.payment_method_configuration": {
			Type:             "string",
			ShortDescription: "The [Payment Method Configuration](/api/payment_method_configurations) to use for this portal session",
		},
		"features.subscription_cancel.cancellation_reason.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether the feature is enabled",
		},
		"features.subscription_cancel.cancellation_reason.options": {
			Type:             "array",
			ShortDescription: "Which cancellation reasons will be given as options to the customer",
		},
		"features.subscription_cancel.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether the feature is enabled",
		},
		"features.subscription_cancel.mode": {
			Type:             "string",
			ShortDescription: "Whether to cancel subscriptions immediately or at the end of the billing period",
			Enum: []resource.EnumSpec{
				{Value: "at_period_end"},
				{Value: "immediately"},
			},
		},
		"features.subscription_cancel.proration_behavior": {
			Type:             "string",
			ShortDescription: "Whether to create prorations when canceling subscriptions",
			Enum: []resource.EnumSpec{
				{Value: "always_invoice"},
				{Value: "create_prorations"},
				{Value: "none"},
			},
		},
		"features.subscription_update.billing_cycle_anchor": {
			Type:             "string",
			ShortDescription: "Determines the value to use for the billing cycle anchor on subscription updates",
			Enum: []resource.EnumSpec{
				{Value: "now"},
				{Value: "unchanged"},
			},
		},
		"features.subscription_update.default_allowed_updates": {
			Type:             "array",
			ShortDescription: "The types of subscription updates that are supported",
		},
		"features.subscription_update.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether the feature is enabled",
		},
		"features.subscription_update.proration_behavior": {
			Type:             "string",
			ShortDescription: "Determines how to handle prorations resulting from subscription updates",
			Enum: []resource.EnumSpec{
				{Value: "always_invoice"},
				{Value: "create_prorations"},
				{Value: "none"},
			},
		},
		"features.subscription_update.trial_update_behavior": {
			Type:             "string",
			ShortDescription: "The behavior when updating a subscription that is trialing",
			Enum: []resource.EnumSpec{
				{Value: "continue_trial"},
				{Value: "end_trial"},
			},
		},
		"login_page.enabled": {
			Type:             "boolean",
			ShortDescription: "Set to `true` to generate a shareable URL [`login_page.url`](https://docs.stripe.com/api/customer_portal/configuration#portal_configuration_object-login_page-url) that will take your customers to a hosted login page for the customer portal",
			MostCommon:       true,
		},
		"name": {
			Type:             "string",
			ShortDescription: "The name of the configuration",
			MostCommon:       true,
		},
	},
}
View Source
var V1BillingPortalConfigurationsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/billing_portal/configurations",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"active": {
			Type:             "boolean",
			ShortDescription: "Only return configurations that are active or inactive (e.g., pass `true` to only list active configurations)",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"is_default": {
			Type:             "boolean",
			ShortDescription: "Only return the default or non-default configurations (e.g., pass `true` to only list the default configuration)",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1BillingPortalConfigurationsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/billing_portal/configurations/{configuration}",
	Method: "GET",
}
View Source
var V1BillingPortalConfigurationsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/billing_portal/configurations/{configuration}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"active": {
			Type:             "boolean",
			ShortDescription: "Whether the configuration is active and can be used to create portal sessions",
			MostCommon:       true,
		},
		"business_profile.headline": {
			Type:             "string",
			ShortDescription: "The messaging shown to customers in the portal",
		},
		"business_profile.privacy_policy_url": {
			Type:             "string",
			ShortDescription: "A link to the business’s publicly available privacy policy",
		},
		"business_profile.terms_of_service_url": {
			Type:             "string",
			ShortDescription: "A link to the business’s publicly available terms of service",
		},
		"default_return_url": {
			Type:             "string",
			ShortDescription: "The default URL to redirect customers to when they click on the portal's link to return to your website",
			MostCommon:       true,
		},
		"features.customer_update.allowed_updates": {
			Type:             "array",
			ShortDescription: "The types of customer updates that are supported",
		},
		"features.customer_update.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether the feature is enabled",
		},
		"features.invoice_history.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether the feature is enabled",
		},
		"features.payment_method_update.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether the feature is enabled",
		},
		"features.payment_method_update.payment_method_configuration": {
			Type:             "string",
			ShortDescription: "The [Payment Method Configuration](/api/payment_method_configurations) to use for this portal session",
		},
		"features.subscription_cancel.cancellation_reason.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether the feature is enabled",
		},
		"features.subscription_cancel.cancellation_reason.options": {
			Type:             "array",
			ShortDescription: "Which cancellation reasons will be given as options to the customer",
		},
		"features.subscription_cancel.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether the feature is enabled",
		},
		"features.subscription_cancel.mode": {
			Type:             "string",
			ShortDescription: "Whether to cancel subscriptions immediately or at the end of the billing period",
			Enum: []resource.EnumSpec{
				{Value: "at_period_end"},
				{Value: "immediately"},
			},
		},
		"features.subscription_cancel.proration_behavior": {
			Type:             "string",
			ShortDescription: "Whether to create prorations when canceling subscriptions",
			Enum: []resource.EnumSpec{
				{Value: "always_invoice"},
				{Value: "create_prorations"},
				{Value: "none"},
			},
		},
		"features.subscription_update.billing_cycle_anchor": {
			Type:             "string",
			ShortDescription: "Determines the value to use for the billing cycle anchor on subscription updates",
			Enum: []resource.EnumSpec{
				{Value: "now"},
				{Value: "unchanged"},
			},
		},
		"features.subscription_update.default_allowed_updates": {
			Type:             "array",
			ShortDescription: "The types of subscription updates that are supported",
		},
		"features.subscription_update.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether the feature is enabled",
		},
		"features.subscription_update.proration_behavior": {
			Type:             "string",
			ShortDescription: "Determines how to handle prorations resulting from subscription updates",
			Enum: []resource.EnumSpec{
				{Value: "always_invoice"},
				{Value: "create_prorations"},
				{Value: "none"},
			},
		},
		"features.subscription_update.trial_update_behavior": {
			Type:             "string",
			ShortDescription: "The behavior when updating a subscription that is trialing",
			Enum: []resource.EnumSpec{
				{Value: "continue_trial"},
				{Value: "end_trial"},
			},
		},
		"login_page.enabled": {
			Type:             "boolean",
			ShortDescription: "Set to `true` to generate a shareable URL [`login_page.url`](https://docs.stripe.com/api/customer_portal/configuration#portal_configuration_object-login_page-url) that will take your customers to a hosted login page for the customer portal",
			MostCommon:       true,
		},
		"name": {
			Type:             "string",
			ShortDescription: "The name of the configuration",
			MostCommon:       true,
		},
	},
}
View Source
var V1BillingPortalSessionsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/billing_portal/sessions",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"configuration": {
			Type:             "string",
			ShortDescription: "The ID of an existing [configuration](https://docs.stripe.com/api/customer_portal/configurations) to use for this session, describing its functionality and features",
			MostCommon:       true,
		},
		"customer": {
			Type:             "string",
			ShortDescription: "The ID of an existing customer",
			MostCommon:       true,
		},
		"customer_account": {
			Type:             "string",
			ShortDescription: "The ID of an existing account",
			MostCommon:       true,
		},
		"flow_data.after_completion.hosted_confirmation.custom_message": {
			Type:             "string",
			ShortDescription: "A custom message to display to the customer after the flow is completed",
		},
		"flow_data.after_completion.redirect.return_url": {
			Type:             "string",
			ShortDescription: "The URL the customer will be redirected to after the flow is completed",
		},
		"flow_data.after_completion.type": {
			Type:             "string",
			ShortDescription: "The specified behavior after the flow is completed",
			Enum: []resource.EnumSpec{
				{Value: "hosted_confirmation"},
				{Value: "portal_homepage"},
				{Value: "redirect"},
			},
		},
		"flow_data.subscription_cancel.retention.coupon_offer.coupon": {
			Type:             "string",
			ShortDescription: "The ID of the coupon to be offered",
		},
		"flow_data.subscription_cancel.retention.type": {
			Type:             "string",
			ShortDescription: "Type of retention strategy to use with the customer",
			Enum: []resource.EnumSpec{
				{Value: "coupon_offer"},
			},
		},
		"flow_data.subscription_cancel.subscription": {
			Type:             "string",
			ShortDescription: "The ID of the subscription to be canceled",
		},
		"flow_data.subscription_update.subscription": {
			Type:             "string",
			ShortDescription: "The ID of the subscription to be updated",
		},
		"flow_data.subscription_update_confirm.subscription": {
			Type:             "string",
			ShortDescription: "The ID of the subscription to be updated",
		},
		"flow_data.type": {
			Type:             "string",
			ShortDescription: "Type of flow that the customer will go through",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "payment_method_update"},
				{Value: "subscription_cancel"},
				{Value: "subscription_update"},
				{Value: "subscription_update_confirm"},
			},
		},
		"locale": {
			Type:             "string",
			ShortDescription: "The IETF language tag of the locale customer portal is displayed in",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "auto"},
				{Value: "bg"},
				{Value: "cs"},
				{Value: "da"},
				{Value: "de"},
				{Value: "el"},
				{Value: "en"},
				{Value: "en-AU"},
				{Value: "en-CA"},
				{Value: "en-GB"},
				{Value: "en-IE"},
				{Value: "en-IN"},
				{Value: "en-NZ"},
				{Value: "en-SG"},
				{Value: "es"},
				{Value: "es-419"},
				{Value: "et"},
				{Value: "fi"},
				{Value: "fil"},
				{Value: "fr"},
				{Value: "fr-CA"},
				{Value: "hr"},
				{Value: "hu"},
				{Value: "id"},
				{Value: "it"},
				{Value: "ja"},
				{Value: "ko"},
				{Value: "lt"},
				{Value: "lv"},
				{Value: "ms"},
				{Value: "mt"},
				{Value: "nb"},
				{Value: "nl"},
				{Value: "pl"},
				{Value: "pt"},
				{Value: "pt-BR"},
				{Value: "ro"},
				{Value: "ru"},
				{Value: "sk"},
				{Value: "sl"},
				{Value: "sv"},
				{Value: "th"},
				{Value: "tr"},
				{Value: "vi"},
				{Value: "zh"},
				{Value: "zh-HK"},
				{Value: "zh-TW"},
			},
		},
		"on_behalf_of": {
			Type:             "string",
			ShortDescription: "The `on_behalf_of` account to use for this session",
			MostCommon:       true,
		},
		"return_url": {
			Type:             "string",
			ShortDescription: "The default URL to redirect customers to when they click on the portal's link to return to your website",
			MostCommon:       true,
		},
	},
}
View Source
var V1CapabilitiesList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/accounts/{account}/capabilities",
	Method: "GET",
}
View Source
var V1CapabilitiesRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/accounts/{account}/capabilities/{capability}",
	Method: "GET",
}
View Source
var V1CapabilitiesUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/accounts/{account}/capabilities/{capability}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"requested": {
			Type:             "boolean",
			ShortDescription: "To request a new capability for an account, pass true",
			MostCommon:       true,
		},
	},
}
View Source
var V1CardsDelete = resource.OperationSpec{
	Name:   "delete",
	Path:   "/v1/accounts/{account}/external_accounts/{id}",
	Method: "DELETE",
}
View Source
var V1CardsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/accounts/{account}/external_accounts/{id}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"account_holder_name": {
			Type:             "string",
			ShortDescription: "The name of the person or business that owns the bank account",
		},
		"account_holder_type": {
			Type:             "string",
			ShortDescription: "The type of entity that holds the account",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"account_type": {
			Type:             "string",
			ShortDescription: "The bank account type",
			Enum: []resource.EnumSpec{
				{Value: "checking"},
				{Value: "futsu"},
				{Value: "savings"},
				{Value: "toza"},
			},
		},
		"address_city": {
			Type:             "string",
			ShortDescription: "City/District/Suburb/Town/Village",
		},
		"address_country": {
			Type:             "string",
			ShortDescription: "Billing address country, if provided when creating card",
		},
		"address_line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (Street address/PO Box/Company name)",
		},
		"address_line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (Apartment/Suite/Unit/Building)",
		},
		"address_state": {
			Type:             "string",
			ShortDescription: "State/County/Province/Region",
		},
		"address_zip": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"default_for_currency": {
			Type:             "boolean",
			ShortDescription: "When set to true, this becomes the default external account for its currency",
			MostCommon:       true,
		},
		"documents.bank_account_ownership_verification.files": {
			Type:             "array",
			ShortDescription: "One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`",
		},
		"exp_month": {
			Type:             "string",
			ShortDescription: "Two digit number representing the card’s expiration month",
		},
		"exp_year": {
			Type:             "string",
			ShortDescription: "Four digit number representing the card’s expiration year",
		},
		"name": {
			Type:             "string",
			ShortDescription: "Cardholder name",
		},
	},
}
View Source
var V1CashBalancesRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/customers/{customer}/cash_balance",
	Method: "GET",
}
View Source
var V1CashBalancesUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/customers/{customer}/cash_balance",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"settings.reconciliation_mode": {
			Type:             "string",
			ShortDescription: "Controls how funds transferred by the customer are applied to payment intents and invoices",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "manual"},
				{Value: "merchant_default"},
			},
		},
	},
}
View Source
var V1ChargesCapture = resource.OperationSpec{
	Name:   "capture",
	Path:   "/v1/charges/{charge}/capture",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "The amount to capture, which must be less than or equal to the original amount",
			MostCommon:       true,
		},
		"application_fee": {
			Type:             "integer",
			ShortDescription: "An application fee to add on to this charge",
			MostCommon:       true,
		},
		"application_fee_amount": {
			Type:             "integer",
			ShortDescription: "An application fee amount to add on to this charge, which must be less than or equal to the original amount",
		},
		"receipt_email": {
			Type:             "string",
			ShortDescription: "The email address to send this charge's receipt to",
			MostCommon:       true,
		},
		"statement_descriptor": {
			Type:             "string",
			ShortDescription: "For a non-card charge, text that appears on the customer's statement as the statement descriptor",
			MostCommon:       true,
		},
		"statement_descriptor_suffix": {
			Type:             "string",
			ShortDescription: "Provides information about a card charge",
			MostCommon:       true,
		},
		"transfer_data.amount": {
			Type:             "integer",
			ShortDescription: "The amount transferred to the destination account, if specified",
		},
		"transfer_group": {
			Type:             "string",
			ShortDescription: "A string that identifies this transaction as part of a group",
		},
	},
}
View Source
var V1ChargesCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/charges",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "Amount intended to be collected by this payment",
			MostCommon:       true,
		},
		"application_fee": {
			Type:       "integer",
			MostCommon: true,
		},
		"application_fee_amount": {
			Type:             "integer",
			ShortDescription: "A fee in cents (or local equivalent) that will be applied to the charge and transferred to the application owner's Stripe account",
		},
		"capture": {
			Type:             "boolean",
			ShortDescription: "Whether to immediately capture the charge",
		},
		"currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			MostCommon:       true,
			Format:           "currency",
		},
		"customer": {
			Type:             "string",
			ShortDescription: "The ID of an existing customer that will be charged in this request",
			MostCommon:       true,
		},
		"description": {
			Type:             "string",
			ShortDescription: "An arbitrary string which you can attach to a `Charge` object",
			MostCommon:       true,
		},
		"destination.account": {
			Type:             "string",
			ShortDescription: "ID of an existing, connected Stripe account",
			MostCommon:       true,
		},
		"destination.amount": {
			Type:             "integer",
			ShortDescription: "The amount to transfer to the destination account without creating an `Application Fee` object",
		},
		"on_behalf_of": {
			Type:             "string",
			ShortDescription: "The Stripe account ID for which these funds are intended",
		},
		"radar_options.session": {
			Type:             "string",
			ShortDescription: "A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments",
		},
		"receipt_email": {
			Type:             "string",
			ShortDescription: "The email address to which this charge's [receipt](https://docs.stripe.com/dashboard/receipts) will be sent",
			MostCommon:       true,
		},
		"shipping.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"shipping.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"shipping.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"shipping.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"shipping.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"shipping.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"shipping.carrier": {
			Type:             "string",
			ShortDescription: "The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.",
		},
		"shipping.name": {
			Type:             "string",
			ShortDescription: "Recipient name",
			MostCommon:       true,
		},
		"shipping.phone": {
			Type:             "string",
			ShortDescription: "Recipient phone (including extension)",
		},
		"shipping.tracking_number": {
			Type:             "string",
			ShortDescription: "The tracking number for a physical product, obtained from the delivery service",
		},
		"source": {
			Type:             "string",
			ShortDescription: "A payment source to be charged",
			MostCommon:       true,
		},
		"statement_descriptor": {
			Type:             "string",
			ShortDescription: "For a non-card charge, text that appears on the customer's statement as the statement descriptor",
			MostCommon:       true,
		},
		"statement_descriptor_suffix": {
			Type:             "string",
			ShortDescription: "Provides information about a card charge",
			MostCommon:       true,
		},
		"transfer_data.amount": {
			Type:             "integer",
			ShortDescription: "The amount transferred to the destination account, if specified",
		},
		"transfer_data.destination": {
			Type:             "string",
			ShortDescription: "ID of an existing, connected Stripe account",
		},
		"transfer_group": {
			Type:             "string",
			ShortDescription: "A string that identifies this transaction as part of a group",
		},
	},
}
View Source
var V1ChargesList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/charges",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type:             "integer",
			ShortDescription: "Only return charges that were created during the given date interval",
		},
		"customer": {
			Type:             "string",
			ShortDescription: "Only return charges for the customer specified by this customer ID",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"payment_intent": {
			Type:             "string",
			ShortDescription: "Only return charges that were created by the PaymentIntent specified by this PaymentIntent ID",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"transfer_group": {
			Type:             "string",
			ShortDescription: "Only return charges for this transfer group, limited to 100",
		},
	},
}
View Source
var V1ChargesRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/charges/{charge}",
	Method: "GET",
}
View Source
var V1ChargesSearch = resource.OperationSpec{
	Name:   "search",
	Path:   "/v1/charges/search",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"page": {
			Type:             "string",
			ShortDescription: "A cursor for pagination across multiple pages of results",
		},
		"query": {
			Type:             "string",
			ShortDescription: "The search query string",
			Required:         true,
		},
	},
}
View Source
var V1ChargesUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/charges/{charge}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"customer": {
			Type:             "string",
			ShortDescription: "The ID of an existing customer that will be associated with this request",
			MostCommon:       true,
		},
		"description": {
			Type:             "string",
			ShortDescription: "An arbitrary string which you can attach to a charge object",
			MostCommon:       true,
		},
		"fraud_details.user_report": {
			Type:             "string",
			ShortDescription: "Either `safe` or `fraudulent`",
			Enum: []resource.EnumSpec{
				{Value: "fraudulent"},
				{Value: "safe"},
			},
		},
		"receipt_email": {
			Type:             "string",
			ShortDescription: "This is the email address that the receipt for this charge will be sent to",
			MostCommon:       true,
		},
		"shipping.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"shipping.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"shipping.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"shipping.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"shipping.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"shipping.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"shipping.carrier": {
			Type:             "string",
			ShortDescription: "The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.",
		},
		"shipping.name": {
			Type:             "string",
			ShortDescription: "Recipient name",
			MostCommon:       true,
		},
		"shipping.phone": {
			Type:             "string",
			ShortDescription: "Recipient phone (including extension)",
		},
		"shipping.tracking_number": {
			Type:             "string",
			ShortDescription: "The tracking number for a physical product, obtained from the delivery service",
		},
		"transfer_group": {
			Type:             "string",
			ShortDescription: "A string that identifies this transaction as part of a group",
		},
	},
}
View Source
var V1CheckoutSessionsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/checkout/sessions",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"adaptive_pricing.enabled": {
			Type:             "boolean",
			ShortDescription: "If set to `true`, Adaptive Pricing is available on [eligible sessions](https://docs.stripe.com/payments/currencies/localize-prices/adaptive-pricing?payment-ui=stripe-hosted#restrictions)",
		},
		"after_expiration.recovery.allow_promotion_codes": {
			Type:             "boolean",
			ShortDescription: "Enables user redeemable promotion codes on the recovered Checkout Sessions",
		},
		"after_expiration.recovery.enabled": {
			Type:             "boolean",
			ShortDescription: "If `true`, a recovery URL will be generated to recover this Checkout Session if it\nexpires before a successful transaction is completed",
		},
		"allow_promotion_codes": {
			Type:             "boolean",
			ShortDescription: "Enables user redeemable promotion codes",
		},
		"automatic_tax.enabled": {
			Type:             "boolean",
			ShortDescription: "Set to `true` to [calculate tax automatically](https://docs.stripe.com/tax) using the customer's location",
			MostCommon:       true,
		},
		"automatic_tax.liability.account": {
			Type:             "string",
			ShortDescription: "The connected account being referenced when `type` is `account`",
		},
		"automatic_tax.liability.type": {
			Type:             "string",
			ShortDescription: "Type of the account referenced in the request",
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"billing_address_collection": {
			Type:             "string",
			ShortDescription: "Specify whether Checkout should collect the customer's billing address",
			Enum: []resource.EnumSpec{
				{Value: "auto"},
				{Value: "required"},
			},
		},
		"branding_settings.background_color": {
			Type:             "string",
			ShortDescription: "A hex color value starting with `#` representing the background color for the Checkout Session",
		},
		"branding_settings.border_style": {
			Type:             "string",
			ShortDescription: "The border style for the Checkout Session",
			Enum: []resource.EnumSpec{
				{Value: "pill"},
				{Value: "rectangular"},
				{Value: "rounded"},
			},
		},
		"branding_settings.button_color": {
			Type:             "string",
			ShortDescription: "A hex color value starting with `#` representing the button color for the Checkout Session",
		},
		"branding_settings.display_name": {
			Type:             "string",
			ShortDescription: "A string to override the business name shown on the Checkout Session",
		},
		"branding_settings.font_family": {
			Type:             "string",
			ShortDescription: "The font family for the Checkout Session corresponding to one of the [supported font families](https://docs.stripe.com/payments/checkout/customization/appearance?payment-ui=stripe-hosted#font-compatibility)",
			Enum: []resource.EnumSpec{
				{Value: "be_vietnam_pro"},
				{Value: "bitter"},
				{Value: "chakra_petch"},
				{Value: "default"},
				{Value: "hahmlet"},
				{Value: "inconsolata"},
				{Value: "inter"},
				{Value: "lato"},
				{Value: "lora"},
				{Value: "m_plus_1_code"},
				{Value: "montserrat"},
				{Value: "noto_sans"},
				{Value: "noto_sans_jp"},
				{Value: "noto_serif"},
				{Value: "nunito"},
				{Value: "open_sans"},
				{Value: "pridi"},
				{Value: "pt_sans"},
				{Value: "pt_serif"},
				{Value: "raleway"},
				{Value: "roboto"},
				{Value: "roboto_slab"},
				{Value: "source_sans_pro"},
				{Value: "titillium_web"},
				{Value: "ubuntu_mono"},
				{Value: "zen_maru_gothic"},
			},
		},
		"branding_settings.icon.file": {
			Type:             "string",
			ShortDescription: "The ID of a [File upload](https://stripe.com/docs/api/files) representing the icon",
		},
		"branding_settings.icon.type": {
			Type:             "string",
			ShortDescription: "The type of image for the icon",
			Enum: []resource.EnumSpec{
				{Value: "file"},
				{Value: "url"},
			},
		},
		"branding_settings.icon.url": {
			Type:             "string",
			ShortDescription: "The URL of the image",
		},
		"branding_settings.logo.file": {
			Type:             "string",
			ShortDescription: "The ID of a [File upload](https://stripe.com/docs/api/files) representing the logo",
		},
		"branding_settings.logo.type": {
			Type:             "string",
			ShortDescription: "The type of image for the logo",
			Enum: []resource.EnumSpec{
				{Value: "file"},
				{Value: "url"},
			},
		},
		"branding_settings.logo.url": {
			Type:             "string",
			ShortDescription: "The URL of the image",
		},
		"cancel_url": {
			Type:             "string",
			ShortDescription: "If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website",
		},
		"client_reference_id": {
			Type:             "string",
			ShortDescription: "A unique string to reference the Checkout Session",
			MostCommon:       true,
		},
		"consent_collection.payment_method_reuse_agreement.position": {
			Type:             "string",
			ShortDescription: "Determines the position and visibility of the payment method reuse agreement in the UI",
			Enum: []resource.EnumSpec{
				{Value: "auto"},
				{Value: "hidden"},
			},
		},
		"consent_collection.promotions": {
			Type:             "string",
			ShortDescription: "If set to `auto`, enables the collection of customer consent for promotional communications",
			Enum: []resource.EnumSpec{
				{Value: "auto"},
				{Value: "none"},
			},
		},
		"consent_collection.terms_of_service": {
			Type:             "string",
			ShortDescription: "If set to `required`, it requires customers to check a terms of service checkbox before being able to pay",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "required"},
			},
		},
		"currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Format:           "currency",
		},
		"custom_text.after_submit.message": {
			Type:             "string",
			ShortDescription: "Text can be up to 1200 characters in length",
		},
		"custom_text.shipping_address.message": {
			Type:             "string",
			ShortDescription: "Text can be up to 1200 characters in length",
		},
		"custom_text.submit.message": {
			Type:             "string",
			ShortDescription: "Text can be up to 1200 characters in length",
		},
		"custom_text.terms_of_service_acceptance.message": {
			Type:             "string",
			ShortDescription: "Text can be up to 1200 characters in length",
		},
		"customer": {
			Type:             "string",
			ShortDescription: "ID of an existing Customer, if one exists",
			MostCommon:       true,
		},
		"customer_account": {
			Type:             "string",
			ShortDescription: "ID of an existing Account, if one exists",
		},
		"customer_creation": {
			Type:             "string",
			ShortDescription: "Configure whether a Checkout Session creates a [Customer](https://docs.stripe.com/api/customers) during Session confirmation",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "if_required"},
			},
		},
		"customer_email": {
			Type:             "string",
			ShortDescription: "If provided, this value will be used when the Customer object is created",
			MostCommon:       true,
		},
		"customer_update.address": {
			Type:             "string",
			ShortDescription: "Describes whether Checkout saves the billing address onto `customer.address`",
			Enum: []resource.EnumSpec{
				{Value: "auto"},
				{Value: "never"},
			},
		},
		"customer_update.name": {
			Type:             "string",
			ShortDescription: "Describes whether Checkout saves the name onto `customer.name`",
			Enum: []resource.EnumSpec{
				{Value: "auto"},
				{Value: "never"},
			},
		},
		"customer_update.shipping": {
			Type:             "string",
			ShortDescription: "Describes whether Checkout saves shipping information onto `customer.shipping`",
			Enum: []resource.EnumSpec{
				{Value: "auto"},
				{Value: "never"},
			},
		},
		"excluded_payment_method_types": {
			Type:             "array",
			ShortDescription: "A list of the types of payment methods (e.g., `card`) that should be excluded from this Checkout Session",
		},
		"expires_at": {
			Type:             "integer",
			ShortDescription: "The Epoch time in seconds at which the Checkout Session will expire",
			Format:           "unix-time",
		},
		"integration_identifier": {
			Type:             "string",
			ShortDescription: "The integration identifier for this Checkout Session",
		},
		"invoice_creation.enabled": {
			Type:             "boolean",
			ShortDescription: "Set to `true` to enable invoice creation",
		},
		"invoice_creation.invoice_data.account_tax_ids": {
			Type:             "array",
			ShortDescription: "The account tax IDs associated with the invoice",
		},
		"invoice_creation.invoice_data.description": {
			Type:             "string",
			ShortDescription: "An arbitrary string attached to the object",
		},
		"invoice_creation.invoice_data.footer": {
			Type:             "string",
			ShortDescription: "Default footer to be displayed on invoices for this customer",
		},
		"invoice_creation.invoice_data.issuer.account": {
			Type:             "string",
			ShortDescription: "The connected account being referenced when `type` is `account`",
		},
		"invoice_creation.invoice_data.issuer.type": {
			Type:             "string",
			ShortDescription: "Type of the account referenced in the request",
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"invoice_creation.invoice_data.rendering_options.amount_tax_display": {
			Type:             "string",
			ShortDescription: "How line-item prices and amounts will be displayed with respect to tax on invoice PDFs",
			Enum: []resource.EnumSpec{
				{Value: "exclude_tax"},
				{Value: "include_inclusive_tax"},
			},
		},
		"invoice_creation.invoice_data.rendering_options.template": {
			Type:             "string",
			ShortDescription: "ID of the invoice rendering template to use for this invoice",
		},
		"locale": {
			Type:             "string",
			ShortDescription: "The IETF language tag of the locale Checkout is displayed in",
			Enum: []resource.EnumSpec{
				{Value: "auto"},
				{Value: "bg"},
				{Value: "cs"},
				{Value: "da"},
				{Value: "de"},
				{Value: "el"},
				{Value: "en"},
				{Value: "en-GB"},
				{Value: "es"},
				{Value: "es-419"},
				{Value: "et"},
				{Value: "fi"},
				{Value: "fil"},
				{Value: "fr"},
				{Value: "fr-CA"},
				{Value: "hr"},
				{Value: "hu"},
				{Value: "id"},
				{Value: "it"},
				{Value: "ja"},
				{Value: "ko"},
				{Value: "lt"},
				{Value: "lv"},
				{Value: "ms"},
				{Value: "mt"},
				{Value: "nb"},
				{Value: "nl"},
				{Value: "pl"},
				{Value: "pt"},
				{Value: "pt-BR"},
				{Value: "ro"},
				{Value: "ru"},
				{Value: "sk"},
				{Value: "sl"},
				{Value: "sv"},
				{Value: "th"},
				{Value: "tr"},
				{Value: "vi"},
				{Value: "zh"},
				{Value: "zh-HK"},
				{Value: "zh-TW"},
			},
		},
		"mode": {
			Type:             "string",
			ShortDescription: "The mode of the Checkout Session",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "payment"},
				{Value: "setup"},
				{Value: "subscription"},
			},
		},
		"name_collection.business.enabled": {
			Type:             "boolean",
			ShortDescription: "Enable business name collection on the Checkout Session",
		},
		"name_collection.business.optional": {
			Type:             "boolean",
			ShortDescription: "Whether the customer is required to provide a business name before completing the Checkout Session",
		},
		"name_collection.individual.enabled": {
			Type:             "boolean",
			ShortDescription: "Enable individual name collection on the Checkout Session",
		},
		"name_collection.individual.optional": {
			Type:             "boolean",
			ShortDescription: "Whether the customer is required to provide their name before completing the Checkout Session",
		},
		"origin_context": {
			Type:             "string",
			ShortDescription: "Where the user is coming from",
			Enum: []resource.EnumSpec{
				{Value: "mobile_app"},
				{Value: "web"},
			},
		},
		"payment_intent_data.application_fee_amount": {
			Type:             "integer",
			ShortDescription: "The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account",
		},
		"payment_intent_data.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds will be captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "automatic_async"},
				{Value: "manual"},
			},
		},
		"payment_intent_data.description": {
			Type:             "string",
			ShortDescription: "An arbitrary string attached to the object",
		},
		"payment_intent_data.on_behalf_of": {
			Type:             "string",
			ShortDescription: "The Stripe account ID for which these funds are intended",
		},
		"payment_intent_data.receipt_email": {
			Type:             "string",
			ShortDescription: "Email address that the receipt for the resulting payment will be sent to",
		},
		"payment_intent_data.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to [make future payments](https://docs.stripe.com/payments/payment-intents#future-usage) with the payment\nmethod collected by this Checkout Session",
			Enum: []resource.EnumSpec{
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_intent_data.shipping.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"payment_intent_data.shipping.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"payment_intent_data.shipping.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"payment_intent_data.shipping.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"payment_intent_data.shipping.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"payment_intent_data.shipping.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"payment_intent_data.shipping.carrier": {
			Type:             "string",
			ShortDescription: "The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.",
		},
		"payment_intent_data.shipping.name": {
			Type:             "string",
			ShortDescription: "Recipient name",
		},
		"payment_intent_data.shipping.phone": {
			Type:             "string",
			ShortDescription: "Recipient phone (including extension)",
		},
		"payment_intent_data.shipping.tracking_number": {
			Type:             "string",
			ShortDescription: "The tracking number for a physical product, obtained from the delivery service",
		},
		"payment_intent_data.statement_descriptor": {
			Type:             "string",
			ShortDescription: "Text that appears on the customer's statement as the statement descriptor for a non-card charge",
		},
		"payment_intent_data.statement_descriptor_suffix": {
			Type:             "string",
			ShortDescription: "Provides information about a card charge",
		},
		"payment_intent_data.transfer_data.amount": {
			Type:             "integer",
			ShortDescription: "The amount that will be transferred automatically when a charge succeeds",
		},
		"payment_intent_data.transfer_data.destination": {
			Type:             "string",
			ShortDescription: "If specified, successful charges will be attributed to the destination\naccount for tax reporting, and the funds from charges will be transferred\nto the destination account",
		},
		"payment_intent_data.transfer_group": {
			Type:             "string",
			ShortDescription: "A string that identifies the resulting payment as part of a group",
		},
		"payment_method_collection": {
			Type:             "string",
			ShortDescription: "Specify whether Checkout should collect a payment method",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "if_required"},
			},
		},
		"payment_method_configuration": {
			Type:             "string",
			ShortDescription: "The ID of the payment method configuration to use with this Checkout session",
		},
		"payment_method_data.allow_redisplay": {
			Type:             "string",
			ShortDescription: "Allow redisplay will be set on the payment method on confirmation and indicates whether this payment method can be shown again to the customer in a checkout flow",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "limited"},
				{Value: "unspecified"},
			},
		},
		"payment_method_options.acss_debit.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Enum: []resource.EnumSpec{
				{Value: "cad"},
				{Value: "usd"},
			},
		},
		"payment_method_options.acss_debit.mandate_options.custom_mandate_url": {
			Type:             "string",
			ShortDescription: "A URL for custom mandate text to render during confirmation step",
		},
		"payment_method_options.acss_debit.mandate_options.default_for": {
			Type:             "array",
			ShortDescription: "List of Stripe products where this mandate can be selected automatically",
		},
		"payment_method_options.acss_debit.mandate_options.interval_description": {
			Type:             "string",
			ShortDescription: "Description of the mandate interval",
		},
		"payment_method_options.acss_debit.mandate_options.payment_schedule": {
			Type:             "string",
			ShortDescription: "Payment schedule for the mandate",
			Enum: []resource.EnumSpec{
				{Value: "combined"},
				{Value: "interval"},
				{Value: "sporadic"},
			},
		},
		"payment_method_options.acss_debit.mandate_options.transaction_type": {
			Type:             "string",
			ShortDescription: "Transaction type of the mandate",
			Enum: []resource.EnumSpec{
				{Value: "business"},
				{Value: "personal"},
			},
		},
		"payment_method_options.acss_debit.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.acss_debit.target_date": {
			Type:             "string",
			ShortDescription: "Controls when Stripe will attempt to debit the funds from the customer's account",
		},
		"payment_method_options.acss_debit.verification_method": {
			Type:             "string",
			ShortDescription: "Verification method for the intent",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "instant"},
				{Value: "microdeposits"},
			},
		},
		"payment_method_options.affirm.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds will be captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.affirm.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.afterpay_clearpay.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds will be captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.afterpay_clearpay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.alipay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.alma.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds will be captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.amazon_pay.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds will be captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.amazon_pay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.au_becs_debit.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.au_becs_debit.target_date": {
			Type:             "string",
			ShortDescription: "Controls when Stripe will attempt to debit the funds from the customer's account",
		},
		"payment_method_options.bacs_debit.mandate_options.reference_prefix": {
			Type:             "string",
			ShortDescription: "Prefix used to generate the Mandate reference",
		},
		"payment_method_options.bacs_debit.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.bacs_debit.target_date": {
			Type:             "string",
			ShortDescription: "Controls when Stripe will attempt to debit the funds from the customer's account",
		},
		"payment_method_options.bancontact.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.billie.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds will be captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.boleto.expires_after_days": {
			Type:             "integer",
			ShortDescription: "The number of calendar days before a Boleto voucher expires",
		},
		"payment_method_options.boleto.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.card.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds will be captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.card.installments.enabled": {
			Type:             "boolean",
			ShortDescription: "Setting to true enables installments for this Checkout Session",
		},
		"payment_method_options.card.request_extended_authorization": {
			Type:             "string",
			ShortDescription: "Request ability to [capture beyond the standard authorization validity window](/payments/extended-authorization) for this CheckoutSession",
			Enum: []resource.EnumSpec{
				{Value: "if_available"},
				{Value: "never"},
			},
		},
		"payment_method_options.card.request_incremental_authorization": {
			Type:             "string",
			ShortDescription: "Request ability to [increment the authorization](/payments/incremental-authorization) for this CheckoutSession",
			Enum: []resource.EnumSpec{
				{Value: "if_available"},
				{Value: "never"},
			},
		},
		"payment_method_options.card.request_multicapture": {
			Type:             "string",
			ShortDescription: "Request ability to make [multiple captures](/payments/multicapture) for this CheckoutSession",
			Enum: []resource.EnumSpec{
				{Value: "if_available"},
				{Value: "never"},
			},
		},
		"payment_method_options.card.request_overcapture": {
			Type:             "string",
			ShortDescription: "Request ability to [overcapture](/payments/overcapture) for this CheckoutSession",
			Enum: []resource.EnumSpec{
				{Value: "if_available"},
				{Value: "never"},
			},
		},
		"payment_method_options.card.request_three_d_secure": {
			Type:             "string",
			ShortDescription: "We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication)",
			Enum: []resource.EnumSpec{
				{Value: "any"},
				{Value: "automatic"},
				{Value: "challenge"},
			},
		},
		"payment_method_options.card.restrictions.brands_blocked": {
			Type:             "array",
			ShortDescription: "Specify the card brands to block in the Checkout Session",
		},
		"payment_method_options.card.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.card.statement_descriptor_suffix_kana": {
			Type:             "string",
			ShortDescription: "Provides information about a card payment that customers see on their statements",
		},
		"payment_method_options.card.statement_descriptor_suffix_kanji": {
			Type:             "string",
			ShortDescription: "Provides information about a card payment that customers see on their statements",
		},
		"payment_method_options.cashapp.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds will be captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.cashapp.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.crypto.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.customer_balance.bank_transfer.eu_bank_transfer.country": {
			Type:             "string",
			ShortDescription: "The desired country code of the bank account information",
		},
		"payment_method_options.customer_balance.bank_transfer.requested_address_types": {
			Type:             "array",
			ShortDescription: "List of address types that should be returned in the financial_addresses response",
		},
		"payment_method_options.customer_balance.bank_transfer.type": {
			Type:             "string",
			ShortDescription: "The list of bank transfer types that this PaymentIntent is allowed to use for funding",
			Enum: []resource.EnumSpec{
				{Value: "eu_bank_transfer"},
				{Value: "gb_bank_transfer"},
				{Value: "jp_bank_transfer"},
				{Value: "mx_bank_transfer"},
				{Value: "us_bank_transfer"},
			},
		},
		"payment_method_options.customer_balance.funding_type": {
			Type:             "string",
			ShortDescription: "The funding method type to be used when there are not enough funds in the customer balance",
			Enum: []resource.EnumSpec{
				{Value: "bank_transfer"},
			},
		},
		"payment_method_options.customer_balance.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.demo_pay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.eps.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.fpx.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.giropay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.grabpay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.ideal.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.kakao_pay.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds will be captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.kakao_pay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.klarna.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds will be captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.klarna.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.konbini.expires_after_days": {
			Type:             "integer",
			ShortDescription: "The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire",
		},
		"payment_method_options.konbini.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.kr_card.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds will be captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.kr_card.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.link.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds will be captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.link.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.mobilepay.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds will be captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.mobilepay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.multibanco.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.naver_pay.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds will be captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.naver_pay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.oxxo.expires_after_days": {
			Type:             "integer",
			ShortDescription: "The number of calendar days before an OXXO voucher expires",
		},
		"payment_method_options.oxxo.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.p24.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.p24.tos_shown_and_accepted": {
			Type:             "boolean",
			ShortDescription: "Confirm that the payer has accepted the P24 terms and conditions",
		},
		"payment_method_options.payco.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds will be captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.paynow.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.paypal.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds will be captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.paypal.preferred_locale": {
			Type:             "string",
			ShortDescription: "[Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to",
			Enum: []resource.EnumSpec{
				{Value: "cs-CZ"},
				{Value: "da-DK"},
				{Value: "de-AT"},
				{Value: "de-DE"},
				{Value: "de-LU"},
				{Value: "el-GR"},
				{Value: "en-GB"},
				{Value: "en-US"},
				{Value: "es-ES"},
				{Value: "fi-FI"},
				{Value: "fr-BE"},
				{Value: "fr-FR"},
				{Value: "fr-LU"},
				{Value: "hu-HU"},
				{Value: "it-IT"},
				{Value: "nl-BE"},
				{Value: "nl-NL"},
				{Value: "pl-PL"},
				{Value: "pt-PT"},
				{Value: "sk-SK"},
				{Value: "sv-SE"},
			},
		},
		"payment_method_options.paypal.reference": {
			Type:             "string",
			ShortDescription: "A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID",
		},
		"payment_method_options.paypal.risk_correlation_id": {
			Type:             "string",
			ShortDescription: "The risk correlation ID for an on-session payment using a saved PayPal payment method",
		},
		"payment_method_options.paypal.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.payto.mandate_options.amount": {
			Type:             "integer",
			ShortDescription: "Amount that will be collected",
		},
		"payment_method_options.payto.mandate_options.amount_type": {
			Type:             "string",
			ShortDescription: "The type of amount that will be collected",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_options.payto.mandate_options.end_date": {
			Type:             "string",
			ShortDescription: "Date, in YYYY-MM-DD format, after which payments will not be collected",
		},
		"payment_method_options.payto.mandate_options.payment_schedule": {
			Type:             "string",
			ShortDescription: "The periodicity at which payments will be collected",
			Enum: []resource.EnumSpec{
				{Value: "adhoc"},
				{Value: "annual"},
				{Value: "daily"},
				{Value: "fortnightly"},
				{Value: "monthly"},
				{Value: "quarterly"},
				{Value: "semi_annual"},
				{Value: "weekly"},
			},
		},
		"payment_method_options.payto.mandate_options.payments_per_period": {
			Type:             "integer",
			ShortDescription: "The number of payments that will be made during a payment period",
		},
		"payment_method_options.payto.mandate_options.purpose": {
			Type:             "string",
			ShortDescription: "The purpose for which payments are made",
			Enum: []resource.EnumSpec{
				{Value: "dependant_support"},
				{Value: "government"},
				{Value: "loan"},
				{Value: "mortgage"},
				{Value: "other"},
				{Value: "pension"},
				{Value: "personal"},
				{Value: "retail"},
				{Value: "salary"},
				{Value: "tax"},
				{Value: "utility"},
			},
		},
		"payment_method_options.payto.mandate_options.start_date": {
			Type:             "string",
			ShortDescription: "Date, in YYYY-MM-DD format, from which payments will be collected",
		},
		"payment_method_options.payto.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.pix.amount_includes_iof": {
			Type:             "string",
			ShortDescription: "Determines if the amount includes the IOF tax",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "never"},
			},
		},
		"payment_method_options.pix.expires_after_seconds": {
			Type:             "integer",
			ShortDescription: "The number of seconds (between 10 and 1209600) after which Pix payment will expire",
		},
		"payment_method_options.pix.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.revolut_pay.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds will be captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.revolut_pay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.samsung_pay.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds will be captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.satispay.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds will be captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.sepa_debit.mandate_options.reference_prefix": {
			Type:             "string",
			ShortDescription: "Prefix used to generate the Mandate reference",
		},
		"payment_method_options.sepa_debit.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.sepa_debit.target_date": {
			Type:             "string",
			ShortDescription: "Controls when Stripe will attempt to debit the funds from the customer's account",
		},
		"payment_method_options.sofort.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.swish.reference": {
			Type:             "string",
			ShortDescription: "The order reference that will be displayed to customers in the Swish application",
		},
		"payment_method_options.twint.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.upi.mandate_options.amount": {
			Type:             "integer",
			ShortDescription: "Amount to be charged for future payments",
		},
		"payment_method_options.upi.mandate_options.amount_type": {
			Type:             "string",
			ShortDescription: "One of `fixed` or `maximum`",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_options.upi.mandate_options.description": {
			Type:             "string",
			ShortDescription: "A description of the mandate or subscription that is meant to be displayed to the customer",
		},
		"payment_method_options.upi.mandate_options.end_date": {
			Type:             "integer",
			ShortDescription: "End date of the mandate or subscription",
			Format:           "unix-time",
		},
		"payment_method_options.upi.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.us_bank_account.financial_connections.permissions": {
			Type:             "array",
			ShortDescription: "The list of permissions to request",
		},
		"payment_method_options.us_bank_account.financial_connections.prefetch": {
			Type:             "array",
			ShortDescription: "List of data features that you would like to retrieve upon account creation",
		},
		"payment_method_options.us_bank_account.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.us_bank_account.target_date": {
			Type:             "string",
			ShortDescription: "Controls when Stripe will attempt to debit the funds from the customer's account",
		},
		"payment_method_options.us_bank_account.verification_method": {
			Type:             "string",
			ShortDescription: "Verification method for the intent",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "instant"},
			},
		},
		"payment_method_options.wechat_pay.app_id": {
			Type:             "string",
			ShortDescription: "The app ID registered with WeChat Pay",
		},
		"payment_method_options.wechat_pay.client": {
			Type:             "string",
			ShortDescription: "The client type that the end customer will pay from",
			Enum: []resource.EnumSpec{
				{Value: "android"},
				{Value: "ios"},
				{Value: "web"},
			},
		},
		"payment_method_options.wechat_pay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_types": {
			Type:             "array",
			ShortDescription: "A list of the types of payment methods (e.g., `card`) this Checkout Session can accept",
		},
		"permissions.update_shipping_details": {
			Type:             "string",
			ShortDescription: "Determines which entity is allowed to update the shipping details",
			Enum: []resource.EnumSpec{
				{Value: "client_only"},
				{Value: "server_only"},
			},
		},
		"phone_number_collection.enabled": {
			Type:             "boolean",
			ShortDescription: "Set to `true` to enable phone number collection",
		},
		"redirect_on_completion": {
			Type:             "string",
			ShortDescription: "This parameter applies to `ui_mode: embedded`",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "if_required"},
				{Value: "never"},
			},
		},
		"return_url": {
			Type:             "string",
			ShortDescription: "The URL to redirect your customer back to after they authenticate or cancel their payment on the\npayment method's app or site",
			MostCommon:       true,
		},
		"saved_payment_method_options.allow_redisplay_filters": {
			Type:             "array",
			ShortDescription: "Uses the `allow_redisplay` value of each saved payment method to filter the set presented to a returning customer",
		},
		"saved_payment_method_options.payment_method_remove": {
			Type:             "string",
			ShortDescription: "Enable customers to choose if they wish to remove their saved payment methods",
			Enum: []resource.EnumSpec{
				{Value: "disabled"},
				{Value: "enabled"},
			},
		},
		"saved_payment_method_options.payment_method_save": {
			Type:             "string",
			ShortDescription: "Enable customers to choose if they wish to save their payment method for future use",
			Enum: []resource.EnumSpec{
				{Value: "disabled"},
				{Value: "enabled"},
			},
		},
		"setup_intent_data.description": {
			Type:             "string",
			ShortDescription: "An arbitrary string attached to the object",
		},
		"setup_intent_data.on_behalf_of": {
			Type:             "string",
			ShortDescription: "The Stripe account for which the setup is intended",
		},
		"shipping_address_collection.allowed_countries": {
			Type:             "array",
			ShortDescription: "An array of two-letter ISO country codes representing which countries Checkout should provide as options for\nshipping locations",
		},
		"submit_type": {
			Type:             "string",
			ShortDescription: "Describes the type of transaction being performed by Checkout in order\nto customize relevant text on the page, such as the submit button.\n `submit_type` can only be specified on Checkout Sessions in\n`payment` or `subscription` mode",
			Enum: []resource.EnumSpec{
				{Value: "auto"},
				{Value: "book"},
				{Value: "donate"},
				{Value: "pay"},
				{Value: "subscribe"},
			},
		},
		"subscription_data.application_fee_percent": {
			Type:             "number",
			ShortDescription: "A non-negative decimal between 0 and 100, with at most two decimal places",
		},
		"subscription_data.billing_cycle_anchor": {
			Type:             "integer",
			ShortDescription: "A future timestamp to anchor the subscription's billing cycle for new subscriptions",
			Format:           "unix-time",
		},
		"subscription_data.billing_mode.flexible.proration_discounts": {
			Type:             "string",
			ShortDescription: "Controls how invoices and invoice items display proration amounts and discount amounts",
			Enum: []resource.EnumSpec{
				{Value: "included"},
				{Value: "itemized"},
			},
		},
		"subscription_data.billing_mode.type": {
			Type:             "string",
			ShortDescription: "Controls the calculation and orchestration of prorations and invoices for subscriptions",
			Enum: []resource.EnumSpec{
				{Value: "classic"},
				{Value: "flexible"},
			},
		},
		"subscription_data.default_tax_rates": {
			Type:             "array",
			ShortDescription: "The tax rates that will apply to any subscription item that does not have\n`tax_rates` set",
		},
		"subscription_data.description": {
			Type:             "string",
			ShortDescription: "The subscription's description, meant to be displayable to the customer",
		},
		"subscription_data.invoice_settings.issuer.account": {
			Type:             "string",
			ShortDescription: "The connected account being referenced when `type` is `account`",
		},
		"subscription_data.invoice_settings.issuer.type": {
			Type:             "string",
			ShortDescription: "Type of the account referenced in the request",
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"subscription_data.on_behalf_of": {
			Type:             "string",
			ShortDescription: "The account on behalf of which to charge, for each of the subscription's invoices",
		},
		"subscription_data.pending_invoice_item_interval.interval": {
			Type:             "string",
			ShortDescription: "Specifies invoicing frequency",
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "month"},
				{Value: "week"},
				{Value: "year"},
			},
		},
		"subscription_data.pending_invoice_item_interval.interval_count": {
			Type:             "integer",
			ShortDescription: "The number of intervals between invoices",
		},
		"subscription_data.proration_behavior": {
			Type:             "string",
			ShortDescription: "Determines how to handle prorations resulting from the `billing_cycle_anchor`",
			Enum: []resource.EnumSpec{
				{Value: "create_prorations"},
				{Value: "none"},
			},
		},
		"subscription_data.transfer_data.amount_percent": {
			Type:             "number",
			ShortDescription: "A non-negative decimal between 0 and 100, with at most two decimal places",
		},
		"subscription_data.transfer_data.destination": {
			Type:             "string",
			ShortDescription: "ID of an existing, connected Stripe account",
		},
		"subscription_data.trial_end": {
			Type:             "integer",
			ShortDescription: "Unix timestamp representing the end of the trial period the customer will get before being charged for the first time",
			Format:           "unix-time",
		},
		"subscription_data.trial_period_days": {
			Type:             "integer",
			ShortDescription: "Integer representing the number of trial period days before the customer is charged for the first time",
		},
		"subscription_data.trial_settings.end_behavior.missing_payment_method": {
			Type:             "string",
			ShortDescription: "Indicates how the subscription should change when the trial ends if the user did not provide a payment method",
			Enum: []resource.EnumSpec{
				{Value: "cancel"},
				{Value: "create_invoice"},
				{Value: "pause"},
			},
		},
		"success_url": {
			Type:             "string",
			ShortDescription: "The URL to which Stripe should send customers when payment or setup\nis complete",
			MostCommon:       true,
		},
		"tax_id_collection.enabled": {
			Type:             "boolean",
			ShortDescription: "Enable tax ID collection during checkout",
		},
		"tax_id_collection.required": {
			Type:             "string",
			ShortDescription: "Describes whether a tax ID is required during checkout",
			Enum: []resource.EnumSpec{
				{Value: "if_supported"},
				{Value: "never"},
			},
		},
		"ui_mode": {
			Type:             "string",
			ShortDescription: "The UI mode of the Session",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "elements"},
				{Value: "embedded_page"},
				{Value: "form"},
				{Value: "hosted_page"},
			},
		},
		"wallet_options.link.display": {
			Type:             "string",
			ShortDescription: "Specifies whether Checkout should display Link as a payment option",
			Enum: []resource.EnumSpec{
				{Value: "auto"},
				{Value: "never"},
			},
		},
	},
}
View Source
var V1CheckoutSessionsExpire = resource.OperationSpec{
	Name:   "expire",
	Path:   "/v1/checkout/sessions/{session}/expire",
	Method: "POST",
}
View Source
var V1CheckoutSessionsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/checkout/sessions",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type:             "integer",
			ShortDescription: "Only return Checkout Sessions that were created during the given date interval",
		},
		"customer": {
			Type:             "string",
			ShortDescription: "Only return the Checkout Sessions for the Customer specified",
		},
		"customer_account": {
			Type:             "string",
			ShortDescription: "Only return the Checkout Sessions for the Account specified",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"payment_intent": {
			Type:             "string",
			ShortDescription: "Only return the Checkout Session for the PaymentIntent specified",
		},
		"payment_link": {
			Type:             "string",
			ShortDescription: "Only return the Checkout Sessions for the Payment Link specified",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"status": {
			Type:             "string",
			ShortDescription: "Only return the Checkout Sessions matching the given status",
			Enum: []resource.EnumSpec{
				{Value: "complete"},
				{Value: "expired"},
				{Value: "open"},
			},
		},
		"subscription": {
			Type:             "string",
			ShortDescription: "Only return the Checkout Session for the subscription specified",
		},
	},
}
View Source
var V1CheckoutSessionsListLineItems = resource.OperationSpec{
	Name:   "list_line_items",
	Path:   "/v1/checkout/sessions/{session}/line_items",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1CheckoutSessionsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/checkout/sessions/{session}",
	Method: "GET",
}
View Source
var V1CheckoutSessionsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/checkout/sessions/{session}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"collected_information.shipping_details.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"collected_information.shipping_details.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"collected_information.shipping_details.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"collected_information.shipping_details.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"collected_information.shipping_details.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"collected_information.shipping_details.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"collected_information.shipping_details.name": {
			Type:             "string",
			ShortDescription: "The name of customer",
		},
	},
}
View Source
var V1ClimateOrdersCancel = resource.OperationSpec{
	Name:   "cancel",
	Path:   "/v1/climate/orders/{order}/cancel",
	Method: "POST",
}
View Source
var V1ClimateOrdersCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/climate/orders",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "Requested amount of carbon removal units",
			MostCommon:       true,
		},
		"beneficiary.public_name": {
			Type:             "string",
			ShortDescription: "Publicly displayable name for the end beneficiary of carbon removal",
			MostCommon:       true,
		},
		"currency": {
			Type:             "string",
			ShortDescription: "Request currency for the order as a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			MostCommon:       true,
		},
		"metric_tons": {
			Type:             "string",
			ShortDescription: "Requested number of tons for the order",
			MostCommon:       true,
			Format:           "decimal",
		},
		"product": {
			Type:             "string",
			ShortDescription: "Unique identifier of the Climate product",
			Required:         true,
			MostCommon:       true,
		},
	},
}
View Source
var V1ClimateOrdersList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/climate/orders",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1ClimateOrdersRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/climate/orders/{order}",
	Method: "GET",
}
View Source
var V1ClimateOrdersUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/climate/orders/{order}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"beneficiary": {
			Type:       "clearable_object",
			MostCommon: true,
		},
		"beneficiary.public_name": {
			Type:             "string",
			ShortDescription: "Publicly displayable name for the end beneficiary of carbon removal",
			MostCommon:       true,
		},
	},
}
View Source
var V1ClimateProductsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/climate/products",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1ClimateProductsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/climate/products/{product}",
	Method: "GET",
}
View Source
var V1ClimateSuppliersList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/climate/suppliers",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1ClimateSuppliersRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/climate/suppliers/{supplier}",
	Method: "GET",
}
View Source
var V1ConfirmationTokensRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/confirmation_tokens/{confirmation_token}",
	Method: "GET",
}
View Source
var V1ConfirmationTokensTestHelpersCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/test_helpers/confirmation_tokens",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"payment_method": {
			Type:             "string",
			ShortDescription: "ID of an existing PaymentMethod",
			MostCommon:       true,
		},
		"payment_method_data.acss_debit.account_number": {
			Type:             "string",
			ShortDescription: "Customer's bank account number",
		},
		"payment_method_data.acss_debit.institution_number": {
			Type:             "string",
			ShortDescription: "Institution number of the customer's bank",
		},
		"payment_method_data.acss_debit.transit_number": {
			Type:             "string",
			ShortDescription: "Transit number of the customer's bank",
		},
		"payment_method_data.allow_redisplay": {
			Type:             "string",
			ShortDescription: "This field indicates whether this payment method can be shown again to its customer in a checkout flow",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "limited"},
				{Value: "unspecified"},
			},
		},
		"payment_method_data.au_becs_debit.account_number": {
			Type:             "string",
			ShortDescription: "The account number for the bank account",
		},
		"payment_method_data.au_becs_debit.bsb_number": {
			Type:             "string",
			ShortDescription: "Bank-State-Branch number of the bank account",
		},
		"payment_method_data.bacs_debit.account_number": {
			Type:             "string",
			ShortDescription: "Account number of the bank account that the funds will be debited from",
		},
		"payment_method_data.bacs_debit.sort_code": {
			Type:             "string",
			ShortDescription: "Sort code of the bank account. (e.g., `10-20-30`)",
		},
		"payment_method_data.billing_details.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"payment_method_data.billing_details.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"payment_method_data.billing_details.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"payment_method_data.billing_details.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"payment_method_data.billing_details.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"payment_method_data.billing_details.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"payment_method_data.billing_details.email": {
			Type:             "string",
			ShortDescription: "Email address",
		},
		"payment_method_data.billing_details.name": {
			Type:             "string",
			ShortDescription: "Full name",
		},
		"payment_method_data.billing_details.phone": {
			Type:             "string",
			ShortDescription: "Billing phone number (including extension)",
		},
		"payment_method_data.billing_details.tax_id": {
			Type:             "string",
			ShortDescription: "Taxpayer identification number",
		},
		"payment_method_data.boleto.tax_id": {
			Type:             "string",
			ShortDescription: "The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)",
		},
		"payment_method_data.eps.bank": {
			Type:             "string",
			ShortDescription: "The customer's bank",
			Enum: []resource.EnumSpec{
				{Value: "arzte_und_apotheker_bank"},
				{Value: "austrian_anadi_bank_ag"},
				{Value: "bank_austria"},
				{Value: "bankhaus_carl_spangler"},
				{Value: "bankhaus_schelhammer_und_schattera_ag"},
				{Value: "bawag_psk_ag"},
				{Value: "bks_bank_ag"},
				{Value: "brull_kallmus_bank_ag"},
				{Value: "btv_vier_lander_bank"},
				{Value: "capital_bank_grawe_gruppe_ag"},
				{Value: "deutsche_bank_ag"},
				{Value: "dolomitenbank"},
				{Value: "easybank_ag"},
				{Value: "erste_bank_und_sparkassen"},
				{Value: "hypo_alpeadriabank_international_ag"},
				{Value: "hypo_bank_burgenland_aktiengesellschaft"},
				{Value: "hypo_noe_lb_fur_niederosterreich_u_wien"},
				{Value: "hypo_oberosterreich_salzburg_steiermark"},
				{Value: "hypo_tirol_bank_ag"},
				{Value: "hypo_vorarlberg_bank_ag"},
				{Value: "marchfelder_bank"},
				{Value: "oberbank_ag"},
				{Value: "raiffeisen_bankengruppe_osterreich"},
				{Value: "schoellerbank_ag"},
				{Value: "sparda_bank_wien"},
				{Value: "volksbank_gruppe"},
				{Value: "volkskreditbank_ag"},
				{Value: "vr_bank_braunau"},
			},
		},
		"payment_method_data.fpx.account_holder_type": {
			Type:             "string",
			ShortDescription: "Account holder type for FPX transaction",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"payment_method_data.fpx.bank": {
			Type:             "string",
			ShortDescription: "The customer's bank",
			Enum: []resource.EnumSpec{
				{Value: "affin_bank"},
				{Value: "agrobank"},
				{Value: "alliance_bank"},
				{Value: "ambank"},
				{Value: "bank_islam"},
				{Value: "bank_muamalat"},
				{Value: "bank_of_china"},
				{Value: "bank_rakyat"},
				{Value: "bsn"},
				{Value: "cimb"},
				{Value: "deutsche_bank"},
				{Value: "hong_leong_bank"},
				{Value: "hsbc"},
				{Value: "kfh"},
				{Value: "maybank2e"},
				{Value: "maybank2u"},
				{Value: "ocbc"},
				{Value: "pb_enterprise"},
				{Value: "public_bank"},
				{Value: "rhb"},
				{Value: "standard_chartered"},
				{Value: "uob"},
			},
		},
		"payment_method_data.ideal.bank": {
			Type:             "string",
			ShortDescription: "The customer's bank",
			Enum: []resource.EnumSpec{
				{Value: "abn_amro"},
				{Value: "adyen"},
				{Value: "asn_bank"},
				{Value: "bunq"},
				{Value: "buut"},
				{Value: "finom"},
				{Value: "handelsbanken"},
				{Value: "ing"},
				{Value: "knab"},
				{Value: "mollie"},
				{Value: "moneyou"},
				{Value: "n26"},
				{Value: "nn"},
				{Value: "rabobank"},
				{Value: "regiobank"},
				{Value: "revolut"},
				{Value: "sns_bank"},
				{Value: "triodos_bank"},
				{Value: "van_lanschot"},
				{Value: "yoursafe"},
			},
		},
		"payment_method_data.klarna.dob.day": {
			Type:             "integer",
			ShortDescription: "The day of birth, between 1 and 31",
		},
		"payment_method_data.klarna.dob.month": {
			Type:             "integer",
			ShortDescription: "The month of birth, between 1 and 12",
		},
		"payment_method_data.klarna.dob.year": {
			Type:             "integer",
			ShortDescription: "The four-digit year of birth",
		},
		"payment_method_data.naver_pay.funding": {
			Type:             "string",
			ShortDescription: "Whether to use Naver Pay points or a card to fund this transaction",
			Enum: []resource.EnumSpec{
				{Value: "card"},
				{Value: "points"},
			},
		},
		"payment_method_data.nz_bank_account.account_holder_name": {
			Type:             "string",
			ShortDescription: "The name on the bank account",
		},
		"payment_method_data.nz_bank_account.account_number": {
			Type:             "string",
			ShortDescription: "The account number for the bank account",
		},
		"payment_method_data.nz_bank_account.bank_code": {
			Type:             "string",
			ShortDescription: "The numeric code for the bank account's bank",
		},
		"payment_method_data.nz_bank_account.branch_code": {
			Type:             "string",
			ShortDescription: "The numeric code for the bank account's bank branch",
		},
		"payment_method_data.nz_bank_account.reference": {
			Type: "string",
		},
		"payment_method_data.nz_bank_account.suffix": {
			Type:             "string",
			ShortDescription: "The suffix of the bank account number",
		},
		"payment_method_data.p24.bank": {
			Type:             "string",
			ShortDescription: "The customer's bank",
			Enum: []resource.EnumSpec{
				{Value: "alior_bank"},
				{Value: "bank_millennium"},
				{Value: "bank_nowy_bfg_sa"},
				{Value: "bank_pekao_sa"},
				{Value: "banki_spbdzielcze"},
				{Value: "blik"},
				{Value: "bnp_paribas"},
				{Value: "boz"},
				{Value: "citi_handlowy"},
				{Value: "credit_agricole"},
				{Value: "envelobank"},
				{Value: "etransfer_pocztowy24"},
				{Value: "getin_bank"},
				{Value: "ideabank"},
				{Value: "ing"},
				{Value: "inteligo"},
				{Value: "mbank_mtransfer"},
				{Value: "nest_przelew"},
				{Value: "noble_pay"},
				{Value: "pbac_z_ipko"},
				{Value: "plus_bank"},
				{Value: "santander_przelew24"},
				{Value: "tmobile_usbugi_bankowe"},
				{Value: "toyota_bank"},
				{Value: "velobank"},
				{Value: "volkswagen_bank"},
			},
		},
		"payment_method_data.payto.account_number": {
			Type:             "string",
			ShortDescription: "The account number for the bank account",
		},
		"payment_method_data.payto.bsb_number": {
			Type:             "string",
			ShortDescription: "Bank-State-Branch number of the bank account",
		},
		"payment_method_data.payto.pay_id": {
			Type:             "string",
			ShortDescription: "The PayID alias for the bank account",
		},
		"payment_method_data.radar_options.session": {
			Type:             "string",
			ShortDescription: "A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments",
		},
		"payment_method_data.sepa_debit.iban": {
			Type:             "string",
			ShortDescription: "IBAN of the bank account",
		},
		"payment_method_data.sofort.country": {
			Type:             "string",
			ShortDescription: "Two-letter ISO code representing the country the bank account is located in",
			Enum: []resource.EnumSpec{
				{Value: "AT"},
				{Value: "BE"},
				{Value: "DE"},
				{Value: "ES"},
				{Value: "IT"},
				{Value: "NL"},
			},
		},
		"payment_method_data.type": {
			Type:             "string",
			ShortDescription: "The type of the PaymentMethod",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "acss_debit"},
				{Value: "affirm"},
				{Value: "afterpay_clearpay"},
				{Value: "alipay"},
				{Value: "alma"},
				{Value: "amazon_pay"},
				{Value: "au_becs_debit"},
				{Value: "bacs_debit"},
				{Value: "bancontact"},
				{Value: "billie"},
				{Value: "blik"},
				{Value: "boleto"},
				{Value: "cashapp"},
				{Value: "crypto"},
				{Value: "customer_balance"},
				{Value: "eps"},
				{Value: "fpx"},
				{Value: "giropay"},
				{Value: "grabpay"},
				{Value: "ideal"},
				{Value: "kakao_pay"},
				{Value: "klarna"},
				{Value: "konbini"},
				{Value: "kr_card"},
				{Value: "link"},
				{Value: "mb_way"},
				{Value: "mobilepay"},
				{Value: "multibanco"},
				{Value: "naver_pay"},
				{Value: "nz_bank_account"},
				{Value: "oxxo"},
				{Value: "p24"},
				{Value: "pay_by_bank"},
				{Value: "payco"},
				{Value: "paynow"},
				{Value: "paypal"},
				{Value: "payto"},
				{Value: "pix"},
				{Value: "promptpay"},
				{Value: "revolut_pay"},
				{Value: "samsung_pay"},
				{Value: "satispay"},
				{Value: "sepa_debit"},
				{Value: "sofort"},
				{Value: "swish"},
				{Value: "twint"},
				{Value: "upi"},
				{Value: "us_bank_account"},
				{Value: "wechat_pay"},
				{Value: "zip"},
			},
		},
		"payment_method_data.upi.mandate_options.amount": {
			Type:             "integer",
			ShortDescription: "Amount to be charged for future payments",
		},
		"payment_method_data.upi.mandate_options.amount_type": {
			Type:             "string",
			ShortDescription: "One of `fixed` or `maximum`",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_data.upi.mandate_options.description": {
			Type:             "string",
			ShortDescription: "A description of the mandate or subscription that is meant to be displayed to the customer",
		},
		"payment_method_data.upi.mandate_options.end_date": {
			Type:             "integer",
			ShortDescription: "End date of the mandate or subscription",
			Format:           "unix-time",
		},
		"payment_method_data.us_bank_account.account_holder_type": {
			Type:             "string",
			ShortDescription: "Account holder type: individual or company",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"payment_method_data.us_bank_account.account_number": {
			Type:             "string",
			ShortDescription: "Account number of the bank account",
		},
		"payment_method_data.us_bank_account.account_type": {
			Type:             "string",
			ShortDescription: "Account type: checkings or savings",
			Enum: []resource.EnumSpec{
				{Value: "checking"},
				{Value: "savings"},
			},
		},
		"payment_method_data.us_bank_account.financial_connections_account": {
			Type:             "string",
			ShortDescription: "The ID of a Financial Connections Account to use as a payment method",
		},
		"payment_method_data.us_bank_account.routing_number": {
			Type:             "string",
			ShortDescription: "Routing number of the bank account",
		},
		"payment_method_options.card.installments.plan.count": {
			Type:             "integer",
			ShortDescription: "For `fixed_count` installment plans, this is required",
		},
		"payment_method_options.card.installments.plan.interval": {
			Type:             "string",
			ShortDescription: "For `fixed_count` installment plans, this is required",
			Enum: []resource.EnumSpec{
				{Value: "month"},
			},
		},
		"payment_method_options.card.installments.plan.type": {
			Type:             "string",
			ShortDescription: "Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`",
			Enum: []resource.EnumSpec{
				{Value: "bonus"},
				{Value: "fixed_count"},
				{Value: "revolving"},
			},
		},
		"return_url": {
			Type:             "string",
			ShortDescription: "Return URL used to confirm the Intent",
			MostCommon:       true,
		},
		"setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this ConfirmationToken's payment method",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"shipping.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"shipping.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"shipping.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"shipping.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"shipping.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"shipping.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"shipping.name": {
			Type:             "string",
			ShortDescription: "Recipient name",
			MostCommon:       true,
		},
		"shipping.phone": {
			Type:             "string",
			ShortDescription: "Recipient phone (including extension)",
		},
	},
}
View Source
var V1CountrySpecsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/country_specs",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1CountrySpecsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/country_specs/{country}",
	Method: "GET",
}
View Source
var V1CouponsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/coupons",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount_off": {
			Type:             "integer",
			ShortDescription: "A positive integer representing the amount to subtract from an invoice total (required if `percent_off` is not passed)",
			MostCommon:       true,
		},
		"applies_to.products": {
			Type:             "array",
			ShortDescription: "An array of Product IDs that this Coupon will apply to",
		},
		"currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) of the `amount_off` parameter (required if `amount_off` is passed)",
			MostCommon:       true,
			Format:           "currency",
		},
		"duration": {
			Type:             "string",
			ShortDescription: "Specifies how long the discount will be in effect if used on a subscription",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "forever"},
				{Value: "once"},
				{Value: "repeating"},
			},
		},
		"duration_in_months": {
			Type:             "integer",
			ShortDescription: "Required only if `duration` is `repeating`, in which case it must be a positive integer that specifies the number of months the discount will be in effect",
		},
		"id": {
			Type:             "string",
			ShortDescription: "Unique string of your choice that will be used to identify this coupon when applying it to a customer",
		},
		"max_redemptions": {
			Type:             "integer",
			ShortDescription: "A positive integer specifying the number of times the coupon can be redeemed before it's no longer valid",
		},
		"name": {
			Type:             "string",
			ShortDescription: "Name of the coupon displayed to customers on, for instance invoices, or receipts",
			MostCommon:       true,
		},
		"percent_off": {
			Type:             "number",
			ShortDescription: "A positive float larger than 0, and smaller or equal to 100, that represents the discount the coupon will apply (required if `amount_off` is not passed)",
			MostCommon:       true,
		},
		"redeem_by": {
			Type:             "integer",
			ShortDescription: "Unix timestamp specifying the last time at which the coupon can be redeemed (cannot be set to more than 5 years in the future)",
			Format:           "unix-time",
		},
	},
}
View Source
var V1CouponsDelete = resource.OperationSpec{
	Name:   "delete",
	Path:   "/v1/coupons/{coupon}",
	Method: "DELETE",
}
View Source
var V1CouponsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/coupons",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type:             "integer",
			ShortDescription: "A filter on the list, based on the object `created` field",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1CouponsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/coupons/{coupon}",
	Method: "GET",
}
View Source
var V1CouponsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/coupons/{coupon}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"name": {
			Type:             "string",
			ShortDescription: "Name of the coupon displayed to customers on, for instance invoices, or receipts",
			MostCommon:       true,
		},
	},
}
View Source
var V1CreditNoteLineItemsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/credit_notes/{credit_note}/lines",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1CreditNotesCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/credit_notes",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "The integer amount in cents (or local equivalent) representing the total amount of the credit note",
		},
		"credit_amount": {
			Type:             "integer",
			ShortDescription: "The integer amount in cents (or local equivalent) representing the amount to credit the customer's balance, which will be automatically applied to their next invoice",
		},
		"effective_at": {
			Type:             "integer",
			ShortDescription: "The date when this credit note is in effect",
			Format:           "unix-time",
		},
		"email_type": {
			Type:             "string",
			ShortDescription: "Type of email to send to the customer, one of `credit_note` or `none` and the default is `credit_note`",
			Enum: []resource.EnumSpec{
				{Value: "credit_note"},
				{Value: "none"},
			},
		},
		"invoice": {
			Type:             "string",
			ShortDescription: "ID of the invoice",
			Required:         true,
			MostCommon:       true,
		},
		"memo": {
			Type:             "string",
			ShortDescription: "The credit note's memo appears on the credit note PDF",
			MostCommon:       true,
		},
		"out_of_band_amount": {
			Type:             "integer",
			ShortDescription: "The integer amount in cents (or local equivalent) representing the amount that is credited outside of Stripe",
		},
		"reason": {
			Type:             "string",
			ShortDescription: "Reason for issuing this credit note, one of `duplicate`, `fraudulent`, `order_change`, or `product_unsatisfactory`",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "duplicate"},
				{Value: "fraudulent"},
				{Value: "order_change"},
				{Value: "product_unsatisfactory"},
			},
		},
		"refund_amount": {
			Type:             "integer",
			ShortDescription: "The integer amount in cents (or local equivalent) representing the amount to refund",
		},
		"shipping_cost.shipping_rate": {
			Type:             "string",
			ShortDescription: "The ID of the shipping rate to use for this order",
		},
	},
}
View Source
var V1CreditNotesList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/credit_notes",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type:             "integer",
			ShortDescription: "Only return credit notes that were created during the given date interval",
		},
		"customer": {
			Type:             "string",
			ShortDescription: "Only return credit notes for the customer specified by this customer ID",
		},
		"customer_account": {
			Type:             "string",
			ShortDescription: "Only return credit notes for the account representing the customer specified by this account ID",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"invoice": {
			Type:             "string",
			ShortDescription: "Only return credit notes for the invoice specified by this invoice ID",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1CreditNotesPreview = resource.OperationSpec{
	Name:   "preview",
	Path:   "/v1/credit_notes/preview",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "The integer amount in cents (or local equivalent) representing the total amount of the credit note",
		},
		"credit_amount": {
			Type:             "integer",
			ShortDescription: "The integer amount in cents (or local equivalent) representing the amount to credit the customer's balance, which will be automatically applied to their next invoice",
		},
		"effective_at": {
			Type:             "integer",
			ShortDescription: "The date when this credit note is in effect",
			Format:           "unix-time",
		},
		"email_type": {
			Type:             "string",
			ShortDescription: "Type of email to send to the customer, one of `credit_note` or `none` and the default is `credit_note`",
			Enum: []resource.EnumSpec{
				{Value: "credit_note"},
				{Value: "none"},
			},
		},
		"invoice": {
			Type:             "string",
			ShortDescription: "ID of the invoice",
			Required:         true,
		},
		"memo": {
			Type:             "string",
			ShortDescription: "The credit note's memo appears on the credit note PDF",
		},
		"out_of_band_amount": {
			Type:             "integer",
			ShortDescription: "The integer amount in cents (or local equivalent) representing the amount that is credited outside of Stripe",
		},
		"reason": {
			Type:             "string",
			ShortDescription: "Reason for issuing this credit note, one of `duplicate`, `fraudulent`, `order_change`, or `product_unsatisfactory`",
			Enum: []resource.EnumSpec{
				{Value: "duplicate"},
				{Value: "fraudulent"},
				{Value: "order_change"},
				{Value: "product_unsatisfactory"},
			},
		},
		"refund_amount": {
			Type:             "integer",
			ShortDescription: "The integer amount in cents (or local equivalent) representing the amount to refund",
		},
	},
}
View Source
var V1CreditNotesPreviewLines = resource.OperationSpec{
	Name:   "preview_lines",
	Path:   "/v1/credit_notes/preview/lines",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "The integer amount in cents (or local equivalent) representing the total amount of the credit note",
		},
		"credit_amount": {
			Type:             "integer",
			ShortDescription: "The integer amount in cents (or local equivalent) representing the amount to credit the customer's balance, which will be automatically applied to their next invoice",
		},
		"effective_at": {
			Type:             "integer",
			ShortDescription: "The date when this credit note is in effect",
			Format:           "unix-time",
		},
		"email_type": {
			Type:             "string",
			ShortDescription: "Type of email to send to the customer, one of `credit_note` or `none` and the default is `credit_note`",
			Enum: []resource.EnumSpec{
				{Value: "credit_note"},
				{Value: "none"},
			},
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"invoice": {
			Type:             "string",
			ShortDescription: "ID of the invoice",
			Required:         true,
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"memo": {
			Type:             "string",
			ShortDescription: "The credit note's memo appears on the credit note PDF",
		},
		"out_of_band_amount": {
			Type:             "integer",
			ShortDescription: "The integer amount in cents (or local equivalent) representing the amount that is credited outside of Stripe",
		},
		"reason": {
			Type:             "string",
			ShortDescription: "Reason for issuing this credit note, one of `duplicate`, `fraudulent`, `order_change`, or `product_unsatisfactory`",
			Enum: []resource.EnumSpec{
				{Value: "duplicate"},
				{Value: "fraudulent"},
				{Value: "order_change"},
				{Value: "product_unsatisfactory"},
			},
		},
		"refund_amount": {
			Type:             "integer",
			ShortDescription: "The integer amount in cents (or local equivalent) representing the amount to refund",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1CreditNotesRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/credit_notes/{id}",
	Method: "GET",
}
View Source
var V1CreditNotesUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/credit_notes/{id}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"memo": {
			Type:             "string",
			ShortDescription: "Credit note memo",
			MostCommon:       true,
		},
	},
}
View Source
var V1CreditNotesVoidCreditNote = resource.OperationSpec{
	Name:   "void_credit_note",
	Path:   "/v1/credit_notes/{id}/void",
	Method: "POST",
}
View Source
var V1CustomerBalanceTransactionsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/customers/{customer}/balance_transactions",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "The integer amount in **cents (or local equivalent)** to apply to the customer's credit balance",
			Required:         true,
			MostCommon:       true,
		},
		"currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Required:         true,
			MostCommon:       true,
			Format:           "currency",
		},
		"description": {
			Type:             "string",
			ShortDescription: "An arbitrary string attached to the object",
			MostCommon:       true,
		},
	},
}
View Source
var V1CustomerBalanceTransactionsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/customers/{customer}/balance_transactions",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type:             "integer",
			ShortDescription: "Only return customer balance transactions that were created during the given date interval",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"invoice": {
			Type:             "string",
			ShortDescription: "Only return transactions that are related to the specified invoice",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1CustomerBalanceTransactionsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/customers/{customer}/balance_transactions/{transaction}",
	Method: "GET",
}
View Source
var V1CustomerBalanceTransactionsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/customers/{customer}/balance_transactions/{transaction}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"description": {
			Type:             "string",
			ShortDescription: "An arbitrary string attached to the object",
			MostCommon:       true,
		},
	},
}
View Source
var V1CustomerCashBalanceTransactionsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/customers/{customer}/cash_balance_transactions",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1CustomerCashBalanceTransactionsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/customers/{customer}/cash_balance_transactions/{transaction}",
	Method: "GET",
}
View Source
var V1CustomerSessionsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/customer_sessions",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"components.buy_button.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether the buy button is enabled",
		},
		"components.customer_sheet.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether the customer sheet is enabled",
		},
		"components.customer_sheet.features.payment_method_allow_redisplay_filters": {
			Type:             "array",
			ShortDescription: "A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the customer sheet displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list",
		},
		"components.customer_sheet.features.payment_method_remove": {
			Type:             "string",
			ShortDescription: "Controls whether the customer sheet displays the option to remove a saved payment method.\"",
			Enum: []resource.EnumSpec{
				{Value: "disabled"},
				{Value: "enabled"},
			},
		},
		"components.mobile_payment_element.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether the mobile payment element is enabled",
		},
		"components.mobile_payment_element.features.payment_method_allow_redisplay_filters": {
			Type:             "array",
			ShortDescription: "A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the mobile payment element displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list",
		},
		"components.mobile_payment_element.features.payment_method_redisplay": {
			Type:             "string",
			ShortDescription: "Controls whether or not the mobile payment element shows saved payment methods",
			Enum: []resource.EnumSpec{
				{Value: "disabled"},
				{Value: "enabled"},
			},
		},
		"components.mobile_payment_element.features.payment_method_remove": {
			Type:             "string",
			ShortDescription: "Controls whether the mobile payment element displays the option to remove a saved payment method.\"",
			Enum: []resource.EnumSpec{
				{Value: "disabled"},
				{Value: "enabled"},
			},
		},
		"components.mobile_payment_element.features.payment_method_save": {
			Type:             "string",
			ShortDescription: "Controls whether the mobile payment element displays a checkbox offering to save a new payment method",
			Enum: []resource.EnumSpec{
				{Value: "disabled"},
				{Value: "enabled"},
			},
		},
		"components.mobile_payment_element.features.payment_method_save_allow_redisplay_override": {
			Type:             "string",
			ShortDescription: "Allows overriding the value of allow_override when saving a new payment method when payment_method_save is set to disabled",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "limited"},
				{Value: "unspecified"},
			},
		},
		"components.payment_element.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether the Payment Element is enabled",
		},
		"components.payment_element.features.payment_method_allow_redisplay_filters": {
			Type:             "array",
			ShortDescription: "A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the Payment Element displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list",
		},
		"components.payment_element.features.payment_method_redisplay": {
			Type:             "string",
			ShortDescription: "Controls whether or not the Payment Element shows saved payment methods",
			Enum: []resource.EnumSpec{
				{Value: "disabled"},
				{Value: "enabled"},
			},
		},
		"components.payment_element.features.payment_method_redisplay_limit": {
			Type:             "integer",
			ShortDescription: "Determines the max number of saved payment methods for the Payment Element to display",
		},
		"components.payment_element.features.payment_method_remove": {
			Type:             "string",
			ShortDescription: "Controls whether the Payment Element displays the option to remove a saved payment method",
			Enum: []resource.EnumSpec{
				{Value: "disabled"},
				{Value: "enabled"},
			},
		},
		"components.payment_element.features.payment_method_save": {
			Type:             "string",
			ShortDescription: "Controls whether the Payment Element displays a checkbox offering to save a new payment method",
			Enum: []resource.EnumSpec{
				{Value: "disabled"},
				{Value: "enabled"},
			},
		},
		"components.payment_element.features.payment_method_save_usage": {
			Type:             "string",
			ShortDescription: "When using PaymentIntents and the customer checks the save checkbox, this field determines the [`setup_future_usage`](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage) value used to confirm the PaymentIntent",
			Enum: []resource.EnumSpec{
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"components.pricing_table.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether the pricing table is enabled",
		},
		"customer": {
			Type:             "string",
			ShortDescription: "The ID of an existing customer for which to create the Customer Session",
			MostCommon:       true,
		},
		"customer_account": {
			Type:             "string",
			ShortDescription: "The ID of an existing Account for which to create the Customer Session",
		},
	},
}
View Source
var V1CustomersBalanceTransactions = resource.OperationSpec{
	Name:   "balance_transactions",
	Path:   "/v1/customers/{customer}/balance_transactions",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type:             "integer",
			ShortDescription: "Only return customer balance transactions that were created during the given date interval",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"invoice": {
			Type:             "string",
			ShortDescription: "Only return transactions that are related to the specified invoice",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1CustomersCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/customers",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"address": {
			Type:       "clearable_object",
			MostCommon: true,
		},
		"address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
			MostCommon:       true,
		},
		"address.country": {
			Type:             "string",
			ShortDescription: "A freeform text field for the country",
			MostCommon:       true,
		},
		"address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
			MostCommon:       true,
		},
		"address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
			MostCommon:       true,
		},
		"address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
			MostCommon:       true,
		},
		"address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
			MostCommon:       true,
		},
		"balance": {
			Type:             "integer",
			ShortDescription: "An integer amount in cents (or local equivalent) that represents the customer's current balance, which affect the customer's future invoices",
		},
		"business_name": {
			Type:             "string",
			ShortDescription: "The customer's business name",
		},
		"cash_balance.settings.reconciliation_mode": {
			Type:             "string",
			ShortDescription: "Controls how funds transferred by the customer are applied to payment intents and invoices",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "manual"},
				{Value: "merchant_default"},
			},
		},
		"description": {
			Type:             "string",
			ShortDescription: "An arbitrary string that you can attach to a customer object",
			MostCommon:       true,
		},
		"email": {
			Type:             "string",
			ShortDescription: "Customer's email address",
			MostCommon:       true,
		},
		"individual_name": {
			Type:             "string",
			ShortDescription: "The customer's full name",
		},
		"invoice_prefix": {
			Type:             "string",
			ShortDescription: "The prefix for the customer used to generate unique invoice numbers",
		},
		"invoice_settings.default_payment_method": {
			Type:             "string",
			ShortDescription: "ID of a payment method that's attached to the customer, to be used as the customer's default payment method for subscriptions and invoices",
		},
		"invoice_settings.footer": {
			Type:             "string",
			ShortDescription: "Default footer to be displayed on invoices for this customer",
		},
		"invoice_settings.rendering_options.amount_tax_display": {
			Type:             "string",
			ShortDescription: "How line-item prices and amounts will be displayed with respect to tax on invoice PDFs",
			Enum: []resource.EnumSpec{
				{Value: "exclude_tax"},
				{Value: "include_inclusive_tax"},
			},
		},
		"invoice_settings.rendering_options.template": {
			Type:             "string",
			ShortDescription: "ID of the invoice rendering template to use for future invoices",
		},
		"name": {
			Type:             "string",
			ShortDescription: "The customer's full name or business name",
			MostCommon:       true,
		},
		"next_invoice_sequence": {
			Type:             "integer",
			ShortDescription: "The sequence to be used on the customer's next invoice",
		},
		"payment_method": {
			Type:       "string",
			MostCommon: true,
		},
		"phone": {
			Type:             "string",
			ShortDescription: "The customer's phone number",
			MostCommon:       true,
		},
		"preferred_locales": {
			Type:             "array",
			ShortDescription: "Customer's preferred languages, ordered by preference",
		},
		"shipping": {
			Type:       "clearable_object",
			MostCommon: true,
		},
		"shipping.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"shipping.address.country": {
			Type:             "string",
			ShortDescription: "A freeform text field for the country",
		},
		"shipping.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"shipping.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"shipping.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"shipping.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"shipping.name": {
			Type:             "string",
			ShortDescription: "Customer name",
			MostCommon:       true,
		},
		"shipping.phone": {
			Type:             "string",
			ShortDescription: "Customer phone (including extension)",
			MostCommon:       true,
		},
		"source": {
			Type: "string",
		},
		"tax.ip_address": {
			Type:             "string",
			ShortDescription: "A recent IP address of the customer used for tax reporting and tax location inference",
		},
		"tax.validate_location": {
			Type:             "string",
			ShortDescription: "A flag that indicates when Stripe should validate the customer tax location",
			Enum: []resource.EnumSpec{
				{Value: "deferred"},
				{Value: "immediately"},
			},
		},
		"tax_exempt": {
			Type:             "string",
			ShortDescription: "The customer's tax exemption",
			Enum: []resource.EnumSpec{
				{Value: "exempt"},
				{Value: "none"},
				{Value: "reverse"},
			},
		},
		"test_clock": {
			Type:             "string",
			ShortDescription: "ID of the test clock to attach to the customer",
		},
		"validate": {
			Type: "boolean",
		},
	},
}
View Source
var V1CustomersCreateFundingInstructions = resource.OperationSpec{
	Name:   "create_funding_instructions",
	Path:   "/v1/customers/{customer}/funding_instructions",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"bank_transfer.eu_bank_transfer.country": {
			Type:             "string",
			ShortDescription: "The desired country code of the bank account information",
		},
		"bank_transfer.requested_address_types": {
			Type:             "array",
			ShortDescription: "List of address types that should be returned in the financial_addresses response",
		},
		"bank_transfer.type": {
			Type:             "string",
			ShortDescription: "The type of the `bank_transfer`",
			Required:         true,
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "eu_bank_transfer"},
				{Value: "gb_bank_transfer"},
				{Value: "jp_bank_transfer"},
				{Value: "mx_bank_transfer"},
				{Value: "us_bank_transfer"},
			},
		},
		"currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Required:         true,
			MostCommon:       true,
			Format:           "currency",
		},
		"funding_type": {
			Type:             "string",
			ShortDescription: "The `funding_type` to get the instructions for",
			Required:         true,
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "bank_transfer"},
			},
		},
	},
}
View Source
var V1CustomersDelete = resource.OperationSpec{
	Name:   "delete",
	Path:   "/v1/customers/{customer}",
	Method: "DELETE",
}
View Source
var V1CustomersDeleteDiscount = resource.OperationSpec{
	Name:   "delete_discount",
	Path:   "/v1/customers/{customer}/discount",
	Method: "DELETE",
}
View Source
var V1CustomersList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/customers",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type:             "integer",
			ShortDescription: "Only return customers that were created during the given date interval",
		},
		"email": {
			Type:             "string",
			ShortDescription: "A case-sensitive filter on the list based on the customer's `email` field",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"test_clock": {
			Type:             "string",
			ShortDescription: "Provides a list of customers that are associated with the specified test clock",
		},
	},
}
View Source
var V1CustomersListPaymentMethods = resource.OperationSpec{
	Name:   "list_payment_methods",
	Path:   "/v1/customers/{customer}/payment_methods",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"allow_redisplay": {
			Type:             "string",
			ShortDescription: "This field indicates whether this payment method can be shown again to its customer in a checkout flow",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "limited"},
				{Value: "unspecified"},
			},
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"type": {
			Type:             "string",
			ShortDescription: "An optional filter on the list, based on the object `type` field",
			Enum: []resource.EnumSpec{
				{Value: "acss_debit"},
				{Value: "affirm"},
				{Value: "afterpay_clearpay"},
				{Value: "alipay"},
				{Value: "alma"},
				{Value: "amazon_pay"},
				{Value: "au_becs_debit"},
				{Value: "bacs_debit"},
				{Value: "bancontact"},
				{Value: "billie"},
				{Value: "blik"},
				{Value: "boleto"},
				{Value: "card"},
				{Value: "cashapp"},
				{Value: "crypto"},
				{Value: "custom"},
				{Value: "customer_balance"},
				{Value: "eps"},
				{Value: "fpx"},
				{Value: "giropay"},
				{Value: "grabpay"},
				{Value: "ideal"},
				{Value: "kakao_pay"},
				{Value: "klarna"},
				{Value: "konbini"},
				{Value: "kr_card"},
				{Value: "link"},
				{Value: "mb_way"},
				{Value: "mobilepay"},
				{Value: "multibanco"},
				{Value: "naver_pay"},
				{Value: "nz_bank_account"},
				{Value: "oxxo"},
				{Value: "p24"},
				{Value: "pay_by_bank"},
				{Value: "payco"},
				{Value: "paynow"},
				{Value: "paypal"},
				{Value: "payto"},
				{Value: "pix"},
				{Value: "promptpay"},
				{Value: "revolut_pay"},
				{Value: "samsung_pay"},
				{Value: "satispay"},
				{Value: "sepa_debit"},
				{Value: "sofort"},
				{Value: "swish"},
				{Value: "twint"},
				{Value: "upi"},
				{Value: "us_bank_account"},
				{Value: "wechat_pay"},
				{Value: "zip"},
			},
		},
	},
}
View Source
var V1CustomersRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/customers/{customer}",
	Method: "GET",
}
View Source
var V1CustomersRetrievePaymentMethod = resource.OperationSpec{
	Name:   "retrieve_payment_method",
	Path:   "/v1/customers/{customer}/payment_methods/{payment_method}",
	Method: "GET",
}
View Source
var V1CustomersSearch = resource.OperationSpec{
	Name:   "search",
	Path:   "/v1/customers/search",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"page": {
			Type:             "string",
			ShortDescription: "A cursor for pagination across multiple pages of results",
		},
		"query": {
			Type:             "string",
			ShortDescription: "The search query string",
			Required:         true,
		},
	},
}
View Source
var V1CustomersTestHelpersFundCashBalance = resource.OperationSpec{
	Name:   "fund_cash_balance",
	Path:   "/v1/test_helpers/customers/{customer}/fund_cash_balance",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "Amount to be used for this test cash balance transaction",
			Required:         true,
			MostCommon:       true,
		},
		"currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Required:         true,
			MostCommon:       true,
			Format:           "currency",
		},
		"reference": {
			Type:             "string",
			ShortDescription: "A description of the test funding",
		},
	},
}
View Source
var V1CustomersUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/customers/{customer}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"address": {
			Type:       "clearable_object",
			MostCommon: true,
		},
		"address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
			MostCommon:       true,
		},
		"address.country": {
			Type:             "string",
			ShortDescription: "A freeform text field for the country",
			MostCommon:       true,
		},
		"address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
			MostCommon:       true,
		},
		"address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
			MostCommon:       true,
		},
		"address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
			MostCommon:       true,
		},
		"address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
			MostCommon:       true,
		},
		"balance": {
			Type:             "integer",
			ShortDescription: "An integer amount in cents (or local equivalent) that represents the customer's current balance, which affect the customer's future invoices",
		},
		"business_name": {
			Type:             "string",
			ShortDescription: "The customer's business name",
		},
		"cash_balance.settings.reconciliation_mode": {
			Type:             "string",
			ShortDescription: "Controls how funds transferred by the customer are applied to payment intents and invoices",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "manual"},
				{Value: "merchant_default"},
			},
		},
		"default_source": {
			Type:             "string",
			ShortDescription: "If you are using payment methods created via the PaymentMethods API, see the [invoice_settings.default_payment_method](https://docs.stripe.com/api/customers/update#update_customer-invoice_settings-default_payment_method) parameter",
		},
		"description": {
			Type:             "string",
			ShortDescription: "An arbitrary string that you can attach to a customer object",
			MostCommon:       true,
		},
		"email": {
			Type:             "string",
			ShortDescription: "Customer's email address",
			MostCommon:       true,
		},
		"individual_name": {
			Type:             "string",
			ShortDescription: "The customer's full name",
		},
		"invoice_prefix": {
			Type:             "string",
			ShortDescription: "The prefix for the customer used to generate unique invoice numbers",
		},
		"invoice_settings.default_payment_method": {
			Type:             "string",
			ShortDescription: "ID of a payment method that's attached to the customer, to be used as the customer's default payment method for subscriptions and invoices",
		},
		"invoice_settings.footer": {
			Type:             "string",
			ShortDescription: "Default footer to be displayed on invoices for this customer",
		},
		"invoice_settings.rendering_options.amount_tax_display": {
			Type:             "string",
			ShortDescription: "How line-item prices and amounts will be displayed with respect to tax on invoice PDFs",
			Enum: []resource.EnumSpec{
				{Value: "exclude_tax"},
				{Value: "include_inclusive_tax"},
			},
		},
		"invoice_settings.rendering_options.template": {
			Type:             "string",
			ShortDescription: "ID of the invoice rendering template to use for future invoices",
		},
		"name": {
			Type:             "string",
			ShortDescription: "The customer's full name or business name",
			MostCommon:       true,
		},
		"next_invoice_sequence": {
			Type:             "integer",
			ShortDescription: "The sequence to be used on the customer's next invoice",
		},
		"phone": {
			Type:             "string",
			ShortDescription: "The customer's phone number",
			MostCommon:       true,
		},
		"preferred_locales": {
			Type:             "array",
			ShortDescription: "Customer's preferred languages, ordered by preference",
		},
		"shipping": {
			Type:       "clearable_object",
			MostCommon: true,
		},
		"shipping.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"shipping.address.country": {
			Type:             "string",
			ShortDescription: "A freeform text field for the country",
		},
		"shipping.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"shipping.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"shipping.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"shipping.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"shipping.name": {
			Type:             "string",
			ShortDescription: "Customer name",
			MostCommon:       true,
		},
		"shipping.phone": {
			Type:             "string",
			ShortDescription: "Customer phone (including extension)",
			MostCommon:       true,
		},
		"source": {
			Type: "string",
		},
		"tax.ip_address": {
			Type:             "string",
			ShortDescription: "A recent IP address of the customer used for tax reporting and tax location inference",
		},
		"tax.validate_location": {
			Type:             "string",
			ShortDescription: "A flag that indicates when Stripe should validate the customer tax location",
			Enum: []resource.EnumSpec{
				{Value: "auto"},
				{Value: "deferred"},
				{Value: "immediately"},
			},
		},
		"tax_exempt": {
			Type:             "string",
			ShortDescription: "The customer's tax exemption",
			Enum: []resource.EnumSpec{
				{Value: "exempt"},
				{Value: "none"},
				{Value: "reverse"},
			},
		},
		"validate": {
			Type: "boolean",
		},
	},
}
View Source
var V1DisputesClose = resource.OperationSpec{
	Name:   "close",
	Path:   "/v1/disputes/{dispute}/close",
	Method: "POST",
}
View Source
var V1DisputesList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/disputes",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"charge": {
			Type:             "string",
			ShortDescription: "Only return disputes associated to the charge specified by this charge ID",
		},
		"created": {
			Type:             "integer",
			ShortDescription: "Only return disputes that were created during the given date interval",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"payment_intent": {
			Type:             "string",
			ShortDescription: "Only return disputes associated to the PaymentIntent specified by this PaymentIntent ID",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1DisputesRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/disputes/{dispute}",
	Method: "GET",
}
View Source
var V1DisputesUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/disputes/{dispute}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"evidence.access_activity_log": {
			Type:             "string",
			ShortDescription: "Any server or activity logs showing proof that the customer accessed or downloaded the purchased digital product",
		},
		"evidence.billing_address": {
			Type:             "string",
			ShortDescription: "The billing address provided by the customer",
		},
		"evidence.cancellation_policy": {
			Type:             "string",
			ShortDescription: "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Your subscription cancellation policy, as shown to the customer",
		},
		"evidence.cancellation_policy_disclosure": {
			Type:             "string",
			ShortDescription: "An explanation of how and when the customer was shown your refund policy prior to purchase",
		},
		"evidence.cancellation_rebuttal": {
			Type:             "string",
			ShortDescription: "A justification for why the customer's subscription was not canceled",
		},
		"evidence.customer_communication": {
			Type:             "string",
			ShortDescription: "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Any communication with the customer that you feel is relevant to your case",
		},
		"evidence.customer_email_address": {
			Type:             "string",
			ShortDescription: "The email address of the customer",
		},
		"evidence.customer_name": {
			Type:             "string",
			ShortDescription: "The name of the customer",
		},
		"evidence.customer_purchase_ip": {
			Type:             "string",
			ShortDescription: "The IP address that the customer used when making the purchase",
		},
		"evidence.customer_signature": {
			Type:             "string",
			ShortDescription: "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) A relevant document or contract showing the customer's signature",
		},
		"evidence.duplicate_charge_documentation": {
			Type:             "string",
			ShortDescription: "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Documentation for the prior charge that can uniquely identify the charge, such as a receipt, shipping label, work order, etc",
		},
		"evidence.duplicate_charge_explanation": {
			Type:             "string",
			ShortDescription: "An explanation of the difference between the disputed charge versus the prior charge that appears to be a duplicate",
		},
		"evidence.duplicate_charge_id": {
			Type:             "string",
			ShortDescription: "The Stripe ID for the prior charge which appears to be a duplicate of the disputed charge",
		},
		"evidence.enhanced_evidence.visa_compelling_evidence_3.disputed_transaction.customer_account_id": {
			Type:             "string",
			ShortDescription: "User Account ID used to log into business platform",
		},
		"evidence.enhanced_evidence.visa_compelling_evidence_3.disputed_transaction.customer_device_fingerprint": {
			Type:             "string",
			ShortDescription: "Unique identifier of the cardholder’s device derived from a combination of at least two hardware and software attributes",
		},
		"evidence.enhanced_evidence.visa_compelling_evidence_3.disputed_transaction.customer_device_id": {
			Type:             "string",
			ShortDescription: "Unique identifier of the cardholder’s device such as a device serial number (e.g., International Mobile Equipment Identity [IMEI])",
		},
		"evidence.enhanced_evidence.visa_compelling_evidence_3.disputed_transaction.customer_email_address": {
			Type:             "string",
			ShortDescription: "The email address of the customer",
		},
		"evidence.enhanced_evidence.visa_compelling_evidence_3.disputed_transaction.customer_purchase_ip": {
			Type:             "string",
			ShortDescription: "The IP address that the customer used when making the purchase",
		},
		"evidence.enhanced_evidence.visa_compelling_evidence_3.disputed_transaction.merchandise_or_services": {
			Type:             "string",
			ShortDescription: "Categorization of disputed payment",
			Enum: []resource.EnumSpec{
				{Value: "merchandise"},
				{Value: "services"},
			},
		},
		"evidence.enhanced_evidence.visa_compelling_evidence_3.disputed_transaction.product_description": {
			Type:             "string",
			ShortDescription: "A description of the product or service that was sold",
		},
		"evidence.enhanced_evidence.visa_compelling_evidence_3.disputed_transaction.shipping_address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"evidence.enhanced_evidence.visa_compelling_evidence_3.disputed_transaction.shipping_address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"evidence.enhanced_evidence.visa_compelling_evidence_3.disputed_transaction.shipping_address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"evidence.enhanced_evidence.visa_compelling_evidence_3.disputed_transaction.shipping_address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"evidence.enhanced_evidence.visa_compelling_evidence_3.disputed_transaction.shipping_address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"evidence.enhanced_evidence.visa_compelling_evidence_3.disputed_transaction.shipping_address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"evidence.enhanced_evidence.visa_compliance.fee_acknowledged": {
			Type:             "boolean",
			ShortDescription: "A field acknowledging the fee incurred when countering a Visa compliance dispute",
		},
		"evidence.product_description": {
			Type:             "string",
			ShortDescription: "A description of the product or service that was sold",
		},
		"evidence.receipt": {
			Type:             "string",
			ShortDescription: "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Any receipt or message sent to the customer notifying them of the charge",
		},
		"evidence.refund_policy": {
			Type:             "string",
			ShortDescription: "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Your refund policy, as shown to the customer",
		},
		"evidence.refund_policy_disclosure": {
			Type:             "string",
			ShortDescription: "Documentation demonstrating that the customer was shown your refund policy prior to purchase",
		},
		"evidence.refund_refusal_explanation": {
			Type:             "string",
			ShortDescription: "A justification for why the customer is not entitled to a refund",
		},
		"evidence.service_date": {
			Type:             "string",
			ShortDescription: "The date on which the customer received or began receiving the purchased service, in a clear human-readable format",
		},
		"evidence.service_documentation": {
			Type:             "string",
			ShortDescription: "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Documentation showing proof that a service was provided to the customer",
		},
		"evidence.shipping_address": {
			Type:             "string",
			ShortDescription: "The address to which a physical product was shipped",
		},
		"evidence.shipping_carrier": {
			Type:             "string",
			ShortDescription: "The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc",
		},
		"evidence.shipping_date": {
			Type:             "string",
			ShortDescription: "The date on which a physical product began its route to the shipping address, in a clear human-readable format",
		},
		"evidence.shipping_documentation": {
			Type:             "string",
			ShortDescription: "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Documentation showing proof that a product was shipped to the customer at the same address the customer provided to you",
		},
		"evidence.shipping_tracking_number": {
			Type:             "string",
			ShortDescription: "The tracking number for a physical product, obtained from the delivery service",
		},
		"evidence.uncategorized_file": {
			Type:             "string",
			ShortDescription: "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Any additional evidence or statements",
		},
		"evidence.uncategorized_text": {
			Type:             "string",
			ShortDescription: "Any additional evidence or statements",
		},
		"submit": {
			Type:             "boolean",
			ShortDescription: "Whether to immediately submit evidence to the bank",
			MostCommon:       true,
		},
	},
}
View Source
var V1EntitlementsActiveEntitlementsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/entitlements/active_entitlements",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"customer": {
			Type:             "string",
			ShortDescription: "The ID of the customer",
			Required:         true,
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1EntitlementsActiveEntitlementsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/entitlements/active_entitlements/{id}",
	Method: "GET",
}
View Source
var V1EntitlementsFeaturesCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/entitlements/features",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"lookup_key": {
			Type:             "string",
			ShortDescription: "A unique key you provide as your own system identifier",
			Required:         true,
			MostCommon:       true,
		},
		"name": {
			Type:             "string",
			ShortDescription: "The feature's name, for your own purpose, not meant to be displayable to the customer",
			Required:         true,
			MostCommon:       true,
		},
	},
}
View Source
var V1EntitlementsFeaturesList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/entitlements/features",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"archived": {
			Type:             "boolean",
			ShortDescription: "If set, filter results to only include features with the given archive status",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"lookup_key": {
			Type:             "string",
			ShortDescription: "If set, filter results to only include features with the given lookup_key",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1EntitlementsFeaturesRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/entitlements/features/{id}",
	Method: "GET",
}
View Source
var V1EntitlementsFeaturesUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/entitlements/features/{id}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"active": {
			Type:             "boolean",
			ShortDescription: "Inactive features cannot be attached to new products and will not be returned from the features list endpoint",
		},
		"name": {
			Type:             "string",
			ShortDescription: "The feature's name, for your own purpose, not meant to be displayable to the customer",
			MostCommon:       true,
		},
	},
}
View Source
var V1EphemeralKeysCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/ephemeral_keys",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"customer": {
			Type:             "string",
			ShortDescription: "The ID of the Customer you'd like to modify using the resulting ephemeral key",
			MostCommon:       true,
		},
		"issuing_card": {
			Type:             "string",
			ShortDescription: "The ID of the Issuing Card you'd like to access using the resulting ephemeral key",
			MostCommon:       true,
		},
		"nonce": {
			Type:             "string",
			ShortDescription: "A single-use token, created by Stripe.js, used for creating ephemeral keys for Issuing Cards without exchanging sensitive information",
			MostCommon:       true,
		},
		"verification_session": {
			Type:             "string",
			ShortDescription: "The ID of the Identity VerificationSession you'd like to access using the resulting ephemeral key",
			MostCommon:       true,
		},
	},
}
View Source
var V1EphemeralKeysDelete = resource.OperationSpec{
	Name:   "delete",
	Path:   "/v1/ephemeral_keys/{key}",
	Method: "DELETE",
}
View Source
var V1EventsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/events",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type:             "integer",
			ShortDescription: "Only return events that were created during the given date interval",
		},
		"delivery_success": {
			Type:             "boolean",
			ShortDescription: "Filter events by whether all webhooks were successfully delivered",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"type": {
			Type:             "string",
			ShortDescription: "A string containing a specific event name, or group of events using * as a wildcard",
		},
		"types": {
			Type:             "array",
			ShortDescription: "An array of up to 20 strings containing specific event names",
		},
	},
}
View Source
var V1EventsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/events/{id}",
	Method: "GET",
}
View Source
var V1ExchangeRatesList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/exchange_rates",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1ExchangeRatesRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/exchange_rates/{rate_id}",
	Method: "GET",
}
View Source
var V1ExternalAccountsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/accounts/{account}/external_accounts",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"default_for_currency": {
			Type:             "boolean",
			ShortDescription: "When set to true, or if this is the first external account added in this currency, this account becomes the default external account for its currency",
		},
		"external_account": {
			Type:             "string",
			ShortDescription: "A token, like the ones returned by [Stripe.js](https://docs.stripe.com/js) or a dictionary containing a user's external account details (with the options shown below)",
			Required:         true,
			MostCommon:       true,
		},
	},
}
View Source
var V1ExternalAccountsDelete = resource.OperationSpec{
	Name:   "delete",
	Path:   "/v1/accounts/{account}/external_accounts/{id}",
	Method: "DELETE",
}
View Source
var V1ExternalAccountsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/accounts/{account}/external_accounts",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"object": {
			Type:             "string",
			ShortDescription: "Filter external accounts according to a particular object type",
			Enum: []resource.EnumSpec{
				{Value: "bank_account"},
				{Value: "card"},
			},
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1ExternalAccountsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/accounts/{account}/external_accounts/{id}",
	Method: "GET",
}
View Source
var V1ExternalAccountsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/accounts/{account}/external_accounts/{id}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"account_holder_name": {
			Type:             "string",
			ShortDescription: "The name of the person or business that owns the bank account",
		},
		"account_holder_type": {
			Type:             "string",
			ShortDescription: "The type of entity that holds the account",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"account_type": {
			Type:             "string",
			ShortDescription: "The bank account type",
			Enum: []resource.EnumSpec{
				{Value: "checking"},
				{Value: "futsu"},
				{Value: "savings"},
				{Value: "toza"},
			},
		},
		"address_city": {
			Type:             "string",
			ShortDescription: "City/District/Suburb/Town/Village",
		},
		"address_country": {
			Type:             "string",
			ShortDescription: "Billing address country, if provided when creating card",
		},
		"address_line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (Street address/PO Box/Company name)",
		},
		"address_line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (Apartment/Suite/Unit/Building)",
		},
		"address_state": {
			Type:             "string",
			ShortDescription: "State/County/Province/Region",
		},
		"address_zip": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"default_for_currency": {
			Type:             "boolean",
			ShortDescription: "When set to true, this becomes the default external account for its currency",
			MostCommon:       true,
		},
		"documents.bank_account_ownership_verification.files": {
			Type:             "array",
			ShortDescription: "One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`",
		},
		"exp_month": {
			Type:             "string",
			ShortDescription: "Two digit number representing the card’s expiration month",
		},
		"exp_year": {
			Type:             "string",
			ShortDescription: "Four digit number representing the card’s expiration year",
		},
		"name": {
			Type:             "string",
			ShortDescription: "Cardholder name",
		},
	},
}
View Source
var V1FeeRefundsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/application_fees/{id}/refunds",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "A positive integer, in _cents (or local equivalent)_, representing how much of this fee to refund",
			MostCommon:       true,
		},
	},
}
View Source
var V1FeeRefundsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/application_fees/{id}/refunds",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1FeeRefundsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/application_fees/{fee}/refunds/{id}",
	Method: "GET",
}
View Source
var V1FeeRefundsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/application_fees/{fee}/refunds/{id}",
	Method: "POST",
}
View Source
var V1FileLinksCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/file_links",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"expires_at": {
			Type:             "integer",
			ShortDescription: "The link isn't usable after this future timestamp",
			MostCommon:       true,
			Format:           "unix-time",
		},
		"file": {
			Type:             "string",
			ShortDescription: "The ID of the file",
			Required:         true,
			MostCommon:       true,
		},
	},
}
View Source
var V1FileLinksList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/file_links",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type:             "integer",
			ShortDescription: "Only return links that were created during the given date interval",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"expired": {
			Type:             "boolean",
			ShortDescription: "Filter links by their expiration status",
		},
		"file": {
			Type:             "string",
			ShortDescription: "Only return links for the given file",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1FileLinksRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/file_links/{link}",
	Method: "GET",
}
View Source
var V1FileLinksUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/file_links/{link}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"expires_at": {
			Type:             "string",
			ShortDescription: "A future timestamp after which the link will no longer be usable, or `now` to expire the link immediately",
			MostCommon:       true,
		},
	},
}
View Source
var V1FilesCreate = resource.OperationSpec{
	Name:      "create",
	Path:      "/v1/files",
	Method:    "POST",
	ServerURL: "https://files.stripe.com/",
}
View Source
var V1FilesList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/files",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type:             "integer",
			ShortDescription: "Only return files that were created during the given date interval",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"purpose": {
			Type:             "string",
			ShortDescription: "Filter queries by the file purpose",
			Enum: []resource.EnumSpec{
				{Value: "account_requirement"},
				{Value: "additional_verification"},
				{Value: "business_icon"},
				{Value: "business_logo"},
				{Value: "customer_signature"},
				{Value: "dispute_evidence"},
				{Value: "document_provider_identity_document"},
				{Value: "finance_report_run"},
				{Value: "financial_account_statement"},
				{Value: "identity_document"},
				{Value: "identity_document_downloadable"},
				{Value: "issuing_regulatory_reporting"},
				{Value: "pci_document"},
				{Value: "platform_terms_of_service"},
				{Value: "selfie"},
				{Value: "sigma_scheduled_query"},
				{Value: "tax_document_user_upload"},
				{Value: "terminal_android_apk"},
				{Value: "terminal_reader_splashscreen"},
				{Value: "terminal_wifi_certificate"},
				{Value: "terminal_wifi_private_key"},
			},
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1FilesRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/files/{file}",
	Method: "GET",
}
View Source
var V1FinancialConnectionsAccountsDisconnect = resource.OperationSpec{
	Name:   "disconnect",
	Path:   "/v1/financial_connections/accounts/{account}/disconnect",
	Method: "POST",
}
View Source
var V1FinancialConnectionsAccountsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/financial_connections/accounts",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"session": {
			Type:             "string",
			ShortDescription: "If present, only return accounts that were collected as part of the given session",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1FinancialConnectionsAccountsListOwners = resource.OperationSpec{
	Name:   "list_owners",
	Path:   "/v1/financial_connections/accounts/{account}/owners",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"ownership": {
			Type:             "string",
			ShortDescription: "The ID of the ownership object to fetch owners from",
			Required:         true,
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1FinancialConnectionsAccountsRefresh = resource.OperationSpec{
	Name:   "refresh",
	Path:   "/v1/financial_connections/accounts/{account}/refresh",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"features": {
			Type:             "array",
			ShortDescription: "The list of account features that you would like to refresh",
			Required:         true,
			MostCommon:       true,
		},
	},
}
View Source
var V1FinancialConnectionsAccountsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/financial_connections/accounts/{account}",
	Method: "GET",
}
View Source
var V1FinancialConnectionsAccountsSubscribe = resource.OperationSpec{
	Name:   "subscribe",
	Path:   "/v1/financial_connections/accounts/{account}/subscribe",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"features": {
			Type:             "array",
			ShortDescription: "The list of account features to which you would like to subscribe",
			Required:         true,
			MostCommon:       true,
		},
	},
}
View Source
var V1FinancialConnectionsAccountsUnsubscribe = resource.OperationSpec{
	Name:   "unsubscribe",
	Path:   "/v1/financial_connections/accounts/{account}/unsubscribe",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"features": {
			Type:             "array",
			ShortDescription: "The list of account features from which you would like to unsubscribe",
			Required:         true,
			MostCommon:       true,
		},
	},
}
View Source
var V1FinancialConnectionsSessionsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/financial_connections/sessions",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"account_holder.account": {
			Type:             "string",
			ShortDescription: "The ID of the Stripe account whose accounts you will retrieve",
		},
		"account_holder.customer": {
			Type:             "string",
			ShortDescription: "The ID of the Stripe customer whose accounts you will retrieve",
		},
		"account_holder.customer_account": {
			Type:             "string",
			ShortDescription: "The ID of Account representing a customer whose accounts you will retrieve",
		},
		"account_holder.type": {
			Type:             "string",
			ShortDescription: "Type of account holder to collect accounts for",
			Required:         true,
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "customer"},
			},
		},
		"filters.account_subcategories": {
			Type:             "array",
			ShortDescription: "Restricts the Session to subcategories of accounts that can be linked",
		},
		"filters.countries": {
			Type:             "array",
			ShortDescription: "List of countries from which to collect accounts",
		},
		"permissions": {
			Type:             "array",
			ShortDescription: "List of data features that you would like to request access to",
			Required:         true,
			MostCommon:       true,
		},
		"prefetch": {
			Type:             "array",
			ShortDescription: "List of data features that you would like to retrieve upon account creation",
			MostCommon:       true,
		},
		"return_url": {
			Type:             "string",
			ShortDescription: "For webview integrations only",
			MostCommon:       true,
		},
	},
}
View Source
var V1FinancialConnectionsSessionsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/financial_connections/sessions/{session}",
	Method: "GET",
}
View Source
var V1FinancialConnectionsTransactionsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/financial_connections/transactions",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"account": {
			Type:             "string",
			ShortDescription: "The ID of the Financial Connections Account whose transactions will be retrieved",
			Required:         true,
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"transacted_at": {
			Type:             "integer",
			ShortDescription: "A filter on the list based on the object `transacted_at` field",
		},
	},
}
View Source
var V1FinancialConnectionsTransactionsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/financial_connections/transactions/{transaction}",
	Method: "GET",
}
View Source
var V1ForwardingRequestsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/forwarding/requests",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"payment_method": {
			Type:             "string",
			ShortDescription: "The PaymentMethod to insert into the forwarded request",
			Required:         true,
			MostCommon:       true,
		},
		"replacements": {
			Type:             "array",
			ShortDescription: "The field kinds to be replaced in the forwarded request",
			Required:         true,
			MostCommon:       true,
		},
		"request.body": {
			Type:             "string",
			ShortDescription: "The body payload to send to the destination endpoint",
		},
		"url": {
			Type:             "string",
			ShortDescription: "The destination URL for the forwarded request",
			Required:         true,
			MostCommon:       true,
		},
	},
}
View Source
var V1ForwardingRequestsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/forwarding/requests",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A pagination cursor to fetch the previous page of the list",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A pagination cursor to fetch the next page of the list",
		},
	},
}
View Source
var V1ForwardingRequestsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/forwarding/requests/{id}",
	Method: "GET",
}
View Source
var V1IdentityVerificationReportsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/identity/verification_reports",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"client_reference_id": {
			Type:             "string",
			ShortDescription: "A string to reference this user",
		},
		"created": {
			Type:             "integer",
			ShortDescription: "Only return VerificationReports that were created during the given date interval",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"type": {
			Type:             "string",
			ShortDescription: "Only return VerificationReports of this type",
			Enum: []resource.EnumSpec{
				{Value: "document"},
				{Value: "id_number"},
			},
		},
		"verification_session": {
			Type:             "string",
			ShortDescription: "Only return VerificationReports created by this VerificationSession ID",
		},
	},
}
View Source
var V1IdentityVerificationReportsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/identity/verification_reports/{report}",
	Method: "GET",
}
View Source
var V1IdentityVerificationSessionsCancel = resource.OperationSpec{
	Name:   "cancel",
	Path:   "/v1/identity/verification_sessions/{session}/cancel",
	Method: "POST",
}
View Source
var V1IdentityVerificationSessionsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/identity/verification_sessions",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"client_reference_id": {
			Type:             "string",
			ShortDescription: "A string to reference this user",
			MostCommon:       true,
		},
		"options.document.allowed_types": {
			Type:             "array",
			ShortDescription: "Array of strings of allowed identity document types",
		},
		"options.document.require_id_number": {
			Type:             "boolean",
			ShortDescription: "Collect an ID number and perform an [ID number check](https://docs.stripe.com/identity/verification-checks?type=id-number) with the document’s extracted name and date of birth",
		},
		"options.document.require_live_capture": {
			Type:             "boolean",
			ShortDescription: "Disable image uploads, identity document images have to be captured using the device’s camera",
		},
		"options.document.require_matching_selfie": {
			Type:             "boolean",
			ShortDescription: "Capture a face image and perform a [selfie check](https://docs.stripe.com/identity/verification-checks?type=selfie) comparing a photo ID and a picture of your user’s face",
		},
		"provided_details.email": {
			Type:             "string",
			ShortDescription: "Email of user being verified",
		},
		"provided_details.phone": {
			Type:             "string",
			ShortDescription: "Phone number of user being verified",
		},
		"related_customer": {
			Type:             "string",
			ShortDescription: "Customer ID",
			MostCommon:       true,
		},
		"related_customer_account": {
			Type:             "string",
			ShortDescription: "The ID of the Account representing a customer",
			MostCommon:       true,
		},
		"related_person.account": {
			Type:             "string",
			ShortDescription: "A token representing a connected account",
			MostCommon:       true,
		},
		"related_person.person": {
			Type:             "string",
			ShortDescription: "A token referencing a Person resource that this verification is being used to verify",
			MostCommon:       true,
		},
		"return_url": {
			Type:             "string",
			ShortDescription: "The URL that the user will be redirected to upon completing the verification flow",
			MostCommon:       true,
		},
		"type": {
			Type:             "string",
			ShortDescription: "The type of [verification check](https://docs.stripe.com/identity/verification-checks) to be performed",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "document"},
				{Value: "id_number"},
			},
		},
		"verification_flow": {
			Type:             "string",
			ShortDescription: "The ID of a verification flow from the Dashboard",
			MostCommon:       true,
		},
	},
}
View Source
var V1IdentityVerificationSessionsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/identity/verification_sessions",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"client_reference_id": {
			Type:             "string",
			ShortDescription: "A string to reference this user",
		},
		"created": {
			Type:             "integer",
			ShortDescription: "Only return VerificationSessions that were created during the given date interval",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"related_customer": {
			Type:             "string",
			ShortDescription: "Customer ID",
		},
		"related_customer_account": {
			Type:             "string",
			ShortDescription: "The ID of the Account representing a customer",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"status": {
			Type:             "string",
			ShortDescription: "Only return VerificationSessions with this status",
			Enum: []resource.EnumSpec{
				{Value: "canceled"},
				{Value: "processing"},
				{Value: "requires_input"},
				{Value: "verified"},
			},
		},
	},
}
View Source
var V1IdentityVerificationSessionsRedact = resource.OperationSpec{
	Name:   "redact",
	Path:   "/v1/identity/verification_sessions/{session}/redact",
	Method: "POST",
}
View Source
var V1IdentityVerificationSessionsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/identity/verification_sessions/{session}",
	Method: "GET",
}
View Source
var V1IdentityVerificationSessionsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/identity/verification_sessions/{session}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"options.document.allowed_types": {
			Type:             "array",
			ShortDescription: "Array of strings of allowed identity document types",
		},
		"options.document.require_id_number": {
			Type:             "boolean",
			ShortDescription: "Collect an ID number and perform an [ID number check](https://docs.stripe.com/identity/verification-checks?type=id-number) with the document’s extracted name and date of birth",
		},
		"options.document.require_live_capture": {
			Type:             "boolean",
			ShortDescription: "Disable image uploads, identity document images have to be captured using the device’s camera",
		},
		"options.document.require_matching_selfie": {
			Type:             "boolean",
			ShortDescription: "Capture a face image and perform a [selfie check](https://docs.stripe.com/identity/verification-checks?type=selfie) comparing a photo ID and a picture of your user’s face",
		},
		"provided_details.email": {
			Type:             "string",
			ShortDescription: "Email of user being verified",
		},
		"provided_details.phone": {
			Type:             "string",
			ShortDescription: "Phone number of user being verified",
		},
		"type": {
			Type:             "string",
			ShortDescription: "The type of [verification check](https://docs.stripe.com/identity/verification-checks) to be performed",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "document"},
				{Value: "id_number"},
			},
		},
	},
}
View Source
var V1InvoiceLineItemsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/invoices/{invoice}/lines",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1InvoiceLineItemsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/invoices/{invoice}/lines/{line_item_id}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "The integer amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice",
			MostCommon:       true,
		},
		"description": {
			Type:             "string",
			ShortDescription: "An arbitrary string which you can attach to the invoice item",
			MostCommon:       true,
		},
		"discountable": {
			Type:             "boolean",
			ShortDescription: "Controls whether discounts apply to this line item",
		},
		"period.end": {
			Type:             "integer",
			ShortDescription: "The end of the period, which must be greater than or equal to the start",
			MostCommon:       true,
			Format:           "unix-time",
		},
		"period.start": {
			Type:             "integer",
			ShortDescription: "The start of the period",
			MostCommon:       true,
			Format:           "unix-time",
		},
		"price_data.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Format:           "currency",
		},
		"price_data.product": {
			Type:             "string",
			ShortDescription: "The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to",
		},
		"price_data.product_data.description": {
			Type:             "string",
			ShortDescription: "The product's description, meant to be displayable to the customer",
		},
		"price_data.product_data.images": {
			Type:             "array",
			ShortDescription: "A list of up to 8 URLs of images for this product, meant to be displayable to the customer",
		},
		"price_data.product_data.name": {
			Type:             "string",
			ShortDescription: "The product's name, meant to be displayable to the customer",
		},
		"price_data.product_data.tax_code": {
			Type:             "string",
			ShortDescription: "A [tax code](https://docs.stripe.com/tax/tax-categories) ID",
		},
		"price_data.product_data.unit_label": {
			Type:             "string",
			ShortDescription: "A label that represents units of this product",
		},
		"price_data.tax_behavior": {
			Type:             "string",
			ShortDescription: "Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings",
			Enum: []resource.EnumSpec{
				{Value: "exclusive"},
				{Value: "inclusive"},
				{Value: "unspecified"},
			},
		},
		"price_data.unit_amount": {
			Type:             "integer",
			ShortDescription: "A non-negative integer in cents (or local equivalent) representing how much to charge",
		},
		"price_data.unit_amount_decimal": {
			Type:             "string",
			ShortDescription: "Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places",
			Format:           "decimal",
		},
		"pricing.price": {
			Type:             "string",
			ShortDescription: "The ID of the price object",
		},
		"quantity": {
			Type:             "integer",
			ShortDescription: "Non-negative integer",
		},
		"quantity_decimal": {
			Type:             "string",
			ShortDescription: "Non-negative decimal with at most 12 decimal places",
			MostCommon:       true,
			Format:           "decimal",
		},
		"tax_rates": {
			Type:             "array",
			ShortDescription: "The tax rates which apply to the line item",
		},
	},
}
View Source
var V1InvoicePaymentsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/invoice_payments",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type:             "integer",
			ShortDescription: "Only return invoice payments that were created during the given date interval",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"invoice": {
			Type:             "string",
			ShortDescription: "The identifier of the invoice whose payments to return",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"status": {
			Type:             "string",
			ShortDescription: "The status of the invoice payments to return",
			Enum: []resource.EnumSpec{
				{Value: "canceled"},
				{Value: "open"},
				{Value: "paid"},
			},
		},
	},
}
View Source
var V1InvoicePaymentsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/invoice_payments/{invoice_payment}",
	Method: "GET",
}
View Source
var V1InvoiceRenderingTemplatesArchive = resource.OperationSpec{
	Name:   "archive",
	Path:   "/v1/invoice_rendering_templates/{template}/archive",
	Method: "POST",
}
View Source
var V1InvoiceRenderingTemplatesList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/invoice_rendering_templates",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"status": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "active"},
				{Value: "archived"},
			},
		},
	},
}
View Source
var V1InvoiceRenderingTemplatesRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/invoice_rendering_templates/{template}",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"version": {
			Type: "integer",
		},
	},
}
View Source
var V1InvoiceRenderingTemplatesUnarchive = resource.OperationSpec{
	Name:   "unarchive",
	Path:   "/v1/invoice_rendering_templates/{template}/unarchive",
	Method: "POST",
}
View Source
var V1InvoiceitemsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/invoiceitems",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "The integer amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice",
			MostCommon:       true,
		},
		"currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			MostCommon:       true,
			Format:           "currency",
		},
		"customer": {
			Type:             "string",
			ShortDescription: "The ID of the customer to bill for this invoice item",
			MostCommon:       true,
		},
		"customer_account": {
			Type:             "string",
			ShortDescription: "The ID of the account representing the customer to bill for this invoice item",
			MostCommon:       true,
		},
		"description": {
			Type:             "string",
			ShortDescription: "An arbitrary string which you can attach to the invoice item",
			MostCommon:       true,
		},
		"discountable": {
			Type:             "boolean",
			ShortDescription: "Controls whether discounts apply to this invoice item",
		},
		"invoice": {
			Type:             "string",
			ShortDescription: "The ID of an existing invoice to add this invoice item to",
		},
		"period.end": {
			Type:             "integer",
			ShortDescription: "The end of the period, which must be greater than or equal to the start",
			MostCommon:       true,
			Format:           "unix-time",
		},
		"period.start": {
			Type:             "integer",
			ShortDescription: "The start of the period",
			MostCommon:       true,
			Format:           "unix-time",
		},
		"price_data.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Format:           "currency",
		},
		"price_data.product": {
			Type:             "string",
			ShortDescription: "The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to",
		},
		"price_data.tax_behavior": {
			Type:             "string",
			ShortDescription: "Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings",
			Enum: []resource.EnumSpec{
				{Value: "exclusive"},
				{Value: "inclusive"},
				{Value: "unspecified"},
			},
		},
		"price_data.unit_amount": {
			Type:             "integer",
			ShortDescription: "A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge",
		},
		"price_data.unit_amount_decimal": {
			Type:             "string",
			ShortDescription: "Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places",
			Format:           "decimal",
		},
		"pricing.price": {
			Type:             "string",
			ShortDescription: "The ID of the price object",
		},
		"quantity": {
			Type:             "integer",
			ShortDescription: "Non-negative integer",
		},
		"quantity_decimal": {
			Type:             "string",
			ShortDescription: "Non-negative decimal with at most 12 decimal places",
			Format:           "decimal",
		},
		"subscription": {
			Type:             "string",
			ShortDescription: "The ID of a subscription to add this invoice item to",
		},
		"tax_behavior": {
			Type:             "string",
			ShortDescription: "Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings",
			Enum: []resource.EnumSpec{
				{Value: "exclusive"},
				{Value: "inclusive"},
				{Value: "unspecified"},
			},
		},
		"tax_code": {
			Type:             "string",
			ShortDescription: "A [tax code](https://docs.stripe.com/tax/tax-categories) ID",
		},
		"tax_rates": {
			Type:             "array",
			ShortDescription: "The tax rates which apply to the invoice item",
		},
		"unit_amount_decimal": {
			Type:             "string",
			ShortDescription: "The decimal unit amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice",
			Format:           "decimal",
		},
	},
}
View Source
var V1InvoiceitemsDelete = resource.OperationSpec{
	Name:   "delete",
	Path:   "/v1/invoiceitems/{invoiceitem}",
	Method: "DELETE",
}
View Source
var V1InvoiceitemsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/invoiceitems",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type:             "integer",
			ShortDescription: "Only return invoice items that were created during the given date interval",
		},
		"customer": {
			Type:             "string",
			ShortDescription: "The identifier of the customer whose invoice items to return",
		},
		"customer_account": {
			Type:             "string",
			ShortDescription: "The identifier of the account representing the customer whose invoice items to return",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"invoice": {
			Type:             "string",
			ShortDescription: "Only return invoice items belonging to this invoice",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"pending": {
			Type:             "boolean",
			ShortDescription: "Set to `true` to only show pending invoice items, which are not yet attached to any invoices",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1InvoiceitemsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/invoiceitems/{invoiceitem}",
	Method: "GET",
}
View Source
var V1InvoiceitemsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/invoiceitems/{invoiceitem}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "The integer amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice",
			MostCommon:       true,
		},
		"description": {
			Type:             "string",
			ShortDescription: "An arbitrary string which you can attach to the invoice item",
			MostCommon:       true,
		},
		"discountable": {
			Type:             "boolean",
			ShortDescription: "Controls whether discounts apply to this invoice item",
		},
		"period.end": {
			Type:             "integer",
			ShortDescription: "The end of the period, which must be greater than or equal to the start",
			MostCommon:       true,
			Format:           "unix-time",
		},
		"period.start": {
			Type:             "integer",
			ShortDescription: "The start of the period",
			MostCommon:       true,
			Format:           "unix-time",
		},
		"price_data.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Format:           "currency",
		},
		"price_data.product": {
			Type:             "string",
			ShortDescription: "The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to",
		},
		"price_data.tax_behavior": {
			Type:             "string",
			ShortDescription: "Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings",
			Enum: []resource.EnumSpec{
				{Value: "exclusive"},
				{Value: "inclusive"},
				{Value: "unspecified"},
			},
		},
		"price_data.unit_amount": {
			Type:             "integer",
			ShortDescription: "A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge",
		},
		"price_data.unit_amount_decimal": {
			Type:             "string",
			ShortDescription: "Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places",
			Format:           "decimal",
		},
		"pricing.price": {
			Type:             "string",
			ShortDescription: "The ID of the price object",
		},
		"quantity": {
			Type:             "integer",
			ShortDescription: "Non-negative integer",
		},
		"quantity_decimal": {
			Type:             "string",
			ShortDescription: "Non-negative decimal with at most 12 decimal places",
			Format:           "decimal",
		},
		"tax_behavior": {
			Type:             "string",
			ShortDescription: "Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings",
			Enum: []resource.EnumSpec{
				{Value: "exclusive"},
				{Value: "inclusive"},
				{Value: "unspecified"},
			},
		},
		"tax_code": {
			Type:             "string",
			ShortDescription: "A [tax code](https://docs.stripe.com/tax/tax-categories) ID",
		},
		"tax_rates": {
			Type:             "array",
			ShortDescription: "The tax rates which apply to the invoice item",
		},
		"unit_amount_decimal": {
			Type:             "string",
			ShortDescription: "The decimal unit amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice",
			Format:           "decimal",
		},
	},
}
View Source
var V1InvoicesAddLines = resource.OperationSpec{
	Name:   "add_lines",
	Path:   "/v1/invoices/{invoice}/add_lines",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"invoice_metadata": {
			Type:       "clearable_object",
			MostCommon: true,
		},
	},
}
View Source
var V1InvoicesAttachPayment = resource.OperationSpec{
	Name:   "attach_payment",
	Path:   "/v1/invoices/{invoice}/attach_payment",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"payment_intent": {
			Type:             "string",
			ShortDescription: "The ID of the PaymentIntent to attach to the invoice",
			MostCommon:       true,
		},
		"payment_record": {
			Type:             "string",
			ShortDescription: "The ID of the PaymentRecord to attach to the invoice",
			MostCommon:       true,
		},
	},
}
View Source
var V1InvoicesCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/invoices",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"account_tax_ids": {
			Type:             "array",
			ShortDescription: "The account tax IDs associated with the invoice",
		},
		"application_fee_amount": {
			Type:             "integer",
			ShortDescription: "A fee in cents (or local equivalent) that will be applied to the invoice and transferred to the application owner's Stripe account",
		},
		"auto_advance": {
			Type:             "boolean",
			ShortDescription: "Controls whether Stripe performs [automatic collection](https://docs.stripe.com/invoicing/integration/automatic-advancement-collection) of the invoice",
			MostCommon:       true,
		},
		"automatic_tax.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether Stripe automatically computes tax on this invoice",
			MostCommon:       true,
		},
		"automatic_tax.liability.account": {
			Type:             "string",
			ShortDescription: "The connected account being referenced when `type` is `account`",
		},
		"automatic_tax.liability.type": {
			Type:             "string",
			ShortDescription: "Type of the account referenced in the request",
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"automatically_finalizes_at": {
			Type:             "integer",
			ShortDescription: "The time when this invoice should be scheduled to finalize (up to 5 years in the future)",
			Format:           "unix-time",
		},
		"collection_method": {
			Type:             "string",
			ShortDescription: "Either `charge_automatically`, or `send_invoice`",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "charge_automatically"},
				{Value: "send_invoice"},
			},
		},
		"currency": {
			Type:             "string",
			ShortDescription: "The currency to create this invoice in",
			Format:           "currency",
		},
		"customer": {
			Type:             "string",
			ShortDescription: "The ID of the customer to bill",
			MostCommon:       true,
		},
		"customer_account": {
			Type:             "string",
			ShortDescription: "The ID of the account to bill",
			MostCommon:       true,
		},
		"days_until_due": {
			Type:             "integer",
			ShortDescription: "The number of days from when the invoice is created until it is due",
		},
		"default_payment_method": {
			Type:             "string",
			ShortDescription: "ID of the default payment method for the invoice",
		},
		"default_source": {
			Type:             "string",
			ShortDescription: "ID of the default payment source for the invoice",
		},
		"default_tax_rates": {
			Type:             "array",
			ShortDescription: "The tax rates that will apply to any line item that does not have `tax_rates` set",
		},
		"description": {
			Type:             "string",
			ShortDescription: "An arbitrary string attached to the object",
			MostCommon:       true,
		},
		"due_date": {
			Type:             "integer",
			ShortDescription: "The date on which payment for this invoice is due",
			Format:           "unix-time",
		},
		"effective_at": {
			Type:             "integer",
			ShortDescription: "The date when this invoice is in effect",
			Format:           "unix-time",
		},
		"footer": {
			Type:             "string",
			ShortDescription: "Footer to be displayed on the invoice",
		},
		"from_invoice.action": {
			Type:             "string",
			ShortDescription: "The relation between the new invoice and the original invoice",
			Enum: []resource.EnumSpec{
				{Value: "revision"},
			},
		},
		"from_invoice.invoice": {
			Type:             "string",
			ShortDescription: "The `id` of the invoice that will be cloned",
		},
		"issuer.account": {
			Type:             "string",
			ShortDescription: "The connected account being referenced when `type` is `account`",
		},
		"issuer.type": {
			Type:             "string",
			ShortDescription: "Type of the account referenced in the request",
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"number": {
			Type:             "string",
			ShortDescription: "Set the number for this invoice",
		},
		"on_behalf_of": {
			Type:             "string",
			ShortDescription: "The account (if any) for which the funds of the invoice payment are intended",
		},
		"payment_settings.default_mandate": {
			Type:             "string",
			ShortDescription: "ID of the mandate to be used for this invoice",
		},
		"payment_settings.payment_method_options.acss_debit.mandate_options.transaction_type": {
			Type:             "string",
			ShortDescription: "Transaction type of the mandate",
			Enum: []resource.EnumSpec{
				{Value: "business"},
				{Value: "personal"},
			},
		},
		"payment_settings.payment_method_options.acss_debit.verification_method": {
			Type:             "string",
			ShortDescription: "Verification method for the intent",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "instant"},
				{Value: "microdeposits"},
			},
		},
		"payment_settings.payment_method_options.bancontact.preferred_language": {
			Type:             "string",
			ShortDescription: "Preferred language of the Bancontact authorization page that the customer is redirected to",
			Enum: []resource.EnumSpec{
				{Value: "de"},
				{Value: "en"},
				{Value: "fr"},
				{Value: "nl"},
			},
		},
		"payment_settings.payment_method_options.card.installments.enabled": {
			Type:             "boolean",
			ShortDescription: "Setting to true enables installments for this invoice",
		},
		"payment_settings.payment_method_options.card.installments.plan.count": {
			Type:             "integer",
			ShortDescription: "For `fixed_count` installment plans, this is required",
		},
		"payment_settings.payment_method_options.card.installments.plan.interval": {
			Type:             "string",
			ShortDescription: "For `fixed_count` installment plans, this is required",
			Enum: []resource.EnumSpec{
				{Value: "month"},
			},
		},
		"payment_settings.payment_method_options.card.installments.plan.type": {
			Type:             "string",
			ShortDescription: "Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`",
			Enum: []resource.EnumSpec{
				{Value: "bonus"},
				{Value: "fixed_count"},
				{Value: "revolving"},
			},
		},
		"payment_settings.payment_method_options.card.request_three_d_secure": {
			Type:             "string",
			ShortDescription: "We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication)",
			Enum: []resource.EnumSpec{
				{Value: "any"},
				{Value: "automatic"},
				{Value: "challenge"},
			},
		},
		"payment_settings.payment_method_options.customer_balance.bank_transfer.eu_bank_transfer.country": {
			Type:             "string",
			ShortDescription: "The desired country code of the bank account information",
		},
		"payment_settings.payment_method_options.customer_balance.bank_transfer.type": {
			Type:             "string",
			ShortDescription: "The bank transfer type that can be used for funding",
		},
		"payment_settings.payment_method_options.customer_balance.funding_type": {
			Type:             "string",
			ShortDescription: "The funding method type to be used when there are not enough funds in the customer balance",
		},
		"payment_settings.payment_method_options.payto.mandate_options.amount": {
			Type:             "integer",
			ShortDescription: "The maximum amount that can be collected in a single invoice",
		},
		"payment_settings.payment_method_options.payto.mandate_options.purpose": {
			Type:             "string",
			ShortDescription: "The purpose for which payments are made",
			Enum: []resource.EnumSpec{
				{Value: "dependant_support"},
				{Value: "government"},
				{Value: "loan"},
				{Value: "mortgage"},
				{Value: "other"},
				{Value: "pension"},
				{Value: "personal"},
				{Value: "retail"},
				{Value: "salary"},
				{Value: "tax"},
				{Value: "utility"},
			},
		},
		"payment_settings.payment_method_options.us_bank_account.financial_connections.filters.account_subcategories": {
			Type:             "array",
			ShortDescription: "The account subcategories to use to filter for selectable accounts",
		},
		"payment_settings.payment_method_options.us_bank_account.financial_connections.permissions": {
			Type:             "array",
			ShortDescription: "The list of permissions to request",
		},
		"payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch": {
			Type:             "array",
			ShortDescription: "List of data features that you would like to retrieve upon account creation",
		},
		"payment_settings.payment_method_options.us_bank_account.verification_method": {
			Type:             "string",
			ShortDescription: "Verification method for the intent",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "instant"},
				{Value: "microdeposits"},
			},
		},
		"payment_settings.payment_method_types": {
			Type:             "array",
			ShortDescription: "The list of payment method types (e.g. card) to provide to the invoice’s PaymentIntent",
		},
		"pending_invoice_items_behavior": {
			Type:             "string",
			ShortDescription: "How to handle pending invoice items on invoice creation",
			Enum: []resource.EnumSpec{
				{Value: "exclude"},
				{Value: "include"},
			},
		},
		"rendering.amount_tax_display": {
			Type:             "string",
			ShortDescription: "How line-item prices and amounts will be displayed with respect to tax on invoice PDFs",
			Enum: []resource.EnumSpec{
				{Value: "exclude_tax"},
				{Value: "include_inclusive_tax"},
			},
		},
		"rendering.pdf.page_size": {
			Type:             "string",
			ShortDescription: "Page size for invoice PDF",
			Enum: []resource.EnumSpec{
				{Value: "a4"},
				{Value: "auto"},
				{Value: "letter"},
			},
		},
		"rendering.template": {
			Type:             "string",
			ShortDescription: "ID of the invoice rendering template to use for this invoice",
		},
		"rendering.template_version": {
			Type:             "integer",
			ShortDescription: "The specific version of invoice rendering template to use for this invoice",
		},
		"shipping_cost.shipping_rate": {
			Type:             "string",
			ShortDescription: "The ID of the shipping rate to use for this order",
		},
		"shipping_cost.shipping_rate_data.delivery_estimate.maximum.unit": {
			Type:             "string",
			ShortDescription: "A unit of time",
			Enum: []resource.EnumSpec{
				{Value: "business_day"},
				{Value: "day"},
				{Value: "hour"},
				{Value: "month"},
				{Value: "week"},
			},
		},
		"shipping_cost.shipping_rate_data.delivery_estimate.maximum.value": {
			Type:             "integer",
			ShortDescription: "Must be greater than 0",
		},
		"shipping_cost.shipping_rate_data.delivery_estimate.minimum.unit": {
			Type:             "string",
			ShortDescription: "A unit of time",
			Enum: []resource.EnumSpec{
				{Value: "business_day"},
				{Value: "day"},
				{Value: "hour"},
				{Value: "month"},
				{Value: "week"},
			},
		},
		"shipping_cost.shipping_rate_data.delivery_estimate.minimum.value": {
			Type:             "integer",
			ShortDescription: "Must be greater than 0",
		},
		"shipping_cost.shipping_rate_data.display_name": {
			Type:             "string",
			ShortDescription: "The name of the shipping rate, meant to be displayable to the customer",
		},
		"shipping_cost.shipping_rate_data.fixed_amount.amount": {
			Type:             "integer",
			ShortDescription: "A non-negative integer in cents representing how much to charge",
		},
		"shipping_cost.shipping_rate_data.fixed_amount.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Format:           "currency",
		},
		"shipping_cost.shipping_rate_data.tax_behavior": {
			Type:             "string",
			ShortDescription: "Specifies whether the rate is considered inclusive of taxes or exclusive of taxes",
			Enum: []resource.EnumSpec{
				{Value: "exclusive"},
				{Value: "inclusive"},
				{Value: "unspecified"},
			},
		},
		"shipping_cost.shipping_rate_data.tax_code": {
			Type:             "string",
			ShortDescription: "A [tax code](https://docs.stripe.com/tax/tax-categories) ID",
		},
		"shipping_cost.shipping_rate_data.type": {
			Type:             "string",
			ShortDescription: "The type of calculation to use on the shipping rate",
			Enum: []resource.EnumSpec{
				{Value: "fixed_amount"},
			},
		},
		"shipping_details.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"shipping_details.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"shipping_details.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"shipping_details.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"shipping_details.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"shipping_details.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"shipping_details.name": {
			Type:             "string",
			ShortDescription: "Recipient name",
		},
		"shipping_details.phone": {
			Type:             "string",
			ShortDescription: "Recipient phone (including extension)",
		},
		"statement_descriptor": {
			Type:             "string",
			ShortDescription: "Extra information about a charge for the customer's credit card statement",
		},
		"subscription": {
			Type:             "string",
			ShortDescription: "The ID of the subscription to invoice, if any",
			MostCommon:       true,
		},
		"transfer_data.amount": {
			Type:             "integer",
			ShortDescription: "The amount that will be transferred automatically when the invoice is paid",
		},
		"transfer_data.destination": {
			Type:             "string",
			ShortDescription: "ID of an existing, connected Stripe account",
		},
	},
}
View Source
var V1InvoicesCreatePreview = resource.OperationSpec{
	Name:   "create_preview",
	Path:   "/v1/invoices/create_preview",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"automatic_tax.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether Stripe automatically computes tax on this invoice",
			MostCommon:       true,
		},
		"automatic_tax.liability.account": {
			Type:             "string",
			ShortDescription: "The connected account being referenced when `type` is `account`",
		},
		"automatic_tax.liability.type": {
			Type:             "string",
			ShortDescription: "Type of the account referenced in the request",
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"currency": {
			Type:             "string",
			ShortDescription: "The currency to preview this invoice in",
			Format:           "currency",
		},
		"customer": {
			Type:             "string",
			ShortDescription: "The identifier of the customer whose upcoming invoice you're retrieving",
			MostCommon:       true,
		},
		"customer_account": {
			Type:             "string",
			ShortDescription: "The identifier of the account representing the customer whose upcoming invoice you're retrieving",
			MostCommon:       true,
		},
		"customer_details.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"customer_details.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"customer_details.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"customer_details.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"customer_details.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"customer_details.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"customer_details.shipping.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"customer_details.shipping.address.country": {
			Type:             "string",
			ShortDescription: "A freeform text field for the country",
		},
		"customer_details.shipping.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"customer_details.shipping.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"customer_details.shipping.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"customer_details.shipping.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"customer_details.shipping.name": {
			Type:             "string",
			ShortDescription: "Customer name",
		},
		"customer_details.shipping.phone": {
			Type:             "string",
			ShortDescription: "Customer phone (including extension)",
		},
		"customer_details.tax.ip_address": {
			Type:             "string",
			ShortDescription: "A recent IP address of the customer used for tax reporting and tax location inference",
		},
		"customer_details.tax_exempt": {
			Type:             "string",
			ShortDescription: "The customer's tax exemption",
			Enum: []resource.EnumSpec{
				{Value: "exempt"},
				{Value: "none"},
				{Value: "reverse"},
			},
		},
		"issuer.account": {
			Type:             "string",
			ShortDescription: "The connected account being referenced when `type` is `account`",
		},
		"issuer.type": {
			Type:             "string",
			ShortDescription: "Type of the account referenced in the request",
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"on_behalf_of": {
			Type:             "string",
			ShortDescription: "The account (if any) for which the funds of the invoice payment are intended",
		},
		"preview_mode": {
			Type:             "string",
			ShortDescription: "Customizes the types of values to include when calculating the invoice",
			Enum: []resource.EnumSpec{
				{Value: "next"},
				{Value: "recurring"},
			},
		},
		"schedule": {
			Type:             "string",
			ShortDescription: "The identifier of the schedule whose upcoming invoice you'd like to retrieve",
		},
		"schedule_details.billing_mode.flexible.proration_discounts": {
			Type:             "string",
			ShortDescription: "Controls how invoices and invoice items display proration amounts and discount amounts",
			Enum: []resource.EnumSpec{
				{Value: "included"},
				{Value: "itemized"},
			},
		},
		"schedule_details.billing_mode.type": {
			Type:             "string",
			ShortDescription: "Controls the calculation and orchestration of prorations and invoices for subscriptions",
			Enum: []resource.EnumSpec{
				{Value: "classic"},
				{Value: "flexible"},
			},
		},
		"schedule_details.end_behavior": {
			Type:             "string",
			ShortDescription: "Behavior of the subscription schedule and underlying subscription when it ends",
			Enum: []resource.EnumSpec{
				{Value: "cancel"},
				{Value: "release"},
			},
		},
		"schedule_details.proration_behavior": {
			Type:             "string",
			ShortDescription: "In cases where the `schedule_details` params update the currently active phase, specifies if and how to prorate at the time of the request",
			Enum: []resource.EnumSpec{
				{Value: "always_invoice"},
				{Value: "create_prorations"},
				{Value: "none"},
			},
		},
		"subscription": {
			Type:             "string",
			ShortDescription: "The identifier of the subscription for which you'd like to retrieve the upcoming invoice",
			MostCommon:       true,
		},
		"subscription_details.billing_cycle_anchor": {
			Type:             "string",
			ShortDescription: "For new subscriptions, a future timestamp to anchor the subscription's [billing cycle](https://docs.stripe.com/subscriptions/billing-cycle)",
		},
		"subscription_details.billing_mode.flexible.proration_discounts": {
			Type:             "string",
			ShortDescription: "Controls how invoices and invoice items display proration amounts and discount amounts",
			Enum: []resource.EnumSpec{
				{Value: "included"},
				{Value: "itemized"},
			},
		},
		"subscription_details.billing_mode.type": {
			Type:             "string",
			ShortDescription: "Controls the calculation and orchestration of prorations and invoices for subscriptions",
			Enum: []resource.EnumSpec{
				{Value: "classic"},
				{Value: "flexible"},
			},
		},
		"subscription_details.cancel_at": {
			Type:             "integer",
			ShortDescription: "A timestamp at which the subscription should cancel",
		},
		"subscription_details.cancel_at_period_end": {
			Type:             "boolean",
			ShortDescription: "Indicate whether this subscription should cancel at the end of the current period (`current_period_end`)",
		},
		"subscription_details.cancel_now": {
			Type:             "boolean",
			ShortDescription: "This simulates the subscription being canceled or expired immediately",
		},
		"subscription_details.default_tax_rates": {
			Type:             "array",
			ShortDescription: "If provided, the invoice returned will preview updating or creating a subscription with these default tax rates",
		},
		"subscription_details.proration_behavior": {
			Type:             "string",
			ShortDescription: "Determines how to handle [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes",
			Enum: []resource.EnumSpec{
				{Value: "always_invoice"},
				{Value: "create_prorations"},
				{Value: "none"},
			},
		},
		"subscription_details.proration_date": {
			Type:             "integer",
			ShortDescription: "If previewing an update to a subscription, and doing proration, `subscription_details.proration_date` forces the proration to be calculated as though the update was done at the specified time",
			Format:           "unix-time",
		},
		"subscription_details.resume_at": {
			Type:             "string",
			ShortDescription: "For paused subscriptions, setting `subscription_details.resume_at` to `now` will preview the invoice that will be generated if the subscription is resumed",
			Enum: []resource.EnumSpec{
				{Value: "now"},
			},
		},
		"subscription_details.start_date": {
			Type:             "integer",
			ShortDescription: "Date a subscription is intended to start (can be future or past)",
			Format:           "unix-time",
		},
		"subscription_details.trial_end": {
			Type:             "string",
			ShortDescription: "If provided, the invoice returned will preview updating or creating a subscription with that trial end",
		},
	},
}
View Source
var V1InvoicesDelete = resource.OperationSpec{
	Name:   "delete",
	Path:   "/v1/invoices/{invoice}",
	Method: "DELETE",
}
View Source
var V1InvoicesFinalizeInvoice = resource.OperationSpec{
	Name:   "finalize_invoice",
	Path:   "/v1/invoices/{invoice}/finalize",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"auto_advance": {
			Type:             "boolean",
			ShortDescription: "Controls whether Stripe performs [automatic collection](https://docs.stripe.com/invoicing/integration/automatic-advancement-collection) of the invoice",
			MostCommon:       true,
		},
	},
}
View Source
var V1InvoicesList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/invoices",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"collection_method": {
			Type:             "string",
			ShortDescription: "The collection method of the invoice to retrieve",
			Enum: []resource.EnumSpec{
				{Value: "charge_automatically"},
				{Value: "send_invoice"},
			},
		},
		"created": {
			Type:             "integer",
			ShortDescription: "Only return invoices that were created during the given date interval",
		},
		"customer": {
			Type:             "string",
			ShortDescription: "Only return invoices for the customer specified by this customer ID",
		},
		"customer_account": {
			Type:             "string",
			ShortDescription: "Only return invoices for the account representing the customer specified by this account ID",
		},
		"due_date": {
			Type: "integer",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"status": {
			Type:             "string",
			ShortDescription: "The status of the invoice, one of `draft`, `open`, `paid`, `uncollectible`, or `void`",
			Enum: []resource.EnumSpec{
				{Value: "draft"},
				{Value: "open"},
				{Value: "paid"},
				{Value: "uncollectible"},
				{Value: "void"},
			},
		},
		"subscription": {
			Type:             "string",
			ShortDescription: "Only return invoices for the subscription specified by this subscription ID",
		},
	},
}
View Source
var V1InvoicesMarkUncollectible = resource.OperationSpec{
	Name:   "mark_uncollectible",
	Path:   "/v1/invoices/{invoice}/mark_uncollectible",
	Method: "POST",
}
View Source
var V1InvoicesPay = resource.OperationSpec{
	Name:   "pay",
	Path:   "/v1/invoices/{invoice}/pay",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"forgive": {
			Type:             "boolean",
			ShortDescription: "In cases where the source used to pay the invoice has insufficient funds, passing `forgive=true` controls whether a charge should be attempted for the full amount available on the source, up to the amount to fully pay the invoice",
		},
		"mandate": {
			Type:             "string",
			ShortDescription: "ID of the mandate to be used for this invoice",
		},
		"off_session": {
			Type:             "boolean",
			ShortDescription: "Indicates if a customer is on or off-session while an invoice payment is attempted",
		},
		"paid_out_of_band": {
			Type:             "boolean",
			ShortDescription: "Boolean representing whether an invoice is paid outside of Stripe",
		},
		"payment_method": {
			Type:             "string",
			ShortDescription: "A PaymentMethod to be charged",
		},
		"source": {
			Type:             "string",
			ShortDescription: "A payment source to be charged",
		},
	},
}
View Source
var V1InvoicesRemoveLines = resource.OperationSpec{
	Name:   "remove_lines",
	Path:   "/v1/invoices/{invoice}/remove_lines",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"invoice_metadata": {
			Type:       "clearable_object",
			MostCommon: true,
		},
	},
}
View Source
var V1InvoicesRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/invoices/{invoice}",
	Method: "GET",
}
View Source
var V1InvoicesSearch = resource.OperationSpec{
	Name:   "search",
	Path:   "/v1/invoices/search",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"page": {
			Type:             "string",
			ShortDescription: "A cursor for pagination across multiple pages of results",
		},
		"query": {
			Type:             "string",
			ShortDescription: "The search query string",
			Required:         true,
		},
	},
}
View Source
var V1InvoicesSendInvoice = resource.OperationSpec{
	Name:   "send_invoice",
	Path:   "/v1/invoices/{invoice}/send",
	Method: "POST",
}
View Source
var V1InvoicesUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/invoices/{invoice}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"account_tax_ids": {
			Type:             "array",
			ShortDescription: "The account tax IDs associated with the invoice",
		},
		"application_fee_amount": {
			Type:             "integer",
			ShortDescription: "A fee in cents (or local equivalent) that will be applied to the invoice and transferred to the application owner's Stripe account",
		},
		"auto_advance": {
			Type:             "boolean",
			ShortDescription: "Controls whether Stripe performs [automatic collection](https://docs.stripe.com/invoicing/integration/automatic-advancement-collection) of the invoice",
			MostCommon:       true,
		},
		"automatic_tax.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether Stripe automatically computes tax on this invoice",
			MostCommon:       true,
		},
		"automatic_tax.liability.account": {
			Type:             "string",
			ShortDescription: "The connected account being referenced when `type` is `account`",
		},
		"automatic_tax.liability.type": {
			Type:             "string",
			ShortDescription: "Type of the account referenced in the request",
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"automatically_finalizes_at": {
			Type:             "integer",
			ShortDescription: "The time when this invoice should be scheduled to finalize (up to 5 years in the future)",
			Format:           "unix-time",
		},
		"collection_method": {
			Type:             "string",
			ShortDescription: "Either `charge_automatically` or `send_invoice`",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "charge_automatically"},
				{Value: "send_invoice"},
			},
		},
		"days_until_due": {
			Type:             "integer",
			ShortDescription: "The number of days from which the invoice is created until it is due",
		},
		"default_payment_method": {
			Type:             "string",
			ShortDescription: "ID of the default payment method for the invoice",
		},
		"default_source": {
			Type:             "string",
			ShortDescription: "ID of the default payment source for the invoice",
		},
		"default_tax_rates": {
			Type:             "array",
			ShortDescription: "The tax rates that will apply to any line item that does not have `tax_rates` set",
		},
		"description": {
			Type:             "string",
			ShortDescription: "An arbitrary string attached to the object",
			MostCommon:       true,
		},
		"due_date": {
			Type:             "integer",
			ShortDescription: "The date on which payment for this invoice is due",
			Format:           "unix-time",
		},
		"effective_at": {
			Type:             "integer",
			ShortDescription: "The date when this invoice is in effect",
		},
		"footer": {
			Type:             "string",
			ShortDescription: "Footer to be displayed on the invoice",
		},
		"issuer.account": {
			Type:             "string",
			ShortDescription: "The connected account being referenced when `type` is `account`",
		},
		"issuer.type": {
			Type:             "string",
			ShortDescription: "Type of the account referenced in the request",
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"number": {
			Type:             "string",
			ShortDescription: "Set the number for this invoice",
		},
		"on_behalf_of": {
			Type:             "string",
			ShortDescription: "The account (if any) for which the funds of the invoice payment are intended",
		},
		"payment_settings.default_mandate": {
			Type:             "string",
			ShortDescription: "ID of the mandate to be used for this invoice",
		},
		"payment_settings.payment_method_options.acss_debit.mandate_options.transaction_type": {
			Type:             "string",
			ShortDescription: "Transaction type of the mandate",
			Enum: []resource.EnumSpec{
				{Value: "business"},
				{Value: "personal"},
			},
		},
		"payment_settings.payment_method_options.acss_debit.verification_method": {
			Type:             "string",
			ShortDescription: "Verification method for the intent",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "instant"},
				{Value: "microdeposits"},
			},
		},
		"payment_settings.payment_method_options.bancontact.preferred_language": {
			Type:             "string",
			ShortDescription: "Preferred language of the Bancontact authorization page that the customer is redirected to",
			Enum: []resource.EnumSpec{
				{Value: "de"},
				{Value: "en"},
				{Value: "fr"},
				{Value: "nl"},
			},
		},
		"payment_settings.payment_method_options.card.installments.enabled": {
			Type:             "boolean",
			ShortDescription: "Setting to true enables installments for this invoice",
		},
		"payment_settings.payment_method_options.card.installments.plan.count": {
			Type:             "integer",
			ShortDescription: "For `fixed_count` installment plans, this is required",
		},
		"payment_settings.payment_method_options.card.installments.plan.interval": {
			Type:             "string",
			ShortDescription: "For `fixed_count` installment plans, this is required",
			Enum: []resource.EnumSpec{
				{Value: "month"},
			},
		},
		"payment_settings.payment_method_options.card.installments.plan.type": {
			Type:             "string",
			ShortDescription: "Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`",
			Enum: []resource.EnumSpec{
				{Value: "bonus"},
				{Value: "fixed_count"},
				{Value: "revolving"},
			},
		},
		"payment_settings.payment_method_options.card.request_three_d_secure": {
			Type:             "string",
			ShortDescription: "We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication)",
			Enum: []resource.EnumSpec{
				{Value: "any"},
				{Value: "automatic"},
				{Value: "challenge"},
			},
		},
		"payment_settings.payment_method_options.customer_balance.bank_transfer.eu_bank_transfer.country": {
			Type:             "string",
			ShortDescription: "The desired country code of the bank account information",
		},
		"payment_settings.payment_method_options.customer_balance.bank_transfer.type": {
			Type:             "string",
			ShortDescription: "The bank transfer type that can be used for funding",
		},
		"payment_settings.payment_method_options.customer_balance.funding_type": {
			Type:             "string",
			ShortDescription: "The funding method type to be used when there are not enough funds in the customer balance",
		},
		"payment_settings.payment_method_options.payto.mandate_options.amount": {
			Type:             "integer",
			ShortDescription: "The maximum amount that can be collected in a single invoice",
		},
		"payment_settings.payment_method_options.payto.mandate_options.purpose": {
			Type:             "string",
			ShortDescription: "The purpose for which payments are made",
			Enum: []resource.EnumSpec{
				{Value: "dependant_support"},
				{Value: "government"},
				{Value: "loan"},
				{Value: "mortgage"},
				{Value: "other"},
				{Value: "pension"},
				{Value: "personal"},
				{Value: "retail"},
				{Value: "salary"},
				{Value: "tax"},
				{Value: "utility"},
			},
		},
		"payment_settings.payment_method_options.us_bank_account.financial_connections.filters.account_subcategories": {
			Type:             "array",
			ShortDescription: "The account subcategories to use to filter for selectable accounts",
		},
		"payment_settings.payment_method_options.us_bank_account.financial_connections.permissions": {
			Type:             "array",
			ShortDescription: "The list of permissions to request",
		},
		"payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch": {
			Type:             "array",
			ShortDescription: "List of data features that you would like to retrieve upon account creation",
		},
		"payment_settings.payment_method_options.us_bank_account.verification_method": {
			Type:             "string",
			ShortDescription: "Verification method for the intent",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "instant"},
				{Value: "microdeposits"},
			},
		},
		"payment_settings.payment_method_types": {
			Type:             "array",
			ShortDescription: "The list of payment method types (e.g. card) to provide to the invoice’s PaymentIntent",
		},
		"rendering.amount_tax_display": {
			Type:             "string",
			ShortDescription: "How line-item prices and amounts will be displayed with respect to tax on invoice PDFs",
			Enum: []resource.EnumSpec{
				{Value: "exclude_tax"},
				{Value: "include_inclusive_tax"},
			},
		},
		"rendering.pdf.page_size": {
			Type:             "string",
			ShortDescription: "Page size for invoice PDF",
			Enum: []resource.EnumSpec{
				{Value: "a4"},
				{Value: "auto"},
				{Value: "letter"},
			},
		},
		"rendering.template": {
			Type:             "string",
			ShortDescription: "ID of the invoice rendering template to use for this invoice",
		},
		"rendering.template_version": {
			Type:             "integer",
			ShortDescription: "The specific version of invoice rendering template to use for this invoice",
		},
		"shipping_cost": {
			Type: "clearable_object",
		},
		"shipping_cost.shipping_rate": {
			Type:             "string",
			ShortDescription: "The ID of the shipping rate to use for this order",
		},
		"shipping_cost.shipping_rate_data.delivery_estimate.maximum.unit": {
			Type:             "string",
			ShortDescription: "A unit of time",
			Enum: []resource.EnumSpec{
				{Value: "business_day"},
				{Value: "day"},
				{Value: "hour"},
				{Value: "month"},
				{Value: "week"},
			},
		},
		"shipping_cost.shipping_rate_data.delivery_estimate.maximum.value": {
			Type:             "integer",
			ShortDescription: "Must be greater than 0",
		},
		"shipping_cost.shipping_rate_data.delivery_estimate.minimum.unit": {
			Type:             "string",
			ShortDescription: "A unit of time",
			Enum: []resource.EnumSpec{
				{Value: "business_day"},
				{Value: "day"},
				{Value: "hour"},
				{Value: "month"},
				{Value: "week"},
			},
		},
		"shipping_cost.shipping_rate_data.delivery_estimate.minimum.value": {
			Type:             "integer",
			ShortDescription: "Must be greater than 0",
		},
		"shipping_cost.shipping_rate_data.display_name": {
			Type:             "string",
			ShortDescription: "The name of the shipping rate, meant to be displayable to the customer",
		},
		"shipping_cost.shipping_rate_data.fixed_amount.amount": {
			Type:             "integer",
			ShortDescription: "A non-negative integer in cents representing how much to charge",
		},
		"shipping_cost.shipping_rate_data.fixed_amount.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Format:           "currency",
		},
		"shipping_cost.shipping_rate_data.tax_behavior": {
			Type:             "string",
			ShortDescription: "Specifies whether the rate is considered inclusive of taxes or exclusive of taxes",
			Enum: []resource.EnumSpec{
				{Value: "exclusive"},
				{Value: "inclusive"},
				{Value: "unspecified"},
			},
		},
		"shipping_cost.shipping_rate_data.tax_code": {
			Type:             "string",
			ShortDescription: "A [tax code](https://docs.stripe.com/tax/tax-categories) ID",
		},
		"shipping_cost.shipping_rate_data.type": {
			Type:             "string",
			ShortDescription: "The type of calculation to use on the shipping rate",
			Enum: []resource.EnumSpec{
				{Value: "fixed_amount"},
			},
		},
		"shipping_details": {
			Type: "clearable_object",
		},
		"shipping_details.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"shipping_details.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"shipping_details.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"shipping_details.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"shipping_details.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"shipping_details.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"shipping_details.name": {
			Type:             "string",
			ShortDescription: "Recipient name",
		},
		"shipping_details.phone": {
			Type:             "string",
			ShortDescription: "Recipient phone (including extension)",
		},
		"statement_descriptor": {
			Type:             "string",
			ShortDescription: "Extra information about a charge for the customer's credit card statement",
		},
		"transfer_data": {
			Type: "clearable_object",
		},
		"transfer_data.amount": {
			Type:             "integer",
			ShortDescription: "The amount that will be transferred automatically when the invoice is paid",
		},
		"transfer_data.destination": {
			Type:             "string",
			ShortDescription: "ID of an existing, connected Stripe account",
		},
	},
}
View Source
var V1InvoicesUpdateLines = resource.OperationSpec{
	Name:   "update_lines",
	Path:   "/v1/invoices/{invoice}/update_lines",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"invoice_metadata": {
			Type:       "clearable_object",
			MostCommon: true,
		},
	},
}
View Source
var V1InvoicesVoidInvoice = resource.OperationSpec{
	Name:   "void_invoice",
	Path:   "/v1/invoices/{invoice}/void",
	Method: "POST",
}
View Source
var V1IssuingAuthorizationsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/issuing/authorizations",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"card": {
			Type:             "string",
			ShortDescription: "Only return authorizations that belong to the given card",
		},
		"cardholder": {
			Type:             "string",
			ShortDescription: "Only return authorizations that belong to the given cardholder",
		},
		"created": {
			Type:             "integer",
			ShortDescription: "Only return authorizations that were created during the given date interval",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"status": {
			Type:             "string",
			ShortDescription: "Only return authorizations with the given status",
			Enum: []resource.EnumSpec{
				{Value: "closed"},
				{Value: "expired"},
				{Value: "pending"},
				{Value: "reversed"},
			},
		},
	},
}
View Source
var V1IssuingAuthorizationsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/issuing/authorizations/{authorization}",
	Method: "GET",
}
View Source
var V1IssuingAuthorizationsTestHelpersCapture = resource.OperationSpec{
	Name:   "capture",
	Path:   "/v1/test_helpers/issuing/authorizations/{authorization}/capture",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"capture_amount": {
			Type:             "integer",
			ShortDescription: "The amount to capture from the authorization",
			MostCommon:       true,
		},
		"close_authorization": {
			Type:             "boolean",
			ShortDescription: "Whether to close the authorization after capture",
			MostCommon:       true,
		},
		"purchase_details.fleet.cardholder_prompt_data.driver_id": {
			Type:             "string",
			ShortDescription: "Driver ID",
		},
		"purchase_details.fleet.cardholder_prompt_data.odometer": {
			Type:             "integer",
			ShortDescription: "Odometer reading",
		},
		"purchase_details.fleet.cardholder_prompt_data.unspecified_id": {
			Type:             "string",
			ShortDescription: "An alphanumeric ID",
		},
		"purchase_details.fleet.cardholder_prompt_data.user_id": {
			Type:             "string",
			ShortDescription: "User ID",
		},
		"purchase_details.fleet.cardholder_prompt_data.vehicle_number": {
			Type:             "string",
			ShortDescription: "Vehicle number",
		},
		"purchase_details.fleet.purchase_type": {
			Type:             "string",
			ShortDescription: "The type of purchase",
			Enum: []resource.EnumSpec{
				{Value: "fuel_and_non_fuel_purchase"},
				{Value: "fuel_purchase"},
				{Value: "non_fuel_purchase"},
			},
		},
		"purchase_details.fleet.reported_breakdown.fuel.gross_amount_decimal": {
			Type:             "string",
			ShortDescription: "Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes",
			Format:           "decimal",
		},
		"purchase_details.fleet.reported_breakdown.non_fuel.gross_amount_decimal": {
			Type:             "string",
			ShortDescription: "Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes",
			Format:           "decimal",
		},
		"purchase_details.fleet.reported_breakdown.tax.local_amount_decimal": {
			Type:             "string",
			ShortDescription: "Amount of state or provincial Sales Tax included in the transaction amount",
			Format:           "decimal",
		},
		"purchase_details.fleet.reported_breakdown.tax.national_amount_decimal": {
			Type:             "string",
			ShortDescription: "Amount of national Sales Tax or VAT included in the transaction amount",
			Format:           "decimal",
		},
		"purchase_details.fleet.service_type": {
			Type:             "string",
			ShortDescription: "The type of fuel service",
			Enum: []resource.EnumSpec{
				{Value: "full_service"},
				{Value: "non_fuel_transaction"},
				{Value: "self_service"},
			},
		},
		"purchase_details.flight.departure_at": {
			Type:             "integer",
			ShortDescription: "The time that the flight departed",
			Format:           "unix-time",
		},
		"purchase_details.flight.passenger_name": {
			Type:             "string",
			ShortDescription: "The name of the passenger",
		},
		"purchase_details.flight.refundable": {
			Type:             "boolean",
			ShortDescription: "Whether the ticket is refundable",
		},
		"purchase_details.flight.travel_agency": {
			Type:             "string",
			ShortDescription: "The travel agency that issued the ticket",
		},
		"purchase_details.fuel.industry_product_code": {
			Type:             "string",
			ShortDescription: "[Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased",
		},
		"purchase_details.fuel.quantity_decimal": {
			Type:             "string",
			ShortDescription: "The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places",
			Format:           "decimal",
		},
		"purchase_details.fuel.type": {
			Type:             "string",
			ShortDescription: "The type of fuel that was purchased",
			Enum: []resource.EnumSpec{
				{Value: "diesel"},
				{Value: "other"},
				{Value: "unleaded_plus"},
				{Value: "unleaded_regular"},
				{Value: "unleaded_super"},
			},
		},
		"purchase_details.fuel.unit": {
			Type:             "string",
			ShortDescription: "The units for `quantity_decimal`",
			Enum: []resource.EnumSpec{
				{Value: "charging_minute"},
				{Value: "imperial_gallon"},
				{Value: "kilogram"},
				{Value: "kilowatt_hour"},
				{Value: "liter"},
				{Value: "other"},
				{Value: "pound"},
				{Value: "us_gallon"},
			},
		},
		"purchase_details.fuel.unit_cost_decimal": {
			Type:             "string",
			ShortDescription: "The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places",
			Format:           "decimal",
		},
		"purchase_details.lodging.check_in_at": {
			Type:             "integer",
			ShortDescription: "The time of checking into the lodging",
			Format:           "unix-time",
		},
		"purchase_details.lodging.nights": {
			Type:             "integer",
			ShortDescription: "The number of nights stayed at the lodging",
		},
		"purchase_details.reference": {
			Type:             "string",
			ShortDescription: "A merchant-specific order number",
		},
	},
}
View Source
var V1IssuingAuthorizationsTestHelpersCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/test_helpers/issuing/authorizations",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "The total amount to attempt to authorize",
			MostCommon:       true,
		},
		"amount_details.atm_fee": {
			Type:             "integer",
			ShortDescription: "The ATM withdrawal fee",
		},
		"amount_details.cashback_amount": {
			Type:             "integer",
			ShortDescription: "The amount of cash requested by the cardholder",
		},
		"authorization_method": {
			Type:             "string",
			ShortDescription: "How the card details were provided",
			Enum: []resource.EnumSpec{
				{Value: "chip"},
				{Value: "contactless"},
				{Value: "keyed_in"},
				{Value: "online"},
				{Value: "swipe"},
			},
		},
		"card": {
			Type:             "string",
			ShortDescription: "Card associated with this authorization",
			Required:         true,
			MostCommon:       true,
		},
		"currency": {
			Type:             "string",
			ShortDescription: "The currency of the authorization",
			MostCommon:       true,
			Format:           "currency",
		},
		"fleet.cardholder_prompt_data.driver_id": {
			Type:             "string",
			ShortDescription: "Driver ID",
		},
		"fleet.cardholder_prompt_data.odometer": {
			Type:             "integer",
			ShortDescription: "Odometer reading",
		},
		"fleet.cardholder_prompt_data.unspecified_id": {
			Type:             "string",
			ShortDescription: "An alphanumeric ID",
		},
		"fleet.cardholder_prompt_data.user_id": {
			Type:             "string",
			ShortDescription: "User ID",
		},
		"fleet.cardholder_prompt_data.vehicle_number": {
			Type:             "string",
			ShortDescription: "Vehicle number",
		},
		"fleet.purchase_type": {
			Type:             "string",
			ShortDescription: "The type of purchase",
			Enum: []resource.EnumSpec{
				{Value: "fuel_and_non_fuel_purchase"},
				{Value: "fuel_purchase"},
				{Value: "non_fuel_purchase"},
			},
		},
		"fleet.reported_breakdown.fuel.gross_amount_decimal": {
			Type:             "string",
			ShortDescription: "Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes",
			Format:           "decimal",
		},
		"fleet.reported_breakdown.non_fuel.gross_amount_decimal": {
			Type:             "string",
			ShortDescription: "Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes",
			Format:           "decimal",
		},
		"fleet.reported_breakdown.tax.local_amount_decimal": {
			Type:             "string",
			ShortDescription: "Amount of state or provincial Sales Tax included in the transaction amount",
			Format:           "decimal",
		},
		"fleet.reported_breakdown.tax.national_amount_decimal": {
			Type:             "string",
			ShortDescription: "Amount of national Sales Tax or VAT included in the transaction amount",
			Format:           "decimal",
		},
		"fleet.service_type": {
			Type:             "string",
			ShortDescription: "The type of fuel service",
			Enum: []resource.EnumSpec{
				{Value: "full_service"},
				{Value: "non_fuel_transaction"},
				{Value: "self_service"},
			},
		},
		"fraud_disputability_likelihood": {
			Type:             "string",
			ShortDescription: "Probability that this transaction can be disputed in the event of fraud",
			Enum: []resource.EnumSpec{
				{Value: "neutral"},
				{Value: "unknown"},
				{Value: "very_likely"},
				{Value: "very_unlikely"},
			},
		},
		"fuel.industry_product_code": {
			Type:             "string",
			ShortDescription: "[Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased",
		},
		"fuel.quantity_decimal": {
			Type:             "string",
			ShortDescription: "The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places",
			Format:           "decimal",
		},
		"fuel.type": {
			Type:             "string",
			ShortDescription: "The type of fuel that was purchased",
			Enum: []resource.EnumSpec{
				{Value: "diesel"},
				{Value: "other"},
				{Value: "unleaded_plus"},
				{Value: "unleaded_regular"},
				{Value: "unleaded_super"},
			},
		},
		"fuel.unit": {
			Type:             "string",
			ShortDescription: "The units for `quantity_decimal`",
			Enum: []resource.EnumSpec{
				{Value: "charging_minute"},
				{Value: "imperial_gallon"},
				{Value: "kilogram"},
				{Value: "kilowatt_hour"},
				{Value: "liter"},
				{Value: "other"},
				{Value: "pound"},
				{Value: "us_gallon"},
			},
		},
		"fuel.unit_cost_decimal": {
			Type:             "string",
			ShortDescription: "The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places",
			Format:           "decimal",
		},
		"is_amount_controllable": {
			Type:             "boolean",
			ShortDescription: "If set `true`, you may provide [amount](https://docs.stripe.com/api/issuing/authorizations/approve#approve_issuing_authorization-amount) to control how much to hold for the authorization",
		},
		"merchant_amount": {
			Type:             "integer",
			ShortDescription: "The total amount to attempt to authorize",
		},
		"merchant_currency": {
			Type:             "string",
			ShortDescription: "The currency of the authorization",
			Format:           "currency",
		},
		"merchant_data.category": {
			Type:             "string",
			ShortDescription: "A categorization of the seller's type of business",
			Enum: []resource.EnumSpec{
				{Value: "ac_refrigeration_repair"},
				{Value: "accounting_bookkeeping_services"},
				{Value: "advertising_services"},
				{Value: "agricultural_cooperative"},
				{Value: "airlines_air_carriers"},
				{Value: "airports_flying_fields"},
				{Value: "ambulance_services"},
				{Value: "amusement_parks_carnivals"},
				{Value: "antique_reproductions"},
				{Value: "antique_shops"},
				{Value: "aquariums"},
				{Value: "architectural_surveying_services"},
				{Value: "art_dealers_and_galleries"},
				{Value: "artists_supply_and_craft_shops"},
				{Value: "auto_and_home_supply_stores"},
				{Value: "auto_body_repair_shops"},
				{Value: "auto_paint_shops"},
				{Value: "auto_service_shops"},
				{Value: "automated_cash_disburse"},
				{Value: "automated_fuel_dispensers"},
				{Value: "automobile_associations"},
				{Value: "automotive_parts_and_accessories_stores"},
				{Value: "automotive_tire_stores"},
				{Value: "bail_and_bond_payments"},
				{Value: "bakeries"},
				{Value: "bands_orchestras"},
				{Value: "barber_and_beauty_shops"},
				{Value: "betting_casino_gambling"},
				{Value: "bicycle_shops"},
				{Value: "billiard_pool_establishments"},
				{Value: "boat_dealers"},
				{Value: "boat_rentals_and_leases"},
				{Value: "book_stores"},
				{Value: "books_periodicals_and_newspapers"},
				{Value: "bowling_alleys"},
				{Value: "bus_lines"},
				{Value: "business_secretarial_schools"},
				{Value: "buying_shopping_services"},
				{Value: "cable_satellite_and_other_pay_television_and_radio"},
				{Value: "camera_and_photographic_supply_stores"},
				{Value: "candy_nut_and_confectionery_stores"},
				{Value: "car_and_truck_dealers_new_used"},
				{Value: "car_and_truck_dealers_used_only"},
				{Value: "car_rental_agencies"},
				{Value: "car_washes"},
				{Value: "carpentry_services"},
				{Value: "carpet_upholstery_cleaning"},
				{Value: "caterers"},
				{Value: "charitable_and_social_service_organizations_fundraising"},
				{Value: "chemicals_and_allied_products"},
				{Value: "child_care_services"},
				{Value: "childrens_and_infants_wear_stores"},
				{Value: "chiropodists_podiatrists"},
				{Value: "chiropractors"},
				{Value: "cigar_stores_and_stands"},
				{Value: "civic_social_fraternal_associations"},
				{Value: "cleaning_and_maintenance"},
				{Value: "clothing_rental"},
				{Value: "colleges_universities"},
				{Value: "commercial_equipment"},
				{Value: "commercial_footwear"},
				{Value: "commercial_photography_art_and_graphics"},
				{Value: "commuter_transport_and_ferries"},
				{Value: "computer_network_services"},
				{Value: "computer_programming"},
				{Value: "computer_repair"},
				{Value: "computer_software_stores"},
				{Value: "computers_peripherals_and_software"},
				{Value: "concrete_work_services"},
				{Value: "construction_materials"},
				{Value: "consulting_public_relations"},
				{Value: "correspondence_schools"},
				{Value: "cosmetic_stores"},
				{Value: "counseling_services"},
				{Value: "country_clubs"},
				{Value: "courier_services"},
				{Value: "court_costs"},
				{Value: "credit_reporting_agencies"},
				{Value: "cruise_lines"},
				{Value: "dairy_products_stores"},
				{Value: "dance_hall_studios_schools"},
				{Value: "dating_escort_services"},
				{Value: "dentists_orthodontists"},
				{Value: "department_stores"},
				{Value: "detective_agencies"},
				{Value: "digital_goods_applications"},
				{Value: "digital_goods_games"},
				{Value: "digital_goods_large_volume"},
				{Value: "digital_goods_media"},
				{Value: "direct_marketing_catalog_merchant"},
				{Value: "direct_marketing_combination_catalog_and_retail_merchant"},
				{Value: "direct_marketing_inbound_telemarketing"},
				{Value: "direct_marketing_insurance_services"},
				{Value: "direct_marketing_other"},
				{Value: "direct_marketing_outbound_telemarketing"},
				{Value: "direct_marketing_subscription"},
				{Value: "direct_marketing_travel"},
				{Value: "discount_stores"},
				{Value: "doctors"},
				{Value: "door_to_door_sales"},
				{Value: "drapery_window_covering_and_upholstery_stores"},
				{Value: "drinking_places"},
				{Value: "drug_stores_and_pharmacies"},
				{Value: "drugs_drug_proprietaries_and_druggist_sundries"},
				{Value: "dry_cleaners"},
				{Value: "durable_goods"},
				{Value: "duty_free_stores"},
				{Value: "eating_places_restaurants"},
				{Value: "educational_services"},
				{Value: "electric_razor_stores"},
				{Value: "electric_vehicle_charging"},
				{Value: "electrical_parts_and_equipment"},
				{Value: "electrical_services"},
				{Value: "electronics_repair_shops"},
				{Value: "electronics_stores"},
				{Value: "elementary_secondary_schools"},
				{Value: "emergency_services_gcas_visa_use_only"},
				{Value: "employment_temp_agencies"},
				{Value: "equipment_rental"},
				{Value: "exterminating_services"},
				{Value: "family_clothing_stores"},
				{Value: "fast_food_restaurants"},
				{Value: "financial_institutions"},
				{Value: "fines_government_administrative_entities"},
				{Value: "fireplace_fireplace_screens_and_accessories_stores"},
				{Value: "floor_covering_stores"},
				{Value: "florists"},
				{Value: "florists_supplies_nursery_stock_and_flowers"},
				{Value: "freezer_and_locker_meat_provisioners"},
				{Value: "fuel_dealers_non_automotive"},
				{Value: "funeral_services_crematories"},
				{Value: "furniture_home_furnishings_and_equipment_stores_except_appliances"},
				{Value: "furniture_repair_refinishing"},
				{Value: "furriers_and_fur_shops"},
				{Value: "general_services"},
				{Value: "gift_card_novelty_and_souvenir_shops"},
				{Value: "glass_paint_and_wallpaper_stores"},
				{Value: "glassware_crystal_stores"},
				{Value: "golf_courses_public"},
				{Value: "government_licensed_horse_dog_racing_us_region_only"},
				{Value: "government_licensed_online_casions_online_gambling_us_region_only"},
				{Value: "government_owned_lotteries_non_us_region"},
				{Value: "government_owned_lotteries_us_region_only"},
				{Value: "government_services"},
				{Value: "grocery_stores_supermarkets"},
				{Value: "hardware_equipment_and_supplies"},
				{Value: "hardware_stores"},
				{Value: "health_and_beauty_spas"},
				{Value: "hearing_aids_sales_and_supplies"},
				{Value: "heating_plumbing_a_c"},
				{Value: "hobby_toy_and_game_shops"},
				{Value: "home_supply_warehouse_stores"},
				{Value: "hospitals"},
				{Value: "hotels_motels_and_resorts"},
				{Value: "household_appliance_stores"},
				{Value: "industrial_supplies"},
				{Value: "information_retrieval_services"},
				{Value: "insurance_default"},
				{Value: "insurance_underwriting_premiums"},
				{Value: "intra_company_purchases"},
				{Value: "jewelry_stores_watches_clocks_and_silverware_stores"},
				{Value: "landscaping_services"},
				{Value: "laundries"},
				{Value: "laundry_cleaning_services"},
				{Value: "legal_services_attorneys"},
				{Value: "luggage_and_leather_goods_stores"},
				{Value: "lumber_building_materials_stores"},
				{Value: "manual_cash_disburse"},
				{Value: "marinas_service_and_supplies"},
				{Value: "marketplaces"},
				{Value: "masonry_stonework_and_plaster"},
				{Value: "massage_parlors"},
				{Value: "medical_and_dental_labs"},
				{Value: "medical_dental_ophthalmic_and_hospital_equipment_and_supplies"},
				{Value: "medical_services"},
				{Value: "membership_organizations"},
				{Value: "mens_and_boys_clothing_and_accessories_stores"},
				{Value: "mens_womens_clothing_stores"},
				{Value: "metal_service_centers"},
				{Value: "miscellaneous_apparel_and_accessory_shops"},
				{Value: "miscellaneous_auto_dealers"},
				{Value: "miscellaneous_business_services"},
				{Value: "miscellaneous_food_stores"},
				{Value: "miscellaneous_general_merchandise"},
				{Value: "miscellaneous_general_services"},
				{Value: "miscellaneous_home_furnishing_specialty_stores"},
				{Value: "miscellaneous_publishing_and_printing"},
				{Value: "miscellaneous_recreation_services"},
				{Value: "miscellaneous_repair_shops"},
				{Value: "miscellaneous_specialty_retail"},
				{Value: "mobile_home_dealers"},
				{Value: "motion_picture_theaters"},
				{Value: "motor_freight_carriers_and_trucking"},
				{Value: "motor_homes_dealers"},
				{Value: "motor_vehicle_supplies_and_new_parts"},
				{Value: "motorcycle_shops_and_dealers"},
				{Value: "motorcycle_shops_dealers"},
				{Value: "music_stores_musical_instruments_pianos_and_sheet_music"},
				{Value: "news_dealers_and_newsstands"},
				{Value: "non_fi_money_orders"},
				{Value: "non_fi_stored_value_card_purchase_load"},
				{Value: "nondurable_goods"},
				{Value: "nurseries_lawn_and_garden_supply_stores"},
				{Value: "nursing_personal_care"},
				{Value: "office_and_commercial_furniture"},
				{Value: "opticians_eyeglasses"},
				{Value: "optometrists_ophthalmologist"},
				{Value: "orthopedic_goods_prosthetic_devices"},
				{Value: "osteopaths"},
				{Value: "package_stores_beer_wine_and_liquor"},
				{Value: "paints_varnishes_and_supplies"},
				{Value: "parking_lots_garages"},
				{Value: "passenger_railways"},
				{Value: "pawn_shops"},
				{Value: "pet_shops_pet_food_and_supplies"},
				{Value: "petroleum_and_petroleum_products"},
				{Value: "photo_developing"},
				{Value: "photographic_photocopy_microfilm_equipment_and_supplies"},
				{Value: "photographic_studios"},
				{Value: "picture_video_production"},
				{Value: "piece_goods_notions_and_other_dry_goods"},
				{Value: "plumbing_heating_equipment_and_supplies"},
				{Value: "political_organizations"},
				{Value: "postal_services_government_only"},
				{Value: "precious_stones_and_metals_watches_and_jewelry"},
				{Value: "professional_services"},
				{Value: "public_warehousing_and_storage"},
				{Value: "quick_copy_repro_and_blueprint"},
				{Value: "railroads"},
				{Value: "real_estate_agents_and_managers_rentals"},
				{Value: "record_stores"},
				{Value: "recreational_vehicle_rentals"},
				{Value: "religious_goods_stores"},
				{Value: "religious_organizations"},
				{Value: "roofing_siding_sheet_metal"},
				{Value: "secretarial_support_services"},
				{Value: "security_brokers_dealers"},
				{Value: "service_stations"},
				{Value: "sewing_needlework_fabric_and_piece_goods_stores"},
				{Value: "shoe_repair_hat_cleaning"},
				{Value: "shoe_stores"},
				{Value: "small_appliance_repair"},
				{Value: "snowmobile_dealers"},
				{Value: "special_trade_services"},
				{Value: "specialty_cleaning"},
				{Value: "sporting_goods_stores"},
				{Value: "sporting_recreation_camps"},
				{Value: "sports_and_riding_apparel_stores"},
				{Value: "sports_clubs_fields"},
				{Value: "stamp_and_coin_stores"},
				{Value: "stationary_office_supplies_printing_and_writing_paper"},
				{Value: "stationery_stores_office_and_school_supply_stores"},
				{Value: "swimming_pools_sales"},
				{Value: "t_ui_travel_germany"},
				{Value: "tailors_alterations"},
				{Value: "tax_payments_government_agencies"},
				{Value: "tax_preparation_services"},
				{Value: "taxicabs_limousines"},
				{Value: "telecommunication_equipment_and_telephone_sales"},
				{Value: "telecommunication_services"},
				{Value: "telegraph_services"},
				{Value: "tent_and_awning_shops"},
				{Value: "testing_laboratories"},
				{Value: "theatrical_ticket_agencies"},
				{Value: "timeshares"},
				{Value: "tire_retreading_and_repair"},
				{Value: "tolls_bridge_fees"},
				{Value: "tourist_attractions_and_exhibits"},
				{Value: "towing_services"},
				{Value: "trailer_parks_campgrounds"},
				{Value: "transportation_services"},
				{Value: "travel_agencies_tour_operators"},
				{Value: "truck_stop_iteration"},
				{Value: "truck_utility_trailer_rentals"},
				{Value: "typesetting_plate_making_and_related_services"},
				{Value: "typewriter_stores"},
				{Value: "u_s_federal_government_agencies_or_departments"},
				{Value: "uniforms_commercial_clothing"},
				{Value: "used_merchandise_and_secondhand_stores"},
				{Value: "utilities"},
				{Value: "variety_stores"},
				{Value: "veterinary_services"},
				{Value: "video_amusement_game_supplies"},
				{Value: "video_game_arcades"},
				{Value: "video_tape_rental_stores"},
				{Value: "vocational_trade_schools"},
				{Value: "watch_jewelry_repair"},
				{Value: "welding_repair"},
				{Value: "wholesale_clubs"},
				{Value: "wig_and_toupee_stores"},
				{Value: "wires_money_orders"},
				{Value: "womens_accessory_and_specialty_shops"},
				{Value: "womens_ready_to_wear_stores"},
				{Value: "wrecking_and_salvage_yards"},
			},
		},
		"merchant_data.city": {
			Type:             "string",
			ShortDescription: "City where the seller is located",
		},
		"merchant_data.country": {
			Type:             "string",
			ShortDescription: "Country where the seller is located",
		},
		"merchant_data.name": {
			Type:             "string",
			ShortDescription: "Name of the seller",
		},
		"merchant_data.network_id": {
			Type:             "string",
			ShortDescription: "Identifier assigned to the seller by the card network",
		},
		"merchant_data.postal_code": {
			Type:             "string",
			ShortDescription: "Postal code where the seller is located",
		},
		"merchant_data.state": {
			Type:             "string",
			ShortDescription: "State where the seller is located",
		},
		"merchant_data.terminal_id": {
			Type:             "string",
			ShortDescription: "An ID assigned by the seller to the location of the sale",
		},
		"merchant_data.url": {
			Type:             "string",
			ShortDescription: "URL provided by the merchant on a 3DS request",
		},
		"network_data.acquiring_institution_id": {
			Type:             "string",
			ShortDescription: "Identifier assigned to the acquirer by the card network",
		},
		"risk_assessment.card_testing_risk.invalid_account_number_decline_rate_past_hour": {
			Type:             "integer",
			ShortDescription: "The % of declines due to a card number not existing in the past hour, taking place at the same merchant",
		},
		"risk_assessment.card_testing_risk.invalid_credentials_decline_rate_past_hour": {
			Type:             "integer",
			ShortDescription: "The % of declines due to incorrect verification data (like CVV or expiry) in the past hour, taking place at the same merchant",
		},
		"risk_assessment.card_testing_risk.level": {
			Type:             "string",
			ShortDescription: "The likelihood that this authorization is associated with card testing activity",
			Enum: []resource.EnumSpec{
				{Value: "elevated"},
				{Value: "highest"},
				{Value: "low"},
				{Value: "normal"},
				{Value: "not_assessed"},
				{Value: "unknown"},
			},
		},
		"risk_assessment.fraud_risk.level": {
			Type:             "string",
			ShortDescription: "Stripe’s assessment of the likelihood of fraud on an authorization",
			Enum: []resource.EnumSpec{
				{Value: "elevated"},
				{Value: "highest"},
				{Value: "low"},
				{Value: "normal"},
				{Value: "not_assessed"},
				{Value: "unknown"},
			},
		},
		"risk_assessment.fraud_risk.score": {
			Type:             "number",
			ShortDescription: "Stripe’s numerical model score assessing the likelihood of fraudulent activity",
		},
		"risk_assessment.merchant_dispute_risk.dispute_rate": {
			Type:             "integer",
			ShortDescription: "The dispute rate observed across all Stripe Issuing authorizations for this merchant",
		},
		"risk_assessment.merchant_dispute_risk.level": {
			Type:             "string",
			ShortDescription: "The likelihood that authorizations from this merchant will result in a dispute based on their history on Stripe Issuing",
			Enum: []resource.EnumSpec{
				{Value: "elevated"},
				{Value: "highest"},
				{Value: "low"},
				{Value: "normal"},
				{Value: "not_assessed"},
				{Value: "unknown"},
			},
		},
		"verification_data.address_line1_check": {
			Type:             "string",
			ShortDescription: "Whether the cardholder provided an address first line and if it matched the cardholder’s `billing.address.line1`",
			Enum: []resource.EnumSpec{
				{Value: "match"},
				{Value: "mismatch"},
				{Value: "not_provided"},
			},
		},
		"verification_data.address_postal_code_check": {
			Type:             "string",
			ShortDescription: "Whether the cardholder provided a postal code and if it matched the cardholder’s `billing.address.postal_code`",
			Enum: []resource.EnumSpec{
				{Value: "match"},
				{Value: "mismatch"},
				{Value: "not_provided"},
			},
		},
		"verification_data.authentication_exemption.claimed_by": {
			Type:             "string",
			ShortDescription: "The entity that requested the exemption, either the acquiring merchant or the Issuing user",
			Enum: []resource.EnumSpec{
				{Value: "acquirer"},
				{Value: "issuer"},
			},
		},
		"verification_data.authentication_exemption.type": {
			Type:             "string",
			ShortDescription: "The specific exemption claimed for this authorization",
			Enum: []resource.EnumSpec{
				{Value: "low_value_transaction"},
				{Value: "transaction_risk_analysis"},
				{Value: "unknown"},
			},
		},
		"verification_data.cvc_check": {
			Type:             "string",
			ShortDescription: "Whether the cardholder provided a CVC and if it matched Stripe’s record",
			Enum: []resource.EnumSpec{
				{Value: "match"},
				{Value: "mismatch"},
				{Value: "not_provided"},
			},
		},
		"verification_data.expiry_check": {
			Type:             "string",
			ShortDescription: "Whether the cardholder provided an expiry date and if it matched Stripe’s record",
			Enum: []resource.EnumSpec{
				{Value: "match"},
				{Value: "mismatch"},
				{Value: "not_provided"},
			},
		},
		"verification_data.three_d_secure.result": {
			Type:             "string",
			ShortDescription: "The outcome of the 3D Secure authentication request",
			Enum: []resource.EnumSpec{
				{Value: "attempt_acknowledged"},
				{Value: "authenticated"},
				{Value: "failed"},
				{Value: "required"},
			},
		},
		"wallet": {
			Type:             "string",
			ShortDescription: "The digital wallet used for this transaction",
			Enum: []resource.EnumSpec{
				{Value: "apple_pay"},
				{Value: "google_pay"},
				{Value: "samsung_pay"},
			},
		},
	},
}
View Source
var V1IssuingAuthorizationsTestHelpersExpire = resource.OperationSpec{
	Name:   "expire",
	Path:   "/v1/test_helpers/issuing/authorizations/{authorization}/expire",
	Method: "POST",
}
View Source
var V1IssuingAuthorizationsTestHelpersFinalizeAmount = resource.OperationSpec{
	Name:   "finalize_amount",
	Path:   "/v1/test_helpers/issuing/authorizations/{authorization}/finalize_amount",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"final_amount": {
			Type:             "integer",
			ShortDescription: "The final authorization amount that will be captured by the merchant",
			Required:         true,
			MostCommon:       true,
		},
		"fleet.cardholder_prompt_data.driver_id": {
			Type:             "string",
			ShortDescription: "Driver ID",
		},
		"fleet.cardholder_prompt_data.odometer": {
			Type:             "integer",
			ShortDescription: "Odometer reading",
		},
		"fleet.cardholder_prompt_data.unspecified_id": {
			Type:             "string",
			ShortDescription: "An alphanumeric ID",
		},
		"fleet.cardholder_prompt_data.user_id": {
			Type:             "string",
			ShortDescription: "User ID",
		},
		"fleet.cardholder_prompt_data.vehicle_number": {
			Type:             "string",
			ShortDescription: "Vehicle number",
		},
		"fleet.purchase_type": {
			Type:             "string",
			ShortDescription: "The type of purchase",
			Enum: []resource.EnumSpec{
				{Value: "fuel_and_non_fuel_purchase"},
				{Value: "fuel_purchase"},
				{Value: "non_fuel_purchase"},
			},
		},
		"fleet.reported_breakdown.fuel.gross_amount_decimal": {
			Type:             "string",
			ShortDescription: "Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes",
			Format:           "decimal",
		},
		"fleet.reported_breakdown.non_fuel.gross_amount_decimal": {
			Type:             "string",
			ShortDescription: "Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes",
			Format:           "decimal",
		},
		"fleet.reported_breakdown.tax.local_amount_decimal": {
			Type:             "string",
			ShortDescription: "Amount of state or provincial Sales Tax included in the transaction amount",
			Format:           "decimal",
		},
		"fleet.reported_breakdown.tax.national_amount_decimal": {
			Type:             "string",
			ShortDescription: "Amount of national Sales Tax or VAT included in the transaction amount",
			Format:           "decimal",
		},
		"fleet.service_type": {
			Type:             "string",
			ShortDescription: "The type of fuel service",
			Enum: []resource.EnumSpec{
				{Value: "full_service"},
				{Value: "non_fuel_transaction"},
				{Value: "self_service"},
			},
		},
		"fuel.industry_product_code": {
			Type:             "string",
			ShortDescription: "[Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased",
		},
		"fuel.quantity_decimal": {
			Type:             "string",
			ShortDescription: "The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places",
			Format:           "decimal",
		},
		"fuel.type": {
			Type:             "string",
			ShortDescription: "The type of fuel that was purchased",
			Enum: []resource.EnumSpec{
				{Value: "diesel"},
				{Value: "other"},
				{Value: "unleaded_plus"},
				{Value: "unleaded_regular"},
				{Value: "unleaded_super"},
			},
		},
		"fuel.unit": {
			Type:             "string",
			ShortDescription: "The units for `quantity_decimal`",
			Enum: []resource.EnumSpec{
				{Value: "charging_minute"},
				{Value: "imperial_gallon"},
				{Value: "kilogram"},
				{Value: "kilowatt_hour"},
				{Value: "liter"},
				{Value: "other"},
				{Value: "pound"},
				{Value: "us_gallon"},
			},
		},
		"fuel.unit_cost_decimal": {
			Type:             "string",
			ShortDescription: "The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places",
			Format:           "decimal",
		},
	},
}
View Source
var V1IssuingAuthorizationsTestHelpersIncrement = resource.OperationSpec{
	Name:   "increment",
	Path:   "/v1/test_helpers/issuing/authorizations/{authorization}/increment",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"increment_amount": {
			Type:             "integer",
			ShortDescription: "The amount to increment the authorization by",
			Required:         true,
			MostCommon:       true,
		},
		"is_amount_controllable": {
			Type:             "boolean",
			ShortDescription: "If set `true`, you may provide [amount](https://docs.stripe.com/api/issuing/authorizations/approve#approve_issuing_authorization-amount) to control how much to hold for the authorization",
			MostCommon:       true,
		},
	},
}
View Source
var V1IssuingAuthorizationsTestHelpersRespond = resource.OperationSpec{
	Name:   "respond",
	Path:   "/v1/test_helpers/issuing/authorizations/{authorization}/fraud_challenges/respond",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"confirmed": {
			Type:             "boolean",
			ShortDescription: "Whether to simulate the user confirming that the transaction was legitimate (true) or telling Stripe that it was fraudulent (false)",
			Required:         true,
			MostCommon:       true,
		},
	},
}
View Source
var V1IssuingAuthorizationsTestHelpersReverse = resource.OperationSpec{
	Name:   "reverse",
	Path:   "/v1/test_helpers/issuing/authorizations/{authorization}/reverse",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"reverse_amount": {
			Type:             "integer",
			ShortDescription: "The amount to reverse from the authorization",
			MostCommon:       true,
		},
	},
}
View Source
var V1IssuingAuthorizationsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/issuing/authorizations/{authorization}",
	Method: "POST",
}
View Source
var V1IssuingCardholdersCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/issuing/cardholders",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"billing.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
			Required:         true,
		},
		"billing.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
			Required:         true,
		},
		"billing.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
			Required:         true,
		},
		"billing.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"billing.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
			Required:         true,
		},
		"billing.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"company.tax_id": {
			Type:             "string",
			ShortDescription: "The entity's business ID number",
		},
		"email": {
			Type:             "string",
			ShortDescription: "The cardholder's email address",
			MostCommon:       true,
		},
		"individual.card_issuing.user_terms_acceptance.date": {
			Type:             "integer",
			ShortDescription: "The Unix timestamp marking when the cardholder accepted the Authorized User Terms",
			Format:           "unix-time",
		},
		"individual.card_issuing.user_terms_acceptance.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the cardholder accepted the Authorized User Terms",
		},
		"individual.card_issuing.user_terms_acceptance.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the cardholder accepted the Authorized User Terms",
		},
		"individual.dob.day": {
			Type:             "integer",
			ShortDescription: "The day of birth, between 1 and 31",
		},
		"individual.dob.month": {
			Type:             "integer",
			ShortDescription: "The month of birth, between 1 and 12",
		},
		"individual.dob.year": {
			Type:             "integer",
			ShortDescription: "The four-digit year of birth",
		},
		"individual.first_name": {
			Type:             "string",
			ShortDescription: "The first name of this cardholder",
		},
		"individual.last_name": {
			Type:             "string",
			ShortDescription: "The last name of this cardholder",
		},
		"individual.verification.document.back": {
			Type:             "string",
			ShortDescription: "The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`",
		},
		"individual.verification.document.front": {
			Type:             "string",
			ShortDescription: "The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`",
		},
		"name": {
			Type:             "string",
			ShortDescription: "The cardholder's name",
			Required:         true,
			MostCommon:       true,
		},
		"phone_number": {
			Type:             "string",
			ShortDescription: "The cardholder's phone number",
			MostCommon:       true,
		},
		"preferred_locales": {
			Type:             "array",
			ShortDescription: "The cardholder’s preferred locales (languages), ordered by preference",
		},
		"spending_controls.allowed_categories": {
			Type:             "array",
			ShortDescription: "Array of strings containing [categories](https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category) of authorizations to allow",
		},
		"spending_controls.allowed_merchant_countries": {
			Type:             "array",
			ShortDescription: "Array of strings containing representing countries from which authorizations will be allowed",
		},
		"spending_controls.blocked_categories": {
			Type:             "array",
			ShortDescription: "Array of strings containing [categories](https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category) of authorizations to decline",
		},
		"spending_controls.blocked_merchant_countries": {
			Type:             "array",
			ShortDescription: "Array of strings containing representing countries from which authorizations will be declined",
		},
		"spending_controls.spending_limits_currency": {
			Type:             "string",
			ShortDescription: "Currency of amounts within `spending_limits`",
		},
		"status": {
			Type:             "string",
			ShortDescription: "Specifies whether to permit authorizations on this cardholder's cards",
			Enum: []resource.EnumSpec{
				{Value: "active"},
				{Value: "inactive"},
			},
		},
		"type": {
			Type:             "string",
			ShortDescription: "One of `individual` or `company`",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
	},
}
View Source
var V1IssuingCardholdersList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/issuing/cardholders",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type:             "integer",
			ShortDescription: "Only return cardholders that were created during the given date interval",
		},
		"email": {
			Type:             "string",
			ShortDescription: "Only return cardholders that have the given email address",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"phone_number": {
			Type:             "string",
			ShortDescription: "Only return cardholders that have the given phone number",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"status": {
			Type:             "string",
			ShortDescription: "Only return cardholders that have the given status",
			Enum: []resource.EnumSpec{
				{Value: "active"},
				{Value: "blocked"},
				{Value: "inactive"},
			},
		},
		"type": {
			Type:             "string",
			ShortDescription: "Only return cardholders that have the given type",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
	},
}
View Source
var V1IssuingCardholdersRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/issuing/cardholders/{cardholder}",
	Method: "GET",
}
View Source
var V1IssuingCardholdersUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/issuing/cardholders/{cardholder}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"billing.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"billing.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"billing.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"billing.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"billing.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"billing.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"company.tax_id": {
			Type:             "string",
			ShortDescription: "The entity's business ID number",
		},
		"email": {
			Type:             "string",
			ShortDescription: "The cardholder's email address",
			MostCommon:       true,
		},
		"individual.card_issuing.user_terms_acceptance.date": {
			Type:             "integer",
			ShortDescription: "The Unix timestamp marking when the cardholder accepted the Authorized User Terms",
			Format:           "unix-time",
		},
		"individual.card_issuing.user_terms_acceptance.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the cardholder accepted the Authorized User Terms",
		},
		"individual.card_issuing.user_terms_acceptance.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the cardholder accepted the Authorized User Terms",
		},
		"individual.dob.day": {
			Type:             "integer",
			ShortDescription: "The day of birth, between 1 and 31",
		},
		"individual.dob.month": {
			Type:             "integer",
			ShortDescription: "The month of birth, between 1 and 12",
		},
		"individual.dob.year": {
			Type:             "integer",
			ShortDescription: "The four-digit year of birth",
		},
		"individual.first_name": {
			Type:             "string",
			ShortDescription: "The first name of this cardholder",
		},
		"individual.last_name": {
			Type:             "string",
			ShortDescription: "The last name of this cardholder",
		},
		"individual.verification.document.back": {
			Type:             "string",
			ShortDescription: "The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`",
		},
		"individual.verification.document.front": {
			Type:             "string",
			ShortDescription: "The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`",
		},
		"phone_number": {
			Type:             "string",
			ShortDescription: "The cardholder's phone number",
			MostCommon:       true,
		},
		"preferred_locales": {
			Type:             "array",
			ShortDescription: "The cardholder’s preferred locales (languages), ordered by preference",
		},
		"spending_controls.allowed_categories": {
			Type:             "array",
			ShortDescription: "Array of strings containing [categories](https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category) of authorizations to allow",
		},
		"spending_controls.allowed_merchant_countries": {
			Type:             "array",
			ShortDescription: "Array of strings containing representing countries from which authorizations will be allowed",
		},
		"spending_controls.blocked_categories": {
			Type:             "array",
			ShortDescription: "Array of strings containing [categories](https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category) of authorizations to decline",
		},
		"spending_controls.blocked_merchant_countries": {
			Type:             "array",
			ShortDescription: "Array of strings containing representing countries from which authorizations will be declined",
		},
		"spending_controls.spending_limits_currency": {
			Type:             "string",
			ShortDescription: "Currency of amounts within `spending_limits`",
		},
		"status": {
			Type:             "string",
			ShortDescription: "Specifies whether to permit authorizations on this cardholder's cards",
			Enum: []resource.EnumSpec{
				{Value: "active"},
				{Value: "inactive"},
			},
		},
	},
}
View Source
var V1IssuingCardsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/issuing/cards",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"cardholder": {
			Type:             "string",
			ShortDescription: "The [Cardholder](https://docs.stripe.com/api#issuing_cardholder_object) object with which the card will be associated",
			MostCommon:       true,
		},
		"currency": {
			Type:             "string",
			ShortDescription: "The currency for the card",
			Required:         true,
			MostCommon:       true,
		},
		"exp_month": {
			Type:             "integer",
			ShortDescription: "The desired expiration month (1-12) for this card if [specifying a custom expiration date](/issuing/cards/virtual/issue-cards?testing-method=with-code#exp-dates)",
			MostCommon:       true,
		},
		"exp_year": {
			Type:             "integer",
			ShortDescription: "The desired 4-digit expiration year for this card if [specifying a custom expiration date](/issuing/cards/virtual/issue-cards?testing-method=with-code#exp-dates)",
			MostCommon:       true,
		},
		"financial_account": {
			Type:             "string",
			ShortDescription: "The new financial account ID the card will be associated with",
		},
		"lifecycle_controls.cancel_after.payment_count": {
			Type:             "integer",
			ShortDescription: "The card is automatically cancelled when it makes this number of non-zero payment authorizations and transactions",
		},
		"personalization_design": {
			Type:             "string",
			ShortDescription: "The personalization design object belonging to this card",
		},
		"pin.encrypted_number": {
			Type:             "string",
			ShortDescription: "The card's desired new PIN, encrypted under Stripe's public key",
		},
		"replacement_for": {
			Type:             "string",
			ShortDescription: "The card this is meant to be a replacement for (if any)",
		},
		"replacement_reason": {
			Type:             "string",
			ShortDescription: "If `replacement_for` is specified, this should indicate why that card is being replaced",
			Enum: []resource.EnumSpec{
				{Value: "damaged"},
				{Value: "expired"},
				{Value: "lost"},
				{Value: "stolen"},
			},
		},
		"second_line": {
			Type:             "string",
			ShortDescription: "The second line to print on the card",
		},
		"shipping.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"shipping.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"shipping.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"shipping.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"shipping.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"shipping.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"shipping.address_validation.mode": {
			Type:             "string",
			ShortDescription: "The address validation capabilities to use",
			Enum: []resource.EnumSpec{
				{Value: "disabled"},
				{Value: "normalization_only"},
				{Value: "validation_and_normalization"},
			},
		},
		"shipping.customs.eori_number": {
			Type:             "string",
			ShortDescription: "The Economic Operators Registration and Identification (EORI) number to use for Customs",
		},
		"shipping.name": {
			Type:             "string",
			ShortDescription: "The name printed on the shipping label when shipping the card",
		},
		"shipping.phone_number": {
			Type:             "string",
			ShortDescription: "Phone number of the recipient of the shipment",
		},
		"shipping.require_signature": {
			Type:             "boolean",
			ShortDescription: "Whether a signature is required for card delivery",
		},
		"shipping.service": {
			Type:             "string",
			ShortDescription: "Shipment service",
			Enum: []resource.EnumSpec{
				{Value: "express"},
				{Value: "priority"},
				{Value: "standard"},
			},
		},
		"shipping.type": {
			Type:             "string",
			ShortDescription: "Packaging options",
			Enum: []resource.EnumSpec{
				{Value: "bulk"},
				{Value: "individual"},
			},
		},
		"spending_controls.allowed_categories": {
			Type:             "array",
			ShortDescription: "Array of strings containing [categories](https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category) of authorizations to allow",
		},
		"spending_controls.allowed_merchant_countries": {
			Type:             "array",
			ShortDescription: "Array of strings containing representing countries from which authorizations will be allowed",
		},
		"spending_controls.blocked_categories": {
			Type:             "array",
			ShortDescription: "Array of strings containing [categories](https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category) of authorizations to decline",
		},
		"spending_controls.blocked_merchant_countries": {
			Type:             "array",
			ShortDescription: "Array of strings containing representing countries from which authorizations will be declined",
		},
		"status": {
			Type:             "string",
			ShortDescription: "Whether authorizations can be approved on this card",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "active"},
				{Value: "inactive"},
			},
		},
		"type": {
			Type:             "string",
			ShortDescription: "The type of card to issue",
			Required:         true,
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "physical"},
				{Value: "virtual"},
			},
		},
	},
}
View Source
var V1IssuingCardsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/issuing/cards",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"cardholder": {
			Type:             "string",
			ShortDescription: "Only return cards belonging to the Cardholder with the provided ID",
		},
		"created": {
			Type:             "integer",
			ShortDescription: "Only return cards that were issued during the given date interval",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"exp_month": {
			Type:             "integer",
			ShortDescription: "Only return cards that have the given expiration month",
		},
		"exp_year": {
			Type:             "integer",
			ShortDescription: "Only return cards that have the given expiration year",
		},
		"last4": {
			Type:             "string",
			ShortDescription: "Only return cards that have the given last four digits",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"personalization_design": {
			Type: "string",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"status": {
			Type:             "string",
			ShortDescription: "Only return cards that have the given status",
			Enum: []resource.EnumSpec{
				{Value: "active"},
				{Value: "canceled"},
				{Value: "inactive"},
			},
		},
		"type": {
			Type:             "string",
			ShortDescription: "Only return cards that have the given type",
			Enum: []resource.EnumSpec{
				{Value: "physical"},
				{Value: "virtual"},
			},
		},
	},
}
View Source
var V1IssuingCardsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/issuing/cards/{card}",
	Method: "GET",
}
View Source
var V1IssuingCardsTestHelpersDeliverCard = resource.OperationSpec{
	Name:   "deliver_card",
	Path:   "/v1/test_helpers/issuing/cards/{card}/shipping/deliver",
	Method: "POST",
}
View Source
var V1IssuingCardsTestHelpersFailCard = resource.OperationSpec{
	Name:   "fail_card",
	Path:   "/v1/test_helpers/issuing/cards/{card}/shipping/fail",
	Method: "POST",
}
View Source
var V1IssuingCardsTestHelpersReturnCard = resource.OperationSpec{
	Name:   "return_card",
	Path:   "/v1/test_helpers/issuing/cards/{card}/shipping/return",
	Method: "POST",
}
View Source
var V1IssuingCardsTestHelpersShipCard = resource.OperationSpec{
	Name:   "ship_card",
	Path:   "/v1/test_helpers/issuing/cards/{card}/shipping/ship",
	Method: "POST",
}
View Source
var V1IssuingCardsTestHelpersSubmitCard = resource.OperationSpec{
	Name:   "submit_card",
	Path:   "/v1/test_helpers/issuing/cards/{card}/shipping/submit",
	Method: "POST",
}
View Source
var V1IssuingCardsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/issuing/cards/{card}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"cancellation_reason": {
			Type:             "string",
			ShortDescription: "Reason why the `status` of this card is `canceled`",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "lost"},
				{Value: "stolen"},
			},
		},
		"personalization_design": {
			Type: "string",
		},
		"pin.encrypted_number": {
			Type:             "string",
			ShortDescription: "The card's desired new PIN, encrypted under Stripe's public key",
		},
		"shipping.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"shipping.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"shipping.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"shipping.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"shipping.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"shipping.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"shipping.address_validation.mode": {
			Type:             "string",
			ShortDescription: "The address validation capabilities to use",
			Enum: []resource.EnumSpec{
				{Value: "disabled"},
				{Value: "normalization_only"},
				{Value: "validation_and_normalization"},
			},
		},
		"shipping.customs.eori_number": {
			Type:             "string",
			ShortDescription: "The Economic Operators Registration and Identification (EORI) number to use for Customs",
		},
		"shipping.name": {
			Type:             "string",
			ShortDescription: "The name printed on the shipping label when shipping the card",
		},
		"shipping.phone_number": {
			Type:             "string",
			ShortDescription: "Phone number of the recipient of the shipment",
		},
		"shipping.require_signature": {
			Type:             "boolean",
			ShortDescription: "Whether a signature is required for card delivery",
		},
		"shipping.service": {
			Type:             "string",
			ShortDescription: "Shipment service",
			Enum: []resource.EnumSpec{
				{Value: "express"},
				{Value: "priority"},
				{Value: "standard"},
			},
		},
		"shipping.type": {
			Type:             "string",
			ShortDescription: "Packaging options",
			Enum: []resource.EnumSpec{
				{Value: "bulk"},
				{Value: "individual"},
			},
		},
		"spending_controls.allowed_categories": {
			Type:             "array",
			ShortDescription: "Array of strings containing [categories](https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category) of authorizations to allow",
		},
		"spending_controls.allowed_merchant_countries": {
			Type:             "array",
			ShortDescription: "Array of strings containing representing countries from which authorizations will be allowed",
		},
		"spending_controls.blocked_categories": {
			Type:             "array",
			ShortDescription: "Array of strings containing [categories](https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category) of authorizations to decline",
		},
		"spending_controls.blocked_merchant_countries": {
			Type:             "array",
			ShortDescription: "Array of strings containing representing countries from which authorizations will be declined",
		},
		"status": {
			Type:             "string",
			ShortDescription: "Dictates whether authorizations can be approved on this card",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "active"},
				{Value: "canceled"},
				{Value: "inactive"},
			},
		},
	},
}
View Source
var V1IssuingDisputesCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/issuing/disputes",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "The dispute amount in the card's currency and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal)",
		},
		"evidence.canceled.additional_documentation": {
			Type:             "string",
			ShortDescription: "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute",
		},
		"evidence.canceled.canceled_at": {
			Type:             "integer",
			ShortDescription: "Date when order was canceled",
		},
		"evidence.canceled.cancellation_policy_provided": {
			Type:             "boolean",
			ShortDescription: "Whether the cardholder was provided with a cancellation policy",
		},
		"evidence.canceled.cancellation_reason": {
			Type:             "string",
			ShortDescription: "Reason for canceling the order",
		},
		"evidence.canceled.expected_at": {
			Type:             "integer",
			ShortDescription: "Date when the cardholder expected to receive the product",
		},
		"evidence.canceled.explanation": {
			Type:             "string",
			ShortDescription: "Explanation of why the cardholder is disputing this transaction",
		},
		"evidence.canceled.product_description": {
			Type:             "string",
			ShortDescription: "Description of the merchandise or service that was purchased",
		},
		"evidence.canceled.product_type": {
			Type:             "string",
			ShortDescription: "Whether the product was a merchandise or service",
			Enum: []resource.EnumSpec{
				{Value: "merchandise"},
				{Value: "service"},
			},
		},
		"evidence.canceled.return_status": {
			Type:             "string",
			ShortDescription: "Result of cardholder's attempt to return the product",
			Enum: []resource.EnumSpec{
				{Value: "merchant_rejected"},
				{Value: "successful"},
			},
		},
		"evidence.canceled.returned_at": {
			Type:             "integer",
			ShortDescription: "Date when the product was returned or attempted to be returned",
		},
		"evidence.duplicate.additional_documentation": {
			Type:             "string",
			ShortDescription: "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute",
		},
		"evidence.duplicate.card_statement": {
			Type:             "string",
			ShortDescription: "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Copy of the card statement showing that the product had already been paid for",
		},
		"evidence.duplicate.cash_receipt": {
			Type:             "string",
			ShortDescription: "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Copy of the receipt showing that the product had been paid for in cash",
		},
		"evidence.duplicate.check_image": {
			Type:             "string",
			ShortDescription: "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Image of the front and back of the check that was used to pay for the product",
		},
		"evidence.duplicate.explanation": {
			Type:             "string",
			ShortDescription: "Explanation of why the cardholder is disputing this transaction",
		},
		"evidence.duplicate.original_transaction": {
			Type:             "string",
			ShortDescription: "Transaction (e.g., ipi_...) that the disputed transaction is a duplicate of",
		},
		"evidence.fraudulent.additional_documentation": {
			Type:             "string",
			ShortDescription: "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute",
		},
		"evidence.fraudulent.explanation": {
			Type:             "string",
			ShortDescription: "Explanation of why the cardholder is disputing this transaction",
		},
		"evidence.merchandise_not_as_described.additional_documentation": {
			Type:             "string",
			ShortDescription: "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute",
		},
		"evidence.merchandise_not_as_described.explanation": {
			Type:             "string",
			ShortDescription: "Explanation of why the cardholder is disputing this transaction",
		},
		"evidence.merchandise_not_as_described.received_at": {
			Type:             "integer",
			ShortDescription: "Date when the product was received",
		},
		"evidence.merchandise_not_as_described.return_description": {
			Type:             "string",
			ShortDescription: "Description of the cardholder's attempt to return the product",
		},
		"evidence.merchandise_not_as_described.return_status": {
			Type:             "string",
			ShortDescription: "Result of cardholder's attempt to return the product",
			Enum: []resource.EnumSpec{
				{Value: "merchant_rejected"},
				{Value: "successful"},
			},
		},
		"evidence.merchandise_not_as_described.returned_at": {
			Type:             "integer",
			ShortDescription: "Date when the product was returned or attempted to be returned",
		},
		"evidence.no_valid_authorization.additional_documentation": {
			Type:             "string",
			ShortDescription: "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute",
		},
		"evidence.no_valid_authorization.explanation": {
			Type:             "string",
			ShortDescription: "Explanation of why the cardholder is disputing this transaction",
		},
		"evidence.not_received.additional_documentation": {
			Type:             "string",
			ShortDescription: "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute",
		},
		"evidence.not_received.expected_at": {
			Type:             "integer",
			ShortDescription: "Date when the cardholder expected to receive the product",
		},
		"evidence.not_received.explanation": {
			Type:             "string",
			ShortDescription: "Explanation of why the cardholder is disputing this transaction",
		},
		"evidence.not_received.product_description": {
			Type:             "string",
			ShortDescription: "Description of the merchandise or service that was purchased",
		},
		"evidence.not_received.product_type": {
			Type:             "string",
			ShortDescription: "Whether the product was a merchandise or service",
			Enum: []resource.EnumSpec{
				{Value: "merchandise"},
				{Value: "service"},
			},
		},
		"evidence.other.additional_documentation": {
			Type:             "string",
			ShortDescription: "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute",
		},
		"evidence.other.explanation": {
			Type:             "string",
			ShortDescription: "Explanation of why the cardholder is disputing this transaction",
		},
		"evidence.other.product_description": {
			Type:             "string",
			ShortDescription: "Description of the merchandise or service that was purchased",
		},
		"evidence.other.product_type": {
			Type:             "string",
			ShortDescription: "Whether the product was a merchandise or service",
			Enum: []resource.EnumSpec{
				{Value: "merchandise"},
				{Value: "service"},
			},
		},
		"evidence.reason": {
			Type:             "string",
			ShortDescription: "The reason for filing the dispute",
			Enum: []resource.EnumSpec{
				{Value: "canceled"},
				{Value: "duplicate"},
				{Value: "fraudulent"},
				{Value: "merchandise_not_as_described"},
				{Value: "no_valid_authorization"},
				{Value: "not_received"},
				{Value: "other"},
				{Value: "service_not_as_described"},
			},
		},
		"evidence.service_not_as_described.additional_documentation": {
			Type:             "string",
			ShortDescription: "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute",
		},
		"evidence.service_not_as_described.canceled_at": {
			Type:             "integer",
			ShortDescription: "Date when order was canceled",
		},
		"evidence.service_not_as_described.cancellation_reason": {
			Type:             "string",
			ShortDescription: "Reason for canceling the order",
		},
		"evidence.service_not_as_described.explanation": {
			Type:             "string",
			ShortDescription: "Explanation of why the cardholder is disputing this transaction",
		},
		"evidence.service_not_as_described.received_at": {
			Type:             "integer",
			ShortDescription: "Date when the product was received",
		},
		"transaction": {
			Type:             "string",
			ShortDescription: "The ID of the issuing transaction to create a dispute for",
			MostCommon:       true,
		},
		"treasury.received_debit": {
			Type:             "string",
			ShortDescription: "The ID of the ReceivedDebit to initiate an Issuings dispute for",
		},
	},
}
View Source
var V1IssuingDisputesList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/issuing/disputes",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type:             "integer",
			ShortDescription: "Only return Issuing disputes that were created during the given date interval",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"status": {
			Type:             "string",
			ShortDescription: "Select Issuing disputes with the given status",
			Enum: []resource.EnumSpec{
				{Value: "expired"},
				{Value: "lost"},
				{Value: "submitted"},
				{Value: "unsubmitted"},
				{Value: "won"},
			},
		},
		"transaction": {
			Type:             "string",
			ShortDescription: "Select the Issuing dispute for the given transaction",
		},
	},
}
View Source
var V1IssuingDisputesRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/issuing/disputes/{dispute}",
	Method: "GET",
}
View Source
var V1IssuingDisputesSubmit = resource.OperationSpec{
	Name:   "submit",
	Path:   "/v1/issuing/disputes/{dispute}/submit",
	Method: "POST",
}
View Source
var V1IssuingDisputesUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/issuing/disputes/{dispute}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "The dispute amount in the card's currency and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal)",
		},
		"evidence.canceled.additional_documentation": {
			Type:             "string",
			ShortDescription: "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute",
		},
		"evidence.canceled.canceled_at": {
			Type:             "integer",
			ShortDescription: "Date when order was canceled",
		},
		"evidence.canceled.cancellation_policy_provided": {
			Type:             "boolean",
			ShortDescription: "Whether the cardholder was provided with a cancellation policy",
		},
		"evidence.canceled.cancellation_reason": {
			Type:             "string",
			ShortDescription: "Reason for canceling the order",
		},
		"evidence.canceled.expected_at": {
			Type:             "integer",
			ShortDescription: "Date when the cardholder expected to receive the product",
		},
		"evidence.canceled.explanation": {
			Type:             "string",
			ShortDescription: "Explanation of why the cardholder is disputing this transaction",
		},
		"evidence.canceled.product_description": {
			Type:             "string",
			ShortDescription: "Description of the merchandise or service that was purchased",
		},
		"evidence.canceled.product_type": {
			Type:             "string",
			ShortDescription: "Whether the product was a merchandise or service",
			Enum: []resource.EnumSpec{
				{Value: "merchandise"},
				{Value: "service"},
			},
		},
		"evidence.canceled.return_status": {
			Type:             "string",
			ShortDescription: "Result of cardholder's attempt to return the product",
			Enum: []resource.EnumSpec{
				{Value: "merchant_rejected"},
				{Value: "successful"},
			},
		},
		"evidence.canceled.returned_at": {
			Type:             "integer",
			ShortDescription: "Date when the product was returned or attempted to be returned",
		},
		"evidence.duplicate.additional_documentation": {
			Type:             "string",
			ShortDescription: "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute",
		},
		"evidence.duplicate.card_statement": {
			Type:             "string",
			ShortDescription: "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Copy of the card statement showing that the product had already been paid for",
		},
		"evidence.duplicate.cash_receipt": {
			Type:             "string",
			ShortDescription: "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Copy of the receipt showing that the product had been paid for in cash",
		},
		"evidence.duplicate.check_image": {
			Type:             "string",
			ShortDescription: "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Image of the front and back of the check that was used to pay for the product",
		},
		"evidence.duplicate.explanation": {
			Type:             "string",
			ShortDescription: "Explanation of why the cardholder is disputing this transaction",
		},
		"evidence.duplicate.original_transaction": {
			Type:             "string",
			ShortDescription: "Transaction (e.g., ipi_...) that the disputed transaction is a duplicate of",
		},
		"evidence.fraudulent.additional_documentation": {
			Type:             "string",
			ShortDescription: "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute",
		},
		"evidence.fraudulent.explanation": {
			Type:             "string",
			ShortDescription: "Explanation of why the cardholder is disputing this transaction",
		},
		"evidence.merchandise_not_as_described.additional_documentation": {
			Type:             "string",
			ShortDescription: "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute",
		},
		"evidence.merchandise_not_as_described.explanation": {
			Type:             "string",
			ShortDescription: "Explanation of why the cardholder is disputing this transaction",
		},
		"evidence.merchandise_not_as_described.received_at": {
			Type:             "integer",
			ShortDescription: "Date when the product was received",
		},
		"evidence.merchandise_not_as_described.return_description": {
			Type:             "string",
			ShortDescription: "Description of the cardholder's attempt to return the product",
		},
		"evidence.merchandise_not_as_described.return_status": {
			Type:             "string",
			ShortDescription: "Result of cardholder's attempt to return the product",
			Enum: []resource.EnumSpec{
				{Value: "merchant_rejected"},
				{Value: "successful"},
			},
		},
		"evidence.merchandise_not_as_described.returned_at": {
			Type:             "integer",
			ShortDescription: "Date when the product was returned or attempted to be returned",
		},
		"evidence.no_valid_authorization.additional_documentation": {
			Type:             "string",
			ShortDescription: "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute",
		},
		"evidence.no_valid_authorization.explanation": {
			Type:             "string",
			ShortDescription: "Explanation of why the cardholder is disputing this transaction",
		},
		"evidence.not_received.additional_documentation": {
			Type:             "string",
			ShortDescription: "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute",
		},
		"evidence.not_received.expected_at": {
			Type:             "integer",
			ShortDescription: "Date when the cardholder expected to receive the product",
		},
		"evidence.not_received.explanation": {
			Type:             "string",
			ShortDescription: "Explanation of why the cardholder is disputing this transaction",
		},
		"evidence.not_received.product_description": {
			Type:             "string",
			ShortDescription: "Description of the merchandise or service that was purchased",
		},
		"evidence.not_received.product_type": {
			Type:             "string",
			ShortDescription: "Whether the product was a merchandise or service",
			Enum: []resource.EnumSpec{
				{Value: "merchandise"},
				{Value: "service"},
			},
		},
		"evidence.other.additional_documentation": {
			Type:             "string",
			ShortDescription: "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute",
		},
		"evidence.other.explanation": {
			Type:             "string",
			ShortDescription: "Explanation of why the cardholder is disputing this transaction",
		},
		"evidence.other.product_description": {
			Type:             "string",
			ShortDescription: "Description of the merchandise or service that was purchased",
		},
		"evidence.other.product_type": {
			Type:             "string",
			ShortDescription: "Whether the product was a merchandise or service",
			Enum: []resource.EnumSpec{
				{Value: "merchandise"},
				{Value: "service"},
			},
		},
		"evidence.reason": {
			Type:             "string",
			ShortDescription: "The reason for filing the dispute",
			Enum: []resource.EnumSpec{
				{Value: "canceled"},
				{Value: "duplicate"},
				{Value: "fraudulent"},
				{Value: "merchandise_not_as_described"},
				{Value: "no_valid_authorization"},
				{Value: "not_received"},
				{Value: "other"},
				{Value: "service_not_as_described"},
			},
		},
		"evidence.service_not_as_described.additional_documentation": {
			Type:             "string",
			ShortDescription: "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute",
		},
		"evidence.service_not_as_described.canceled_at": {
			Type:             "integer",
			ShortDescription: "Date when order was canceled",
		},
		"evidence.service_not_as_described.cancellation_reason": {
			Type:             "string",
			ShortDescription: "Reason for canceling the order",
		},
		"evidence.service_not_as_described.explanation": {
			Type:             "string",
			ShortDescription: "Explanation of why the cardholder is disputing this transaction",
		},
		"evidence.service_not_as_described.received_at": {
			Type:             "integer",
			ShortDescription: "Date when the product was received",
		},
	},
}
View Source
var V1IssuingPersonalizationDesignsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/issuing/personalization_designs",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"card_logo": {
			Type:             "string",
			ShortDescription: "The file for the card logo, for use with physical bundles that support card logos",
			MostCommon:       true,
		},
		"carrier_text.footer_body": {
			Type:             "string",
			ShortDescription: "The footer body text of the carrier letter",
		},
		"carrier_text.footer_title": {
			Type:             "string",
			ShortDescription: "The footer title text of the carrier letter",
		},
		"carrier_text.header_body": {
			Type:             "string",
			ShortDescription: "The header body text of the carrier letter",
		},
		"carrier_text.header_title": {
			Type:             "string",
			ShortDescription: "The header title text of the carrier letter",
		},
		"lookup_key": {
			Type:             "string",
			ShortDescription: "A lookup key used to retrieve personalization designs dynamically from a static string",
			MostCommon:       true,
		},
		"name": {
			Type:             "string",
			ShortDescription: "Friendly display name",
			MostCommon:       true,
		},
		"physical_bundle": {
			Type:             "string",
			ShortDescription: "The physical bundle object belonging to this personalization design",
			Required:         true,
			MostCommon:       true,
		},
		"preferences.is_default": {
			Type:             "boolean",
			ShortDescription: "Whether we use this personalization design to create cards when one isn't specified",
			MostCommon:       true,
		},
		"transfer_lookup_key": {
			Type:             "boolean",
			ShortDescription: "If set to true, will atomically remove the lookup key from the existing personalization design, and assign it to this personalization design",
			MostCommon:       true,
		},
	},
}
View Source
var V1IssuingPersonalizationDesignsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/issuing/personalization_designs",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"lookup_keys": {
			Type:             "array",
			ShortDescription: "Only return personalization designs with the given lookup keys",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"status": {
			Type:             "string",
			ShortDescription: "Only return personalization designs with the given status",
			Enum: []resource.EnumSpec{
				{Value: "active"},
				{Value: "inactive"},
				{Value: "rejected"},
				{Value: "review"},
			},
		},
	},
}
View Source
var V1IssuingPersonalizationDesignsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/issuing/personalization_designs/{personalization_design}",
	Method: "GET",
}
View Source
var V1IssuingPersonalizationDesignsTestHelpersActivate = resource.OperationSpec{
	Name:   "activate",
	Path:   "/v1/test_helpers/issuing/personalization_designs/{personalization_design}/activate",
	Method: "POST",
}
View Source
var V1IssuingPersonalizationDesignsTestHelpersDeactivate = resource.OperationSpec{
	Name:   "deactivate",
	Path:   "/v1/test_helpers/issuing/personalization_designs/{personalization_design}/deactivate",
	Method: "POST",
}
View Source
var V1IssuingPersonalizationDesignsTestHelpersReject = resource.OperationSpec{
	Name:   "reject",
	Path:   "/v1/test_helpers/issuing/personalization_designs/{personalization_design}/reject",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"rejection_reasons.card_logo": {
			Type:             "array",
			ShortDescription: "The reason(s) the card logo was rejected",
		},
		"rejection_reasons.carrier_text": {
			Type:             "array",
			ShortDescription: "The reason(s) the carrier text was rejected",
		},
	},
}
View Source
var V1IssuingPersonalizationDesignsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/issuing/personalization_designs/{personalization_design}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"card_logo": {
			Type:             "string",
			ShortDescription: "The file for the card logo, for use with physical bundles that support card logos",
			MostCommon:       true,
		},
		"carrier_text": {
			Type:       "clearable_object",
			MostCommon: true,
		},
		"carrier_text.footer_body": {
			Type:             "string",
			ShortDescription: "The footer body text of the carrier letter",
			MostCommon:       true,
		},
		"carrier_text.footer_title": {
			Type:             "string",
			ShortDescription: "The footer title text of the carrier letter",
			MostCommon:       true,
		},
		"carrier_text.header_body": {
			Type:             "string",
			ShortDescription: "The header body text of the carrier letter",
			MostCommon:       true,
		},
		"carrier_text.header_title": {
			Type:             "string",
			ShortDescription: "The header title text of the carrier letter",
			MostCommon:       true,
		},
		"lookup_key": {
			Type:             "string",
			ShortDescription: "A lookup key used to retrieve personalization designs dynamically from a static string",
			MostCommon:       true,
		},
		"name": {
			Type:             "string",
			ShortDescription: "Friendly display name",
			MostCommon:       true,
		},
		"physical_bundle": {
			Type:             "string",
			ShortDescription: "The physical bundle object belonging to this personalization design",
			MostCommon:       true,
		},
		"preferences.is_default": {
			Type:             "boolean",
			ShortDescription: "Whether we use this personalization design to create cards when one isn't specified",
			MostCommon:       true,
		},
		"transfer_lookup_key": {
			Type:             "boolean",
			ShortDescription: "If set to true, will atomically remove the lookup key from the existing personalization design, and assign it to this personalization design",
			MostCommon:       true,
		},
	},
}
View Source
var V1IssuingPhysicalBundlesList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/issuing/physical_bundles",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"status": {
			Type:             "string",
			ShortDescription: "Only return physical bundles with the given status",
			Enum: []resource.EnumSpec{
				{Value: "active"},
				{Value: "inactive"},
				{Value: "review"},
			},
		},
		"type": {
			Type:             "string",
			ShortDescription: "Only return physical bundles with the given type",
			Enum: []resource.EnumSpec{
				{Value: "custom"},
				{Value: "standard"},
			},
		},
	},
}
View Source
var V1IssuingPhysicalBundlesRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/issuing/physical_bundles/{physical_bundle}",
	Method: "GET",
}
View Source
var V1IssuingTokensList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/issuing/tokens",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"card": {
			Type:             "string",
			ShortDescription: "The Issuing card identifier to list tokens for",
			Required:         true,
		},
		"created": {
			Type:             "integer",
			ShortDescription: "Only return Issuing tokens that were created during the given date interval",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"status": {
			Type:             "string",
			ShortDescription: "Select Issuing tokens with the given status",
			Enum: []resource.EnumSpec{
				{Value: "active"},
				{Value: "deleted"},
				{Value: "requested"},
				{Value: "suspended"},
			},
		},
	},
}
View Source
var V1IssuingTokensRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/issuing/tokens/{token}",
	Method: "GET",
}
View Source
var V1IssuingTokensUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/issuing/tokens/{token}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"status": {
			Type:             "string",
			ShortDescription: "Specifies which status the token should be updated to",
			Required:         true,
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "active"},
				{Value: "deleted"},
				{Value: "suspended"},
			},
		},
	},
}
View Source
var V1IssuingTransactionsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/issuing/transactions",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"card": {
			Type:             "string",
			ShortDescription: "Only return transactions that belong to the given card",
		},
		"cardholder": {
			Type:             "string",
			ShortDescription: "Only return transactions that belong to the given cardholder",
		},
		"created": {
			Type:             "integer",
			ShortDescription: "Only return transactions that were created during the given date interval",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"type": {
			Type:             "string",
			ShortDescription: "Only return transactions that have the given type",
			Enum: []resource.EnumSpec{
				{Value: "capture"},
				{Value: "refund"},
			},
		},
	},
}
View Source
var V1IssuingTransactionsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/issuing/transactions/{transaction}",
	Method: "GET",
}
View Source
var V1IssuingTransactionsTestHelpersCreateForceCapture = resource.OperationSpec{
	Name:   "create_force_capture",
	Path:   "/v1/test_helpers/issuing/transactions/create_force_capture",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "The total amount to attempt to capture",
			Required:         true,
			MostCommon:       true,
		},
		"card": {
			Type:             "string",
			ShortDescription: "Card associated with this transaction",
			Required:         true,
			MostCommon:       true,
		},
		"currency": {
			Type:             "string",
			ShortDescription: "The currency of the capture",
			MostCommon:       true,
			Format:           "currency",
		},
		"merchant_data.category": {
			Type:             "string",
			ShortDescription: "A categorization of the seller's type of business",
			Enum: []resource.EnumSpec{
				{Value: "ac_refrigeration_repair"},
				{Value: "accounting_bookkeeping_services"},
				{Value: "advertising_services"},
				{Value: "agricultural_cooperative"},
				{Value: "airlines_air_carriers"},
				{Value: "airports_flying_fields"},
				{Value: "ambulance_services"},
				{Value: "amusement_parks_carnivals"},
				{Value: "antique_reproductions"},
				{Value: "antique_shops"},
				{Value: "aquariums"},
				{Value: "architectural_surveying_services"},
				{Value: "art_dealers_and_galleries"},
				{Value: "artists_supply_and_craft_shops"},
				{Value: "auto_and_home_supply_stores"},
				{Value: "auto_body_repair_shops"},
				{Value: "auto_paint_shops"},
				{Value: "auto_service_shops"},
				{Value: "automated_cash_disburse"},
				{Value: "automated_fuel_dispensers"},
				{Value: "automobile_associations"},
				{Value: "automotive_parts_and_accessories_stores"},
				{Value: "automotive_tire_stores"},
				{Value: "bail_and_bond_payments"},
				{Value: "bakeries"},
				{Value: "bands_orchestras"},
				{Value: "barber_and_beauty_shops"},
				{Value: "betting_casino_gambling"},
				{Value: "bicycle_shops"},
				{Value: "billiard_pool_establishments"},
				{Value: "boat_dealers"},
				{Value: "boat_rentals_and_leases"},
				{Value: "book_stores"},
				{Value: "books_periodicals_and_newspapers"},
				{Value: "bowling_alleys"},
				{Value: "bus_lines"},
				{Value: "business_secretarial_schools"},
				{Value: "buying_shopping_services"},
				{Value: "cable_satellite_and_other_pay_television_and_radio"},
				{Value: "camera_and_photographic_supply_stores"},
				{Value: "candy_nut_and_confectionery_stores"},
				{Value: "car_and_truck_dealers_new_used"},
				{Value: "car_and_truck_dealers_used_only"},
				{Value: "car_rental_agencies"},
				{Value: "car_washes"},
				{Value: "carpentry_services"},
				{Value: "carpet_upholstery_cleaning"},
				{Value: "caterers"},
				{Value: "charitable_and_social_service_organizations_fundraising"},
				{Value: "chemicals_and_allied_products"},
				{Value: "child_care_services"},
				{Value: "childrens_and_infants_wear_stores"},
				{Value: "chiropodists_podiatrists"},
				{Value: "chiropractors"},
				{Value: "cigar_stores_and_stands"},
				{Value: "civic_social_fraternal_associations"},
				{Value: "cleaning_and_maintenance"},
				{Value: "clothing_rental"},
				{Value: "colleges_universities"},
				{Value: "commercial_equipment"},
				{Value: "commercial_footwear"},
				{Value: "commercial_photography_art_and_graphics"},
				{Value: "commuter_transport_and_ferries"},
				{Value: "computer_network_services"},
				{Value: "computer_programming"},
				{Value: "computer_repair"},
				{Value: "computer_software_stores"},
				{Value: "computers_peripherals_and_software"},
				{Value: "concrete_work_services"},
				{Value: "construction_materials"},
				{Value: "consulting_public_relations"},
				{Value: "correspondence_schools"},
				{Value: "cosmetic_stores"},
				{Value: "counseling_services"},
				{Value: "country_clubs"},
				{Value: "courier_services"},
				{Value: "court_costs"},
				{Value: "credit_reporting_agencies"},
				{Value: "cruise_lines"},
				{Value: "dairy_products_stores"},
				{Value: "dance_hall_studios_schools"},
				{Value: "dating_escort_services"},
				{Value: "dentists_orthodontists"},
				{Value: "department_stores"},
				{Value: "detective_agencies"},
				{Value: "digital_goods_applications"},
				{Value: "digital_goods_games"},
				{Value: "digital_goods_large_volume"},
				{Value: "digital_goods_media"},
				{Value: "direct_marketing_catalog_merchant"},
				{Value: "direct_marketing_combination_catalog_and_retail_merchant"},
				{Value: "direct_marketing_inbound_telemarketing"},
				{Value: "direct_marketing_insurance_services"},
				{Value: "direct_marketing_other"},
				{Value: "direct_marketing_outbound_telemarketing"},
				{Value: "direct_marketing_subscription"},
				{Value: "direct_marketing_travel"},
				{Value: "discount_stores"},
				{Value: "doctors"},
				{Value: "door_to_door_sales"},
				{Value: "drapery_window_covering_and_upholstery_stores"},
				{Value: "drinking_places"},
				{Value: "drug_stores_and_pharmacies"},
				{Value: "drugs_drug_proprietaries_and_druggist_sundries"},
				{Value: "dry_cleaners"},
				{Value: "durable_goods"},
				{Value: "duty_free_stores"},
				{Value: "eating_places_restaurants"},
				{Value: "educational_services"},
				{Value: "electric_razor_stores"},
				{Value: "electric_vehicle_charging"},
				{Value: "electrical_parts_and_equipment"},
				{Value: "electrical_services"},
				{Value: "electronics_repair_shops"},
				{Value: "electronics_stores"},
				{Value: "elementary_secondary_schools"},
				{Value: "emergency_services_gcas_visa_use_only"},
				{Value: "employment_temp_agencies"},
				{Value: "equipment_rental"},
				{Value: "exterminating_services"},
				{Value: "family_clothing_stores"},
				{Value: "fast_food_restaurants"},
				{Value: "financial_institutions"},
				{Value: "fines_government_administrative_entities"},
				{Value: "fireplace_fireplace_screens_and_accessories_stores"},
				{Value: "floor_covering_stores"},
				{Value: "florists"},
				{Value: "florists_supplies_nursery_stock_and_flowers"},
				{Value: "freezer_and_locker_meat_provisioners"},
				{Value: "fuel_dealers_non_automotive"},
				{Value: "funeral_services_crematories"},
				{Value: "furniture_home_furnishings_and_equipment_stores_except_appliances"},
				{Value: "furniture_repair_refinishing"},
				{Value: "furriers_and_fur_shops"},
				{Value: "general_services"},
				{Value: "gift_card_novelty_and_souvenir_shops"},
				{Value: "glass_paint_and_wallpaper_stores"},
				{Value: "glassware_crystal_stores"},
				{Value: "golf_courses_public"},
				{Value: "government_licensed_horse_dog_racing_us_region_only"},
				{Value: "government_licensed_online_casions_online_gambling_us_region_only"},
				{Value: "government_owned_lotteries_non_us_region"},
				{Value: "government_owned_lotteries_us_region_only"},
				{Value: "government_services"},
				{Value: "grocery_stores_supermarkets"},
				{Value: "hardware_equipment_and_supplies"},
				{Value: "hardware_stores"},
				{Value: "health_and_beauty_spas"},
				{Value: "hearing_aids_sales_and_supplies"},
				{Value: "heating_plumbing_a_c"},
				{Value: "hobby_toy_and_game_shops"},
				{Value: "home_supply_warehouse_stores"},
				{Value: "hospitals"},
				{Value: "hotels_motels_and_resorts"},
				{Value: "household_appliance_stores"},
				{Value: "industrial_supplies"},
				{Value: "information_retrieval_services"},
				{Value: "insurance_default"},
				{Value: "insurance_underwriting_premiums"},
				{Value: "intra_company_purchases"},
				{Value: "jewelry_stores_watches_clocks_and_silverware_stores"},
				{Value: "landscaping_services"},
				{Value: "laundries"},
				{Value: "laundry_cleaning_services"},
				{Value: "legal_services_attorneys"},
				{Value: "luggage_and_leather_goods_stores"},
				{Value: "lumber_building_materials_stores"},
				{Value: "manual_cash_disburse"},
				{Value: "marinas_service_and_supplies"},
				{Value: "marketplaces"},
				{Value: "masonry_stonework_and_plaster"},
				{Value: "massage_parlors"},
				{Value: "medical_and_dental_labs"},
				{Value: "medical_dental_ophthalmic_and_hospital_equipment_and_supplies"},
				{Value: "medical_services"},
				{Value: "membership_organizations"},
				{Value: "mens_and_boys_clothing_and_accessories_stores"},
				{Value: "mens_womens_clothing_stores"},
				{Value: "metal_service_centers"},
				{Value: "miscellaneous_apparel_and_accessory_shops"},
				{Value: "miscellaneous_auto_dealers"},
				{Value: "miscellaneous_business_services"},
				{Value: "miscellaneous_food_stores"},
				{Value: "miscellaneous_general_merchandise"},
				{Value: "miscellaneous_general_services"},
				{Value: "miscellaneous_home_furnishing_specialty_stores"},
				{Value: "miscellaneous_publishing_and_printing"},
				{Value: "miscellaneous_recreation_services"},
				{Value: "miscellaneous_repair_shops"},
				{Value: "miscellaneous_specialty_retail"},
				{Value: "mobile_home_dealers"},
				{Value: "motion_picture_theaters"},
				{Value: "motor_freight_carriers_and_trucking"},
				{Value: "motor_homes_dealers"},
				{Value: "motor_vehicle_supplies_and_new_parts"},
				{Value: "motorcycle_shops_and_dealers"},
				{Value: "motorcycle_shops_dealers"},
				{Value: "music_stores_musical_instruments_pianos_and_sheet_music"},
				{Value: "news_dealers_and_newsstands"},
				{Value: "non_fi_money_orders"},
				{Value: "non_fi_stored_value_card_purchase_load"},
				{Value: "nondurable_goods"},
				{Value: "nurseries_lawn_and_garden_supply_stores"},
				{Value: "nursing_personal_care"},
				{Value: "office_and_commercial_furniture"},
				{Value: "opticians_eyeglasses"},
				{Value: "optometrists_ophthalmologist"},
				{Value: "orthopedic_goods_prosthetic_devices"},
				{Value: "osteopaths"},
				{Value: "package_stores_beer_wine_and_liquor"},
				{Value: "paints_varnishes_and_supplies"},
				{Value: "parking_lots_garages"},
				{Value: "passenger_railways"},
				{Value: "pawn_shops"},
				{Value: "pet_shops_pet_food_and_supplies"},
				{Value: "petroleum_and_petroleum_products"},
				{Value: "photo_developing"},
				{Value: "photographic_photocopy_microfilm_equipment_and_supplies"},
				{Value: "photographic_studios"},
				{Value: "picture_video_production"},
				{Value: "piece_goods_notions_and_other_dry_goods"},
				{Value: "plumbing_heating_equipment_and_supplies"},
				{Value: "political_organizations"},
				{Value: "postal_services_government_only"},
				{Value: "precious_stones_and_metals_watches_and_jewelry"},
				{Value: "professional_services"},
				{Value: "public_warehousing_and_storage"},
				{Value: "quick_copy_repro_and_blueprint"},
				{Value: "railroads"},
				{Value: "real_estate_agents_and_managers_rentals"},
				{Value: "record_stores"},
				{Value: "recreational_vehicle_rentals"},
				{Value: "religious_goods_stores"},
				{Value: "religious_organizations"},
				{Value: "roofing_siding_sheet_metal"},
				{Value: "secretarial_support_services"},
				{Value: "security_brokers_dealers"},
				{Value: "service_stations"},
				{Value: "sewing_needlework_fabric_and_piece_goods_stores"},
				{Value: "shoe_repair_hat_cleaning"},
				{Value: "shoe_stores"},
				{Value: "small_appliance_repair"},
				{Value: "snowmobile_dealers"},
				{Value: "special_trade_services"},
				{Value: "specialty_cleaning"},
				{Value: "sporting_goods_stores"},
				{Value: "sporting_recreation_camps"},
				{Value: "sports_and_riding_apparel_stores"},
				{Value: "sports_clubs_fields"},
				{Value: "stamp_and_coin_stores"},
				{Value: "stationary_office_supplies_printing_and_writing_paper"},
				{Value: "stationery_stores_office_and_school_supply_stores"},
				{Value: "swimming_pools_sales"},
				{Value: "t_ui_travel_germany"},
				{Value: "tailors_alterations"},
				{Value: "tax_payments_government_agencies"},
				{Value: "tax_preparation_services"},
				{Value: "taxicabs_limousines"},
				{Value: "telecommunication_equipment_and_telephone_sales"},
				{Value: "telecommunication_services"},
				{Value: "telegraph_services"},
				{Value: "tent_and_awning_shops"},
				{Value: "testing_laboratories"},
				{Value: "theatrical_ticket_agencies"},
				{Value: "timeshares"},
				{Value: "tire_retreading_and_repair"},
				{Value: "tolls_bridge_fees"},
				{Value: "tourist_attractions_and_exhibits"},
				{Value: "towing_services"},
				{Value: "trailer_parks_campgrounds"},
				{Value: "transportation_services"},
				{Value: "travel_agencies_tour_operators"},
				{Value: "truck_stop_iteration"},
				{Value: "truck_utility_trailer_rentals"},
				{Value: "typesetting_plate_making_and_related_services"},
				{Value: "typewriter_stores"},
				{Value: "u_s_federal_government_agencies_or_departments"},
				{Value: "uniforms_commercial_clothing"},
				{Value: "used_merchandise_and_secondhand_stores"},
				{Value: "utilities"},
				{Value: "variety_stores"},
				{Value: "veterinary_services"},
				{Value: "video_amusement_game_supplies"},
				{Value: "video_game_arcades"},
				{Value: "video_tape_rental_stores"},
				{Value: "vocational_trade_schools"},
				{Value: "watch_jewelry_repair"},
				{Value: "welding_repair"},
				{Value: "wholesale_clubs"},
				{Value: "wig_and_toupee_stores"},
				{Value: "wires_money_orders"},
				{Value: "womens_accessory_and_specialty_shops"},
				{Value: "womens_ready_to_wear_stores"},
				{Value: "wrecking_and_salvage_yards"},
			},
		},
		"merchant_data.city": {
			Type:             "string",
			ShortDescription: "City where the seller is located",
		},
		"merchant_data.country": {
			Type:             "string",
			ShortDescription: "Country where the seller is located",
		},
		"merchant_data.name": {
			Type:             "string",
			ShortDescription: "Name of the seller",
		},
		"merchant_data.network_id": {
			Type:             "string",
			ShortDescription: "Identifier assigned to the seller by the card network",
		},
		"merchant_data.postal_code": {
			Type:             "string",
			ShortDescription: "Postal code where the seller is located",
		},
		"merchant_data.state": {
			Type:             "string",
			ShortDescription: "State where the seller is located",
		},
		"merchant_data.terminal_id": {
			Type:             "string",
			ShortDescription: "An ID assigned by the seller to the location of the sale",
		},
		"merchant_data.url": {
			Type:             "string",
			ShortDescription: "URL provided by the merchant on a 3DS request",
		},
		"purchase_details.fleet.cardholder_prompt_data.driver_id": {
			Type:             "string",
			ShortDescription: "Driver ID",
		},
		"purchase_details.fleet.cardholder_prompt_data.odometer": {
			Type:             "integer",
			ShortDescription: "Odometer reading",
		},
		"purchase_details.fleet.cardholder_prompt_data.unspecified_id": {
			Type:             "string",
			ShortDescription: "An alphanumeric ID",
		},
		"purchase_details.fleet.cardholder_prompt_data.user_id": {
			Type:             "string",
			ShortDescription: "User ID",
		},
		"purchase_details.fleet.cardholder_prompt_data.vehicle_number": {
			Type:             "string",
			ShortDescription: "Vehicle number",
		},
		"purchase_details.fleet.purchase_type": {
			Type:             "string",
			ShortDescription: "The type of purchase",
			Enum: []resource.EnumSpec{
				{Value: "fuel_and_non_fuel_purchase"},
				{Value: "fuel_purchase"},
				{Value: "non_fuel_purchase"},
			},
		},
		"purchase_details.fleet.reported_breakdown.fuel.gross_amount_decimal": {
			Type:             "string",
			ShortDescription: "Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes",
			Format:           "decimal",
		},
		"purchase_details.fleet.reported_breakdown.non_fuel.gross_amount_decimal": {
			Type:             "string",
			ShortDescription: "Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes",
			Format:           "decimal",
		},
		"purchase_details.fleet.reported_breakdown.tax.local_amount_decimal": {
			Type:             "string",
			ShortDescription: "Amount of state or provincial Sales Tax included in the transaction amount",
			Format:           "decimal",
		},
		"purchase_details.fleet.reported_breakdown.tax.national_amount_decimal": {
			Type:             "string",
			ShortDescription: "Amount of national Sales Tax or VAT included in the transaction amount",
			Format:           "decimal",
		},
		"purchase_details.fleet.service_type": {
			Type:             "string",
			ShortDescription: "The type of fuel service",
			Enum: []resource.EnumSpec{
				{Value: "full_service"},
				{Value: "non_fuel_transaction"},
				{Value: "self_service"},
			},
		},
		"purchase_details.flight.departure_at": {
			Type:             "integer",
			ShortDescription: "The time that the flight departed",
			Format:           "unix-time",
		},
		"purchase_details.flight.passenger_name": {
			Type:             "string",
			ShortDescription: "The name of the passenger",
		},
		"purchase_details.flight.refundable": {
			Type:             "boolean",
			ShortDescription: "Whether the ticket is refundable",
		},
		"purchase_details.flight.travel_agency": {
			Type:             "string",
			ShortDescription: "The travel agency that issued the ticket",
		},
		"purchase_details.fuel.industry_product_code": {
			Type:             "string",
			ShortDescription: "[Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased",
		},
		"purchase_details.fuel.quantity_decimal": {
			Type:             "string",
			ShortDescription: "The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places",
			Format:           "decimal",
		},
		"purchase_details.fuel.type": {
			Type:             "string",
			ShortDescription: "The type of fuel that was purchased",
			Enum: []resource.EnumSpec{
				{Value: "diesel"},
				{Value: "other"},
				{Value: "unleaded_plus"},
				{Value: "unleaded_regular"},
				{Value: "unleaded_super"},
			},
		},
		"purchase_details.fuel.unit": {
			Type:             "string",
			ShortDescription: "The units for `quantity_decimal`",
			Enum: []resource.EnumSpec{
				{Value: "charging_minute"},
				{Value: "imperial_gallon"},
				{Value: "kilogram"},
				{Value: "kilowatt_hour"},
				{Value: "liter"},
				{Value: "other"},
				{Value: "pound"},
				{Value: "us_gallon"},
			},
		},
		"purchase_details.fuel.unit_cost_decimal": {
			Type:             "string",
			ShortDescription: "The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places",
			Format:           "decimal",
		},
		"purchase_details.lodging.check_in_at": {
			Type:             "integer",
			ShortDescription: "The time of checking into the lodging",
			Format:           "unix-time",
		},
		"purchase_details.lodging.nights": {
			Type:             "integer",
			ShortDescription: "The number of nights stayed at the lodging",
		},
		"purchase_details.reference": {
			Type:             "string",
			ShortDescription: "A merchant-specific order number",
		},
	},
}
View Source
var V1IssuingTransactionsTestHelpersCreateUnlinkedRefund = resource.OperationSpec{
	Name:   "create_unlinked_refund",
	Path:   "/v1/test_helpers/issuing/transactions/create_unlinked_refund",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "The total amount to attempt to refund",
			Required:         true,
			MostCommon:       true,
		},
		"card": {
			Type:             "string",
			ShortDescription: "Card associated with this unlinked refund transaction",
			Required:         true,
			MostCommon:       true,
		},
		"currency": {
			Type:             "string",
			ShortDescription: "The currency of the unlinked refund",
			MostCommon:       true,
			Format:           "currency",
		},
		"merchant_data.category": {
			Type:             "string",
			ShortDescription: "A categorization of the seller's type of business",
			Enum: []resource.EnumSpec{
				{Value: "ac_refrigeration_repair"},
				{Value: "accounting_bookkeeping_services"},
				{Value: "advertising_services"},
				{Value: "agricultural_cooperative"},
				{Value: "airlines_air_carriers"},
				{Value: "airports_flying_fields"},
				{Value: "ambulance_services"},
				{Value: "amusement_parks_carnivals"},
				{Value: "antique_reproductions"},
				{Value: "antique_shops"},
				{Value: "aquariums"},
				{Value: "architectural_surveying_services"},
				{Value: "art_dealers_and_galleries"},
				{Value: "artists_supply_and_craft_shops"},
				{Value: "auto_and_home_supply_stores"},
				{Value: "auto_body_repair_shops"},
				{Value: "auto_paint_shops"},
				{Value: "auto_service_shops"},
				{Value: "automated_cash_disburse"},
				{Value: "automated_fuel_dispensers"},
				{Value: "automobile_associations"},
				{Value: "automotive_parts_and_accessories_stores"},
				{Value: "automotive_tire_stores"},
				{Value: "bail_and_bond_payments"},
				{Value: "bakeries"},
				{Value: "bands_orchestras"},
				{Value: "barber_and_beauty_shops"},
				{Value: "betting_casino_gambling"},
				{Value: "bicycle_shops"},
				{Value: "billiard_pool_establishments"},
				{Value: "boat_dealers"},
				{Value: "boat_rentals_and_leases"},
				{Value: "book_stores"},
				{Value: "books_periodicals_and_newspapers"},
				{Value: "bowling_alleys"},
				{Value: "bus_lines"},
				{Value: "business_secretarial_schools"},
				{Value: "buying_shopping_services"},
				{Value: "cable_satellite_and_other_pay_television_and_radio"},
				{Value: "camera_and_photographic_supply_stores"},
				{Value: "candy_nut_and_confectionery_stores"},
				{Value: "car_and_truck_dealers_new_used"},
				{Value: "car_and_truck_dealers_used_only"},
				{Value: "car_rental_agencies"},
				{Value: "car_washes"},
				{Value: "carpentry_services"},
				{Value: "carpet_upholstery_cleaning"},
				{Value: "caterers"},
				{Value: "charitable_and_social_service_organizations_fundraising"},
				{Value: "chemicals_and_allied_products"},
				{Value: "child_care_services"},
				{Value: "childrens_and_infants_wear_stores"},
				{Value: "chiropodists_podiatrists"},
				{Value: "chiropractors"},
				{Value: "cigar_stores_and_stands"},
				{Value: "civic_social_fraternal_associations"},
				{Value: "cleaning_and_maintenance"},
				{Value: "clothing_rental"},
				{Value: "colleges_universities"},
				{Value: "commercial_equipment"},
				{Value: "commercial_footwear"},
				{Value: "commercial_photography_art_and_graphics"},
				{Value: "commuter_transport_and_ferries"},
				{Value: "computer_network_services"},
				{Value: "computer_programming"},
				{Value: "computer_repair"},
				{Value: "computer_software_stores"},
				{Value: "computers_peripherals_and_software"},
				{Value: "concrete_work_services"},
				{Value: "construction_materials"},
				{Value: "consulting_public_relations"},
				{Value: "correspondence_schools"},
				{Value: "cosmetic_stores"},
				{Value: "counseling_services"},
				{Value: "country_clubs"},
				{Value: "courier_services"},
				{Value: "court_costs"},
				{Value: "credit_reporting_agencies"},
				{Value: "cruise_lines"},
				{Value: "dairy_products_stores"},
				{Value: "dance_hall_studios_schools"},
				{Value: "dating_escort_services"},
				{Value: "dentists_orthodontists"},
				{Value: "department_stores"},
				{Value: "detective_agencies"},
				{Value: "digital_goods_applications"},
				{Value: "digital_goods_games"},
				{Value: "digital_goods_large_volume"},
				{Value: "digital_goods_media"},
				{Value: "direct_marketing_catalog_merchant"},
				{Value: "direct_marketing_combination_catalog_and_retail_merchant"},
				{Value: "direct_marketing_inbound_telemarketing"},
				{Value: "direct_marketing_insurance_services"},
				{Value: "direct_marketing_other"},
				{Value: "direct_marketing_outbound_telemarketing"},
				{Value: "direct_marketing_subscription"},
				{Value: "direct_marketing_travel"},
				{Value: "discount_stores"},
				{Value: "doctors"},
				{Value: "door_to_door_sales"},
				{Value: "drapery_window_covering_and_upholstery_stores"},
				{Value: "drinking_places"},
				{Value: "drug_stores_and_pharmacies"},
				{Value: "drugs_drug_proprietaries_and_druggist_sundries"},
				{Value: "dry_cleaners"},
				{Value: "durable_goods"},
				{Value: "duty_free_stores"},
				{Value: "eating_places_restaurants"},
				{Value: "educational_services"},
				{Value: "electric_razor_stores"},
				{Value: "electric_vehicle_charging"},
				{Value: "electrical_parts_and_equipment"},
				{Value: "electrical_services"},
				{Value: "electronics_repair_shops"},
				{Value: "electronics_stores"},
				{Value: "elementary_secondary_schools"},
				{Value: "emergency_services_gcas_visa_use_only"},
				{Value: "employment_temp_agencies"},
				{Value: "equipment_rental"},
				{Value: "exterminating_services"},
				{Value: "family_clothing_stores"},
				{Value: "fast_food_restaurants"},
				{Value: "financial_institutions"},
				{Value: "fines_government_administrative_entities"},
				{Value: "fireplace_fireplace_screens_and_accessories_stores"},
				{Value: "floor_covering_stores"},
				{Value: "florists"},
				{Value: "florists_supplies_nursery_stock_and_flowers"},
				{Value: "freezer_and_locker_meat_provisioners"},
				{Value: "fuel_dealers_non_automotive"},
				{Value: "funeral_services_crematories"},
				{Value: "furniture_home_furnishings_and_equipment_stores_except_appliances"},
				{Value: "furniture_repair_refinishing"},
				{Value: "furriers_and_fur_shops"},
				{Value: "general_services"},
				{Value: "gift_card_novelty_and_souvenir_shops"},
				{Value: "glass_paint_and_wallpaper_stores"},
				{Value: "glassware_crystal_stores"},
				{Value: "golf_courses_public"},
				{Value: "government_licensed_horse_dog_racing_us_region_only"},
				{Value: "government_licensed_online_casions_online_gambling_us_region_only"},
				{Value: "government_owned_lotteries_non_us_region"},
				{Value: "government_owned_lotteries_us_region_only"},
				{Value: "government_services"},
				{Value: "grocery_stores_supermarkets"},
				{Value: "hardware_equipment_and_supplies"},
				{Value: "hardware_stores"},
				{Value: "health_and_beauty_spas"},
				{Value: "hearing_aids_sales_and_supplies"},
				{Value: "heating_plumbing_a_c"},
				{Value: "hobby_toy_and_game_shops"},
				{Value: "home_supply_warehouse_stores"},
				{Value: "hospitals"},
				{Value: "hotels_motels_and_resorts"},
				{Value: "household_appliance_stores"},
				{Value: "industrial_supplies"},
				{Value: "information_retrieval_services"},
				{Value: "insurance_default"},
				{Value: "insurance_underwriting_premiums"},
				{Value: "intra_company_purchases"},
				{Value: "jewelry_stores_watches_clocks_and_silverware_stores"},
				{Value: "landscaping_services"},
				{Value: "laundries"},
				{Value: "laundry_cleaning_services"},
				{Value: "legal_services_attorneys"},
				{Value: "luggage_and_leather_goods_stores"},
				{Value: "lumber_building_materials_stores"},
				{Value: "manual_cash_disburse"},
				{Value: "marinas_service_and_supplies"},
				{Value: "marketplaces"},
				{Value: "masonry_stonework_and_plaster"},
				{Value: "massage_parlors"},
				{Value: "medical_and_dental_labs"},
				{Value: "medical_dental_ophthalmic_and_hospital_equipment_and_supplies"},
				{Value: "medical_services"},
				{Value: "membership_organizations"},
				{Value: "mens_and_boys_clothing_and_accessories_stores"},
				{Value: "mens_womens_clothing_stores"},
				{Value: "metal_service_centers"},
				{Value: "miscellaneous_apparel_and_accessory_shops"},
				{Value: "miscellaneous_auto_dealers"},
				{Value: "miscellaneous_business_services"},
				{Value: "miscellaneous_food_stores"},
				{Value: "miscellaneous_general_merchandise"},
				{Value: "miscellaneous_general_services"},
				{Value: "miscellaneous_home_furnishing_specialty_stores"},
				{Value: "miscellaneous_publishing_and_printing"},
				{Value: "miscellaneous_recreation_services"},
				{Value: "miscellaneous_repair_shops"},
				{Value: "miscellaneous_specialty_retail"},
				{Value: "mobile_home_dealers"},
				{Value: "motion_picture_theaters"},
				{Value: "motor_freight_carriers_and_trucking"},
				{Value: "motor_homes_dealers"},
				{Value: "motor_vehicle_supplies_and_new_parts"},
				{Value: "motorcycle_shops_and_dealers"},
				{Value: "motorcycle_shops_dealers"},
				{Value: "music_stores_musical_instruments_pianos_and_sheet_music"},
				{Value: "news_dealers_and_newsstands"},
				{Value: "non_fi_money_orders"},
				{Value: "non_fi_stored_value_card_purchase_load"},
				{Value: "nondurable_goods"},
				{Value: "nurseries_lawn_and_garden_supply_stores"},
				{Value: "nursing_personal_care"},
				{Value: "office_and_commercial_furniture"},
				{Value: "opticians_eyeglasses"},
				{Value: "optometrists_ophthalmologist"},
				{Value: "orthopedic_goods_prosthetic_devices"},
				{Value: "osteopaths"},
				{Value: "package_stores_beer_wine_and_liquor"},
				{Value: "paints_varnishes_and_supplies"},
				{Value: "parking_lots_garages"},
				{Value: "passenger_railways"},
				{Value: "pawn_shops"},
				{Value: "pet_shops_pet_food_and_supplies"},
				{Value: "petroleum_and_petroleum_products"},
				{Value: "photo_developing"},
				{Value: "photographic_photocopy_microfilm_equipment_and_supplies"},
				{Value: "photographic_studios"},
				{Value: "picture_video_production"},
				{Value: "piece_goods_notions_and_other_dry_goods"},
				{Value: "plumbing_heating_equipment_and_supplies"},
				{Value: "political_organizations"},
				{Value: "postal_services_government_only"},
				{Value: "precious_stones_and_metals_watches_and_jewelry"},
				{Value: "professional_services"},
				{Value: "public_warehousing_and_storage"},
				{Value: "quick_copy_repro_and_blueprint"},
				{Value: "railroads"},
				{Value: "real_estate_agents_and_managers_rentals"},
				{Value: "record_stores"},
				{Value: "recreational_vehicle_rentals"},
				{Value: "religious_goods_stores"},
				{Value: "religious_organizations"},
				{Value: "roofing_siding_sheet_metal"},
				{Value: "secretarial_support_services"},
				{Value: "security_brokers_dealers"},
				{Value: "service_stations"},
				{Value: "sewing_needlework_fabric_and_piece_goods_stores"},
				{Value: "shoe_repair_hat_cleaning"},
				{Value: "shoe_stores"},
				{Value: "small_appliance_repair"},
				{Value: "snowmobile_dealers"},
				{Value: "special_trade_services"},
				{Value: "specialty_cleaning"},
				{Value: "sporting_goods_stores"},
				{Value: "sporting_recreation_camps"},
				{Value: "sports_and_riding_apparel_stores"},
				{Value: "sports_clubs_fields"},
				{Value: "stamp_and_coin_stores"},
				{Value: "stationary_office_supplies_printing_and_writing_paper"},
				{Value: "stationery_stores_office_and_school_supply_stores"},
				{Value: "swimming_pools_sales"},
				{Value: "t_ui_travel_germany"},
				{Value: "tailors_alterations"},
				{Value: "tax_payments_government_agencies"},
				{Value: "tax_preparation_services"},
				{Value: "taxicabs_limousines"},
				{Value: "telecommunication_equipment_and_telephone_sales"},
				{Value: "telecommunication_services"},
				{Value: "telegraph_services"},
				{Value: "tent_and_awning_shops"},
				{Value: "testing_laboratories"},
				{Value: "theatrical_ticket_agencies"},
				{Value: "timeshares"},
				{Value: "tire_retreading_and_repair"},
				{Value: "tolls_bridge_fees"},
				{Value: "tourist_attractions_and_exhibits"},
				{Value: "towing_services"},
				{Value: "trailer_parks_campgrounds"},
				{Value: "transportation_services"},
				{Value: "travel_agencies_tour_operators"},
				{Value: "truck_stop_iteration"},
				{Value: "truck_utility_trailer_rentals"},
				{Value: "typesetting_plate_making_and_related_services"},
				{Value: "typewriter_stores"},
				{Value: "u_s_federal_government_agencies_or_departments"},
				{Value: "uniforms_commercial_clothing"},
				{Value: "used_merchandise_and_secondhand_stores"},
				{Value: "utilities"},
				{Value: "variety_stores"},
				{Value: "veterinary_services"},
				{Value: "video_amusement_game_supplies"},
				{Value: "video_game_arcades"},
				{Value: "video_tape_rental_stores"},
				{Value: "vocational_trade_schools"},
				{Value: "watch_jewelry_repair"},
				{Value: "welding_repair"},
				{Value: "wholesale_clubs"},
				{Value: "wig_and_toupee_stores"},
				{Value: "wires_money_orders"},
				{Value: "womens_accessory_and_specialty_shops"},
				{Value: "womens_ready_to_wear_stores"},
				{Value: "wrecking_and_salvage_yards"},
			},
		},
		"merchant_data.city": {
			Type:             "string",
			ShortDescription: "City where the seller is located",
		},
		"merchant_data.country": {
			Type:             "string",
			ShortDescription: "Country where the seller is located",
		},
		"merchant_data.name": {
			Type:             "string",
			ShortDescription: "Name of the seller",
		},
		"merchant_data.network_id": {
			Type:             "string",
			ShortDescription: "Identifier assigned to the seller by the card network",
		},
		"merchant_data.postal_code": {
			Type:             "string",
			ShortDescription: "Postal code where the seller is located",
		},
		"merchant_data.state": {
			Type:             "string",
			ShortDescription: "State where the seller is located",
		},
		"merchant_data.terminal_id": {
			Type:             "string",
			ShortDescription: "An ID assigned by the seller to the location of the sale",
		},
		"merchant_data.url": {
			Type:             "string",
			ShortDescription: "URL provided by the merchant on a 3DS request",
		},
		"purchase_details.fleet.cardholder_prompt_data.driver_id": {
			Type:             "string",
			ShortDescription: "Driver ID",
		},
		"purchase_details.fleet.cardholder_prompt_data.odometer": {
			Type:             "integer",
			ShortDescription: "Odometer reading",
		},
		"purchase_details.fleet.cardholder_prompt_data.unspecified_id": {
			Type:             "string",
			ShortDescription: "An alphanumeric ID",
		},
		"purchase_details.fleet.cardholder_prompt_data.user_id": {
			Type:             "string",
			ShortDescription: "User ID",
		},
		"purchase_details.fleet.cardholder_prompt_data.vehicle_number": {
			Type:             "string",
			ShortDescription: "Vehicle number",
		},
		"purchase_details.fleet.purchase_type": {
			Type:             "string",
			ShortDescription: "The type of purchase",
			Enum: []resource.EnumSpec{
				{Value: "fuel_and_non_fuel_purchase"},
				{Value: "fuel_purchase"},
				{Value: "non_fuel_purchase"},
			},
		},
		"purchase_details.fleet.reported_breakdown.fuel.gross_amount_decimal": {
			Type:             "string",
			ShortDescription: "Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes",
			Format:           "decimal",
		},
		"purchase_details.fleet.reported_breakdown.non_fuel.gross_amount_decimal": {
			Type:             "string",
			ShortDescription: "Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes",
			Format:           "decimal",
		},
		"purchase_details.fleet.reported_breakdown.tax.local_amount_decimal": {
			Type:             "string",
			ShortDescription: "Amount of state or provincial Sales Tax included in the transaction amount",
			Format:           "decimal",
		},
		"purchase_details.fleet.reported_breakdown.tax.national_amount_decimal": {
			Type:             "string",
			ShortDescription: "Amount of national Sales Tax or VAT included in the transaction amount",
			Format:           "decimal",
		},
		"purchase_details.fleet.service_type": {
			Type:             "string",
			ShortDescription: "The type of fuel service",
			Enum: []resource.EnumSpec{
				{Value: "full_service"},
				{Value: "non_fuel_transaction"},
				{Value: "self_service"},
			},
		},
		"purchase_details.flight.departure_at": {
			Type:             "integer",
			ShortDescription: "The time that the flight departed",
			Format:           "unix-time",
		},
		"purchase_details.flight.passenger_name": {
			Type:             "string",
			ShortDescription: "The name of the passenger",
		},
		"purchase_details.flight.refundable": {
			Type:             "boolean",
			ShortDescription: "Whether the ticket is refundable",
		},
		"purchase_details.flight.travel_agency": {
			Type:             "string",
			ShortDescription: "The travel agency that issued the ticket",
		},
		"purchase_details.fuel.industry_product_code": {
			Type:             "string",
			ShortDescription: "[Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased",
		},
		"purchase_details.fuel.quantity_decimal": {
			Type:             "string",
			ShortDescription: "The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places",
			Format:           "decimal",
		},
		"purchase_details.fuel.type": {
			Type:             "string",
			ShortDescription: "The type of fuel that was purchased",
			Enum: []resource.EnumSpec{
				{Value: "diesel"},
				{Value: "other"},
				{Value: "unleaded_plus"},
				{Value: "unleaded_regular"},
				{Value: "unleaded_super"},
			},
		},
		"purchase_details.fuel.unit": {
			Type:             "string",
			ShortDescription: "The units for `quantity_decimal`",
			Enum: []resource.EnumSpec{
				{Value: "charging_minute"},
				{Value: "imperial_gallon"},
				{Value: "kilogram"},
				{Value: "kilowatt_hour"},
				{Value: "liter"},
				{Value: "other"},
				{Value: "pound"},
				{Value: "us_gallon"},
			},
		},
		"purchase_details.fuel.unit_cost_decimal": {
			Type:             "string",
			ShortDescription: "The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places",
			Format:           "decimal",
		},
		"purchase_details.lodging.check_in_at": {
			Type:             "integer",
			ShortDescription: "The time of checking into the lodging",
			Format:           "unix-time",
		},
		"purchase_details.lodging.nights": {
			Type:             "integer",
			ShortDescription: "The number of nights stayed at the lodging",
		},
		"purchase_details.reference": {
			Type:             "string",
			ShortDescription: "A merchant-specific order number",
		},
	},
}
View Source
var V1IssuingTransactionsTestHelpersRefund = resource.OperationSpec{
	Name:   "refund",
	Path:   "/v1/test_helpers/issuing/transactions/{transaction}/refund",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"refund_amount": {
			Type:             "integer",
			ShortDescription: "The total amount to attempt to refund",
			MostCommon:       true,
		},
	},
}
View Source
var V1IssuingTransactionsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/issuing/transactions/{transaction}",
	Method: "POST",
}
View Source
var V1LineItemsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/invoices/{invoice}/lines",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1LineItemsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/invoices/{invoice}/lines/{line_item_id}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "The integer amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice",
			MostCommon:       true,
		},
		"description": {
			Type:             "string",
			ShortDescription: "An arbitrary string which you can attach to the invoice item",
			MostCommon:       true,
		},
		"discountable": {
			Type:             "boolean",
			ShortDescription: "Controls whether discounts apply to this line item",
		},
		"period.end": {
			Type:             "integer",
			ShortDescription: "The end of the period, which must be greater than or equal to the start",
			MostCommon:       true,
			Format:           "unix-time",
		},
		"period.start": {
			Type:             "integer",
			ShortDescription: "The start of the period",
			MostCommon:       true,
			Format:           "unix-time",
		},
		"price_data.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Format:           "currency",
		},
		"price_data.product": {
			Type:             "string",
			ShortDescription: "The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to",
		},
		"price_data.product_data.description": {
			Type:             "string",
			ShortDescription: "The product's description, meant to be displayable to the customer",
		},
		"price_data.product_data.images": {
			Type:             "array",
			ShortDescription: "A list of up to 8 URLs of images for this product, meant to be displayable to the customer",
		},
		"price_data.product_data.name": {
			Type:             "string",
			ShortDescription: "The product's name, meant to be displayable to the customer",
		},
		"price_data.product_data.tax_code": {
			Type:             "string",
			ShortDescription: "A [tax code](https://docs.stripe.com/tax/tax-categories) ID",
		},
		"price_data.product_data.unit_label": {
			Type:             "string",
			ShortDescription: "A label that represents units of this product",
		},
		"price_data.tax_behavior": {
			Type:             "string",
			ShortDescription: "Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings",
			Enum: []resource.EnumSpec{
				{Value: "exclusive"},
				{Value: "inclusive"},
				{Value: "unspecified"},
			},
		},
		"price_data.unit_amount": {
			Type:             "integer",
			ShortDescription: "A non-negative integer in cents (or local equivalent) representing how much to charge",
		},
		"price_data.unit_amount_decimal": {
			Type:             "string",
			ShortDescription: "Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places",
			Format:           "decimal",
		},
		"pricing.price": {
			Type:             "string",
			ShortDescription: "The ID of the price object",
		},
		"quantity": {
			Type:             "integer",
			ShortDescription: "Non-negative integer",
		},
		"quantity_decimal": {
			Type:             "string",
			ShortDescription: "Non-negative decimal with at most 12 decimal places",
			MostCommon:       true,
			Format:           "decimal",
		},
		"tax_rates": {
			Type:             "array",
			ShortDescription: "The tax rates which apply to the line item",
		},
	},
}
View Source
var V1LoginLinksCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/accounts/{account}/login_links",
	Method: "POST",
}
View Source
var V1MandatesRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/mandates/{mandate}",
	Method: "GET",
}
View Source
var V1PaymentAttemptRecordsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/payment_attempt_records",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"payment_record": {
			Type:             "string",
			ShortDescription: "The ID of the Payment Record",
			Required:         true,
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1PaymentAttemptRecordsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/payment_attempt_records/{id}",
	Method: "GET",
}
View Source
var V1PaymentIntentAmountDetailsLineItemsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/payment_intents/{intent}/amount_details_line_items",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1PaymentIntentsApplyCustomerBalance = resource.OperationSpec{
	Name:   "apply_customer_balance",
	Path:   "/v1/payment_intents/{intent}/apply_customer_balance",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "Amount that you intend to apply to this PaymentIntent from the customer’s cash balance",
			MostCommon:       true,
		},
		"currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			MostCommon:       true,
			Format:           "currency",
		},
	},
}
View Source
var V1PaymentIntentsCancel = resource.OperationSpec{
	Name:   "cancel",
	Path:   "/v1/payment_intents/{intent}/cancel",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"cancellation_reason": {
			Type:             "string",
			ShortDescription: "Reason for canceling this PaymentIntent",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "abandoned"},
				{Value: "duplicate"},
				{Value: "fraudulent"},
				{Value: "requested_by_customer"},
			},
		},
	},
}
View Source
var V1PaymentIntentsCapture = resource.OperationSpec{
	Name:   "capture",
	Path:   "/v1/payment_intents/{intent}/capture",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount_details.discount_amount": {
			Type:             "integer",
			ShortDescription: "The total discount applied on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal)",
		},
		"amount_details.enforce_arithmetic_validation": {
			Type:             "boolean",
			ShortDescription: "Set to `false` to return arithmetic validation errors in the response without failing the request",
		},
		"amount_details.shipping.amount": {
			Type:             "integer",
			ShortDescription: "If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal)",
		},
		"amount_details.shipping.from_postal_code": {
			Type:             "string",
			ShortDescription: "If a physical good is being shipped, the postal code of where it is being shipped from",
		},
		"amount_details.shipping.to_postal_code": {
			Type:             "string",
			ShortDescription: "If a physical good is being shipped, the postal code of where it is being shipped to",
		},
		"amount_details.tax.total_tax_amount": {
			Type:             "integer",
			ShortDescription: "The total amount of tax on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal)",
		},
		"amount_to_capture": {
			Type:             "integer",
			ShortDescription: "The amount to capture from the PaymentIntent, which must be less than or equal to the original amount",
			MostCommon:       true,
		},
		"application_fee_amount": {
			Type:             "integer",
			ShortDescription: "The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account",
		},
		"final_capture": {
			Type:             "boolean",
			ShortDescription: "Defaults to `true`",
		},
		"hooks.inputs.tax.calculation": {
			Type:             "string",
			ShortDescription: "The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id",
		},
		"payment_details": {
			Type: "clearable_object",
		},
		"payment_details.customer_reference": {
			Type:             "string",
			ShortDescription: "A unique value to identify the customer",
		},
		"payment_details.order_reference": {
			Type:             "string",
			ShortDescription: "A unique value assigned by the business to identify the transaction",
		},
		"statement_descriptor": {
			Type:             "string",
			ShortDescription: "Text that appears on the customer's statement as the statement descriptor for a non-card charge",
		},
		"statement_descriptor_suffix": {
			Type:             "string",
			ShortDescription: "Provides information about a card charge",
		},
		"transfer_data.amount": {
			Type:             "integer",
			ShortDescription: "The amount that will be transferred automatically when a charge succeeds",
		},
	},
}
View Source
var V1PaymentIntentsConfirm = resource.OperationSpec{
	Name:   "confirm",
	Path:   "/v1/payment_intents/{intent}/confirm",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount_details": {
			Type: "clearable_object",
		},
		"amount_details.discount_amount": {
			Type:             "integer",
			ShortDescription: "The total discount applied on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal)",
		},
		"amount_details.enforce_arithmetic_validation": {
			Type:             "boolean",
			ShortDescription: "Set to `false` to return arithmetic validation errors in the response without failing the request",
		},
		"amount_details.shipping.amount": {
			Type:             "integer",
			ShortDescription: "If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal)",
		},
		"amount_details.shipping.from_postal_code": {
			Type:             "string",
			ShortDescription: "If a physical good is being shipped, the postal code of where it is being shipped from",
		},
		"amount_details.shipping.to_postal_code": {
			Type:             "string",
			ShortDescription: "If a physical good is being shipped, the postal code of where it is being shipped to",
		},
		"amount_details.tax.total_tax_amount": {
			Type:             "integer",
			ShortDescription: "The total amount of tax on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal)",
		},
		"capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds will be captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "automatic_async"},
				{Value: "manual"},
			},
		},
		"confirmation_token": {
			Type:             "string",
			ShortDescription: "ID of the ConfirmationToken used to confirm this PaymentIntent",
		},
		"error_on_requires_action": {
			Type:             "boolean",
			ShortDescription: "Set to `true` to fail the payment attempt if the PaymentIntent transitions into `requires_action`",
		},
		"excluded_payment_method_types": {
			Type:             "array",
			ShortDescription: "The list of payment method types to exclude from use with this payment",
		},
		"hooks.inputs.tax.calculation": {
			Type:             "string",
			ShortDescription: "The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id",
		},
		"mandate": {
			Type:             "string",
			ShortDescription: "ID of the mandate that's used for this payment",
		},
		"mandate_data": {
			Type: "clearable_object",
		},
		"mandate_data.customer_acceptance.accepted_at": {
			Type:             "integer",
			ShortDescription: "The time at which the customer accepted the Mandate",
			Format:           "unix-time",
		},
		"mandate_data.customer_acceptance.online.ip_address": {
			Type:             "string",
			ShortDescription: "The IP address from which the Mandate was accepted by the customer",
		},
		"mandate_data.customer_acceptance.online.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the Mandate was accepted by the customer",
		},
		"mandate_data.customer_acceptance.type": {
			Type:             "string",
			ShortDescription: "The type of customer acceptance information included with the Mandate",
			Enum: []resource.EnumSpec{
				{Value: "offline"},
				{Value: "online"},
			},
		},
		"off_session": {
			Type:             "boolean",
			ShortDescription: "Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate",
		},
		"payment_details": {
			Type: "clearable_object",
		},
		"payment_details.customer_reference": {
			Type:             "string",
			ShortDescription: "A unique value to identify the customer",
		},
		"payment_details.order_reference": {
			Type:             "string",
			ShortDescription: "A unique value assigned by the business to identify the transaction",
		},
		"payment_method": {
			Type:             "string",
			ShortDescription: "ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://docs.stripe.com/payments/payment-methods/transitioning#compatibility) object) to attach to this PaymentIntent",
			MostCommon:       true,
		},
		"payment_method_data.acss_debit.account_number": {
			Type:             "string",
			ShortDescription: "Customer's bank account number",
		},
		"payment_method_data.acss_debit.institution_number": {
			Type:             "string",
			ShortDescription: "Institution number of the customer's bank",
		},
		"payment_method_data.acss_debit.transit_number": {
			Type:             "string",
			ShortDescription: "Transit number of the customer's bank",
		},
		"payment_method_data.allow_redisplay": {
			Type:             "string",
			ShortDescription: "This field indicates whether this payment method can be shown again to its customer in a checkout flow",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "limited"},
				{Value: "unspecified"},
			},
		},
		"payment_method_data.au_becs_debit.account_number": {
			Type:             "string",
			ShortDescription: "The account number for the bank account",
		},
		"payment_method_data.au_becs_debit.bsb_number": {
			Type:             "string",
			ShortDescription: "Bank-State-Branch number of the bank account",
		},
		"payment_method_data.bacs_debit.account_number": {
			Type:             "string",
			ShortDescription: "Account number of the bank account that the funds will be debited from",
		},
		"payment_method_data.bacs_debit.sort_code": {
			Type:             "string",
			ShortDescription: "Sort code of the bank account. (e.g., `10-20-30`)",
		},
		"payment_method_data.billing_details.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"payment_method_data.billing_details.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"payment_method_data.billing_details.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"payment_method_data.billing_details.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"payment_method_data.billing_details.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"payment_method_data.billing_details.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"payment_method_data.billing_details.email": {
			Type:             "string",
			ShortDescription: "Email address",
		},
		"payment_method_data.billing_details.name": {
			Type:             "string",
			ShortDescription: "Full name",
		},
		"payment_method_data.billing_details.phone": {
			Type:             "string",
			ShortDescription: "Billing phone number (including extension)",
		},
		"payment_method_data.billing_details.tax_id": {
			Type:             "string",
			ShortDescription: "Taxpayer identification number",
		},
		"payment_method_data.boleto.tax_id": {
			Type:             "string",
			ShortDescription: "The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)",
		},
		"payment_method_data.eps.bank": {
			Type:             "string",
			ShortDescription: "The customer's bank",
			Enum: []resource.EnumSpec{
				{Value: "arzte_und_apotheker_bank"},
				{Value: "austrian_anadi_bank_ag"},
				{Value: "bank_austria"},
				{Value: "bankhaus_carl_spangler"},
				{Value: "bankhaus_schelhammer_und_schattera_ag"},
				{Value: "bawag_psk_ag"},
				{Value: "bks_bank_ag"},
				{Value: "brull_kallmus_bank_ag"},
				{Value: "btv_vier_lander_bank"},
				{Value: "capital_bank_grawe_gruppe_ag"},
				{Value: "deutsche_bank_ag"},
				{Value: "dolomitenbank"},
				{Value: "easybank_ag"},
				{Value: "erste_bank_und_sparkassen"},
				{Value: "hypo_alpeadriabank_international_ag"},
				{Value: "hypo_bank_burgenland_aktiengesellschaft"},
				{Value: "hypo_noe_lb_fur_niederosterreich_u_wien"},
				{Value: "hypo_oberosterreich_salzburg_steiermark"},
				{Value: "hypo_tirol_bank_ag"},
				{Value: "hypo_vorarlberg_bank_ag"},
				{Value: "marchfelder_bank"},
				{Value: "oberbank_ag"},
				{Value: "raiffeisen_bankengruppe_osterreich"},
				{Value: "schoellerbank_ag"},
				{Value: "sparda_bank_wien"},
				{Value: "volksbank_gruppe"},
				{Value: "volkskreditbank_ag"},
				{Value: "vr_bank_braunau"},
			},
		},
		"payment_method_data.fpx.account_holder_type": {
			Type:             "string",
			ShortDescription: "Account holder type for FPX transaction",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"payment_method_data.fpx.bank": {
			Type:             "string",
			ShortDescription: "The customer's bank",
			Enum: []resource.EnumSpec{
				{Value: "affin_bank"},
				{Value: "agrobank"},
				{Value: "alliance_bank"},
				{Value: "ambank"},
				{Value: "bank_islam"},
				{Value: "bank_muamalat"},
				{Value: "bank_of_china"},
				{Value: "bank_rakyat"},
				{Value: "bsn"},
				{Value: "cimb"},
				{Value: "deutsche_bank"},
				{Value: "hong_leong_bank"},
				{Value: "hsbc"},
				{Value: "kfh"},
				{Value: "maybank2e"},
				{Value: "maybank2u"},
				{Value: "ocbc"},
				{Value: "pb_enterprise"},
				{Value: "public_bank"},
				{Value: "rhb"},
				{Value: "standard_chartered"},
				{Value: "uob"},
			},
		},
		"payment_method_data.ideal.bank": {
			Type:             "string",
			ShortDescription: "The customer's bank",
			Enum: []resource.EnumSpec{
				{Value: "abn_amro"},
				{Value: "adyen"},
				{Value: "asn_bank"},
				{Value: "bunq"},
				{Value: "buut"},
				{Value: "finom"},
				{Value: "handelsbanken"},
				{Value: "ing"},
				{Value: "knab"},
				{Value: "mollie"},
				{Value: "moneyou"},
				{Value: "n26"},
				{Value: "nn"},
				{Value: "rabobank"},
				{Value: "regiobank"},
				{Value: "revolut"},
				{Value: "sns_bank"},
				{Value: "triodos_bank"},
				{Value: "van_lanschot"},
				{Value: "yoursafe"},
			},
		},
		"payment_method_data.klarna.dob.day": {
			Type:             "integer",
			ShortDescription: "The day of birth, between 1 and 31",
		},
		"payment_method_data.klarna.dob.month": {
			Type:             "integer",
			ShortDescription: "The month of birth, between 1 and 12",
		},
		"payment_method_data.klarna.dob.year": {
			Type:             "integer",
			ShortDescription: "The four-digit year of birth",
		},
		"payment_method_data.naver_pay.funding": {
			Type:             "string",
			ShortDescription: "Whether to use Naver Pay points or a card to fund this transaction",
			Enum: []resource.EnumSpec{
				{Value: "card"},
				{Value: "points"},
			},
		},
		"payment_method_data.nz_bank_account.account_holder_name": {
			Type:             "string",
			ShortDescription: "The name on the bank account",
		},
		"payment_method_data.nz_bank_account.account_number": {
			Type:             "string",
			ShortDescription: "The account number for the bank account",
		},
		"payment_method_data.nz_bank_account.bank_code": {
			Type:             "string",
			ShortDescription: "The numeric code for the bank account's bank",
		},
		"payment_method_data.nz_bank_account.branch_code": {
			Type:             "string",
			ShortDescription: "The numeric code for the bank account's bank branch",
		},
		"payment_method_data.nz_bank_account.reference": {
			Type: "string",
		},
		"payment_method_data.nz_bank_account.suffix": {
			Type:             "string",
			ShortDescription: "The suffix of the bank account number",
		},
		"payment_method_data.p24.bank": {
			Type:             "string",
			ShortDescription: "The customer's bank",
			Enum: []resource.EnumSpec{
				{Value: "alior_bank"},
				{Value: "bank_millennium"},
				{Value: "bank_nowy_bfg_sa"},
				{Value: "bank_pekao_sa"},
				{Value: "banki_spbdzielcze"},
				{Value: "blik"},
				{Value: "bnp_paribas"},
				{Value: "boz"},
				{Value: "citi_handlowy"},
				{Value: "credit_agricole"},
				{Value: "envelobank"},
				{Value: "etransfer_pocztowy24"},
				{Value: "getin_bank"},
				{Value: "ideabank"},
				{Value: "ing"},
				{Value: "inteligo"},
				{Value: "mbank_mtransfer"},
				{Value: "nest_przelew"},
				{Value: "noble_pay"},
				{Value: "pbac_z_ipko"},
				{Value: "plus_bank"},
				{Value: "santander_przelew24"},
				{Value: "tmobile_usbugi_bankowe"},
				{Value: "toyota_bank"},
				{Value: "velobank"},
				{Value: "volkswagen_bank"},
			},
		},
		"payment_method_data.payto.account_number": {
			Type:             "string",
			ShortDescription: "The account number for the bank account",
		},
		"payment_method_data.payto.bsb_number": {
			Type:             "string",
			ShortDescription: "Bank-State-Branch number of the bank account",
		},
		"payment_method_data.payto.pay_id": {
			Type:             "string",
			ShortDescription: "The PayID alias for the bank account",
		},
		"payment_method_data.radar_options.session": {
			Type:             "string",
			ShortDescription: "A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments",
		},
		"payment_method_data.sepa_debit.iban": {
			Type:             "string",
			ShortDescription: "IBAN of the bank account",
		},
		"payment_method_data.sofort.country": {
			Type:             "string",
			ShortDescription: "Two-letter ISO code representing the country the bank account is located in",
			Enum: []resource.EnumSpec{
				{Value: "AT"},
				{Value: "BE"},
				{Value: "DE"},
				{Value: "ES"},
				{Value: "IT"},
				{Value: "NL"},
			},
		},
		"payment_method_data.type": {
			Type:             "string",
			ShortDescription: "The type of the PaymentMethod",
			Enum: []resource.EnumSpec{
				{Value: "acss_debit"},
				{Value: "affirm"},
				{Value: "afterpay_clearpay"},
				{Value: "alipay"},
				{Value: "alma"},
				{Value: "amazon_pay"},
				{Value: "au_becs_debit"},
				{Value: "bacs_debit"},
				{Value: "bancontact"},
				{Value: "billie"},
				{Value: "blik"},
				{Value: "boleto"},
				{Value: "cashapp"},
				{Value: "crypto"},
				{Value: "customer_balance"},
				{Value: "eps"},
				{Value: "fpx"},
				{Value: "giropay"},
				{Value: "grabpay"},
				{Value: "ideal"},
				{Value: "kakao_pay"},
				{Value: "klarna"},
				{Value: "konbini"},
				{Value: "kr_card"},
				{Value: "link"},
				{Value: "mb_way"},
				{Value: "mobilepay"},
				{Value: "multibanco"},
				{Value: "naver_pay"},
				{Value: "nz_bank_account"},
				{Value: "oxxo"},
				{Value: "p24"},
				{Value: "pay_by_bank"},
				{Value: "payco"},
				{Value: "paynow"},
				{Value: "paypal"},
				{Value: "payto"},
				{Value: "pix"},
				{Value: "promptpay"},
				{Value: "revolut_pay"},
				{Value: "samsung_pay"},
				{Value: "satispay"},
				{Value: "sepa_debit"},
				{Value: "sofort"},
				{Value: "swish"},
				{Value: "twint"},
				{Value: "upi"},
				{Value: "us_bank_account"},
				{Value: "wechat_pay"},
				{Value: "zip"},
			},
		},
		"payment_method_data.upi.mandate_options.amount": {
			Type:             "integer",
			ShortDescription: "Amount to be charged for future payments",
		},
		"payment_method_data.upi.mandate_options.amount_type": {
			Type:             "string",
			ShortDescription: "One of `fixed` or `maximum`",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_data.upi.mandate_options.description": {
			Type:             "string",
			ShortDescription: "A description of the mandate or subscription that is meant to be displayed to the customer",
		},
		"payment_method_data.upi.mandate_options.end_date": {
			Type:             "integer",
			ShortDescription: "End date of the mandate or subscription",
			Format:           "unix-time",
		},
		"payment_method_data.us_bank_account.account_holder_type": {
			Type:             "string",
			ShortDescription: "Account holder type: individual or company",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"payment_method_data.us_bank_account.account_number": {
			Type:             "string",
			ShortDescription: "Account number of the bank account",
		},
		"payment_method_data.us_bank_account.account_type": {
			Type:             "string",
			ShortDescription: "Account type: checkings or savings",
			Enum: []resource.EnumSpec{
				{Value: "checking"},
				{Value: "savings"},
			},
		},
		"payment_method_data.us_bank_account.financial_connections_account": {
			Type:             "string",
			ShortDescription: "The ID of a Financial Connections Account to use as a payment method",
		},
		"payment_method_data.us_bank_account.routing_number": {
			Type:             "string",
			ShortDescription: "Routing number of the bank account",
		},
		"payment_method_options.acss_debit.mandate_options.custom_mandate_url": {
			Type:             "string",
			ShortDescription: "A URL for custom mandate text to render during confirmation step",
		},
		"payment_method_options.acss_debit.mandate_options.interval_description": {
			Type:             "string",
			ShortDescription: "Description of the mandate interval",
		},
		"payment_method_options.acss_debit.mandate_options.payment_schedule": {
			Type:             "string",
			ShortDescription: "Payment schedule for the mandate",
			Enum: []resource.EnumSpec{
				{Value: "combined"},
				{Value: "interval"},
				{Value: "sporadic"},
			},
		},
		"payment_method_options.acss_debit.mandate_options.transaction_type": {
			Type:             "string",
			ShortDescription: "Transaction type of the mandate",
			Enum: []resource.EnumSpec{
				{Value: "business"},
				{Value: "personal"},
			},
		},
		"payment_method_options.acss_debit.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.acss_debit.target_date": {
			Type:             "string",
			ShortDescription: "Controls when Stripe will attempt to debit the funds from the customer's account",
		},
		"payment_method_options.acss_debit.verification_method": {
			Type:             "string",
			ShortDescription: "Bank account verification method",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "instant"},
				{Value: "microdeposits"},
			},
		},
		"payment_method_options.affirm.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.affirm.preferred_locale": {
			Type:             "string",
			ShortDescription: "Preferred language of the Affirm authorization page that the customer is redirected to",
		},
		"payment_method_options.affirm.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.afterpay_clearpay.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.afterpay_clearpay.reference": {
			Type:             "string",
			ShortDescription: "An internal identifier or reference that this payment corresponds to",
		},
		"payment_method_options.afterpay_clearpay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.alipay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.alma.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.amazon_pay.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.amazon_pay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.au_becs_debit.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.au_becs_debit.target_date": {
			Type:             "string",
			ShortDescription: "Controls when Stripe will attempt to debit the funds from the customer's account",
		},
		"payment_method_options.bacs_debit.mandate_options.reference_prefix": {
			Type:             "string",
			ShortDescription: "Prefix used to generate the Mandate reference",
		},
		"payment_method_options.bacs_debit.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.bacs_debit.target_date": {
			Type:             "string",
			ShortDescription: "Controls when Stripe will attempt to debit the funds from the customer's account",
		},
		"payment_method_options.bancontact.preferred_language": {
			Type:             "string",
			ShortDescription: "Preferred language of the Bancontact authorization page that the customer is redirected to",
			Enum: []resource.EnumSpec{
				{Value: "de"},
				{Value: "en"},
				{Value: "fr"},
				{Value: "nl"},
			},
		},
		"payment_method_options.bancontact.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.billie.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.blik.code": {
			Type:             "string",
			ShortDescription: "The 6-digit BLIK code that a customer has generated using their banking application",
		},
		"payment_method_options.blik.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.boleto.expires_after_days": {
			Type:             "integer",
			ShortDescription: "The number of calendar days before a Boleto voucher expires",
		},
		"payment_method_options.boleto.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.card.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.card.cvc_token": {
			Type:             "string",
			ShortDescription: "A single-use `cvc_update` Token that represents a card CVC value",
		},
		"payment_method_options.card.installments.enabled": {
			Type:             "boolean",
			ShortDescription: "Setting to true enables installments for this PaymentIntent",
		},
		"payment_method_options.card.installments.plan.count": {
			Type:             "integer",
			ShortDescription: "For `fixed_count` installment plans, this is required",
		},
		"payment_method_options.card.installments.plan.interval": {
			Type:             "string",
			ShortDescription: "For `fixed_count` installment plans, this is required",
			Enum: []resource.EnumSpec{
				{Value: "month"},
			},
		},
		"payment_method_options.card.installments.plan.type": {
			Type:             "string",
			ShortDescription: "Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`",
			Enum: []resource.EnumSpec{
				{Value: "bonus"},
				{Value: "fixed_count"},
				{Value: "revolving"},
			},
		},
		"payment_method_options.card.mandate_options.amount": {
			Type:             "integer",
			ShortDescription: "Amount to be charged for future payments, specified in the presentment currency",
		},
		"payment_method_options.card.mandate_options.amount_type": {
			Type:             "string",
			ShortDescription: "One of `fixed` or `maximum`",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_options.card.mandate_options.description": {
			Type:             "string",
			ShortDescription: "A description of the mandate or subscription that is meant to be displayed to the customer",
		},
		"payment_method_options.card.mandate_options.end_date": {
			Type:             "integer",
			ShortDescription: "End date of the mandate or subscription",
			Format:           "unix-time",
		},
		"payment_method_options.card.mandate_options.interval": {
			Type:             "string",
			ShortDescription: "Specifies payment frequency",
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "month"},
				{Value: "sporadic"},
				{Value: "week"},
				{Value: "year"},
			},
		},
		"payment_method_options.card.mandate_options.interval_count": {
			Type:             "integer",
			ShortDescription: "The number of intervals between payments",
		},
		"payment_method_options.card.mandate_options.reference": {
			Type:             "string",
			ShortDescription: "Unique identifier for the mandate or subscription",
		},
		"payment_method_options.card.mandate_options.start_date": {
			Type:             "integer",
			ShortDescription: "Start date of the mandate or subscription",
			Format:           "unix-time",
		},
		"payment_method_options.card.mandate_options.supported_types": {
			Type:             "array",
			ShortDescription: "Specifies the type of mandates supported",
		},
		"payment_method_options.card.moto": {
			Type:             "boolean",
			ShortDescription: "When specified, this parameter indicates that a transaction will be marked\nas MOTO (Mail Order Telephone Order) and thus out of scope for SCA",
		},
		"payment_method_options.card.network": {
			Type:             "string",
			ShortDescription: "Selected network to process this PaymentIntent on",
			Enum: []resource.EnumSpec{
				{Value: "amex"},
				{Value: "cartes_bancaires"},
				{Value: "diners"},
				{Value: "discover"},
				{Value: "eftpos_au"},
				{Value: "girocard"},
				{Value: "interac"},
				{Value: "jcb"},
				{Value: "link"},
				{Value: "mastercard"},
				{Value: "unionpay"},
				{Value: "unknown"},
				{Value: "visa"},
			},
		},
		"payment_method_options.card.request_extended_authorization": {
			Type:             "string",
			ShortDescription: "Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent",
			Enum: []resource.EnumSpec{
				{Value: "if_available"},
				{Value: "never"},
			},
		},
		"payment_method_options.card.request_incremental_authorization": {
			Type:             "string",
			ShortDescription: "Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent",
			Enum: []resource.EnumSpec{
				{Value: "if_available"},
				{Value: "never"},
			},
		},
		"payment_method_options.card.request_multicapture": {
			Type:             "string",
			ShortDescription: "Request ability to make [multiple captures](https://docs.stripe.com/payments/multicapture) for this PaymentIntent",
			Enum: []resource.EnumSpec{
				{Value: "if_available"},
				{Value: "never"},
			},
		},
		"payment_method_options.card.request_overcapture": {
			Type:             "string",
			ShortDescription: "Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent",
			Enum: []resource.EnumSpec{
				{Value: "if_available"},
				{Value: "never"},
			},
		},
		"payment_method_options.card.request_three_d_secure": {
			Type:             "string",
			ShortDescription: "We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication)",
			Enum: []resource.EnumSpec{
				{Value: "any"},
				{Value: "automatic"},
				{Value: "challenge"},
			},
		},
		"payment_method_options.card.require_cvc_recollection": {
			Type:             "boolean",
			ShortDescription: "When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter)",
		},
		"payment_method_options.card.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.card.statement_descriptor_suffix_kana": {
			Type:             "string",
			ShortDescription: "Provides information about a card payment that customers see on their statements",
		},
		"payment_method_options.card.statement_descriptor_suffix_kanji": {
			Type:             "string",
			ShortDescription: "Provides information about a card payment that customers see on their statements",
		},
		"payment_method_options.card.three_d_secure.ares_trans_status": {
			Type:             "string",
			ShortDescription: "The `transStatus` returned from the card Issuer’s ACS in the ARes",
			Enum: []resource.EnumSpec{
				{Value: "A"},
				{Value: "C"},
				{Value: "I"},
				{Value: "N"},
				{Value: "R"},
				{Value: "U"},
				{Value: "Y"},
			},
		},
		"payment_method_options.card.three_d_secure.cryptogram": {
			Type:             "string",
			ShortDescription: "The cryptogram, also known as the \"authentication value\" (AAV, CAVV or\nAEVV)",
		},
		"payment_method_options.card.three_d_secure.electronic_commerce_indicator": {
			Type:             "string",
			ShortDescription: "The Electronic Commerce Indicator (ECI) is returned by your 3D Secure\nprovider and indicates what degree of authentication was performed",
			Enum: []resource.EnumSpec{
				{Value: "01"},
				{Value: "02"},
				{Value: "05"},
				{Value: "06"},
				{Value: "07"},
			},
		},
		"payment_method_options.card.three_d_secure.exemption_indicator": {
			Type:             "string",
			ShortDescription: "The exemption requested via 3DS and accepted by the issuer at authentication time",
			Enum: []resource.EnumSpec{
				{Value: "low_risk"},
				{Value: "none"},
			},
		},
		"payment_method_options.card.three_d_secure.network_options.cartes_bancaires.cb_avalgo": {
			Type:             "string",
			ShortDescription: "The cryptogram calculation algorithm used by the card Issuer's ACS\nto calculate the Authentication cryptogram",
			Enum: []resource.EnumSpec{
				{Value: "0"},
				{Value: "1"},
				{Value: "2"},
				{Value: "3"},
				{Value: "4"},
				{Value: "A"},
			},
		},
		"payment_method_options.card.three_d_secure.network_options.cartes_bancaires.cb_exemption": {
			Type:             "string",
			ShortDescription: "The exemption indicator returned from Cartes Bancaires in the ARes.\nmessage extension: CB-EXEMPTION; string (4 characters)\nThis is a 3 byte bitmap (low significant byte first and most significant\nbit first) that has been Base64 encoded",
		},
		"payment_method_options.card.three_d_secure.network_options.cartes_bancaires.cb_score": {
			Type:             "integer",
			ShortDescription: "The risk score returned from Cartes Bancaires in the ARes.\nmessage extension: CB-SCORE; numeric value 0-99",
		},
		"payment_method_options.card.three_d_secure.requestor_challenge_indicator": {
			Type:             "string",
			ShortDescription: "The challenge indicator (`threeDSRequestorChallengeInd`) which was requested in the\nAReq sent to the card Issuer's ACS",
		},
		"payment_method_options.card.three_d_secure.transaction_id": {
			Type:             "string",
			ShortDescription: "For 3D Secure 1, the XID",
		},
		"payment_method_options.card.three_d_secure.version": {
			Type:             "string",
			ShortDescription: "The version of 3D Secure that was performed",
			Enum: []resource.EnumSpec{
				{Value: "1.0.2"},
				{Value: "2.1.0"},
				{Value: "2.2.0"},
				{Value: "2.3.0"},
				{Value: "2.3.1"},
			},
		},
		"payment_method_options.card_present.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
				{Value: "manual_preferred"},
			},
		},
		"payment_method_options.card_present.request_extended_authorization": {
			Type:             "boolean",
			ShortDescription: "Request ability to capture this payment beyond the standard [authorization validity window](https://docs.stripe.com/terminal/features/extended-authorizations#authorization-validity)",
		},
		"payment_method_options.card_present.request_incremental_authorization_support": {
			Type:             "boolean",
			ShortDescription: "Request ability to [increment](https://docs.stripe.com/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible",
		},
		"payment_method_options.card_present.routing.requested_priority": {
			Type:             "string",
			ShortDescription: "Routing requested priority",
			Enum: []resource.EnumSpec{
				{Value: "domestic"},
				{Value: "international"},
			},
		},
		"payment_method_options.cashapp.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.cashapp.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.crypto.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.customer_balance.bank_transfer.eu_bank_transfer.country": {
			Type:             "string",
			ShortDescription: "The desired country code of the bank account information",
		},
		"payment_method_options.customer_balance.bank_transfer.requested_address_types": {
			Type:             "array",
			ShortDescription: "List of address types that should be returned in the financial_addresses response",
		},
		"payment_method_options.customer_balance.bank_transfer.type": {
			Type:             "string",
			ShortDescription: "The list of bank transfer types that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`",
			Enum: []resource.EnumSpec{
				{Value: "eu_bank_transfer"},
				{Value: "gb_bank_transfer"},
				{Value: "jp_bank_transfer"},
				{Value: "mx_bank_transfer"},
				{Value: "us_bank_transfer"},
			},
		},
		"payment_method_options.customer_balance.funding_type": {
			Type:             "string",
			ShortDescription: "The funding method type to be used when there are not enough funds in the customer balance",
			Enum: []resource.EnumSpec{
				{Value: "bank_transfer"},
			},
		},
		"payment_method_options.customer_balance.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.eps.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.fpx.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.giropay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.grabpay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.ideal.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.kakao_pay.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.kakao_pay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.klarna.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.klarna.on_demand.average_amount": {
			Type:             "integer",
			ShortDescription: "Your average amount value",
		},
		"payment_method_options.klarna.on_demand.maximum_amount": {
			Type:             "integer",
			ShortDescription: "The maximum value you may charge a customer per purchase",
		},
		"payment_method_options.klarna.on_demand.minimum_amount": {
			Type:             "integer",
			ShortDescription: "The lowest or minimum value you may charge a customer per purchase",
		},
		"payment_method_options.klarna.on_demand.purchase_interval": {
			Type:             "string",
			ShortDescription: "Interval at which the customer is making purchases",
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "month"},
				{Value: "week"},
				{Value: "year"},
			},
		},
		"payment_method_options.klarna.on_demand.purchase_interval_count": {
			Type:             "integer",
			ShortDescription: "The number of `purchase_interval` between charges",
		},
		"payment_method_options.klarna.preferred_locale": {
			Type:             "string",
			ShortDescription: "Preferred language of the Klarna authorization page that the customer is redirected to",
			Enum: []resource.EnumSpec{
				{Value: "cs-CZ"},
				{Value: "da-DK"},
				{Value: "de-AT"},
				{Value: "de-CH"},
				{Value: "de-DE"},
				{Value: "el-GR"},
				{Value: "en-AT"},
				{Value: "en-AU"},
				{Value: "en-BE"},
				{Value: "en-CA"},
				{Value: "en-CH"},
				{Value: "en-CZ"},
				{Value: "en-DE"},
				{Value: "en-DK"},
				{Value: "en-ES"},
				{Value: "en-FI"},
				{Value: "en-FR"},
				{Value: "en-GB"},
				{Value: "en-GR"},
				{Value: "en-IE"},
				{Value: "en-IT"},
				{Value: "en-NL"},
				{Value: "en-NO"},
				{Value: "en-NZ"},
				{Value: "en-PL"},
				{Value: "en-PT"},
				{Value: "en-RO"},
				{Value: "en-SE"},
				{Value: "en-US"},
				{Value: "es-ES"},
				{Value: "es-US"},
				{Value: "fi-FI"},
				{Value: "fr-BE"},
				{Value: "fr-CA"},
				{Value: "fr-CH"},
				{Value: "fr-FR"},
				{Value: "it-CH"},
				{Value: "it-IT"},
				{Value: "nb-NO"},
				{Value: "nl-BE"},
				{Value: "nl-NL"},
				{Value: "pl-PL"},
				{Value: "pt-PT"},
				{Value: "ro-RO"},
				{Value: "sv-FI"},
				{Value: "sv-SE"},
			},
		},
		"payment_method_options.klarna.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.konbini.confirmation_number": {
			Type:             "string",
			ShortDescription: "An optional 10 to 11 digit numeric-only string determining the confirmation code at applicable convenience stores",
		},
		"payment_method_options.konbini.expires_after_days": {
			Type:             "integer",
			ShortDescription: "The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire",
		},
		"payment_method_options.konbini.expires_at": {
			Type:             "integer",
			ShortDescription: "The timestamp at which the Konbini payment instructions will expire",
		},
		"payment_method_options.konbini.product_description": {
			Type:             "string",
			ShortDescription: "A product descriptor of up to 22 characters, which will appear to customers at the convenience store",
		},
		"payment_method_options.konbini.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.kr_card.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.kr_card.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.link.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.link.persistent_token": {
			Type:             "string",
			ShortDescription: "[Deprecated] This is a legacy parameter that no longer has any function",
		},
		"payment_method_options.link.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.mb_way.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.mobilepay.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.mobilepay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.multibanco.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.naver_pay.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.naver_pay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.nz_bank_account.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.nz_bank_account.target_date": {
			Type:             "string",
			ShortDescription: "Controls when Stripe will attempt to debit the funds from the customer's account",
		},
		"payment_method_options.oxxo.expires_after_days": {
			Type:             "integer",
			ShortDescription: "The number of calendar days before an OXXO voucher expires",
		},
		"payment_method_options.oxxo.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.p24.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.p24.tos_shown_and_accepted": {
			Type:             "boolean",
			ShortDescription: "Confirm that the payer has accepted the P24 terms and conditions",
		},
		"payment_method_options.payco.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.paynow.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.paypal.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds will be captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.paypal.preferred_locale": {
			Type:             "string",
			ShortDescription: "[Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to",
			Enum: []resource.EnumSpec{
				{Value: "cs-CZ"},
				{Value: "da-DK"},
				{Value: "de-AT"},
				{Value: "de-DE"},
				{Value: "de-LU"},
				{Value: "el-GR"},
				{Value: "en-GB"},
				{Value: "en-US"},
				{Value: "es-ES"},
				{Value: "fi-FI"},
				{Value: "fr-BE"},
				{Value: "fr-FR"},
				{Value: "fr-LU"},
				{Value: "hu-HU"},
				{Value: "it-IT"},
				{Value: "nl-BE"},
				{Value: "nl-NL"},
				{Value: "pl-PL"},
				{Value: "pt-PT"},
				{Value: "sk-SK"},
				{Value: "sv-SE"},
			},
		},
		"payment_method_options.paypal.reference": {
			Type:             "string",
			ShortDescription: "A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID",
		},
		"payment_method_options.paypal.risk_correlation_id": {
			Type:             "string",
			ShortDescription: "The risk correlation ID for an on-session payment using a saved PayPal payment method",
		},
		"payment_method_options.paypal.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.payto.mandate_options.amount": {
			Type:             "integer",
			ShortDescription: "Amount that will be collected",
		},
		"payment_method_options.payto.mandate_options.amount_type": {
			Type:             "string",
			ShortDescription: "The type of amount that will be collected",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_options.payto.mandate_options.end_date": {
			Type:             "string",
			ShortDescription: "Date, in YYYY-MM-DD format, after which payments will not be collected",
		},
		"payment_method_options.payto.mandate_options.payment_schedule": {
			Type:             "string",
			ShortDescription: "The periodicity at which payments will be collected",
			Enum: []resource.EnumSpec{
				{Value: "adhoc"},
				{Value: "annual"},
				{Value: "daily"},
				{Value: "fortnightly"},
				{Value: "monthly"},
				{Value: "quarterly"},
				{Value: "semi_annual"},
				{Value: "weekly"},
			},
		},
		"payment_method_options.payto.mandate_options.payments_per_period": {
			Type:             "integer",
			ShortDescription: "The number of payments that will be made during a payment period",
		},
		"payment_method_options.payto.mandate_options.purpose": {
			Type:             "string",
			ShortDescription: "The purpose for which payments are made",
			Enum: []resource.EnumSpec{
				{Value: "dependant_support"},
				{Value: "government"},
				{Value: "loan"},
				{Value: "mortgage"},
				{Value: "other"},
				{Value: "pension"},
				{Value: "personal"},
				{Value: "retail"},
				{Value: "salary"},
				{Value: "tax"},
				{Value: "utility"},
			},
		},
		"payment_method_options.payto.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.pix.amount_includes_iof": {
			Type:             "string",
			ShortDescription: "Determines if the amount includes the IOF tax",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "never"},
			},
		},
		"payment_method_options.pix.expires_after_seconds": {
			Type:             "integer",
			ShortDescription: "The number of seconds (between 10 and 1209600) after which Pix payment will expire",
		},
		"payment_method_options.pix.expires_at": {
			Type:             "integer",
			ShortDescription: "The timestamp at which the Pix expires (between 10 and 1209600 seconds in the future)",
			Format:           "unix-time",
		},
		"payment_method_options.pix.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.promptpay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.revolut_pay.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.revolut_pay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.samsung_pay.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.satispay.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.sepa_debit.mandate_options.reference_prefix": {
			Type:             "string",
			ShortDescription: "Prefix used to generate the Mandate reference",
		},
		"payment_method_options.sepa_debit.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.sepa_debit.target_date": {
			Type:             "string",
			ShortDescription: "Controls when Stripe will attempt to debit the funds from the customer's account",
		},
		"payment_method_options.sofort.preferred_language": {
			Type:             "string",
			ShortDescription: "Language shown to the payer on redirect",
			Enum: []resource.EnumSpec{
				{Value: "de"},
				{Value: "en"},
				{Value: "es"},
				{Value: "fr"},
				{Value: "it"},
				{Value: "nl"},
				{Value: "pl"},
			},
		},
		"payment_method_options.sofort.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.swish.reference": {
			Type:             "string",
			ShortDescription: "A reference for this payment to be displayed in the Swish app",
		},
		"payment_method_options.swish.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.twint.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.upi.mandate_options.amount": {
			Type:             "integer",
			ShortDescription: "Amount to be charged for future payments",
		},
		"payment_method_options.upi.mandate_options.amount_type": {
			Type:             "string",
			ShortDescription: "One of `fixed` or `maximum`",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_options.upi.mandate_options.description": {
			Type:             "string",
			ShortDescription: "A description of the mandate or subscription that is meant to be displayed to the customer",
		},
		"payment_method_options.upi.mandate_options.end_date": {
			Type:             "integer",
			ShortDescription: "End date of the mandate or subscription",
			Format:           "unix-time",
		},
		"payment_method_options.upi.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.us_bank_account.financial_connections.filters.account_subcategories": {
			Type:             "array",
			ShortDescription: "The account subcategories to use to filter for selectable accounts",
		},
		"payment_method_options.us_bank_account.financial_connections.permissions": {
			Type:             "array",
			ShortDescription: "The list of permissions to request",
		},
		"payment_method_options.us_bank_account.financial_connections.prefetch": {
			Type:             "array",
			ShortDescription: "List of data features that you would like to retrieve upon account creation",
		},
		"payment_method_options.us_bank_account.financial_connections.return_url": {
			Type:             "string",
			ShortDescription: "For webview integrations only",
		},
		"payment_method_options.us_bank_account.mandate_options.collection_method": {
			Type:             "string",
			ShortDescription: "The method used to collect offline mandate customer acceptance",
			Enum: []resource.EnumSpec{
				{Value: "paper"},
			},
		},
		"payment_method_options.us_bank_account.networks.requested": {
			Type:             "array",
			ShortDescription: "Triggers validations to run across the selected networks",
		},
		"payment_method_options.us_bank_account.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.us_bank_account.target_date": {
			Type:             "string",
			ShortDescription: "Controls when Stripe will attempt to debit the funds from the customer's account",
		},
		"payment_method_options.us_bank_account.transaction_purpose": {
			Type:             "string",
			ShortDescription: "The purpose of the transaction",
			Enum: []resource.EnumSpec{
				{Value: "goods"},
				{Value: "other"},
				{Value: "services"},
				{Value: "unspecified"},
			},
		},
		"payment_method_options.us_bank_account.verification_method": {
			Type:             "string",
			ShortDescription: "Bank account verification method",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "instant"},
				{Value: "microdeposits"},
			},
		},
		"payment_method_options.wechat_pay.app_id": {
			Type:             "string",
			ShortDescription: "The app ID registered with WeChat Pay",
		},
		"payment_method_options.wechat_pay.client": {
			Type:             "string",
			ShortDescription: "The client type that the end customer will pay from",
			Enum: []resource.EnumSpec{
				{Value: "android"},
				{Value: "ios"},
				{Value: "web"},
			},
		},
		"payment_method_options.wechat_pay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.zip.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_types": {
			Type:             "array",
			ShortDescription: "The list of payment method types (for example, a card) that this PaymentIntent can use",
		},
		"radar_options.session": {
			Type:             "string",
			ShortDescription: "A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments",
		},
		"receipt_email": {
			Type:             "string",
			ShortDescription: "Email address that the receipt for the resulting payment will be sent to",
			MostCommon:       true,
		},
		"return_url": {
			Type:             "string",
			ShortDescription: "The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site",
		},
		"setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"shipping": {
			Type:       "clearable_object",
			MostCommon: true,
		},
		"shipping.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"shipping.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"shipping.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"shipping.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"shipping.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"shipping.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"shipping.carrier": {
			Type:             "string",
			ShortDescription: "The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.",
			MostCommon:       true,
		},
		"shipping.name": {
			Type:             "string",
			ShortDescription: "Recipient name",
			MostCommon:       true,
		},
		"shipping.phone": {
			Type:             "string",
			ShortDescription: "Recipient phone (including extension)",
			MostCommon:       true,
		},
		"shipping.tracking_number": {
			Type:             "string",
			ShortDescription: "The tracking number for a physical product, obtained from the delivery service",
			MostCommon:       true,
		},
		"use_stripe_sdk": {
			Type:             "boolean",
			ShortDescription: "Set to `true` when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions",
		},
	},
}
View Source
var V1PaymentIntentsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/payment_intents",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "Amount intended to be collected by this PaymentIntent",
			Required:         true,
			MostCommon:       true,
		},
		"amount_details.discount_amount": {
			Type:             "integer",
			ShortDescription: "The total discount applied on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal)",
		},
		"amount_details.enforce_arithmetic_validation": {
			Type:             "boolean",
			ShortDescription: "Set to `false` to return arithmetic validation errors in the response without failing the request",
		},
		"amount_details.shipping.amount": {
			Type:             "integer",
			ShortDescription: "If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal)",
		},
		"amount_details.shipping.from_postal_code": {
			Type:             "string",
			ShortDescription: "If a physical good is being shipped, the postal code of where it is being shipped from",
		},
		"amount_details.shipping.to_postal_code": {
			Type:             "string",
			ShortDescription: "If a physical good is being shipped, the postal code of where it is being shipped to",
		},
		"amount_details.tax.total_tax_amount": {
			Type:             "integer",
			ShortDescription: "The total amount of tax on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal)",
		},
		"application_fee_amount": {
			Type:             "integer",
			ShortDescription: "The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account",
		},
		"automatic_payment_methods.allow_redirects": {
			Type:             "string",
			ShortDescription: "Controls whether this PaymentIntent will accept redirect-based payment methods",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "never"},
			},
		},
		"automatic_payment_methods.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether this feature is enabled",
			MostCommon:       true,
		},
		"capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds will be captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "automatic_async"},
				{Value: "manual"},
			},
		},
		"confirm": {
			Type:             "boolean",
			ShortDescription: "Set to `true` to attempt to [confirm this PaymentIntent](https://docs.stripe.com/api/payment_intents/confirm) immediately",
			MostCommon:       true,
		},
		"confirmation_method": {
			Type:             "string",
			ShortDescription: "Describes whether we can confirm this PaymentIntent automatically, or if it requires customer action to confirm the payment",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "manual"},
			},
		},
		"confirmation_token": {
			Type:             "string",
			ShortDescription: "ID of the ConfirmationToken used to confirm this PaymentIntent",
		},
		"currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Required:         true,
			MostCommon:       true,
			Format:           "currency",
		},
		"customer": {
			Type:             "string",
			ShortDescription: "ID of the Customer this PaymentIntent belongs to, if one exists",
			MostCommon:       true,
		},
		"customer_account": {
			Type:             "string",
			ShortDescription: "ID of the Account representing the customer that this PaymentIntent belongs to, if one exists",
			MostCommon:       true,
		},
		"description": {
			Type:             "string",
			ShortDescription: "An arbitrary string attached to the object",
			MostCommon:       true,
		},
		"error_on_requires_action": {
			Type:             "boolean",
			ShortDescription: "Set to `true` to fail the payment attempt if the PaymentIntent transitions into `requires_action`",
		},
		"excluded_payment_method_types": {
			Type:             "array",
			ShortDescription: "The list of payment method types to exclude from use with this payment",
		},
		"hooks.inputs.tax.calculation": {
			Type:             "string",
			ShortDescription: "The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id",
		},
		"mandate": {
			Type:             "string",
			ShortDescription: "ID of the mandate that's used for this payment",
		},
		"mandate_data": {
			Type: "clearable_object",
		},
		"mandate_data.customer_acceptance.accepted_at": {
			Type:             "integer",
			ShortDescription: "The time at which the customer accepted the Mandate",
			Format:           "unix-time",
		},
		"mandate_data.customer_acceptance.online.ip_address": {
			Type:             "string",
			ShortDescription: "The IP address from which the Mandate was accepted by the customer",
		},
		"mandate_data.customer_acceptance.online.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the Mandate was accepted by the customer",
		},
		"mandate_data.customer_acceptance.type": {
			Type:             "string",
			ShortDescription: "The type of customer acceptance information included with the Mandate",
			Enum: []resource.EnumSpec{
				{Value: "offline"},
				{Value: "online"},
			},
		},
		"off_session": {
			Type:             "boolean",
			ShortDescription: "Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate",
			MostCommon:       true,
		},
		"on_behalf_of": {
			Type:             "string",
			ShortDescription: "The Stripe account ID that these funds are intended for",
		},
		"payment_details.customer_reference": {
			Type:             "string",
			ShortDescription: "A unique value to identify the customer",
		},
		"payment_details.order_reference": {
			Type:             "string",
			ShortDescription: "A unique value assigned by the business to identify the transaction",
		},
		"payment_method": {
			Type:             "string",
			ShortDescription: "ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://docs.stripe.com/payments/payment-methods#compatibility) object) to attach to this PaymentIntent",
			MostCommon:       true,
		},
		"payment_method_configuration": {
			Type:             "string",
			ShortDescription: "The ID of the [payment method configuration](https://docs.stripe.com/api/payment_method_configurations) to use with this PaymentIntent",
		},
		"payment_method_data.acss_debit.account_number": {
			Type:             "string",
			ShortDescription: "Customer's bank account number",
		},
		"payment_method_data.acss_debit.institution_number": {
			Type:             "string",
			ShortDescription: "Institution number of the customer's bank",
		},
		"payment_method_data.acss_debit.transit_number": {
			Type:             "string",
			ShortDescription: "Transit number of the customer's bank",
		},
		"payment_method_data.allow_redisplay": {
			Type:             "string",
			ShortDescription: "This field indicates whether this payment method can be shown again to its customer in a checkout flow",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "limited"},
				{Value: "unspecified"},
			},
		},
		"payment_method_data.au_becs_debit.account_number": {
			Type:             "string",
			ShortDescription: "The account number for the bank account",
		},
		"payment_method_data.au_becs_debit.bsb_number": {
			Type:             "string",
			ShortDescription: "Bank-State-Branch number of the bank account",
		},
		"payment_method_data.bacs_debit.account_number": {
			Type:             "string",
			ShortDescription: "Account number of the bank account that the funds will be debited from",
		},
		"payment_method_data.bacs_debit.sort_code": {
			Type:             "string",
			ShortDescription: "Sort code of the bank account. (e.g., `10-20-30`)",
		},
		"payment_method_data.billing_details.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"payment_method_data.billing_details.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"payment_method_data.billing_details.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"payment_method_data.billing_details.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"payment_method_data.billing_details.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"payment_method_data.billing_details.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"payment_method_data.billing_details.email": {
			Type:             "string",
			ShortDescription: "Email address",
		},
		"payment_method_data.billing_details.name": {
			Type:             "string",
			ShortDescription: "Full name",
		},
		"payment_method_data.billing_details.phone": {
			Type:             "string",
			ShortDescription: "Billing phone number (including extension)",
		},
		"payment_method_data.billing_details.tax_id": {
			Type:             "string",
			ShortDescription: "Taxpayer identification number",
		},
		"payment_method_data.boleto.tax_id": {
			Type:             "string",
			ShortDescription: "The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)",
		},
		"payment_method_data.eps.bank": {
			Type:             "string",
			ShortDescription: "The customer's bank",
			Enum: []resource.EnumSpec{
				{Value: "arzte_und_apotheker_bank"},
				{Value: "austrian_anadi_bank_ag"},
				{Value: "bank_austria"},
				{Value: "bankhaus_carl_spangler"},
				{Value: "bankhaus_schelhammer_und_schattera_ag"},
				{Value: "bawag_psk_ag"},
				{Value: "bks_bank_ag"},
				{Value: "brull_kallmus_bank_ag"},
				{Value: "btv_vier_lander_bank"},
				{Value: "capital_bank_grawe_gruppe_ag"},
				{Value: "deutsche_bank_ag"},
				{Value: "dolomitenbank"},
				{Value: "easybank_ag"},
				{Value: "erste_bank_und_sparkassen"},
				{Value: "hypo_alpeadriabank_international_ag"},
				{Value: "hypo_bank_burgenland_aktiengesellschaft"},
				{Value: "hypo_noe_lb_fur_niederosterreich_u_wien"},
				{Value: "hypo_oberosterreich_salzburg_steiermark"},
				{Value: "hypo_tirol_bank_ag"},
				{Value: "hypo_vorarlberg_bank_ag"},
				{Value: "marchfelder_bank"},
				{Value: "oberbank_ag"},
				{Value: "raiffeisen_bankengruppe_osterreich"},
				{Value: "schoellerbank_ag"},
				{Value: "sparda_bank_wien"},
				{Value: "volksbank_gruppe"},
				{Value: "volkskreditbank_ag"},
				{Value: "vr_bank_braunau"},
			},
		},
		"payment_method_data.fpx.account_holder_type": {
			Type:             "string",
			ShortDescription: "Account holder type for FPX transaction",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"payment_method_data.fpx.bank": {
			Type:             "string",
			ShortDescription: "The customer's bank",
			Enum: []resource.EnumSpec{
				{Value: "affin_bank"},
				{Value: "agrobank"},
				{Value: "alliance_bank"},
				{Value: "ambank"},
				{Value: "bank_islam"},
				{Value: "bank_muamalat"},
				{Value: "bank_of_china"},
				{Value: "bank_rakyat"},
				{Value: "bsn"},
				{Value: "cimb"},
				{Value: "deutsche_bank"},
				{Value: "hong_leong_bank"},
				{Value: "hsbc"},
				{Value: "kfh"},
				{Value: "maybank2e"},
				{Value: "maybank2u"},
				{Value: "ocbc"},
				{Value: "pb_enterprise"},
				{Value: "public_bank"},
				{Value: "rhb"},
				{Value: "standard_chartered"},
				{Value: "uob"},
			},
		},
		"payment_method_data.ideal.bank": {
			Type:             "string",
			ShortDescription: "The customer's bank",
			Enum: []resource.EnumSpec{
				{Value: "abn_amro"},
				{Value: "adyen"},
				{Value: "asn_bank"},
				{Value: "bunq"},
				{Value: "buut"},
				{Value: "finom"},
				{Value: "handelsbanken"},
				{Value: "ing"},
				{Value: "knab"},
				{Value: "mollie"},
				{Value: "moneyou"},
				{Value: "n26"},
				{Value: "nn"},
				{Value: "rabobank"},
				{Value: "regiobank"},
				{Value: "revolut"},
				{Value: "sns_bank"},
				{Value: "triodos_bank"},
				{Value: "van_lanschot"},
				{Value: "yoursafe"},
			},
		},
		"payment_method_data.klarna.dob.day": {
			Type:             "integer",
			ShortDescription: "The day of birth, between 1 and 31",
		},
		"payment_method_data.klarna.dob.month": {
			Type:             "integer",
			ShortDescription: "The month of birth, between 1 and 12",
		},
		"payment_method_data.klarna.dob.year": {
			Type:             "integer",
			ShortDescription: "The four-digit year of birth",
		},
		"payment_method_data.naver_pay.funding": {
			Type:             "string",
			ShortDescription: "Whether to use Naver Pay points or a card to fund this transaction",
			Enum: []resource.EnumSpec{
				{Value: "card"},
				{Value: "points"},
			},
		},
		"payment_method_data.nz_bank_account.account_holder_name": {
			Type:             "string",
			ShortDescription: "The name on the bank account",
		},
		"payment_method_data.nz_bank_account.account_number": {
			Type:             "string",
			ShortDescription: "The account number for the bank account",
		},
		"payment_method_data.nz_bank_account.bank_code": {
			Type:             "string",
			ShortDescription: "The numeric code for the bank account's bank",
		},
		"payment_method_data.nz_bank_account.branch_code": {
			Type:             "string",
			ShortDescription: "The numeric code for the bank account's bank branch",
		},
		"payment_method_data.nz_bank_account.reference": {
			Type: "string",
		},
		"payment_method_data.nz_bank_account.suffix": {
			Type:             "string",
			ShortDescription: "The suffix of the bank account number",
		},
		"payment_method_data.p24.bank": {
			Type:             "string",
			ShortDescription: "The customer's bank",
			Enum: []resource.EnumSpec{
				{Value: "alior_bank"},
				{Value: "bank_millennium"},
				{Value: "bank_nowy_bfg_sa"},
				{Value: "bank_pekao_sa"},
				{Value: "banki_spbdzielcze"},
				{Value: "blik"},
				{Value: "bnp_paribas"},
				{Value: "boz"},
				{Value: "citi_handlowy"},
				{Value: "credit_agricole"},
				{Value: "envelobank"},
				{Value: "etransfer_pocztowy24"},
				{Value: "getin_bank"},
				{Value: "ideabank"},
				{Value: "ing"},
				{Value: "inteligo"},
				{Value: "mbank_mtransfer"},
				{Value: "nest_przelew"},
				{Value: "noble_pay"},
				{Value: "pbac_z_ipko"},
				{Value: "plus_bank"},
				{Value: "santander_przelew24"},
				{Value: "tmobile_usbugi_bankowe"},
				{Value: "toyota_bank"},
				{Value: "velobank"},
				{Value: "volkswagen_bank"},
			},
		},
		"payment_method_data.payto.account_number": {
			Type:             "string",
			ShortDescription: "The account number for the bank account",
		},
		"payment_method_data.payto.bsb_number": {
			Type:             "string",
			ShortDescription: "Bank-State-Branch number of the bank account",
		},
		"payment_method_data.payto.pay_id": {
			Type:             "string",
			ShortDescription: "The PayID alias for the bank account",
		},
		"payment_method_data.radar_options.session": {
			Type:             "string",
			ShortDescription: "A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments",
		},
		"payment_method_data.sepa_debit.iban": {
			Type:             "string",
			ShortDescription: "IBAN of the bank account",
		},
		"payment_method_data.sofort.country": {
			Type:             "string",
			ShortDescription: "Two-letter ISO code representing the country the bank account is located in",
			Enum: []resource.EnumSpec{
				{Value: "AT"},
				{Value: "BE"},
				{Value: "DE"},
				{Value: "ES"},
				{Value: "IT"},
				{Value: "NL"},
			},
		},
		"payment_method_data.type": {
			Type:             "string",
			ShortDescription: "The type of the PaymentMethod",
			Enum: []resource.EnumSpec{
				{Value: "acss_debit"},
				{Value: "affirm"},
				{Value: "afterpay_clearpay"},
				{Value: "alipay"},
				{Value: "alma"},
				{Value: "amazon_pay"},
				{Value: "au_becs_debit"},
				{Value: "bacs_debit"},
				{Value: "bancontact"},
				{Value: "billie"},
				{Value: "blik"},
				{Value: "boleto"},
				{Value: "cashapp"},
				{Value: "crypto"},
				{Value: "customer_balance"},
				{Value: "eps"},
				{Value: "fpx"},
				{Value: "giropay"},
				{Value: "grabpay"},
				{Value: "ideal"},
				{Value: "kakao_pay"},
				{Value: "klarna"},
				{Value: "konbini"},
				{Value: "kr_card"},
				{Value: "link"},
				{Value: "mb_way"},
				{Value: "mobilepay"},
				{Value: "multibanco"},
				{Value: "naver_pay"},
				{Value: "nz_bank_account"},
				{Value: "oxxo"},
				{Value: "p24"},
				{Value: "pay_by_bank"},
				{Value: "payco"},
				{Value: "paynow"},
				{Value: "paypal"},
				{Value: "payto"},
				{Value: "pix"},
				{Value: "promptpay"},
				{Value: "revolut_pay"},
				{Value: "samsung_pay"},
				{Value: "satispay"},
				{Value: "sepa_debit"},
				{Value: "sofort"},
				{Value: "swish"},
				{Value: "twint"},
				{Value: "upi"},
				{Value: "us_bank_account"},
				{Value: "wechat_pay"},
				{Value: "zip"},
			},
		},
		"payment_method_data.upi.mandate_options.amount": {
			Type:             "integer",
			ShortDescription: "Amount to be charged for future payments",
		},
		"payment_method_data.upi.mandate_options.amount_type": {
			Type:             "string",
			ShortDescription: "One of `fixed` or `maximum`",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_data.upi.mandate_options.description": {
			Type:             "string",
			ShortDescription: "A description of the mandate or subscription that is meant to be displayed to the customer",
		},
		"payment_method_data.upi.mandate_options.end_date": {
			Type:             "integer",
			ShortDescription: "End date of the mandate or subscription",
			Format:           "unix-time",
		},
		"payment_method_data.us_bank_account.account_holder_type": {
			Type:             "string",
			ShortDescription: "Account holder type: individual or company",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"payment_method_data.us_bank_account.account_number": {
			Type:             "string",
			ShortDescription: "Account number of the bank account",
		},
		"payment_method_data.us_bank_account.account_type": {
			Type:             "string",
			ShortDescription: "Account type: checkings or savings",
			Enum: []resource.EnumSpec{
				{Value: "checking"},
				{Value: "savings"},
			},
		},
		"payment_method_data.us_bank_account.financial_connections_account": {
			Type:             "string",
			ShortDescription: "The ID of a Financial Connections Account to use as a payment method",
		},
		"payment_method_data.us_bank_account.routing_number": {
			Type:             "string",
			ShortDescription: "Routing number of the bank account",
		},
		"payment_method_options.acss_debit.mandate_options.custom_mandate_url": {
			Type:             "string",
			ShortDescription: "A URL for custom mandate text to render during confirmation step",
		},
		"payment_method_options.acss_debit.mandate_options.interval_description": {
			Type:             "string",
			ShortDescription: "Description of the mandate interval",
		},
		"payment_method_options.acss_debit.mandate_options.payment_schedule": {
			Type:             "string",
			ShortDescription: "Payment schedule for the mandate",
			Enum: []resource.EnumSpec{
				{Value: "combined"},
				{Value: "interval"},
				{Value: "sporadic"},
			},
		},
		"payment_method_options.acss_debit.mandate_options.transaction_type": {
			Type:             "string",
			ShortDescription: "Transaction type of the mandate",
			Enum: []resource.EnumSpec{
				{Value: "business"},
				{Value: "personal"},
			},
		},
		"payment_method_options.acss_debit.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.acss_debit.target_date": {
			Type:             "string",
			ShortDescription: "Controls when Stripe will attempt to debit the funds from the customer's account",
		},
		"payment_method_options.acss_debit.verification_method": {
			Type:             "string",
			ShortDescription: "Bank account verification method",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "instant"},
				{Value: "microdeposits"},
			},
		},
		"payment_method_options.affirm.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.affirm.preferred_locale": {
			Type:             "string",
			ShortDescription: "Preferred language of the Affirm authorization page that the customer is redirected to",
		},
		"payment_method_options.affirm.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.afterpay_clearpay.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.afterpay_clearpay.reference": {
			Type:             "string",
			ShortDescription: "An internal identifier or reference that this payment corresponds to",
		},
		"payment_method_options.afterpay_clearpay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.alipay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.alma.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.amazon_pay.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.amazon_pay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.au_becs_debit.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.au_becs_debit.target_date": {
			Type:             "string",
			ShortDescription: "Controls when Stripe will attempt to debit the funds from the customer's account",
		},
		"payment_method_options.bacs_debit.mandate_options.reference_prefix": {
			Type:             "string",
			ShortDescription: "Prefix used to generate the Mandate reference",
		},
		"payment_method_options.bacs_debit.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.bacs_debit.target_date": {
			Type:             "string",
			ShortDescription: "Controls when Stripe will attempt to debit the funds from the customer's account",
		},
		"payment_method_options.bancontact.preferred_language": {
			Type:             "string",
			ShortDescription: "Preferred language of the Bancontact authorization page that the customer is redirected to",
			Enum: []resource.EnumSpec{
				{Value: "de"},
				{Value: "en"},
				{Value: "fr"},
				{Value: "nl"},
			},
		},
		"payment_method_options.bancontact.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.billie.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.blik.code": {
			Type:             "string",
			ShortDescription: "The 6-digit BLIK code that a customer has generated using their banking application",
		},
		"payment_method_options.blik.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.boleto.expires_after_days": {
			Type:             "integer",
			ShortDescription: "The number of calendar days before a Boleto voucher expires",
		},
		"payment_method_options.boleto.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.card.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.card.cvc_token": {
			Type:             "string",
			ShortDescription: "A single-use `cvc_update` Token that represents a card CVC value",
		},
		"payment_method_options.card.installments.enabled": {
			Type:             "boolean",
			ShortDescription: "Setting to true enables installments for this PaymentIntent",
		},
		"payment_method_options.card.installments.plan.count": {
			Type:             "integer",
			ShortDescription: "For `fixed_count` installment plans, this is required",
		},
		"payment_method_options.card.installments.plan.interval": {
			Type:             "string",
			ShortDescription: "For `fixed_count` installment plans, this is required",
			Enum: []resource.EnumSpec{
				{Value: "month"},
			},
		},
		"payment_method_options.card.installments.plan.type": {
			Type:             "string",
			ShortDescription: "Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`",
			Enum: []resource.EnumSpec{
				{Value: "bonus"},
				{Value: "fixed_count"},
				{Value: "revolving"},
			},
		},
		"payment_method_options.card.mandate_options.amount": {
			Type:             "integer",
			ShortDescription: "Amount to be charged for future payments, specified in the presentment currency",
		},
		"payment_method_options.card.mandate_options.amount_type": {
			Type:             "string",
			ShortDescription: "One of `fixed` or `maximum`",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_options.card.mandate_options.description": {
			Type:             "string",
			ShortDescription: "A description of the mandate or subscription that is meant to be displayed to the customer",
		},
		"payment_method_options.card.mandate_options.end_date": {
			Type:             "integer",
			ShortDescription: "End date of the mandate or subscription",
			Format:           "unix-time",
		},
		"payment_method_options.card.mandate_options.interval": {
			Type:             "string",
			ShortDescription: "Specifies payment frequency",
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "month"},
				{Value: "sporadic"},
				{Value: "week"},
				{Value: "year"},
			},
		},
		"payment_method_options.card.mandate_options.interval_count": {
			Type:             "integer",
			ShortDescription: "The number of intervals between payments",
		},
		"payment_method_options.card.mandate_options.reference": {
			Type:             "string",
			ShortDescription: "Unique identifier for the mandate or subscription",
		},
		"payment_method_options.card.mandate_options.start_date": {
			Type:             "integer",
			ShortDescription: "Start date of the mandate or subscription",
			Format:           "unix-time",
		},
		"payment_method_options.card.mandate_options.supported_types": {
			Type:             "array",
			ShortDescription: "Specifies the type of mandates supported",
		},
		"payment_method_options.card.moto": {
			Type:             "boolean",
			ShortDescription: "When specified, this parameter indicates that a transaction will be marked\nas MOTO (Mail Order Telephone Order) and thus out of scope for SCA",
		},
		"payment_method_options.card.network": {
			Type:             "string",
			ShortDescription: "Selected network to process this PaymentIntent on",
			Enum: []resource.EnumSpec{
				{Value: "amex"},
				{Value: "cartes_bancaires"},
				{Value: "diners"},
				{Value: "discover"},
				{Value: "eftpos_au"},
				{Value: "girocard"},
				{Value: "interac"},
				{Value: "jcb"},
				{Value: "link"},
				{Value: "mastercard"},
				{Value: "unionpay"},
				{Value: "unknown"},
				{Value: "visa"},
			},
		},
		"payment_method_options.card.request_extended_authorization": {
			Type:             "string",
			ShortDescription: "Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent",
			Enum: []resource.EnumSpec{
				{Value: "if_available"},
				{Value: "never"},
			},
		},
		"payment_method_options.card.request_incremental_authorization": {
			Type:             "string",
			ShortDescription: "Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent",
			Enum: []resource.EnumSpec{
				{Value: "if_available"},
				{Value: "never"},
			},
		},
		"payment_method_options.card.request_multicapture": {
			Type:             "string",
			ShortDescription: "Request ability to make [multiple captures](https://docs.stripe.com/payments/multicapture) for this PaymentIntent",
			Enum: []resource.EnumSpec{
				{Value: "if_available"},
				{Value: "never"},
			},
		},
		"payment_method_options.card.request_overcapture": {
			Type:             "string",
			ShortDescription: "Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent",
			Enum: []resource.EnumSpec{
				{Value: "if_available"},
				{Value: "never"},
			},
		},
		"payment_method_options.card.request_three_d_secure": {
			Type:             "string",
			ShortDescription: "We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication)",
			Enum: []resource.EnumSpec{
				{Value: "any"},
				{Value: "automatic"},
				{Value: "challenge"},
			},
		},
		"payment_method_options.card.require_cvc_recollection": {
			Type:             "boolean",
			ShortDescription: "When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter)",
		},
		"payment_method_options.card.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.card.statement_descriptor_suffix_kana": {
			Type:             "string",
			ShortDescription: "Provides information about a card payment that customers see on their statements",
		},
		"payment_method_options.card.statement_descriptor_suffix_kanji": {
			Type:             "string",
			ShortDescription: "Provides information about a card payment that customers see on their statements",
		},
		"payment_method_options.card.three_d_secure.ares_trans_status": {
			Type:             "string",
			ShortDescription: "The `transStatus` returned from the card Issuer’s ACS in the ARes",
			Enum: []resource.EnumSpec{
				{Value: "A"},
				{Value: "C"},
				{Value: "I"},
				{Value: "N"},
				{Value: "R"},
				{Value: "U"},
				{Value: "Y"},
			},
		},
		"payment_method_options.card.three_d_secure.cryptogram": {
			Type:             "string",
			ShortDescription: "The cryptogram, also known as the \"authentication value\" (AAV, CAVV or\nAEVV)",
		},
		"payment_method_options.card.three_d_secure.electronic_commerce_indicator": {
			Type:             "string",
			ShortDescription: "The Electronic Commerce Indicator (ECI) is returned by your 3D Secure\nprovider and indicates what degree of authentication was performed",
			Enum: []resource.EnumSpec{
				{Value: "01"},
				{Value: "02"},
				{Value: "05"},
				{Value: "06"},
				{Value: "07"},
			},
		},
		"payment_method_options.card.three_d_secure.exemption_indicator": {
			Type:             "string",
			ShortDescription: "The exemption requested via 3DS and accepted by the issuer at authentication time",
			Enum: []resource.EnumSpec{
				{Value: "low_risk"},
				{Value: "none"},
			},
		},
		"payment_method_options.card.three_d_secure.network_options.cartes_bancaires.cb_avalgo": {
			Type:             "string",
			ShortDescription: "The cryptogram calculation algorithm used by the card Issuer's ACS\nto calculate the Authentication cryptogram",
			Enum: []resource.EnumSpec{
				{Value: "0"},
				{Value: "1"},
				{Value: "2"},
				{Value: "3"},
				{Value: "4"},
				{Value: "A"},
			},
		},
		"payment_method_options.card.three_d_secure.network_options.cartes_bancaires.cb_exemption": {
			Type:             "string",
			ShortDescription: "The exemption indicator returned from Cartes Bancaires in the ARes.\nmessage extension: CB-EXEMPTION; string (4 characters)\nThis is a 3 byte bitmap (low significant byte first and most significant\nbit first) that has been Base64 encoded",
		},
		"payment_method_options.card.three_d_secure.network_options.cartes_bancaires.cb_score": {
			Type:             "integer",
			ShortDescription: "The risk score returned from Cartes Bancaires in the ARes.\nmessage extension: CB-SCORE; numeric value 0-99",
		},
		"payment_method_options.card.three_d_secure.requestor_challenge_indicator": {
			Type:             "string",
			ShortDescription: "The challenge indicator (`threeDSRequestorChallengeInd`) which was requested in the\nAReq sent to the card Issuer's ACS",
		},
		"payment_method_options.card.three_d_secure.transaction_id": {
			Type:             "string",
			ShortDescription: "For 3D Secure 1, the XID",
		},
		"payment_method_options.card.three_d_secure.version": {
			Type:             "string",
			ShortDescription: "The version of 3D Secure that was performed",
			Enum: []resource.EnumSpec{
				{Value: "1.0.2"},
				{Value: "2.1.0"},
				{Value: "2.2.0"},
				{Value: "2.3.0"},
				{Value: "2.3.1"},
			},
		},
		"payment_method_options.card_present.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
				{Value: "manual_preferred"},
			},
		},
		"payment_method_options.card_present.request_extended_authorization": {
			Type:             "boolean",
			ShortDescription: "Request ability to capture this payment beyond the standard [authorization validity window](https://docs.stripe.com/terminal/features/extended-authorizations#authorization-validity)",
		},
		"payment_method_options.card_present.request_incremental_authorization_support": {
			Type:             "boolean",
			ShortDescription: "Request ability to [increment](https://docs.stripe.com/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible",
		},
		"payment_method_options.card_present.routing.requested_priority": {
			Type:             "string",
			ShortDescription: "Routing requested priority",
			Enum: []resource.EnumSpec{
				{Value: "domestic"},
				{Value: "international"},
			},
		},
		"payment_method_options.cashapp.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.cashapp.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.crypto.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.customer_balance.bank_transfer.eu_bank_transfer.country": {
			Type:             "string",
			ShortDescription: "The desired country code of the bank account information",
		},
		"payment_method_options.customer_balance.bank_transfer.requested_address_types": {
			Type:             "array",
			ShortDescription: "List of address types that should be returned in the financial_addresses response",
		},
		"payment_method_options.customer_balance.bank_transfer.type": {
			Type:             "string",
			ShortDescription: "The list of bank transfer types that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`",
			Enum: []resource.EnumSpec{
				{Value: "eu_bank_transfer"},
				{Value: "gb_bank_transfer"},
				{Value: "jp_bank_transfer"},
				{Value: "mx_bank_transfer"},
				{Value: "us_bank_transfer"},
			},
		},
		"payment_method_options.customer_balance.funding_type": {
			Type:             "string",
			ShortDescription: "The funding method type to be used when there are not enough funds in the customer balance",
			Enum: []resource.EnumSpec{
				{Value: "bank_transfer"},
			},
		},
		"payment_method_options.customer_balance.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.eps.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.fpx.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.giropay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.grabpay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.ideal.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.kakao_pay.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.kakao_pay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.klarna.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.klarna.on_demand.average_amount": {
			Type:             "integer",
			ShortDescription: "Your average amount value",
		},
		"payment_method_options.klarna.on_demand.maximum_amount": {
			Type:             "integer",
			ShortDescription: "The maximum value you may charge a customer per purchase",
		},
		"payment_method_options.klarna.on_demand.minimum_amount": {
			Type:             "integer",
			ShortDescription: "The lowest or minimum value you may charge a customer per purchase",
		},
		"payment_method_options.klarna.on_demand.purchase_interval": {
			Type:             "string",
			ShortDescription: "Interval at which the customer is making purchases",
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "month"},
				{Value: "week"},
				{Value: "year"},
			},
		},
		"payment_method_options.klarna.on_demand.purchase_interval_count": {
			Type:             "integer",
			ShortDescription: "The number of `purchase_interval` between charges",
		},
		"payment_method_options.klarna.preferred_locale": {
			Type:             "string",
			ShortDescription: "Preferred language of the Klarna authorization page that the customer is redirected to",
			Enum: []resource.EnumSpec{
				{Value: "cs-CZ"},
				{Value: "da-DK"},
				{Value: "de-AT"},
				{Value: "de-CH"},
				{Value: "de-DE"},
				{Value: "el-GR"},
				{Value: "en-AT"},
				{Value: "en-AU"},
				{Value: "en-BE"},
				{Value: "en-CA"},
				{Value: "en-CH"},
				{Value: "en-CZ"},
				{Value: "en-DE"},
				{Value: "en-DK"},
				{Value: "en-ES"},
				{Value: "en-FI"},
				{Value: "en-FR"},
				{Value: "en-GB"},
				{Value: "en-GR"},
				{Value: "en-IE"},
				{Value: "en-IT"},
				{Value: "en-NL"},
				{Value: "en-NO"},
				{Value: "en-NZ"},
				{Value: "en-PL"},
				{Value: "en-PT"},
				{Value: "en-RO"},
				{Value: "en-SE"},
				{Value: "en-US"},
				{Value: "es-ES"},
				{Value: "es-US"},
				{Value: "fi-FI"},
				{Value: "fr-BE"},
				{Value: "fr-CA"},
				{Value: "fr-CH"},
				{Value: "fr-FR"},
				{Value: "it-CH"},
				{Value: "it-IT"},
				{Value: "nb-NO"},
				{Value: "nl-BE"},
				{Value: "nl-NL"},
				{Value: "pl-PL"},
				{Value: "pt-PT"},
				{Value: "ro-RO"},
				{Value: "sv-FI"},
				{Value: "sv-SE"},
			},
		},
		"payment_method_options.klarna.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.konbini.confirmation_number": {
			Type:             "string",
			ShortDescription: "An optional 10 to 11 digit numeric-only string determining the confirmation code at applicable convenience stores",
		},
		"payment_method_options.konbini.expires_after_days": {
			Type:             "integer",
			ShortDescription: "The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire",
		},
		"payment_method_options.konbini.expires_at": {
			Type:             "integer",
			ShortDescription: "The timestamp at which the Konbini payment instructions will expire",
		},
		"payment_method_options.konbini.product_description": {
			Type:             "string",
			ShortDescription: "A product descriptor of up to 22 characters, which will appear to customers at the convenience store",
		},
		"payment_method_options.konbini.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.kr_card.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.kr_card.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.link.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.link.persistent_token": {
			Type:             "string",
			ShortDescription: "[Deprecated] This is a legacy parameter that no longer has any function",
		},
		"payment_method_options.link.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.mb_way.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.mobilepay.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.mobilepay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.multibanco.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.naver_pay.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.naver_pay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.nz_bank_account.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.nz_bank_account.target_date": {
			Type:             "string",
			ShortDescription: "Controls when Stripe will attempt to debit the funds from the customer's account",
		},
		"payment_method_options.oxxo.expires_after_days": {
			Type:             "integer",
			ShortDescription: "The number of calendar days before an OXXO voucher expires",
		},
		"payment_method_options.oxxo.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.p24.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.p24.tos_shown_and_accepted": {
			Type:             "boolean",
			ShortDescription: "Confirm that the payer has accepted the P24 terms and conditions",
		},
		"payment_method_options.payco.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.paynow.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.paypal.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds will be captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.paypal.preferred_locale": {
			Type:             "string",
			ShortDescription: "[Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to",
			Enum: []resource.EnumSpec{
				{Value: "cs-CZ"},
				{Value: "da-DK"},
				{Value: "de-AT"},
				{Value: "de-DE"},
				{Value: "de-LU"},
				{Value: "el-GR"},
				{Value: "en-GB"},
				{Value: "en-US"},
				{Value: "es-ES"},
				{Value: "fi-FI"},
				{Value: "fr-BE"},
				{Value: "fr-FR"},
				{Value: "fr-LU"},
				{Value: "hu-HU"},
				{Value: "it-IT"},
				{Value: "nl-BE"},
				{Value: "nl-NL"},
				{Value: "pl-PL"},
				{Value: "pt-PT"},
				{Value: "sk-SK"},
				{Value: "sv-SE"},
			},
		},
		"payment_method_options.paypal.reference": {
			Type:             "string",
			ShortDescription: "A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID",
		},
		"payment_method_options.paypal.risk_correlation_id": {
			Type:             "string",
			ShortDescription: "The risk correlation ID for an on-session payment using a saved PayPal payment method",
		},
		"payment_method_options.paypal.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.payto.mandate_options.amount": {
			Type:             "integer",
			ShortDescription: "Amount that will be collected",
		},
		"payment_method_options.payto.mandate_options.amount_type": {
			Type:             "string",
			ShortDescription: "The type of amount that will be collected",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_options.payto.mandate_options.end_date": {
			Type:             "string",
			ShortDescription: "Date, in YYYY-MM-DD format, after which payments will not be collected",
		},
		"payment_method_options.payto.mandate_options.payment_schedule": {
			Type:             "string",
			ShortDescription: "The periodicity at which payments will be collected",
			Enum: []resource.EnumSpec{
				{Value: "adhoc"},
				{Value: "annual"},
				{Value: "daily"},
				{Value: "fortnightly"},
				{Value: "monthly"},
				{Value: "quarterly"},
				{Value: "semi_annual"},
				{Value: "weekly"},
			},
		},
		"payment_method_options.payto.mandate_options.payments_per_period": {
			Type:             "integer",
			ShortDescription: "The number of payments that will be made during a payment period",
		},
		"payment_method_options.payto.mandate_options.purpose": {
			Type:             "string",
			ShortDescription: "The purpose for which payments are made",
			Enum: []resource.EnumSpec{
				{Value: "dependant_support"},
				{Value: "government"},
				{Value: "loan"},
				{Value: "mortgage"},
				{Value: "other"},
				{Value: "pension"},
				{Value: "personal"},
				{Value: "retail"},
				{Value: "salary"},
				{Value: "tax"},
				{Value: "utility"},
			},
		},
		"payment_method_options.payto.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.pix.amount_includes_iof": {
			Type:             "string",
			ShortDescription: "Determines if the amount includes the IOF tax",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "never"},
			},
		},
		"payment_method_options.pix.expires_after_seconds": {
			Type:             "integer",
			ShortDescription: "The number of seconds (between 10 and 1209600) after which Pix payment will expire",
		},
		"payment_method_options.pix.expires_at": {
			Type:             "integer",
			ShortDescription: "The timestamp at which the Pix expires (between 10 and 1209600 seconds in the future)",
			Format:           "unix-time",
		},
		"payment_method_options.pix.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.promptpay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.revolut_pay.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.revolut_pay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.samsung_pay.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.satispay.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.sepa_debit.mandate_options.reference_prefix": {
			Type:             "string",
			ShortDescription: "Prefix used to generate the Mandate reference",
		},
		"payment_method_options.sepa_debit.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.sepa_debit.target_date": {
			Type:             "string",
			ShortDescription: "Controls when Stripe will attempt to debit the funds from the customer's account",
		},
		"payment_method_options.sofort.preferred_language": {
			Type:             "string",
			ShortDescription: "Language shown to the payer on redirect",
			Enum: []resource.EnumSpec{
				{Value: "de"},
				{Value: "en"},
				{Value: "es"},
				{Value: "fr"},
				{Value: "it"},
				{Value: "nl"},
				{Value: "pl"},
			},
		},
		"payment_method_options.sofort.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.swish.reference": {
			Type:             "string",
			ShortDescription: "A reference for this payment to be displayed in the Swish app",
		},
		"payment_method_options.swish.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.twint.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.upi.mandate_options.amount": {
			Type:             "integer",
			ShortDescription: "Amount to be charged for future payments",
		},
		"payment_method_options.upi.mandate_options.amount_type": {
			Type:             "string",
			ShortDescription: "One of `fixed` or `maximum`",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_options.upi.mandate_options.description": {
			Type:             "string",
			ShortDescription: "A description of the mandate or subscription that is meant to be displayed to the customer",
		},
		"payment_method_options.upi.mandate_options.end_date": {
			Type:             "integer",
			ShortDescription: "End date of the mandate or subscription",
			Format:           "unix-time",
		},
		"payment_method_options.upi.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.us_bank_account.financial_connections.filters.account_subcategories": {
			Type:             "array",
			ShortDescription: "The account subcategories to use to filter for selectable accounts",
		},
		"payment_method_options.us_bank_account.financial_connections.permissions": {
			Type:             "array",
			ShortDescription: "The list of permissions to request",
		},
		"payment_method_options.us_bank_account.financial_connections.prefetch": {
			Type:             "array",
			ShortDescription: "List of data features that you would like to retrieve upon account creation",
		},
		"payment_method_options.us_bank_account.financial_connections.return_url": {
			Type:             "string",
			ShortDescription: "For webview integrations only",
		},
		"payment_method_options.us_bank_account.mandate_options.collection_method": {
			Type:             "string",
			ShortDescription: "The method used to collect offline mandate customer acceptance",
			Enum: []resource.EnumSpec{
				{Value: "paper"},
			},
		},
		"payment_method_options.us_bank_account.networks.requested": {
			Type:             "array",
			ShortDescription: "Triggers validations to run across the selected networks",
		},
		"payment_method_options.us_bank_account.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.us_bank_account.target_date": {
			Type:             "string",
			ShortDescription: "Controls when Stripe will attempt to debit the funds from the customer's account",
		},
		"payment_method_options.us_bank_account.transaction_purpose": {
			Type:             "string",
			ShortDescription: "The purpose of the transaction",
			Enum: []resource.EnumSpec{
				{Value: "goods"},
				{Value: "other"},
				{Value: "services"},
				{Value: "unspecified"},
			},
		},
		"payment_method_options.us_bank_account.verification_method": {
			Type:             "string",
			ShortDescription: "Bank account verification method",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "instant"},
				{Value: "microdeposits"},
			},
		},
		"payment_method_options.wechat_pay.app_id": {
			Type:             "string",
			ShortDescription: "The app ID registered with WeChat Pay",
		},
		"payment_method_options.wechat_pay.client": {
			Type:             "string",
			ShortDescription: "The client type that the end customer will pay from",
			Enum: []resource.EnumSpec{
				{Value: "android"},
				{Value: "ios"},
				{Value: "web"},
			},
		},
		"payment_method_options.wechat_pay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.zip.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_types": {
			Type:             "array",
			ShortDescription: "The list of payment method types (for example, a card) that this PaymentIntent can use",
		},
		"radar_options.session": {
			Type:             "string",
			ShortDescription: "A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments",
		},
		"receipt_email": {
			Type:             "string",
			ShortDescription: "Email address to send the receipt to",
			MostCommon:       true,
		},
		"return_url": {
			Type:             "string",
			ShortDescription: "The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site",
		},
		"setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"shipping.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"shipping.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"shipping.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"shipping.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"shipping.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"shipping.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"shipping.carrier": {
			Type:             "string",
			ShortDescription: "The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.",
		},
		"shipping.name": {
			Type:             "string",
			ShortDescription: "Recipient name",
			MostCommon:       true,
		},
		"shipping.phone": {
			Type:             "string",
			ShortDescription: "Recipient phone (including extension)",
		},
		"shipping.tracking_number": {
			Type:             "string",
			ShortDescription: "The tracking number for a physical product, obtained from the delivery service",
		},
		"statement_descriptor": {
			Type:             "string",
			ShortDescription: "Text that appears on the customer's statement as the statement descriptor for a non-card charge",
			MostCommon:       true,
		},
		"statement_descriptor_suffix": {
			Type:             "string",
			ShortDescription: "Provides information about a card charge",
			MostCommon:       true,
		},
		"transfer_data.amount": {
			Type:             "integer",
			ShortDescription: "The amount that will be transferred automatically when a charge succeeds",
		},
		"transfer_data.destination": {
			Type:             "string",
			ShortDescription: "If specified, successful charges will be attributed to the destination\naccount for tax reporting, and the funds from charges will be transferred\nto the destination account",
		},
		"transfer_group": {
			Type:             "string",
			ShortDescription: "A string that identifies the resulting payment as part of a group",
		},
		"use_stripe_sdk": {
			Type:             "boolean",
			ShortDescription: "Set to `true` when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions",
		},
	},
}
View Source
var V1PaymentIntentsIncrementAuthorization = resource.OperationSpec{
	Name:   "increment_authorization",
	Path:   "/v1/payment_intents/{intent}/increment_authorization",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "The updated total amount that you intend to collect from the cardholder",
			Required:         true,
			MostCommon:       true,
		},
		"amount_details.discount_amount": {
			Type:             "integer",
			ShortDescription: "The total discount applied on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal)",
		},
		"amount_details.enforce_arithmetic_validation": {
			Type:             "boolean",
			ShortDescription: "Set to `false` to return arithmetic validation errors in the response without failing the request",
		},
		"amount_details.shipping.amount": {
			Type:             "integer",
			ShortDescription: "If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal)",
		},
		"amount_details.shipping.from_postal_code": {
			Type:             "string",
			ShortDescription: "If a physical good is being shipped, the postal code of where it is being shipped from",
		},
		"amount_details.shipping.to_postal_code": {
			Type:             "string",
			ShortDescription: "If a physical good is being shipped, the postal code of where it is being shipped to",
		},
		"amount_details.tax.total_tax_amount": {
			Type:             "integer",
			ShortDescription: "The total amount of tax on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal)",
		},
		"application_fee_amount": {
			Type:             "integer",
			ShortDescription: "The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account",
		},
		"description": {
			Type:             "string",
			ShortDescription: "An arbitrary string attached to the object",
			MostCommon:       true,
		},
		"hooks.inputs.tax.calculation": {
			Type:             "string",
			ShortDescription: "The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id",
		},
		"payment_details.customer_reference": {
			Type:             "string",
			ShortDescription: "A unique value to identify the customer",
		},
		"payment_details.order_reference": {
			Type:             "string",
			ShortDescription: "A unique value assigned by the business to identify the transaction",
		},
		"statement_descriptor": {
			Type:             "string",
			ShortDescription: "Text that appears on the customer's statement as the statement descriptor for a non-card or card charge",
			MostCommon:       true,
		},
		"transfer_data.amount": {
			Type:             "integer",
			ShortDescription: "The amount that will be transferred automatically when a charge succeeds",
		},
	},
}
View Source
var V1PaymentIntentsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/payment_intents",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type:             "integer",
			ShortDescription: "A filter on the list, based on the object `created` field",
		},
		"customer": {
			Type:             "string",
			ShortDescription: "Only return PaymentIntents for the customer that this customer ID specifies",
		},
		"customer_account": {
			Type:             "string",
			ShortDescription: "Only return PaymentIntents for the account representing the customer that this ID specifies",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1PaymentIntentsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/payment_intents/{intent}",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"client_secret": {
			Type:             "string",
			ShortDescription: "The client secret of the PaymentIntent",
		},
	},
}
View Source
var V1PaymentIntentsSearch = resource.OperationSpec{
	Name:   "search",
	Path:   "/v1/payment_intents/search",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"page": {
			Type:             "string",
			ShortDescription: "A cursor for pagination across multiple pages of results",
		},
		"query": {
			Type:             "string",
			ShortDescription: "The search query string",
			Required:         true,
		},
	},
}
View Source
var V1PaymentIntentsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/payment_intents/{intent}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "Amount intended to be collected by this PaymentIntent",
			MostCommon:       true,
		},
		"amount_details": {
			Type: "clearable_object",
		},
		"amount_details.discount_amount": {
			Type:             "integer",
			ShortDescription: "The total discount applied on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal)",
		},
		"amount_details.enforce_arithmetic_validation": {
			Type:             "boolean",
			ShortDescription: "Set to `false` to return arithmetic validation errors in the response without failing the request",
		},
		"amount_details.shipping.amount": {
			Type:             "integer",
			ShortDescription: "If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal)",
		},
		"amount_details.shipping.from_postal_code": {
			Type:             "string",
			ShortDescription: "If a physical good is being shipped, the postal code of where it is being shipped from",
		},
		"amount_details.shipping.to_postal_code": {
			Type:             "string",
			ShortDescription: "If a physical good is being shipped, the postal code of where it is being shipped to",
		},
		"amount_details.tax.total_tax_amount": {
			Type:             "integer",
			ShortDescription: "The total amount of tax on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal)",
		},
		"application_fee_amount": {
			Type:             "integer",
			ShortDescription: "The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account",
		},
		"capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds will be captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "automatic_async"},
				{Value: "manual"},
			},
		},
		"currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			MostCommon:       true,
			Format:           "currency",
		},
		"customer": {
			Type:             "string",
			ShortDescription: "ID of the Customer this PaymentIntent belongs to, if one exists",
			MostCommon:       true,
		},
		"customer_account": {
			Type:             "string",
			ShortDescription: "ID of the Account representing the customer that this PaymentIntent belongs to, if one exists",
			MostCommon:       true,
		},
		"description": {
			Type:             "string",
			ShortDescription: "An arbitrary string attached to the object",
			MostCommon:       true,
		},
		"excluded_payment_method_types": {
			Type:             "array",
			ShortDescription: "The list of payment method types to exclude from use with this payment",
		},
		"hooks.inputs.tax.calculation": {
			Type:             "string",
			ShortDescription: "The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id",
		},
		"payment_details": {
			Type: "clearable_object",
		},
		"payment_details.customer_reference": {
			Type:             "string",
			ShortDescription: "A unique value to identify the customer",
		},
		"payment_details.order_reference": {
			Type:             "string",
			ShortDescription: "A unique value assigned by the business to identify the transaction",
		},
		"payment_method": {
			Type:             "string",
			ShortDescription: "ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://docs.stripe.com/payments/payment-methods/transitioning#compatibility) object) to attach to this PaymentIntent",
			MostCommon:       true,
		},
		"payment_method_configuration": {
			Type:             "string",
			ShortDescription: "The ID of the [payment method configuration](https://docs.stripe.com/api/payment_method_configurations) to use with this PaymentIntent",
		},
		"payment_method_data.acss_debit.account_number": {
			Type:             "string",
			ShortDescription: "Customer's bank account number",
		},
		"payment_method_data.acss_debit.institution_number": {
			Type:             "string",
			ShortDescription: "Institution number of the customer's bank",
		},
		"payment_method_data.acss_debit.transit_number": {
			Type:             "string",
			ShortDescription: "Transit number of the customer's bank",
		},
		"payment_method_data.allow_redisplay": {
			Type:             "string",
			ShortDescription: "This field indicates whether this payment method can be shown again to its customer in a checkout flow",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "limited"},
				{Value: "unspecified"},
			},
		},
		"payment_method_data.au_becs_debit.account_number": {
			Type:             "string",
			ShortDescription: "The account number for the bank account",
		},
		"payment_method_data.au_becs_debit.bsb_number": {
			Type:             "string",
			ShortDescription: "Bank-State-Branch number of the bank account",
		},
		"payment_method_data.bacs_debit.account_number": {
			Type:             "string",
			ShortDescription: "Account number of the bank account that the funds will be debited from",
		},
		"payment_method_data.bacs_debit.sort_code": {
			Type:             "string",
			ShortDescription: "Sort code of the bank account. (e.g., `10-20-30`)",
		},
		"payment_method_data.billing_details.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"payment_method_data.billing_details.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"payment_method_data.billing_details.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"payment_method_data.billing_details.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"payment_method_data.billing_details.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"payment_method_data.billing_details.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"payment_method_data.billing_details.email": {
			Type:             "string",
			ShortDescription: "Email address",
		},
		"payment_method_data.billing_details.name": {
			Type:             "string",
			ShortDescription: "Full name",
		},
		"payment_method_data.billing_details.phone": {
			Type:             "string",
			ShortDescription: "Billing phone number (including extension)",
		},
		"payment_method_data.billing_details.tax_id": {
			Type:             "string",
			ShortDescription: "Taxpayer identification number",
		},
		"payment_method_data.boleto.tax_id": {
			Type:             "string",
			ShortDescription: "The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)",
		},
		"payment_method_data.eps.bank": {
			Type:             "string",
			ShortDescription: "The customer's bank",
			Enum: []resource.EnumSpec{
				{Value: "arzte_und_apotheker_bank"},
				{Value: "austrian_anadi_bank_ag"},
				{Value: "bank_austria"},
				{Value: "bankhaus_carl_spangler"},
				{Value: "bankhaus_schelhammer_und_schattera_ag"},
				{Value: "bawag_psk_ag"},
				{Value: "bks_bank_ag"},
				{Value: "brull_kallmus_bank_ag"},
				{Value: "btv_vier_lander_bank"},
				{Value: "capital_bank_grawe_gruppe_ag"},
				{Value: "deutsche_bank_ag"},
				{Value: "dolomitenbank"},
				{Value: "easybank_ag"},
				{Value: "erste_bank_und_sparkassen"},
				{Value: "hypo_alpeadriabank_international_ag"},
				{Value: "hypo_bank_burgenland_aktiengesellschaft"},
				{Value: "hypo_noe_lb_fur_niederosterreich_u_wien"},
				{Value: "hypo_oberosterreich_salzburg_steiermark"},
				{Value: "hypo_tirol_bank_ag"},
				{Value: "hypo_vorarlberg_bank_ag"},
				{Value: "marchfelder_bank"},
				{Value: "oberbank_ag"},
				{Value: "raiffeisen_bankengruppe_osterreich"},
				{Value: "schoellerbank_ag"},
				{Value: "sparda_bank_wien"},
				{Value: "volksbank_gruppe"},
				{Value: "volkskreditbank_ag"},
				{Value: "vr_bank_braunau"},
			},
		},
		"payment_method_data.fpx.account_holder_type": {
			Type:             "string",
			ShortDescription: "Account holder type for FPX transaction",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"payment_method_data.fpx.bank": {
			Type:             "string",
			ShortDescription: "The customer's bank",
			Enum: []resource.EnumSpec{
				{Value: "affin_bank"},
				{Value: "agrobank"},
				{Value: "alliance_bank"},
				{Value: "ambank"},
				{Value: "bank_islam"},
				{Value: "bank_muamalat"},
				{Value: "bank_of_china"},
				{Value: "bank_rakyat"},
				{Value: "bsn"},
				{Value: "cimb"},
				{Value: "deutsche_bank"},
				{Value: "hong_leong_bank"},
				{Value: "hsbc"},
				{Value: "kfh"},
				{Value: "maybank2e"},
				{Value: "maybank2u"},
				{Value: "ocbc"},
				{Value: "pb_enterprise"},
				{Value: "public_bank"},
				{Value: "rhb"},
				{Value: "standard_chartered"},
				{Value: "uob"},
			},
		},
		"payment_method_data.ideal.bank": {
			Type:             "string",
			ShortDescription: "The customer's bank",
			Enum: []resource.EnumSpec{
				{Value: "abn_amro"},
				{Value: "adyen"},
				{Value: "asn_bank"},
				{Value: "bunq"},
				{Value: "buut"},
				{Value: "finom"},
				{Value: "handelsbanken"},
				{Value: "ing"},
				{Value: "knab"},
				{Value: "mollie"},
				{Value: "moneyou"},
				{Value: "n26"},
				{Value: "nn"},
				{Value: "rabobank"},
				{Value: "regiobank"},
				{Value: "revolut"},
				{Value: "sns_bank"},
				{Value: "triodos_bank"},
				{Value: "van_lanschot"},
				{Value: "yoursafe"},
			},
		},
		"payment_method_data.klarna.dob.day": {
			Type:             "integer",
			ShortDescription: "The day of birth, between 1 and 31",
		},
		"payment_method_data.klarna.dob.month": {
			Type:             "integer",
			ShortDescription: "The month of birth, between 1 and 12",
		},
		"payment_method_data.klarna.dob.year": {
			Type:             "integer",
			ShortDescription: "The four-digit year of birth",
		},
		"payment_method_data.naver_pay.funding": {
			Type:             "string",
			ShortDescription: "Whether to use Naver Pay points or a card to fund this transaction",
			Enum: []resource.EnumSpec{
				{Value: "card"},
				{Value: "points"},
			},
		},
		"payment_method_data.nz_bank_account.account_holder_name": {
			Type:             "string",
			ShortDescription: "The name on the bank account",
		},
		"payment_method_data.nz_bank_account.account_number": {
			Type:             "string",
			ShortDescription: "The account number for the bank account",
		},
		"payment_method_data.nz_bank_account.bank_code": {
			Type:             "string",
			ShortDescription: "The numeric code for the bank account's bank",
		},
		"payment_method_data.nz_bank_account.branch_code": {
			Type:             "string",
			ShortDescription: "The numeric code for the bank account's bank branch",
		},
		"payment_method_data.nz_bank_account.reference": {
			Type: "string",
		},
		"payment_method_data.nz_bank_account.suffix": {
			Type:             "string",
			ShortDescription: "The suffix of the bank account number",
		},
		"payment_method_data.p24.bank": {
			Type:             "string",
			ShortDescription: "The customer's bank",
			Enum: []resource.EnumSpec{
				{Value: "alior_bank"},
				{Value: "bank_millennium"},
				{Value: "bank_nowy_bfg_sa"},
				{Value: "bank_pekao_sa"},
				{Value: "banki_spbdzielcze"},
				{Value: "blik"},
				{Value: "bnp_paribas"},
				{Value: "boz"},
				{Value: "citi_handlowy"},
				{Value: "credit_agricole"},
				{Value: "envelobank"},
				{Value: "etransfer_pocztowy24"},
				{Value: "getin_bank"},
				{Value: "ideabank"},
				{Value: "ing"},
				{Value: "inteligo"},
				{Value: "mbank_mtransfer"},
				{Value: "nest_przelew"},
				{Value: "noble_pay"},
				{Value: "pbac_z_ipko"},
				{Value: "plus_bank"},
				{Value: "santander_przelew24"},
				{Value: "tmobile_usbugi_bankowe"},
				{Value: "toyota_bank"},
				{Value: "velobank"},
				{Value: "volkswagen_bank"},
			},
		},
		"payment_method_data.payto.account_number": {
			Type:             "string",
			ShortDescription: "The account number for the bank account",
		},
		"payment_method_data.payto.bsb_number": {
			Type:             "string",
			ShortDescription: "Bank-State-Branch number of the bank account",
		},
		"payment_method_data.payto.pay_id": {
			Type:             "string",
			ShortDescription: "The PayID alias for the bank account",
		},
		"payment_method_data.radar_options.session": {
			Type:             "string",
			ShortDescription: "A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments",
		},
		"payment_method_data.sepa_debit.iban": {
			Type:             "string",
			ShortDescription: "IBAN of the bank account",
		},
		"payment_method_data.sofort.country": {
			Type:             "string",
			ShortDescription: "Two-letter ISO code representing the country the bank account is located in",
			Enum: []resource.EnumSpec{
				{Value: "AT"},
				{Value: "BE"},
				{Value: "DE"},
				{Value: "ES"},
				{Value: "IT"},
				{Value: "NL"},
			},
		},
		"payment_method_data.type": {
			Type:             "string",
			ShortDescription: "The type of the PaymentMethod",
			Enum: []resource.EnumSpec{
				{Value: "acss_debit"},
				{Value: "affirm"},
				{Value: "afterpay_clearpay"},
				{Value: "alipay"},
				{Value: "alma"},
				{Value: "amazon_pay"},
				{Value: "au_becs_debit"},
				{Value: "bacs_debit"},
				{Value: "bancontact"},
				{Value: "billie"},
				{Value: "blik"},
				{Value: "boleto"},
				{Value: "cashapp"},
				{Value: "crypto"},
				{Value: "customer_balance"},
				{Value: "eps"},
				{Value: "fpx"},
				{Value: "giropay"},
				{Value: "grabpay"},
				{Value: "ideal"},
				{Value: "kakao_pay"},
				{Value: "klarna"},
				{Value: "konbini"},
				{Value: "kr_card"},
				{Value: "link"},
				{Value: "mb_way"},
				{Value: "mobilepay"},
				{Value: "multibanco"},
				{Value: "naver_pay"},
				{Value: "nz_bank_account"},
				{Value: "oxxo"},
				{Value: "p24"},
				{Value: "pay_by_bank"},
				{Value: "payco"},
				{Value: "paynow"},
				{Value: "paypal"},
				{Value: "payto"},
				{Value: "pix"},
				{Value: "promptpay"},
				{Value: "revolut_pay"},
				{Value: "samsung_pay"},
				{Value: "satispay"},
				{Value: "sepa_debit"},
				{Value: "sofort"},
				{Value: "swish"},
				{Value: "twint"},
				{Value: "upi"},
				{Value: "us_bank_account"},
				{Value: "wechat_pay"},
				{Value: "zip"},
			},
		},
		"payment_method_data.upi.mandate_options.amount": {
			Type:             "integer",
			ShortDescription: "Amount to be charged for future payments",
		},
		"payment_method_data.upi.mandate_options.amount_type": {
			Type:             "string",
			ShortDescription: "One of `fixed` or `maximum`",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_data.upi.mandate_options.description": {
			Type:             "string",
			ShortDescription: "A description of the mandate or subscription that is meant to be displayed to the customer",
		},
		"payment_method_data.upi.mandate_options.end_date": {
			Type:             "integer",
			ShortDescription: "End date of the mandate or subscription",
			Format:           "unix-time",
		},
		"payment_method_data.us_bank_account.account_holder_type": {
			Type:             "string",
			ShortDescription: "Account holder type: individual or company",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"payment_method_data.us_bank_account.account_number": {
			Type:             "string",
			ShortDescription: "Account number of the bank account",
		},
		"payment_method_data.us_bank_account.account_type": {
			Type:             "string",
			ShortDescription: "Account type: checkings or savings",
			Enum: []resource.EnumSpec{
				{Value: "checking"},
				{Value: "savings"},
			},
		},
		"payment_method_data.us_bank_account.financial_connections_account": {
			Type:             "string",
			ShortDescription: "The ID of a Financial Connections Account to use as a payment method",
		},
		"payment_method_data.us_bank_account.routing_number": {
			Type:             "string",
			ShortDescription: "Routing number of the bank account",
		},
		"payment_method_options.acss_debit.mandate_options.custom_mandate_url": {
			Type:             "string",
			ShortDescription: "A URL for custom mandate text to render during confirmation step",
		},
		"payment_method_options.acss_debit.mandate_options.interval_description": {
			Type:             "string",
			ShortDescription: "Description of the mandate interval",
		},
		"payment_method_options.acss_debit.mandate_options.payment_schedule": {
			Type:             "string",
			ShortDescription: "Payment schedule for the mandate",
			Enum: []resource.EnumSpec{
				{Value: "combined"},
				{Value: "interval"},
				{Value: "sporadic"},
			},
		},
		"payment_method_options.acss_debit.mandate_options.transaction_type": {
			Type:             "string",
			ShortDescription: "Transaction type of the mandate",
			Enum: []resource.EnumSpec{
				{Value: "business"},
				{Value: "personal"},
			},
		},
		"payment_method_options.acss_debit.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.acss_debit.target_date": {
			Type:             "string",
			ShortDescription: "Controls when Stripe will attempt to debit the funds from the customer's account",
		},
		"payment_method_options.acss_debit.verification_method": {
			Type:             "string",
			ShortDescription: "Bank account verification method",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "instant"},
				{Value: "microdeposits"},
			},
		},
		"payment_method_options.affirm.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.affirm.preferred_locale": {
			Type:             "string",
			ShortDescription: "Preferred language of the Affirm authorization page that the customer is redirected to",
		},
		"payment_method_options.affirm.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.afterpay_clearpay.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.afterpay_clearpay.reference": {
			Type:             "string",
			ShortDescription: "An internal identifier or reference that this payment corresponds to",
		},
		"payment_method_options.afterpay_clearpay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.alipay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.alma.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.amazon_pay.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.amazon_pay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.au_becs_debit.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.au_becs_debit.target_date": {
			Type:             "string",
			ShortDescription: "Controls when Stripe will attempt to debit the funds from the customer's account",
		},
		"payment_method_options.bacs_debit.mandate_options.reference_prefix": {
			Type:             "string",
			ShortDescription: "Prefix used to generate the Mandate reference",
		},
		"payment_method_options.bacs_debit.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.bacs_debit.target_date": {
			Type:             "string",
			ShortDescription: "Controls when Stripe will attempt to debit the funds from the customer's account",
		},
		"payment_method_options.bancontact.preferred_language": {
			Type:             "string",
			ShortDescription: "Preferred language of the Bancontact authorization page that the customer is redirected to",
			Enum: []resource.EnumSpec{
				{Value: "de"},
				{Value: "en"},
				{Value: "fr"},
				{Value: "nl"},
			},
		},
		"payment_method_options.bancontact.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.billie.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.blik.code": {
			Type:             "string",
			ShortDescription: "The 6-digit BLIK code that a customer has generated using their banking application",
		},
		"payment_method_options.blik.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.boleto.expires_after_days": {
			Type:             "integer",
			ShortDescription: "The number of calendar days before a Boleto voucher expires",
		},
		"payment_method_options.boleto.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.card.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.card.cvc_token": {
			Type:             "string",
			ShortDescription: "A single-use `cvc_update` Token that represents a card CVC value",
		},
		"payment_method_options.card.installments.enabled": {
			Type:             "boolean",
			ShortDescription: "Setting to true enables installments for this PaymentIntent",
		},
		"payment_method_options.card.installments.plan.count": {
			Type:             "integer",
			ShortDescription: "For `fixed_count` installment plans, this is required",
		},
		"payment_method_options.card.installments.plan.interval": {
			Type:             "string",
			ShortDescription: "For `fixed_count` installment plans, this is required",
			Enum: []resource.EnumSpec{
				{Value: "month"},
			},
		},
		"payment_method_options.card.installments.plan.type": {
			Type:             "string",
			ShortDescription: "Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`",
			Enum: []resource.EnumSpec{
				{Value: "bonus"},
				{Value: "fixed_count"},
				{Value: "revolving"},
			},
		},
		"payment_method_options.card.mandate_options.amount": {
			Type:             "integer",
			ShortDescription: "Amount to be charged for future payments, specified in the presentment currency",
		},
		"payment_method_options.card.mandate_options.amount_type": {
			Type:             "string",
			ShortDescription: "One of `fixed` or `maximum`",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_options.card.mandate_options.description": {
			Type:             "string",
			ShortDescription: "A description of the mandate or subscription that is meant to be displayed to the customer",
		},
		"payment_method_options.card.mandate_options.end_date": {
			Type:             "integer",
			ShortDescription: "End date of the mandate or subscription",
			Format:           "unix-time",
		},
		"payment_method_options.card.mandate_options.interval": {
			Type:             "string",
			ShortDescription: "Specifies payment frequency",
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "month"},
				{Value: "sporadic"},
				{Value: "week"},
				{Value: "year"},
			},
		},
		"payment_method_options.card.mandate_options.interval_count": {
			Type:             "integer",
			ShortDescription: "The number of intervals between payments",
		},
		"payment_method_options.card.mandate_options.reference": {
			Type:             "string",
			ShortDescription: "Unique identifier for the mandate or subscription",
		},
		"payment_method_options.card.mandate_options.start_date": {
			Type:             "integer",
			ShortDescription: "Start date of the mandate or subscription",
			Format:           "unix-time",
		},
		"payment_method_options.card.mandate_options.supported_types": {
			Type:             "array",
			ShortDescription: "Specifies the type of mandates supported",
		},
		"payment_method_options.card.moto": {
			Type:             "boolean",
			ShortDescription: "When specified, this parameter indicates that a transaction will be marked\nas MOTO (Mail Order Telephone Order) and thus out of scope for SCA",
		},
		"payment_method_options.card.network": {
			Type:             "string",
			ShortDescription: "Selected network to process this PaymentIntent on",
			Enum: []resource.EnumSpec{
				{Value: "amex"},
				{Value: "cartes_bancaires"},
				{Value: "diners"},
				{Value: "discover"},
				{Value: "eftpos_au"},
				{Value: "girocard"},
				{Value: "interac"},
				{Value: "jcb"},
				{Value: "link"},
				{Value: "mastercard"},
				{Value: "unionpay"},
				{Value: "unknown"},
				{Value: "visa"},
			},
		},
		"payment_method_options.card.request_extended_authorization": {
			Type:             "string",
			ShortDescription: "Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent",
			Enum: []resource.EnumSpec{
				{Value: "if_available"},
				{Value: "never"},
			},
		},
		"payment_method_options.card.request_incremental_authorization": {
			Type:             "string",
			ShortDescription: "Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent",
			Enum: []resource.EnumSpec{
				{Value: "if_available"},
				{Value: "never"},
			},
		},
		"payment_method_options.card.request_multicapture": {
			Type:             "string",
			ShortDescription: "Request ability to make [multiple captures](https://docs.stripe.com/payments/multicapture) for this PaymentIntent",
			Enum: []resource.EnumSpec{
				{Value: "if_available"},
				{Value: "never"},
			},
		},
		"payment_method_options.card.request_overcapture": {
			Type:             "string",
			ShortDescription: "Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent",
			Enum: []resource.EnumSpec{
				{Value: "if_available"},
				{Value: "never"},
			},
		},
		"payment_method_options.card.request_three_d_secure": {
			Type:             "string",
			ShortDescription: "We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication)",
			Enum: []resource.EnumSpec{
				{Value: "any"},
				{Value: "automatic"},
				{Value: "challenge"},
			},
		},
		"payment_method_options.card.require_cvc_recollection": {
			Type:             "boolean",
			ShortDescription: "When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter)",
		},
		"payment_method_options.card.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.card.statement_descriptor_suffix_kana": {
			Type:             "string",
			ShortDescription: "Provides information about a card payment that customers see on their statements",
		},
		"payment_method_options.card.statement_descriptor_suffix_kanji": {
			Type:             "string",
			ShortDescription: "Provides information about a card payment that customers see on their statements",
		},
		"payment_method_options.card.three_d_secure.ares_trans_status": {
			Type:             "string",
			ShortDescription: "The `transStatus` returned from the card Issuer’s ACS in the ARes",
			Enum: []resource.EnumSpec{
				{Value: "A"},
				{Value: "C"},
				{Value: "I"},
				{Value: "N"},
				{Value: "R"},
				{Value: "U"},
				{Value: "Y"},
			},
		},
		"payment_method_options.card.three_d_secure.cryptogram": {
			Type:             "string",
			ShortDescription: "The cryptogram, also known as the \"authentication value\" (AAV, CAVV or\nAEVV)",
		},
		"payment_method_options.card.three_d_secure.electronic_commerce_indicator": {
			Type:             "string",
			ShortDescription: "The Electronic Commerce Indicator (ECI) is returned by your 3D Secure\nprovider and indicates what degree of authentication was performed",
			Enum: []resource.EnumSpec{
				{Value: "01"},
				{Value: "02"},
				{Value: "05"},
				{Value: "06"},
				{Value: "07"},
			},
		},
		"payment_method_options.card.three_d_secure.exemption_indicator": {
			Type:             "string",
			ShortDescription: "The exemption requested via 3DS and accepted by the issuer at authentication time",
			Enum: []resource.EnumSpec{
				{Value: "low_risk"},
				{Value: "none"},
			},
		},
		"payment_method_options.card.three_d_secure.network_options.cartes_bancaires.cb_avalgo": {
			Type:             "string",
			ShortDescription: "The cryptogram calculation algorithm used by the card Issuer's ACS\nto calculate the Authentication cryptogram",
			Enum: []resource.EnumSpec{
				{Value: "0"},
				{Value: "1"},
				{Value: "2"},
				{Value: "3"},
				{Value: "4"},
				{Value: "A"},
			},
		},
		"payment_method_options.card.three_d_secure.network_options.cartes_bancaires.cb_exemption": {
			Type:             "string",
			ShortDescription: "The exemption indicator returned from Cartes Bancaires in the ARes.\nmessage extension: CB-EXEMPTION; string (4 characters)\nThis is a 3 byte bitmap (low significant byte first and most significant\nbit first) that has been Base64 encoded",
		},
		"payment_method_options.card.three_d_secure.network_options.cartes_bancaires.cb_score": {
			Type:             "integer",
			ShortDescription: "The risk score returned from Cartes Bancaires in the ARes.\nmessage extension: CB-SCORE; numeric value 0-99",
		},
		"payment_method_options.card.three_d_secure.requestor_challenge_indicator": {
			Type:             "string",
			ShortDescription: "The challenge indicator (`threeDSRequestorChallengeInd`) which was requested in the\nAReq sent to the card Issuer's ACS",
		},
		"payment_method_options.card.three_d_secure.transaction_id": {
			Type:             "string",
			ShortDescription: "For 3D Secure 1, the XID",
		},
		"payment_method_options.card.three_d_secure.version": {
			Type:             "string",
			ShortDescription: "The version of 3D Secure that was performed",
			Enum: []resource.EnumSpec{
				{Value: "1.0.2"},
				{Value: "2.1.0"},
				{Value: "2.2.0"},
				{Value: "2.3.0"},
				{Value: "2.3.1"},
			},
		},
		"payment_method_options.card_present.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
				{Value: "manual_preferred"},
			},
		},
		"payment_method_options.card_present.request_extended_authorization": {
			Type:             "boolean",
			ShortDescription: "Request ability to capture this payment beyond the standard [authorization validity window](https://docs.stripe.com/terminal/features/extended-authorizations#authorization-validity)",
		},
		"payment_method_options.card_present.request_incremental_authorization_support": {
			Type:             "boolean",
			ShortDescription: "Request ability to [increment](https://docs.stripe.com/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible",
		},
		"payment_method_options.card_present.routing.requested_priority": {
			Type:             "string",
			ShortDescription: "Routing requested priority",
			Enum: []resource.EnumSpec{
				{Value: "domestic"},
				{Value: "international"},
			},
		},
		"payment_method_options.cashapp.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.cashapp.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.crypto.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.customer_balance.bank_transfer.eu_bank_transfer.country": {
			Type:             "string",
			ShortDescription: "The desired country code of the bank account information",
		},
		"payment_method_options.customer_balance.bank_transfer.requested_address_types": {
			Type:             "array",
			ShortDescription: "List of address types that should be returned in the financial_addresses response",
		},
		"payment_method_options.customer_balance.bank_transfer.type": {
			Type:             "string",
			ShortDescription: "The list of bank transfer types that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`",
			Enum: []resource.EnumSpec{
				{Value: "eu_bank_transfer"},
				{Value: "gb_bank_transfer"},
				{Value: "jp_bank_transfer"},
				{Value: "mx_bank_transfer"},
				{Value: "us_bank_transfer"},
			},
		},
		"payment_method_options.customer_balance.funding_type": {
			Type:             "string",
			ShortDescription: "The funding method type to be used when there are not enough funds in the customer balance",
			Enum: []resource.EnumSpec{
				{Value: "bank_transfer"},
			},
		},
		"payment_method_options.customer_balance.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.eps.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.fpx.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.giropay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.grabpay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.ideal.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.kakao_pay.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.kakao_pay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.klarna.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.klarna.on_demand.average_amount": {
			Type:             "integer",
			ShortDescription: "Your average amount value",
		},
		"payment_method_options.klarna.on_demand.maximum_amount": {
			Type:             "integer",
			ShortDescription: "The maximum value you may charge a customer per purchase",
		},
		"payment_method_options.klarna.on_demand.minimum_amount": {
			Type:             "integer",
			ShortDescription: "The lowest or minimum value you may charge a customer per purchase",
		},
		"payment_method_options.klarna.on_demand.purchase_interval": {
			Type:             "string",
			ShortDescription: "Interval at which the customer is making purchases",
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "month"},
				{Value: "week"},
				{Value: "year"},
			},
		},
		"payment_method_options.klarna.on_demand.purchase_interval_count": {
			Type:             "integer",
			ShortDescription: "The number of `purchase_interval` between charges",
		},
		"payment_method_options.klarna.preferred_locale": {
			Type:             "string",
			ShortDescription: "Preferred language of the Klarna authorization page that the customer is redirected to",
			Enum: []resource.EnumSpec{
				{Value: "cs-CZ"},
				{Value: "da-DK"},
				{Value: "de-AT"},
				{Value: "de-CH"},
				{Value: "de-DE"},
				{Value: "el-GR"},
				{Value: "en-AT"},
				{Value: "en-AU"},
				{Value: "en-BE"},
				{Value: "en-CA"},
				{Value: "en-CH"},
				{Value: "en-CZ"},
				{Value: "en-DE"},
				{Value: "en-DK"},
				{Value: "en-ES"},
				{Value: "en-FI"},
				{Value: "en-FR"},
				{Value: "en-GB"},
				{Value: "en-GR"},
				{Value: "en-IE"},
				{Value: "en-IT"},
				{Value: "en-NL"},
				{Value: "en-NO"},
				{Value: "en-NZ"},
				{Value: "en-PL"},
				{Value: "en-PT"},
				{Value: "en-RO"},
				{Value: "en-SE"},
				{Value: "en-US"},
				{Value: "es-ES"},
				{Value: "es-US"},
				{Value: "fi-FI"},
				{Value: "fr-BE"},
				{Value: "fr-CA"},
				{Value: "fr-CH"},
				{Value: "fr-FR"},
				{Value: "it-CH"},
				{Value: "it-IT"},
				{Value: "nb-NO"},
				{Value: "nl-BE"},
				{Value: "nl-NL"},
				{Value: "pl-PL"},
				{Value: "pt-PT"},
				{Value: "ro-RO"},
				{Value: "sv-FI"},
				{Value: "sv-SE"},
			},
		},
		"payment_method_options.klarna.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.konbini.confirmation_number": {
			Type:             "string",
			ShortDescription: "An optional 10 to 11 digit numeric-only string determining the confirmation code at applicable convenience stores",
		},
		"payment_method_options.konbini.expires_after_days": {
			Type:             "integer",
			ShortDescription: "The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire",
		},
		"payment_method_options.konbini.expires_at": {
			Type:             "integer",
			ShortDescription: "The timestamp at which the Konbini payment instructions will expire",
		},
		"payment_method_options.konbini.product_description": {
			Type:             "string",
			ShortDescription: "A product descriptor of up to 22 characters, which will appear to customers at the convenience store",
		},
		"payment_method_options.konbini.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.kr_card.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.kr_card.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.link.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.link.persistent_token": {
			Type:             "string",
			ShortDescription: "[Deprecated] This is a legacy parameter that no longer has any function",
		},
		"payment_method_options.link.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.mb_way.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.mobilepay.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.mobilepay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.multibanco.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.naver_pay.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.naver_pay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.nz_bank_account.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.nz_bank_account.target_date": {
			Type:             "string",
			ShortDescription: "Controls when Stripe will attempt to debit the funds from the customer's account",
		},
		"payment_method_options.oxxo.expires_after_days": {
			Type:             "integer",
			ShortDescription: "The number of calendar days before an OXXO voucher expires",
		},
		"payment_method_options.oxxo.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.p24.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.p24.tos_shown_and_accepted": {
			Type:             "boolean",
			ShortDescription: "Confirm that the payer has accepted the P24 terms and conditions",
		},
		"payment_method_options.payco.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.paynow.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.paypal.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds will be captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.paypal.preferred_locale": {
			Type:             "string",
			ShortDescription: "[Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to",
			Enum: []resource.EnumSpec{
				{Value: "cs-CZ"},
				{Value: "da-DK"},
				{Value: "de-AT"},
				{Value: "de-DE"},
				{Value: "de-LU"},
				{Value: "el-GR"},
				{Value: "en-GB"},
				{Value: "en-US"},
				{Value: "es-ES"},
				{Value: "fi-FI"},
				{Value: "fr-BE"},
				{Value: "fr-FR"},
				{Value: "fr-LU"},
				{Value: "hu-HU"},
				{Value: "it-IT"},
				{Value: "nl-BE"},
				{Value: "nl-NL"},
				{Value: "pl-PL"},
				{Value: "pt-PT"},
				{Value: "sk-SK"},
				{Value: "sv-SE"},
			},
		},
		"payment_method_options.paypal.reference": {
			Type:             "string",
			ShortDescription: "A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID",
		},
		"payment_method_options.paypal.risk_correlation_id": {
			Type:             "string",
			ShortDescription: "The risk correlation ID for an on-session payment using a saved PayPal payment method",
		},
		"payment_method_options.paypal.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.payto.mandate_options.amount": {
			Type:             "integer",
			ShortDescription: "Amount that will be collected",
		},
		"payment_method_options.payto.mandate_options.amount_type": {
			Type:             "string",
			ShortDescription: "The type of amount that will be collected",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_options.payto.mandate_options.end_date": {
			Type:             "string",
			ShortDescription: "Date, in YYYY-MM-DD format, after which payments will not be collected",
		},
		"payment_method_options.payto.mandate_options.payment_schedule": {
			Type:             "string",
			ShortDescription: "The periodicity at which payments will be collected",
			Enum: []resource.EnumSpec{
				{Value: "adhoc"},
				{Value: "annual"},
				{Value: "daily"},
				{Value: "fortnightly"},
				{Value: "monthly"},
				{Value: "quarterly"},
				{Value: "semi_annual"},
				{Value: "weekly"},
			},
		},
		"payment_method_options.payto.mandate_options.payments_per_period": {
			Type:             "integer",
			ShortDescription: "The number of payments that will be made during a payment period",
		},
		"payment_method_options.payto.mandate_options.purpose": {
			Type:             "string",
			ShortDescription: "The purpose for which payments are made",
			Enum: []resource.EnumSpec{
				{Value: "dependant_support"},
				{Value: "government"},
				{Value: "loan"},
				{Value: "mortgage"},
				{Value: "other"},
				{Value: "pension"},
				{Value: "personal"},
				{Value: "retail"},
				{Value: "salary"},
				{Value: "tax"},
				{Value: "utility"},
			},
		},
		"payment_method_options.payto.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.pix.amount_includes_iof": {
			Type:             "string",
			ShortDescription: "Determines if the amount includes the IOF tax",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "never"},
			},
		},
		"payment_method_options.pix.expires_after_seconds": {
			Type:             "integer",
			ShortDescription: "The number of seconds (between 10 and 1209600) after which Pix payment will expire",
		},
		"payment_method_options.pix.expires_at": {
			Type:             "integer",
			ShortDescription: "The timestamp at which the Pix expires (between 10 and 1209600 seconds in the future)",
			Format:           "unix-time",
		},
		"payment_method_options.pix.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.promptpay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.revolut_pay.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.revolut_pay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.samsung_pay.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.satispay.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds are captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.sepa_debit.mandate_options.reference_prefix": {
			Type:             "string",
			ShortDescription: "Prefix used to generate the Mandate reference",
		},
		"payment_method_options.sepa_debit.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.sepa_debit.target_date": {
			Type:             "string",
			ShortDescription: "Controls when Stripe will attempt to debit the funds from the customer's account",
		},
		"payment_method_options.sofort.preferred_language": {
			Type:             "string",
			ShortDescription: "Language shown to the payer on redirect",
			Enum: []resource.EnumSpec{
				{Value: "de"},
				{Value: "en"},
				{Value: "es"},
				{Value: "fr"},
				{Value: "it"},
				{Value: "nl"},
				{Value: "pl"},
			},
		},
		"payment_method_options.sofort.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.swish.reference": {
			Type:             "string",
			ShortDescription: "A reference for this payment to be displayed in the Swish app",
		},
		"payment_method_options.swish.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.twint.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.upi.mandate_options.amount": {
			Type:             "integer",
			ShortDescription: "Amount to be charged for future payments",
		},
		"payment_method_options.upi.mandate_options.amount_type": {
			Type:             "string",
			ShortDescription: "One of `fixed` or `maximum`",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_options.upi.mandate_options.description": {
			Type:             "string",
			ShortDescription: "A description of the mandate or subscription that is meant to be displayed to the customer",
		},
		"payment_method_options.upi.mandate_options.end_date": {
			Type:             "integer",
			ShortDescription: "End date of the mandate or subscription",
			Format:           "unix-time",
		},
		"payment_method_options.upi.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.us_bank_account.financial_connections.filters.account_subcategories": {
			Type:             "array",
			ShortDescription: "The account subcategories to use to filter for selectable accounts",
		},
		"payment_method_options.us_bank_account.financial_connections.permissions": {
			Type:             "array",
			ShortDescription: "The list of permissions to request",
		},
		"payment_method_options.us_bank_account.financial_connections.prefetch": {
			Type:             "array",
			ShortDescription: "List of data features that you would like to retrieve upon account creation",
		},
		"payment_method_options.us_bank_account.financial_connections.return_url": {
			Type:             "string",
			ShortDescription: "For webview integrations only",
		},
		"payment_method_options.us_bank_account.mandate_options.collection_method": {
			Type:             "string",
			ShortDescription: "The method used to collect offline mandate customer acceptance",
			Enum: []resource.EnumSpec{
				{Value: "paper"},
			},
		},
		"payment_method_options.us_bank_account.networks.requested": {
			Type:             "array",
			ShortDescription: "Triggers validations to run across the selected networks",
		},
		"payment_method_options.us_bank_account.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.us_bank_account.target_date": {
			Type:             "string",
			ShortDescription: "Controls when Stripe will attempt to debit the funds from the customer's account",
		},
		"payment_method_options.us_bank_account.transaction_purpose": {
			Type:             "string",
			ShortDescription: "The purpose of the transaction",
			Enum: []resource.EnumSpec{
				{Value: "goods"},
				{Value: "other"},
				{Value: "services"},
				{Value: "unspecified"},
			},
		},
		"payment_method_options.us_bank_account.verification_method": {
			Type:             "string",
			ShortDescription: "Bank account verification method",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "instant"},
				{Value: "microdeposits"},
			},
		},
		"payment_method_options.wechat_pay.app_id": {
			Type:             "string",
			ShortDescription: "The app ID registered with WeChat Pay",
		},
		"payment_method_options.wechat_pay.client": {
			Type:             "string",
			ShortDescription: "The client type that the end customer will pay from",
			Enum: []resource.EnumSpec{
				{Value: "android"},
				{Value: "ios"},
				{Value: "web"},
			},
		},
		"payment_method_options.wechat_pay.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.zip.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_types": {
			Type:             "array",
			ShortDescription: "The list of payment method types (for example, card) that this PaymentIntent can use",
		},
		"receipt_email": {
			Type:             "string",
			ShortDescription: "Email address that the receipt for the resulting payment will be sent to",
			MostCommon:       true,
		},
		"setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this PaymentIntent's payment method",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"shipping": {
			Type:       "clearable_object",
			MostCommon: true,
		},
		"shipping.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"shipping.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"shipping.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"shipping.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"shipping.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"shipping.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"shipping.carrier": {
			Type:             "string",
			ShortDescription: "The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.",
			MostCommon:       true,
		},
		"shipping.name": {
			Type:             "string",
			ShortDescription: "Recipient name",
			MostCommon:       true,
		},
		"shipping.phone": {
			Type:             "string",
			ShortDescription: "Recipient phone (including extension)",
			MostCommon:       true,
		},
		"shipping.tracking_number": {
			Type:             "string",
			ShortDescription: "The tracking number for a physical product, obtained from the delivery service",
			MostCommon:       true,
		},
		"statement_descriptor": {
			Type:             "string",
			ShortDescription: "Text that appears on the customer's statement as the statement descriptor for a non-card charge",
			MostCommon:       true,
		},
		"statement_descriptor_suffix": {
			Type:             "string",
			ShortDescription: "Provides information about a card charge",
			MostCommon:       true,
		},
		"transfer_data.amount": {
			Type:             "integer",
			ShortDescription: "The amount that will be transferred automatically when a charge succeeds",
		},
		"transfer_group": {
			Type:             "string",
			ShortDescription: "A string that identifies the resulting payment as part of a group",
		},
	},
}
View Source
var V1PaymentIntentsVerifyMicrodeposits = resource.OperationSpec{
	Name:   "verify_microdeposits",
	Path:   "/v1/payment_intents/{intent}/verify_microdeposits",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amounts": {
			Type:             "array",
			ShortDescription: "Two positive integers, in *cents*, equal to the values of the microdeposits sent to the bank account",
			MostCommon:       true,
		},
		"descriptor_code": {
			Type:             "string",
			ShortDescription: "A six-character code starting with SM present in the microdeposit sent to the bank account",
			MostCommon:       true,
		},
	},
}
View Source
var V1PaymentLinksCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/payment_links",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"after_completion.hosted_confirmation.custom_message": {
			Type:             "string",
			ShortDescription: "A custom message to display to the customer after the purchase is complete",
		},
		"after_completion.redirect.url": {
			Type:             "string",
			ShortDescription: "The URL the customer will be redirected to after the purchase is complete",
		},
		"after_completion.type": {
			Type:             "string",
			ShortDescription: "The specified behavior after the purchase is complete",
			Enum: []resource.EnumSpec{
				{Value: "hosted_confirmation"},
				{Value: "redirect"},
			},
		},
		"allow_promotion_codes": {
			Type:             "boolean",
			ShortDescription: "Enables user redeemable promotion codes",
		},
		"application_fee_amount": {
			Type:             "integer",
			ShortDescription: "The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account",
		},
		"application_fee_percent": {
			Type:             "number",
			ShortDescription: "A non-negative decimal between 0 and 100, with at most two decimal places",
		},
		"automatic_tax.enabled": {
			Type:             "boolean",
			ShortDescription: "Set to `true` to [calculate tax automatically](https://docs.stripe.com/tax) using the customer's location",
		},
		"automatic_tax.liability.account": {
			Type:             "string",
			ShortDescription: "The connected account being referenced when `type` is `account`",
		},
		"automatic_tax.liability.type": {
			Type:             "string",
			ShortDescription: "Type of the account referenced in the request",
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"billing_address_collection": {
			Type:             "string",
			ShortDescription: "Configuration for collecting the customer's billing address",
			Enum: []resource.EnumSpec{
				{Value: "auto"},
				{Value: "required"},
			},
		},
		"consent_collection.payment_method_reuse_agreement.position": {
			Type:             "string",
			ShortDescription: "Determines the position and visibility of the payment method reuse agreement in the UI",
			Enum: []resource.EnumSpec{
				{Value: "auto"},
				{Value: "hidden"},
			},
		},
		"consent_collection.promotions": {
			Type:             "string",
			ShortDescription: "If set to `auto`, enables the collection of customer consent for promotional communications",
			Enum: []resource.EnumSpec{
				{Value: "auto"},
				{Value: "none"},
			},
		},
		"consent_collection.terms_of_service": {
			Type:             "string",
			ShortDescription: "If set to `required`, it requires customers to check a terms of service checkbox before being able to pay",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "required"},
			},
		},
		"currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Format:           "currency",
		},
		"custom_text.after_submit.message": {
			Type:             "string",
			ShortDescription: "Text can be up to 1200 characters in length",
		},
		"custom_text.shipping_address.message": {
			Type:             "string",
			ShortDescription: "Text can be up to 1200 characters in length",
		},
		"custom_text.submit.message": {
			Type:             "string",
			ShortDescription: "Text can be up to 1200 characters in length",
		},
		"custom_text.terms_of_service_acceptance.message": {
			Type:             "string",
			ShortDescription: "Text can be up to 1200 characters in length",
		},
		"customer_creation": {
			Type:             "string",
			ShortDescription: "Configures whether [checkout sessions](https://docs.stripe.com/api/checkout/sessions) created by this payment link create a [Customer](https://docs.stripe.com/api/customers)",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "if_required"},
			},
		},
		"inactive_message": {
			Type:             "string",
			ShortDescription: "The custom message to be displayed to a customer when a payment link is no longer active",
		},
		"invoice_creation.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether the feature is enabled",
		},
		"invoice_creation.invoice_data.account_tax_ids": {
			Type:             "array",
			ShortDescription: "The account tax IDs associated with the invoice",
		},
		"invoice_creation.invoice_data.description": {
			Type:             "string",
			ShortDescription: "An arbitrary string attached to the object",
		},
		"invoice_creation.invoice_data.footer": {
			Type:             "string",
			ShortDescription: "Default footer to be displayed on invoices for this customer",
		},
		"invoice_creation.invoice_data.issuer.account": {
			Type:             "string",
			ShortDescription: "The connected account being referenced when `type` is `account`",
		},
		"invoice_creation.invoice_data.issuer.type": {
			Type:             "string",
			ShortDescription: "Type of the account referenced in the request",
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"invoice_creation.invoice_data.rendering_options.amount_tax_display": {
			Type:             "string",
			ShortDescription: "How line-item prices and amounts will be displayed with respect to tax on invoice PDFs",
			Enum: []resource.EnumSpec{
				{Value: "exclude_tax"},
				{Value: "include_inclusive_tax"},
			},
		},
		"invoice_creation.invoice_data.rendering_options.template": {
			Type:             "string",
			ShortDescription: "ID of the invoice rendering template to use for this invoice",
		},
		"name_collection.business.enabled": {
			Type:             "boolean",
			ShortDescription: "Enable business name collection on the payment link",
		},
		"name_collection.business.optional": {
			Type:             "boolean",
			ShortDescription: "Whether the customer is required to provide their business name before checking out",
		},
		"name_collection.individual.enabled": {
			Type:             "boolean",
			ShortDescription: "Enable individual name collection on the payment link",
		},
		"name_collection.individual.optional": {
			Type:             "boolean",
			ShortDescription: "Whether the customer is required to provide their full name before checking out",
		},
		"on_behalf_of": {
			Type:             "string",
			ShortDescription: "The account on behalf of which to charge",
		},
		"payment_intent_data.capture_method": {
			Type:             "string",
			ShortDescription: "Controls when the funds will be captured from the customer's account",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "automatic_async"},
				{Value: "manual"},
			},
		},
		"payment_intent_data.description": {
			Type:             "string",
			ShortDescription: "An arbitrary string attached to the object",
		},
		"payment_intent_data.setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to [make future payments](https://docs.stripe.com/payments/payment-intents#future-usage) with the payment method collected by this Checkout Session",
			Enum: []resource.EnumSpec{
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_intent_data.statement_descriptor": {
			Type:             "string",
			ShortDescription: "Text that appears on the customer's statement as the statement descriptor for a non-card charge",
		},
		"payment_intent_data.statement_descriptor_suffix": {
			Type:             "string",
			ShortDescription: "Provides information about a card charge",
		},
		"payment_intent_data.transfer_group": {
			Type:             "string",
			ShortDescription: "A string that identifies the resulting payment as part of a group",
		},
		"payment_method_collection": {
			Type:             "string",
			ShortDescription: "Specify whether Checkout should collect a payment method",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "if_required"},
			},
		},
		"payment_method_types": {
			Type:             "array",
			ShortDescription: "The list of payment method types that customers can use",
		},
		"phone_number_collection.enabled": {
			Type:             "boolean",
			ShortDescription: "Set to `true` to enable phone number collection",
		},
		"restrictions.completed_sessions.limit": {
			Type:             "integer",
			ShortDescription: "The maximum number of checkout sessions that can be completed for the `completed_sessions` restriction to be met",
		},
		"shipping_address_collection.allowed_countries": {
			Type:             "array",
			ShortDescription: "An array of two-letter ISO country codes representing which countries Checkout should provide as options for\nshipping locations",
		},
		"submit_type": {
			Type:             "string",
			ShortDescription: "Describes the type of transaction being performed in order to customize relevant text on the page, such as the submit button",
			Enum: []resource.EnumSpec{
				{Value: "auto"},
				{Value: "book"},
				{Value: "donate"},
				{Value: "pay"},
				{Value: "subscribe"},
			},
		},
		"subscription_data.description": {
			Type:             "string",
			ShortDescription: "The subscription's description, meant to be displayable to the customer",
		},
		"subscription_data.invoice_settings.issuer.account": {
			Type:             "string",
			ShortDescription: "The connected account being referenced when `type` is `account`",
		},
		"subscription_data.invoice_settings.issuer.type": {
			Type:             "string",
			ShortDescription: "Type of the account referenced in the request",
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"subscription_data.trial_period_days": {
			Type:             "integer",
			ShortDescription: "Integer representing the number of trial period days before the customer is charged for the first time",
		},
		"subscription_data.trial_settings.end_behavior.missing_payment_method": {
			Type:             "string",
			ShortDescription: "Indicates how the subscription should change when the trial ends if the user did not provide a payment method",
			Enum: []resource.EnumSpec{
				{Value: "cancel"},
				{Value: "create_invoice"},
				{Value: "pause"},
			},
		},
		"tax_id_collection.enabled": {
			Type:             "boolean",
			ShortDescription: "Enable tax ID collection during checkout",
		},
		"tax_id_collection.required": {
			Type:             "string",
			ShortDescription: "Describes whether a tax ID is required during checkout",
			Enum: []resource.EnumSpec{
				{Value: "if_supported"},
				{Value: "never"},
			},
		},
		"transfer_data.amount": {
			Type:             "integer",
			ShortDescription: "The amount that will be transferred automatically when a charge succeeds",
		},
		"transfer_data.destination": {
			Type:             "string",
			ShortDescription: "If specified, successful charges will be attributed to the destination\naccount for tax reporting, and the funds from charges will be transferred\nto the destination account",
		},
	},
}
View Source
var V1PaymentLinksList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/payment_links",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"active": {
			Type:             "boolean",
			ShortDescription: "Only return payment links that are active or inactive (e.g., pass `false` to list all inactive payment links)",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1PaymentLinksListLineItems = resource.OperationSpec{
	Name:   "list_line_items",
	Path:   "/v1/payment_links/{payment_link}/line_items",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1PaymentLinksRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/payment_links/{payment_link}",
	Method: "GET",
}
View Source
var V1PaymentLinksUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/payment_links/{payment_link}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"active": {
			Type:             "boolean",
			ShortDescription: "Whether the payment link's `url` is active",
			MostCommon:       true,
		},
		"after_completion.hosted_confirmation.custom_message": {
			Type:             "string",
			ShortDescription: "A custom message to display to the customer after the purchase is complete",
		},
		"after_completion.redirect.url": {
			Type:             "string",
			ShortDescription: "The URL the customer will be redirected to after the purchase is complete",
		},
		"after_completion.type": {
			Type:             "string",
			ShortDescription: "The specified behavior after the purchase is complete",
			Enum: []resource.EnumSpec{
				{Value: "hosted_confirmation"},
				{Value: "redirect"},
			},
		},
		"allow_promotion_codes": {
			Type:             "boolean",
			ShortDescription: "Enables user redeemable promotion codes",
		},
		"automatic_tax.enabled": {
			Type:             "boolean",
			ShortDescription: "Set to `true` to [calculate tax automatically](https://docs.stripe.com/tax) using the customer's location",
		},
		"automatic_tax.liability.account": {
			Type:             "string",
			ShortDescription: "The connected account being referenced when `type` is `account`",
		},
		"automatic_tax.liability.type": {
			Type:             "string",
			ShortDescription: "Type of the account referenced in the request",
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"billing_address_collection": {
			Type:             "string",
			ShortDescription: "Configuration for collecting the customer's billing address",
			Enum: []resource.EnumSpec{
				{Value: "auto"},
				{Value: "required"},
			},
		},
		"custom_text.after_submit.message": {
			Type:             "string",
			ShortDescription: "Text can be up to 1200 characters in length",
		},
		"custom_text.shipping_address.message": {
			Type:             "string",
			ShortDescription: "Text can be up to 1200 characters in length",
		},
		"custom_text.submit.message": {
			Type:             "string",
			ShortDescription: "Text can be up to 1200 characters in length",
		},
		"custom_text.terms_of_service_acceptance.message": {
			Type:             "string",
			ShortDescription: "Text can be up to 1200 characters in length",
		},
		"customer_creation": {
			Type:             "string",
			ShortDescription: "Configures whether [checkout sessions](https://docs.stripe.com/api/checkout/sessions) created by this payment link create a [Customer](https://docs.stripe.com/api/customers)",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "if_required"},
			},
		},
		"inactive_message": {
			Type:             "string",
			ShortDescription: "The custom message to be displayed to a customer when a payment link is no longer active",
		},
		"invoice_creation.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether the feature is enabled",
		},
		"invoice_creation.invoice_data.account_tax_ids": {
			Type:             "array",
			ShortDescription: "The account tax IDs associated with the invoice",
		},
		"invoice_creation.invoice_data.description": {
			Type:             "string",
			ShortDescription: "An arbitrary string attached to the object",
		},
		"invoice_creation.invoice_data.footer": {
			Type:             "string",
			ShortDescription: "Default footer to be displayed on invoices for this customer",
		},
		"invoice_creation.invoice_data.issuer.account": {
			Type:             "string",
			ShortDescription: "The connected account being referenced when `type` is `account`",
		},
		"invoice_creation.invoice_data.issuer.type": {
			Type:             "string",
			ShortDescription: "Type of the account referenced in the request",
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"invoice_creation.invoice_data.rendering_options.amount_tax_display": {
			Type:             "string",
			ShortDescription: "How line-item prices and amounts will be displayed with respect to tax on invoice PDFs",
			Enum: []resource.EnumSpec{
				{Value: "exclude_tax"},
				{Value: "include_inclusive_tax"},
			},
		},
		"invoice_creation.invoice_data.rendering_options.template": {
			Type:             "string",
			ShortDescription: "ID of the invoice rendering template to use for this invoice",
		},
		"name_collection": {
			Type: "clearable_object",
		},
		"name_collection.business.enabled": {
			Type:             "boolean",
			ShortDescription: "Enable business name collection on the payment link",
		},
		"name_collection.business.optional": {
			Type:             "boolean",
			ShortDescription: "Whether the customer is required to provide their business name before checking out",
		},
		"name_collection.individual.enabled": {
			Type:             "boolean",
			ShortDescription: "Enable individual name collection on the payment link",
		},
		"name_collection.individual.optional": {
			Type:             "boolean",
			ShortDescription: "Whether the customer is required to provide their full name before checking out",
		},
		"payment_intent_data.description": {
			Type:             "string",
			ShortDescription: "An arbitrary string attached to the object",
		},
		"payment_intent_data.statement_descriptor": {
			Type:             "string",
			ShortDescription: "Text that appears on the customer's statement as the statement descriptor for a non-card charge",
		},
		"payment_intent_data.statement_descriptor_suffix": {
			Type:             "string",
			ShortDescription: "Provides information about a card charge",
		},
		"payment_intent_data.transfer_group": {
			Type:             "string",
			ShortDescription: "A string that identifies the resulting payment as part of a group",
		},
		"payment_method_collection": {
			Type:             "string",
			ShortDescription: "Specify whether Checkout should collect a payment method",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "if_required"},
			},
		},
		"payment_method_types": {
			Type:             "array",
			ShortDescription: "The list of payment method types that customers can use",
		},
		"phone_number_collection.enabled": {
			Type:             "boolean",
			ShortDescription: "Set to `true` to enable phone number collection",
		},
		"restrictions": {
			Type: "clearable_object",
		},
		"restrictions.completed_sessions.limit": {
			Type:             "integer",
			ShortDescription: "The maximum number of checkout sessions that can be completed for the `completed_sessions` restriction to be met",
		},
		"shipping_address_collection": {
			Type: "clearable_object",
		},
		"shipping_address_collection.allowed_countries": {
			Type:             "array",
			ShortDescription: "An array of two-letter ISO country codes representing which countries Checkout should provide as options for\nshipping locations",
		},
		"submit_type": {
			Type:             "string",
			ShortDescription: "Describes the type of transaction being performed in order to customize relevant text on the page, such as the submit button",
			Enum: []resource.EnumSpec{
				{Value: "auto"},
				{Value: "book"},
				{Value: "donate"},
				{Value: "pay"},
				{Value: "subscribe"},
			},
		},
		"subscription_data.invoice_settings.issuer.account": {
			Type:             "string",
			ShortDescription: "The connected account being referenced when `type` is `account`",
		},
		"subscription_data.invoice_settings.issuer.type": {
			Type:             "string",
			ShortDescription: "Type of the account referenced in the request",
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"subscription_data.trial_period_days": {
			Type:             "integer",
			ShortDescription: "Integer representing the number of trial period days before the customer is charged for the first time",
		},
		"subscription_data.trial_settings.end_behavior.missing_payment_method": {
			Type:             "string",
			ShortDescription: "Indicates how the subscription should change when the trial ends if the user did not provide a payment method",
			Enum: []resource.EnumSpec{
				{Value: "cancel"},
				{Value: "create_invoice"},
				{Value: "pause"},
			},
		},
		"tax_id_collection.enabled": {
			Type:             "boolean",
			ShortDescription: "Enable tax ID collection during checkout",
		},
		"tax_id_collection.required": {
			Type:             "string",
			ShortDescription: "Describes whether a tax ID is required during checkout",
			Enum: []resource.EnumSpec{
				{Value: "if_supported"},
				{Value: "never"},
			},
		},
	},
}
View Source
var V1PaymentMethodConfigurationsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/payment_method_configurations",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"acss_debit.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"affirm.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"afterpay_clearpay.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"alipay.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"alma.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"amazon_pay.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"apple_pay.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"apple_pay_later.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"au_becs_debit.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"bacs_debit.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"bancontact.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"billie.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"blik.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"boleto.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"card.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"cartes_bancaires.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"cashapp.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"crypto.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"customer_balance.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"eps.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"fpx.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"fr_meal_voucher_conecs.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"giropay.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"google_pay.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"grabpay.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"ideal.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"jcb.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"kakao_pay.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"klarna.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"konbini.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"kr_card.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"link.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"mb_way.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"mobilepay.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"multibanco.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"name": {
			Type:             "string",
			ShortDescription: "Configuration name",
			MostCommon:       true,
		},
		"naver_pay.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"nz_bank_account.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"oxxo.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"p24.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"parent": {
			Type:             "string",
			ShortDescription: "Configuration's parent configuration",
			MostCommon:       true,
		},
		"pay_by_bank.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"payco.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"paynow.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"paypal.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"payto.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"pix.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"promptpay.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"revolut_pay.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"samsung_pay.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"satispay.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"sepa_debit.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"sofort.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"swish.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"twint.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"upi.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"us_bank_account.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"wechat_pay.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"zip.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
	},
}
View Source
var V1PaymentMethodConfigurationsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/payment_method_configurations",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"application": {
			Type:             "string",
			ShortDescription: "The Connect application to filter by",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1PaymentMethodConfigurationsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/payment_method_configurations/{configuration}",
	Method: "GET",
}
View Source
var V1PaymentMethodConfigurationsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/payment_method_configurations/{configuration}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"acss_debit.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"active": {
			Type:             "boolean",
			ShortDescription: "Whether the configuration can be used for new payments",
			MostCommon:       true,
		},
		"affirm.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"afterpay_clearpay.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"alipay.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"alma.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"amazon_pay.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"apple_pay.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"apple_pay_later.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"au_becs_debit.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"bacs_debit.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"bancontact.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"billie.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"blik.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"boleto.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"card.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"cartes_bancaires.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"cashapp.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"crypto.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"customer_balance.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"eps.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"fpx.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"fr_meal_voucher_conecs.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"giropay.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"google_pay.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"grabpay.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"ideal.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"jcb.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"kakao_pay.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"klarna.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"konbini.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"kr_card.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"link.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"mb_way.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"mobilepay.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"multibanco.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"name": {
			Type:             "string",
			ShortDescription: "Configuration name",
			MostCommon:       true,
		},
		"naver_pay.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"nz_bank_account.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"oxxo.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"p24.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"pay_by_bank.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"payco.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"paynow.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"paypal.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"payto.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"pix.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"promptpay.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"revolut_pay.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"samsung_pay.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"satispay.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"sepa_debit.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"sofort.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"swish.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"twint.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"upi.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"us_bank_account.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"wechat_pay.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"zip.display_preference.preference": {
			Type:             "string",
			ShortDescription: "The account's preference for whether or not to display this payment method",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
	},
}
View Source
var V1PaymentMethodDomainsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/payment_method_domains",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"domain_name": {
			Type:             "string",
			ShortDescription: "The domain name that this payment method domain object represents",
			Required:         true,
			MostCommon:       true,
		},
		"enabled": {
			Type:             "boolean",
			ShortDescription: "Whether this payment method domain is enabled",
			MostCommon:       true,
		},
	},
}
View Source
var V1PaymentMethodDomainsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/payment_method_domains",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"domain_name": {
			Type:             "string",
			ShortDescription: "The domain name that this payment method domain object represents",
		},
		"enabled": {
			Type:             "boolean",
			ShortDescription: "Whether this payment method domain is enabled",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1PaymentMethodDomainsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/payment_method_domains/{payment_method_domain}",
	Method: "GET",
}
View Source
var V1PaymentMethodDomainsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/payment_method_domains/{payment_method_domain}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"enabled": {
			Type:             "boolean",
			ShortDescription: "Whether this payment method domain is enabled",
			MostCommon:       true,
		},
	},
}
View Source
var V1PaymentMethodDomainsValidate = resource.OperationSpec{
	Name:   "validate",
	Path:   "/v1/payment_method_domains/{payment_method_domain}/validate",
	Method: "POST",
}
View Source
var V1PaymentMethodsAttach = resource.OperationSpec{
	Name:   "attach",
	Path:   "/v1/payment_methods/{payment_method}/attach",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"customer": {
			Type:             "string",
			ShortDescription: "The ID of the customer to which to attach the PaymentMethod",
			MostCommon:       true,
		},
		"customer_account": {
			Type:             "string",
			ShortDescription: "The ID of the Account representing the customer to which to attach the PaymentMethod",
			MostCommon:       true,
		},
	},
}
View Source
var V1PaymentMethodsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/payment_methods",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"acss_debit.account_number": {
			Type:             "string",
			ShortDescription: "Customer's bank account number",
		},
		"acss_debit.institution_number": {
			Type:             "string",
			ShortDescription: "Institution number of the customer's bank",
		},
		"acss_debit.transit_number": {
			Type:             "string",
			ShortDescription: "Transit number of the customer's bank",
		},
		"allow_redisplay": {
			Type:             "string",
			ShortDescription: "This field indicates whether this payment method can be shown again to its customer in a checkout flow",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "limited"},
				{Value: "unspecified"},
			},
		},
		"au_becs_debit.account_number": {
			Type:             "string",
			ShortDescription: "The account number for the bank account",
		},
		"au_becs_debit.bsb_number": {
			Type:             "string",
			ShortDescription: "Bank-State-Branch number of the bank account",
		},
		"bacs_debit.account_number": {
			Type:             "string",
			ShortDescription: "Account number of the bank account that the funds will be debited from",
		},
		"bacs_debit.sort_code": {
			Type:             "string",
			ShortDescription: "Sort code of the bank account. (e.g., `10-20-30`)",
		},
		"billing_details.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"billing_details.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"billing_details.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"billing_details.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"billing_details.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"billing_details.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"billing_details.email": {
			Type:             "string",
			ShortDescription: "Email address",
		},
		"billing_details.name": {
			Type:             "string",
			ShortDescription: "Full name",
		},
		"billing_details.phone": {
			Type:             "string",
			ShortDescription: "Billing phone number (including extension)",
		},
		"billing_details.tax_id": {
			Type:             "string",
			ShortDescription: "Taxpayer identification number",
		},
		"boleto.tax_id": {
			Type:             "string",
			ShortDescription: "The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)",
		},
		"card.cvc": {
			Type:             "string",
			ShortDescription: "The card's CVC",
		},
		"card.exp_month": {
			Type:             "integer",
			ShortDescription: "Two-digit number representing the card's expiration month",
		},
		"card.exp_year": {
			Type:             "integer",
			ShortDescription: "Four-digit number representing the card's expiration year",
		},
		"card.networks.preferred": {
			Type:             "string",
			ShortDescription: "The customer's preferred card network for co-branded cards",
			Enum: []resource.EnumSpec{
				{Value: "cartes_bancaires"},
				{Value: "mastercard"},
				{Value: "visa"},
			},
		},
		"card.number": {
			Type:             "string",
			ShortDescription: "The card number, as a string without any separators",
		},
		"custom.type": {
			Type:             "string",
			ShortDescription: "ID of the Dashboard-only CustomPaymentMethodType",
		},
		"customer": {
			Type:             "string",
			ShortDescription: "The `Customer` to whom the original PaymentMethod is attached",
			MostCommon:       true,
		},
		"eps.bank": {
			Type:             "string",
			ShortDescription: "The customer's bank",
			Enum: []resource.EnumSpec{
				{Value: "arzte_und_apotheker_bank"},
				{Value: "austrian_anadi_bank_ag"},
				{Value: "bank_austria"},
				{Value: "bankhaus_carl_spangler"},
				{Value: "bankhaus_schelhammer_und_schattera_ag"},
				{Value: "bawag_psk_ag"},
				{Value: "bks_bank_ag"},
				{Value: "brull_kallmus_bank_ag"},
				{Value: "btv_vier_lander_bank"},
				{Value: "capital_bank_grawe_gruppe_ag"},
				{Value: "deutsche_bank_ag"},
				{Value: "dolomitenbank"},
				{Value: "easybank_ag"},
				{Value: "erste_bank_und_sparkassen"},
				{Value: "hypo_alpeadriabank_international_ag"},
				{Value: "hypo_bank_burgenland_aktiengesellschaft"},
				{Value: "hypo_noe_lb_fur_niederosterreich_u_wien"},
				{Value: "hypo_oberosterreich_salzburg_steiermark"},
				{Value: "hypo_tirol_bank_ag"},
				{Value: "hypo_vorarlberg_bank_ag"},
				{Value: "marchfelder_bank"},
				{Value: "oberbank_ag"},
				{Value: "raiffeisen_bankengruppe_osterreich"},
				{Value: "schoellerbank_ag"},
				{Value: "sparda_bank_wien"},
				{Value: "volksbank_gruppe"},
				{Value: "volkskreditbank_ag"},
				{Value: "vr_bank_braunau"},
			},
		},
		"fpx.account_holder_type": {
			Type:             "string",
			ShortDescription: "Account holder type for FPX transaction",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"fpx.bank": {
			Type:             "string",
			ShortDescription: "The customer's bank",
			Enum: []resource.EnumSpec{
				{Value: "affin_bank"},
				{Value: "agrobank"},
				{Value: "alliance_bank"},
				{Value: "ambank"},
				{Value: "bank_islam"},
				{Value: "bank_muamalat"},
				{Value: "bank_of_china"},
				{Value: "bank_rakyat"},
				{Value: "bsn"},
				{Value: "cimb"},
				{Value: "deutsche_bank"},
				{Value: "hong_leong_bank"},
				{Value: "hsbc"},
				{Value: "kfh"},
				{Value: "maybank2e"},
				{Value: "maybank2u"},
				{Value: "ocbc"},
				{Value: "pb_enterprise"},
				{Value: "public_bank"},
				{Value: "rhb"},
				{Value: "standard_chartered"},
				{Value: "uob"},
			},
		},
		"ideal.bank": {
			Type:             "string",
			ShortDescription: "The customer's bank",
			Enum: []resource.EnumSpec{
				{Value: "abn_amro"},
				{Value: "adyen"},
				{Value: "asn_bank"},
				{Value: "bunq"},
				{Value: "buut"},
				{Value: "finom"},
				{Value: "handelsbanken"},
				{Value: "ing"},
				{Value: "knab"},
				{Value: "mollie"},
				{Value: "moneyou"},
				{Value: "n26"},
				{Value: "nn"},
				{Value: "rabobank"},
				{Value: "regiobank"},
				{Value: "revolut"},
				{Value: "sns_bank"},
				{Value: "triodos_bank"},
				{Value: "van_lanschot"},
				{Value: "yoursafe"},
			},
		},
		"klarna.dob.day": {
			Type:             "integer",
			ShortDescription: "The day of birth, between 1 and 31",
		},
		"klarna.dob.month": {
			Type:             "integer",
			ShortDescription: "The month of birth, between 1 and 12",
		},
		"klarna.dob.year": {
			Type:             "integer",
			ShortDescription: "The four-digit year of birth",
		},
		"naver_pay.funding": {
			Type:             "string",
			ShortDescription: "Whether to use Naver Pay points or a card to fund this transaction",
			Enum: []resource.EnumSpec{
				{Value: "card"},
				{Value: "points"},
			},
		},
		"nz_bank_account.account_holder_name": {
			Type:             "string",
			ShortDescription: "The name on the bank account",
		},
		"nz_bank_account.account_number": {
			Type:             "string",
			ShortDescription: "The account number for the bank account",
		},
		"nz_bank_account.bank_code": {
			Type:             "string",
			ShortDescription: "The numeric code for the bank account's bank",
		},
		"nz_bank_account.branch_code": {
			Type:             "string",
			ShortDescription: "The numeric code for the bank account's bank branch",
		},
		"nz_bank_account.reference": {
			Type: "string",
		},
		"nz_bank_account.suffix": {
			Type:             "string",
			ShortDescription: "The suffix of the bank account number",
		},
		"p24.bank": {
			Type:             "string",
			ShortDescription: "The customer's bank",
			Enum: []resource.EnumSpec{
				{Value: "alior_bank"},
				{Value: "bank_millennium"},
				{Value: "bank_nowy_bfg_sa"},
				{Value: "bank_pekao_sa"},
				{Value: "banki_spbdzielcze"},
				{Value: "blik"},
				{Value: "bnp_paribas"},
				{Value: "boz"},
				{Value: "citi_handlowy"},
				{Value: "credit_agricole"},
				{Value: "envelobank"},
				{Value: "etransfer_pocztowy24"},
				{Value: "getin_bank"},
				{Value: "ideabank"},
				{Value: "ing"},
				{Value: "inteligo"},
				{Value: "mbank_mtransfer"},
				{Value: "nest_przelew"},
				{Value: "noble_pay"},
				{Value: "pbac_z_ipko"},
				{Value: "plus_bank"},
				{Value: "santander_przelew24"},
				{Value: "tmobile_usbugi_bankowe"},
				{Value: "toyota_bank"},
				{Value: "velobank"},
				{Value: "volkswagen_bank"},
			},
		},
		"payment_method": {
			Type:             "string",
			ShortDescription: "The PaymentMethod to share",
			MostCommon:       true,
		},
		"payto.account_number": {
			Type:             "string",
			ShortDescription: "The account number for the bank account",
		},
		"payto.bsb_number": {
			Type:             "string",
			ShortDescription: "Bank-State-Branch number of the bank account",
		},
		"payto.pay_id": {
			Type:             "string",
			ShortDescription: "The PayID alias for the bank account",
		},
		"radar_options.session": {
			Type:             "string",
			ShortDescription: "A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments",
		},
		"sepa_debit.iban": {
			Type:             "string",
			ShortDescription: "IBAN of the bank account",
		},
		"sofort.country": {
			Type:             "string",
			ShortDescription: "Two-letter ISO code representing the country the bank account is located in",
			Enum: []resource.EnumSpec{
				{Value: "AT"},
				{Value: "BE"},
				{Value: "DE"},
				{Value: "ES"},
				{Value: "IT"},
				{Value: "NL"},
			},
		},
		"type": {
			Type:             "string",
			ShortDescription: "The type of the PaymentMethod",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "acss_debit"},
				{Value: "affirm"},
				{Value: "afterpay_clearpay"},
				{Value: "alipay"},
				{Value: "alma"},
				{Value: "amazon_pay"},
				{Value: "au_becs_debit"},
				{Value: "bacs_debit"},
				{Value: "bancontact"},
				{Value: "billie"},
				{Value: "blik"},
				{Value: "boleto"},
				{Value: "card"},
				{Value: "cashapp"},
				{Value: "crypto"},
				{Value: "custom"},
				{Value: "customer_balance"},
				{Value: "eps"},
				{Value: "fpx"},
				{Value: "giropay"},
				{Value: "grabpay"},
				{Value: "ideal"},
				{Value: "kakao_pay"},
				{Value: "klarna"},
				{Value: "konbini"},
				{Value: "kr_card"},
				{Value: "link"},
				{Value: "mb_way"},
				{Value: "mobilepay"},
				{Value: "multibanco"},
				{Value: "naver_pay"},
				{Value: "nz_bank_account"},
				{Value: "oxxo"},
				{Value: "p24"},
				{Value: "pay_by_bank"},
				{Value: "payco"},
				{Value: "paynow"},
				{Value: "paypal"},
				{Value: "payto"},
				{Value: "pix"},
				{Value: "promptpay"},
				{Value: "revolut_pay"},
				{Value: "samsung_pay"},
				{Value: "satispay"},
				{Value: "sepa_debit"},
				{Value: "sofort"},
				{Value: "swish"},
				{Value: "twint"},
				{Value: "upi"},
				{Value: "us_bank_account"},
				{Value: "wechat_pay"},
				{Value: "zip"},
			},
		},
		"upi.mandate_options.amount": {
			Type:             "integer",
			ShortDescription: "Amount to be charged for future payments",
		},
		"upi.mandate_options.amount_type": {
			Type:             "string",
			ShortDescription: "One of `fixed` or `maximum`",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"upi.mandate_options.description": {
			Type:             "string",
			ShortDescription: "A description of the mandate or subscription that is meant to be displayed to the customer",
		},
		"upi.mandate_options.end_date": {
			Type:             "integer",
			ShortDescription: "End date of the mandate or subscription",
			Format:           "unix-time",
		},
		"us_bank_account.account_holder_type": {
			Type:             "string",
			ShortDescription: "Account holder type: individual or company",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"us_bank_account.account_number": {
			Type:             "string",
			ShortDescription: "Account number of the bank account",
		},
		"us_bank_account.account_type": {
			Type:             "string",
			ShortDescription: "Account type: checkings or savings",
			Enum: []resource.EnumSpec{
				{Value: "checking"},
				{Value: "savings"},
			},
		},
		"us_bank_account.financial_connections_account": {
			Type:             "string",
			ShortDescription: "The ID of a Financial Connections Account to use as a payment method",
		},
		"us_bank_account.routing_number": {
			Type:             "string",
			ShortDescription: "Routing number of the bank account",
		},
	},
}
View Source
var V1PaymentMethodsDetach = resource.OperationSpec{
	Name:   "detach",
	Path:   "/v1/payment_methods/{payment_method}/detach",
	Method: "POST",
}
View Source
var V1PaymentMethodsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/payment_methods",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"allow_redisplay": {
			Type:             "string",
			ShortDescription: "This field indicates whether this payment method can be shown again to its customer in a checkout flow",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "limited"},
				{Value: "unspecified"},
			},
		},
		"customer": {
			Type:             "string",
			ShortDescription: "The ID of the customer whose PaymentMethods will be retrieved",
		},
		"customer_account": {
			Type:             "string",
			ShortDescription: "The ID of the Account whose PaymentMethods will be retrieved",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"type": {
			Type:             "string",
			ShortDescription: "Filters the list by the object `type` field",
			Enum: []resource.EnumSpec{
				{Value: "acss_debit"},
				{Value: "affirm"},
				{Value: "afterpay_clearpay"},
				{Value: "alipay"},
				{Value: "alma"},
				{Value: "amazon_pay"},
				{Value: "au_becs_debit"},
				{Value: "bacs_debit"},
				{Value: "bancontact"},
				{Value: "billie"},
				{Value: "blik"},
				{Value: "boleto"},
				{Value: "card"},
				{Value: "cashapp"},
				{Value: "crypto"},
				{Value: "custom"},
				{Value: "customer_balance"},
				{Value: "eps"},
				{Value: "fpx"},
				{Value: "giropay"},
				{Value: "grabpay"},
				{Value: "ideal"},
				{Value: "kakao_pay"},
				{Value: "klarna"},
				{Value: "konbini"},
				{Value: "kr_card"},
				{Value: "link"},
				{Value: "mb_way"},
				{Value: "mobilepay"},
				{Value: "multibanco"},
				{Value: "naver_pay"},
				{Value: "nz_bank_account"},
				{Value: "oxxo"},
				{Value: "p24"},
				{Value: "pay_by_bank"},
				{Value: "payco"},
				{Value: "paynow"},
				{Value: "paypal"},
				{Value: "payto"},
				{Value: "pix"},
				{Value: "promptpay"},
				{Value: "revolut_pay"},
				{Value: "samsung_pay"},
				{Value: "satispay"},
				{Value: "sepa_debit"},
				{Value: "sofort"},
				{Value: "swish"},
				{Value: "twint"},
				{Value: "upi"},
				{Value: "us_bank_account"},
				{Value: "wechat_pay"},
				{Value: "zip"},
			},
		},
	},
}
View Source
var V1PaymentMethodsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/payment_methods/{payment_method}",
	Method: "GET",
}
View Source
var V1PaymentMethodsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/payment_methods/{payment_method}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"allow_redisplay": {
			Type:             "string",
			ShortDescription: "This field indicates whether this payment method can be shown again to its customer in a checkout flow",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "limited"},
				{Value: "unspecified"},
			},
		},
		"billing_details.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"billing_details.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"billing_details.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"billing_details.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"billing_details.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"billing_details.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"billing_details.email": {
			Type:             "string",
			ShortDescription: "Email address",
		},
		"billing_details.name": {
			Type:             "string",
			ShortDescription: "Full name",
		},
		"billing_details.phone": {
			Type:             "string",
			ShortDescription: "Billing phone number (including extension)",
		},
		"billing_details.tax_id": {
			Type:             "string",
			ShortDescription: "Taxpayer identification number",
		},
		"card.exp_month": {
			Type:             "integer",
			ShortDescription: "Two-digit number representing the card's expiration month",
		},
		"card.exp_year": {
			Type:             "integer",
			ShortDescription: "Four-digit number representing the card's expiration year",
		},
		"card.networks.preferred": {
			Type:             "string",
			ShortDescription: "The customer's preferred card network for co-branded cards",
			Enum: []resource.EnumSpec{
				{Value: "cartes_bancaires"},
				{Value: "mastercard"},
				{Value: "visa"},
			},
		},
		"payto.account_number": {
			Type:             "string",
			ShortDescription: "The account number for the bank account",
		},
		"payto.bsb_number": {
			Type:             "string",
			ShortDescription: "Bank-State-Branch number of the bank account",
		},
		"payto.pay_id": {
			Type:             "string",
			ShortDescription: "The PayID alias for the bank account",
		},
		"us_bank_account.account_holder_type": {
			Type:             "string",
			ShortDescription: "Bank account holder type",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"us_bank_account.account_type": {
			Type:             "string",
			ShortDescription: "Bank account type",
			Enum: []resource.EnumSpec{
				{Value: "checking"},
				{Value: "savings"},
			},
		},
	},
}
View Source
var V1PaymentRecordsReportPayment = resource.OperationSpec{
	Name:   "report_payment",
	Path:   "/v1/payment_records/report_payment",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount_requested.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Required:         true,
			MostCommon:       true,
			Format:           "currency",
		},
		"amount_requested.value": {
			Type:             "integer",
			ShortDescription: "A positive integer representing the amount in the currency's [minor unit](https://docs.stripe.com/currencies#zero-decimal)",
			Required:         true,
			MostCommon:       true,
		},
		"customer_details.customer": {
			Type:             "string",
			ShortDescription: "The customer who made the payment",
		},
		"customer_details.email": {
			Type:             "string",
			ShortDescription: "The customer's phone number",
		},
		"customer_details.name": {
			Type:             "string",
			ShortDescription: "The customer's name",
		},
		"customer_details.phone": {
			Type:             "string",
			ShortDescription: "The customer's phone number",
		},
		"customer_presence": {
			Type:             "string",
			ShortDescription: "Indicates whether the customer was present in your checkout flow during this payment",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"description": {
			Type:             "string",
			ShortDescription: "An arbitrary string attached to the object",
			MostCommon:       true,
		},
		"failed.failed_at": {
			Type:             "integer",
			ShortDescription: "When the reported payment failed",
			MostCommon:       true,
			Format:           "unix-time",
		},
		"guaranteed.guaranteed_at": {
			Type:             "integer",
			ShortDescription: "When the reported payment was guaranteed",
			MostCommon:       true,
			Format:           "unix-time",
		},
		"initiated_at": {
			Type:             "integer",
			ShortDescription: "When the reported payment was initiated",
			Required:         true,
			MostCommon:       true,
			Format:           "unix-time",
		},
		"outcome": {
			Type:             "string",
			ShortDescription: "The outcome of the reported payment",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "failed"},
				{Value: "guaranteed"},
			},
		},
		"payment_method_details.billing_details.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"payment_method_details.billing_details.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"payment_method_details.billing_details.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"payment_method_details.billing_details.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"payment_method_details.billing_details.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"payment_method_details.billing_details.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"payment_method_details.billing_details.email": {
			Type:             "string",
			ShortDescription: "The billing email associated with the method of payment",
		},
		"payment_method_details.billing_details.name": {
			Type:             "string",
			ShortDescription: "The billing name associated with the method of payment",
		},
		"payment_method_details.billing_details.phone": {
			Type:             "string",
			ShortDescription: "The billing phone number associated with the method of payment",
		},
		"payment_method_details.custom.display_name": {
			Type:             "string",
			ShortDescription: "Display name for the custom (user-defined) payment method type used to make this payment",
		},
		"payment_method_details.custom.type": {
			Type:             "string",
			ShortDescription: "The custom payment method type associated with this payment",
		},
		"payment_method_details.payment_method": {
			Type:             "string",
			ShortDescription: "ID of the Stripe Payment Method used to make this payment",
		},
		"payment_method_details.type": {
			Type:             "string",
			ShortDescription: "The type of the payment method details",
			Enum: []resource.EnumSpec{
				{Value: "custom"},
			},
		},
		"processor_details.custom.payment_reference": {
			Type:             "string",
			ShortDescription: "An opaque string for manual reconciliation of this payment, for example a check number or a payment processor ID",
		},
		"processor_details.type": {
			Type:             "string",
			ShortDescription: "The type of the processor details",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "custom"},
			},
		},
		"shipping_details.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"shipping_details.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"shipping_details.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"shipping_details.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"shipping_details.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"shipping_details.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"shipping_details.name": {
			Type:             "string",
			ShortDescription: "The shipping recipient's name",
		},
		"shipping_details.phone": {
			Type:             "string",
			ShortDescription: "The shipping recipient's phone number",
		},
	},
}
View Source
var V1PaymentRecordsReportPaymentAttempt = resource.OperationSpec{
	Name:   "report_payment_attempt",
	Path:   "/v1/payment_records/{id}/report_payment_attempt",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"description": {
			Type:             "string",
			ShortDescription: "An arbitrary string attached to the object",
			MostCommon:       true,
		},
		"failed.failed_at": {
			Type:             "integer",
			ShortDescription: "When the reported payment failed",
			MostCommon:       true,
			Format:           "unix-time",
		},
		"guaranteed.guaranteed_at": {
			Type:             "integer",
			ShortDescription: "When the reported payment was guaranteed",
			MostCommon:       true,
			Format:           "unix-time",
		},
		"initiated_at": {
			Type:             "integer",
			ShortDescription: "When the reported payment was initiated",
			Required:         true,
			MostCommon:       true,
			Format:           "unix-time",
		},
		"outcome": {
			Type:             "string",
			ShortDescription: "The outcome of the reported payment",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "failed"},
				{Value: "guaranteed"},
			},
		},
		"payment_method_details.billing_details.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"payment_method_details.billing_details.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"payment_method_details.billing_details.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"payment_method_details.billing_details.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"payment_method_details.billing_details.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"payment_method_details.billing_details.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"payment_method_details.billing_details.email": {
			Type:             "string",
			ShortDescription: "The billing email associated with the method of payment",
		},
		"payment_method_details.billing_details.name": {
			Type:             "string",
			ShortDescription: "The billing name associated with the method of payment",
		},
		"payment_method_details.billing_details.phone": {
			Type:             "string",
			ShortDescription: "The billing phone number associated with the method of payment",
		},
		"payment_method_details.custom.display_name": {
			Type:             "string",
			ShortDescription: "Display name for the custom (user-defined) payment method type used to make this payment",
		},
		"payment_method_details.custom.type": {
			Type:             "string",
			ShortDescription: "The custom payment method type associated with this payment",
		},
		"payment_method_details.payment_method": {
			Type:             "string",
			ShortDescription: "ID of the Stripe Payment Method used to make this payment",
		},
		"payment_method_details.type": {
			Type:             "string",
			ShortDescription: "The type of the payment method details",
			Enum: []resource.EnumSpec{
				{Value: "custom"},
			},
		},
		"shipping_details.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"shipping_details.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"shipping_details.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"shipping_details.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"shipping_details.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"shipping_details.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"shipping_details.name": {
			Type:             "string",
			ShortDescription: "The shipping recipient's name",
		},
		"shipping_details.phone": {
			Type:             "string",
			ShortDescription: "The shipping recipient's phone number",
		},
	},
}
View Source
var V1PaymentRecordsReportPaymentAttemptCanceled = resource.OperationSpec{
	Name:   "report_payment_attempt_canceled",
	Path:   "/v1/payment_records/{id}/report_payment_attempt_canceled",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"canceled_at": {
			Type:             "integer",
			ShortDescription: "When the reported payment was canceled",
			Required:         true,
			MostCommon:       true,
			Format:           "unix-time",
		},
	},
}
View Source
var V1PaymentRecordsReportPaymentAttemptFailed = resource.OperationSpec{
	Name:   "report_payment_attempt_failed",
	Path:   "/v1/payment_records/{id}/report_payment_attempt_failed",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"failed_at": {
			Type:             "integer",
			ShortDescription: "When the reported payment failed",
			Required:         true,
			MostCommon:       true,
			Format:           "unix-time",
		},
	},
}
View Source
var V1PaymentRecordsReportPaymentAttemptGuaranteed = resource.OperationSpec{
	Name:   "report_payment_attempt_guaranteed",
	Path:   "/v1/payment_records/{id}/report_payment_attempt_guaranteed",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"guaranteed_at": {
			Type:             "integer",
			ShortDescription: "When the reported payment was guaranteed",
			Required:         true,
			MostCommon:       true,
			Format:           "unix-time",
		},
	},
}
View Source
var V1PaymentRecordsReportPaymentAttemptInformational = resource.OperationSpec{
	Name:   "report_payment_attempt_informational",
	Path:   "/v1/payment_records/{id}/report_payment_attempt_informational",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"customer_details.customer": {
			Type:             "string",
			ShortDescription: "The customer who made the payment",
		},
		"customer_details.email": {
			Type:             "string",
			ShortDescription: "The customer's phone number",
		},
		"customer_details.name": {
			Type:             "string",
			ShortDescription: "The customer's name",
		},
		"customer_details.phone": {
			Type:             "string",
			ShortDescription: "The customer's phone number",
		},
		"description": {
			Type:             "string",
			ShortDescription: "An arbitrary string attached to the object",
			MostCommon:       true,
		},
		"shipping_details": {
			Type:       "clearable_object",
			MostCommon: true,
		},
		"shipping_details.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"shipping_details.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"shipping_details.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"shipping_details.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"shipping_details.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"shipping_details.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"shipping_details.name": {
			Type:             "string",
			ShortDescription: "The shipping recipient's name",
			MostCommon:       true,
		},
		"shipping_details.phone": {
			Type:             "string",
			ShortDescription: "The shipping recipient's phone number",
			MostCommon:       true,
		},
	},
}
View Source
var V1PaymentRecordsReportRefund = resource.OperationSpec{
	Name:   "report_refund",
	Path:   "/v1/payment_records/{id}/report_refund",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			MostCommon:       true,
			Format:           "currency",
		},
		"amount.value": {
			Type:             "integer",
			ShortDescription: "A positive integer representing the amount in the currency's [minor unit](https://docs.stripe.com/currencies#zero-decimal)",
			MostCommon:       true,
		},
		"initiated_at": {
			Type:             "integer",
			ShortDescription: "When the reported refund was initiated",
			MostCommon:       true,
			Format:           "unix-time",
		},
		"outcome": {
			Type:             "string",
			ShortDescription: "The outcome of the reported refund",
			Required:         true,
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "refunded"},
			},
		},
		"processor_details.custom.refund_reference": {
			Type:             "string",
			ShortDescription: "A reference to the external refund",
		},
		"processor_details.type": {
			Type:             "string",
			ShortDescription: "The type of the processor details",
			Required:         true,
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "custom"},
			},
		},
		"refunded.refunded_at": {
			Type:             "integer",
			ShortDescription: "When the reported refund completed",
			Required:         true,
			MostCommon:       true,
			Format:           "unix-time",
		},
	},
}
View Source
var V1PaymentRecordsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/payment_records/{id}",
	Method: "GET",
}
View Source
var V1PaymentSourcesCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/customers/{customer}/sources",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"source": {
			Type:             "string",
			ShortDescription: "Please refer to full [documentation](https://api.stripe.com) instead",
			Required:         true,
			MostCommon:       true,
		},
		"validate": {
			Type: "boolean",
		},
	},
}
View Source
var V1PaymentSourcesList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/customers/{customer}/sources",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"object": {
			Type:             "string",
			ShortDescription: "Filter sources according to a particular object type",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1PaymentSourcesRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/customers/{customer}/sources/{id}",
	Method: "GET",
}
View Source
var V1PayoutsCancel = resource.OperationSpec{
	Name:   "cancel",
	Path:   "/v1/payouts/{payout}/cancel",
	Method: "POST",
}
View Source
var V1PayoutsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/payouts",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "A positive integer in cents representing how much to payout",
			Required:         true,
			MostCommon:       true,
		},
		"currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Required:         true,
			MostCommon:       true,
			Format:           "currency",
		},
		"description": {
			Type:             "string",
			ShortDescription: "An arbitrary string attached to the object",
			MostCommon:       true,
		},
		"destination": {
			Type:             "string",
			ShortDescription: "The ID of a bank account or a card to send the payout to",
		},
		"method": {
			Type:             "string",
			ShortDescription: "The method used to send this payout, which is `standard` or `instant`",
			Enum: []resource.EnumSpec{
				{Value: "instant"},
				{Value: "standard"},
			},
		},
		"payout_method": {
			Type:             "string",
			ShortDescription: "The ID of a v2 FinancialAccount to send funds to",
		},
		"source_type": {
			Type:             "string",
			ShortDescription: "The balance type of your Stripe balance to draw this payout from",
			Enum: []resource.EnumSpec{
				{Value: "bank_account"},
				{Value: "card"},
				{Value: "fpx"},
			},
		},
		"statement_descriptor": {
			Type:             "string",
			ShortDescription: "A string that displays on the recipient's bank or card statement (up to 22 characters)",
			MostCommon:       true,
		},
	},
}
View Source
var V1PayoutsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/payouts",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"arrival_date": {
			Type:             "integer",
			ShortDescription: "Only return payouts that are expected to arrive during the given date interval",
		},
		"created": {
			Type:             "integer",
			ShortDescription: "Only return payouts that were created during the given date interval",
		},
		"destination": {
			Type:             "string",
			ShortDescription: "The ID of an external account - only return payouts sent to this external account",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"status": {
			Type:             "string",
			ShortDescription: "Only return payouts that have the given status: `pending`, `paid`, `failed`, or `canceled`",
		},
	},
}
View Source
var V1PayoutsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/payouts/{payout}",
	Method: "GET",
}
View Source
var V1PayoutsReverse = resource.OperationSpec{
	Name:   "reverse",
	Path:   "/v1/payouts/{payout}/reverse",
	Method: "POST",
}
View Source
var V1PayoutsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/payouts/{payout}",
	Method: "POST",
}
View Source
var V1PersonsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/accounts/{account}/persons",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"additional_tos_acceptances.account.date": {
			Type:             "integer",
			ShortDescription: "The Unix timestamp marking when the account representative accepted the service agreement",
			Format:           "unix-time",
		},
		"additional_tos_acceptances.account.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the account representative accepted the service agreement",
		},
		"additional_tos_acceptances.account.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the account representative accepted the service agreement",
		},
		"address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"address_kana.city": {
			Type:             "string",
			ShortDescription: "City or ward",
		},
		"address_kana.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"address_kana.line1": {
			Type:             "string",
			ShortDescription: "Block or building number",
		},
		"address_kana.line2": {
			Type:             "string",
			ShortDescription: "Building details",
		},
		"address_kana.postal_code": {
			Type:             "string",
			ShortDescription: "Postal code",
		},
		"address_kana.state": {
			Type:             "string",
			ShortDescription: "Prefecture",
		},
		"address_kana.town": {
			Type:             "string",
			ShortDescription: "Town or cho-me",
		},
		"address_kanji.city": {
			Type:             "string",
			ShortDescription: "City or ward",
		},
		"address_kanji.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"address_kanji.line1": {
			Type:             "string",
			ShortDescription: "Block or building number",
		},
		"address_kanji.line2": {
			Type:             "string",
			ShortDescription: "Building details",
		},
		"address_kanji.postal_code": {
			Type:             "string",
			ShortDescription: "Postal code",
		},
		"address_kanji.state": {
			Type:             "string",
			ShortDescription: "Prefecture",
		},
		"address_kanji.town": {
			Type:             "string",
			ShortDescription: "Town or cho-me",
		},
		"dob": {
			Type:       "clearable_object",
			MostCommon: true,
		},
		"dob.day": {
			Type:             "integer",
			ShortDescription: "The day of birth, between 1 and 31",
			MostCommon:       true,
		},
		"dob.month": {
			Type:             "integer",
			ShortDescription: "The month of birth, between 1 and 12",
			MostCommon:       true,
		},
		"dob.year": {
			Type:             "integer",
			ShortDescription: "The four-digit year of birth",
			MostCommon:       true,
		},
		"documents.company_authorization.files": {
			Type:             "array",
			ShortDescription: "One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`",
		},
		"documents.passport.files": {
			Type:             "array",
			ShortDescription: "One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`",
		},
		"documents.visa.files": {
			Type:             "array",
			ShortDescription: "One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`",
		},
		"email": {
			Type:             "string",
			ShortDescription: "The person's email address",
			MostCommon:       true,
		},
		"first_name": {
			Type:             "string",
			ShortDescription: "The person's first name",
			MostCommon:       true,
		},
		"first_name_kana": {
			Type:             "string",
			ShortDescription: "The Kana variation of the person's first name (Japan only)",
		},
		"first_name_kanji": {
			Type:             "string",
			ShortDescription: "The Kanji variation of the person's first name (Japan only)",
		},
		"full_name_aliases": {
			Type:             "array",
			ShortDescription: "A list of alternate names or aliases that the person is known by",
		},
		"gender": {
			Type:             "string",
			ShortDescription: "The person's gender (International regulations require either \"male\" or \"female\")",
		},
		"id_number": {
			Type:             "string",
			ShortDescription: "The person's ID number, as appropriate for their country",
			MostCommon:       true,
		},
		"id_number_secondary": {
			Type:             "string",
			ShortDescription: "The person's secondary ID number, as appropriate for their country, will be used for enhanced verification checks",
		},
		"last_name": {
			Type:             "string",
			ShortDescription: "The person's last name",
			MostCommon:       true,
		},
		"last_name_kana": {
			Type:             "string",
			ShortDescription: "The Kana variation of the person's last name (Japan only)",
		},
		"last_name_kanji": {
			Type:             "string",
			ShortDescription: "The Kanji variation of the person's last name (Japan only)",
		},
		"maiden_name": {
			Type:             "string",
			ShortDescription: "The person's maiden name",
		},
		"nationality": {
			Type:             "string",
			ShortDescription: "The country where the person is a national",
		},
		"person_token": {
			Type:             "string",
			ShortDescription: "A [person token](https://docs.stripe.com/connect/account-tokens), used to securely provide details to the person",
		},
		"phone": {
			Type:             "string",
			ShortDescription: "The person's phone number",
			MostCommon:       true,
		},
		"political_exposure": {
			Type:             "string",
			ShortDescription: "Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction",
			Enum: []resource.EnumSpec{
				{Value: "existing"},
				{Value: "none"},
			},
		},
		"registered_address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"registered_address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"registered_address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"registered_address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"registered_address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"registered_address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"relationship.authorizer": {
			Type:             "boolean",
			ShortDescription: "Whether the person is the authorizer of the account's representative",
		},
		"relationship.director": {
			Type:             "boolean",
			ShortDescription: "Whether the person is a director of the account's legal entity",
		},
		"relationship.executive": {
			Type:             "boolean",
			ShortDescription: "Whether the person has significant responsibility to control, manage, or direct the organization",
		},
		"relationship.legal_guardian": {
			Type:             "boolean",
			ShortDescription: "Whether the person is the legal guardian of the account's representative",
		},
		"relationship.owner": {
			Type:             "boolean",
			ShortDescription: "Whether the person is an owner of the account’s legal entity",
		},
		"relationship.percent_ownership": {
			Type:             "number",
			ShortDescription: "The percent owned by the person of the account's legal entity",
		},
		"relationship.representative": {
			Type:             "boolean",
			ShortDescription: "Whether the person is authorized as the primary representative of the account",
		},
		"relationship.title": {
			Type:             "string",
			ShortDescription: "The person's title (e.g., CEO, Support Engineer)",
		},
		"ssn_last_4": {
			Type:             "string",
			ShortDescription: "The last four digits of the person's Social Security number (U.S. only)",
			MostCommon:       true,
		},
		"us_cfpb_data.ethnicity_details.ethnicity": {
			Type:             "array",
			ShortDescription: "The persons ethnicity",
		},
		"us_cfpb_data.ethnicity_details.ethnicity_other": {
			Type:             "string",
			ShortDescription: "Please specify your origin, when other is selected",
		},
		"us_cfpb_data.race_details.race": {
			Type:             "array",
			ShortDescription: "The persons race",
		},
		"us_cfpb_data.race_details.race_other": {
			Type:             "string",
			ShortDescription: "Please specify your race, when other is selected",
		},
		"us_cfpb_data.self_identified_gender": {
			Type:             "string",
			ShortDescription: "The persons self-identified gender",
		},
		"verification.additional_document.back": {
			Type:             "string",
			ShortDescription: "The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`",
		},
		"verification.additional_document.front": {
			Type:             "string",
			ShortDescription: "The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`",
		},
		"verification.document.back": {
			Type:             "string",
			ShortDescription: "The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`",
		},
		"verification.document.front": {
			Type:             "string",
			ShortDescription: "The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`",
		},
	},
}
View Source
var V1PersonsDelete = resource.OperationSpec{
	Name:   "delete",
	Path:   "/v1/accounts/{account}/persons/{person}",
	Method: "DELETE",
}
View Source
var V1PersonsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/accounts/{account}/persons",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1PersonsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/accounts/{account}/persons/{person}",
	Method: "GET",
}
View Source
var V1PersonsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/accounts/{account}/persons/{person}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"additional_tos_acceptances.account.date": {
			Type:             "integer",
			ShortDescription: "The Unix timestamp marking when the account representative accepted the service agreement",
			Format:           "unix-time",
		},
		"additional_tos_acceptances.account.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the account representative accepted the service agreement",
		},
		"additional_tos_acceptances.account.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the account representative accepted the service agreement",
		},
		"address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"address_kana.city": {
			Type:             "string",
			ShortDescription: "City or ward",
		},
		"address_kana.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"address_kana.line1": {
			Type:             "string",
			ShortDescription: "Block or building number",
		},
		"address_kana.line2": {
			Type:             "string",
			ShortDescription: "Building details",
		},
		"address_kana.postal_code": {
			Type:             "string",
			ShortDescription: "Postal code",
		},
		"address_kana.state": {
			Type:             "string",
			ShortDescription: "Prefecture",
		},
		"address_kana.town": {
			Type:             "string",
			ShortDescription: "Town or cho-me",
		},
		"address_kanji.city": {
			Type:             "string",
			ShortDescription: "City or ward",
		},
		"address_kanji.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"address_kanji.line1": {
			Type:             "string",
			ShortDescription: "Block or building number",
		},
		"address_kanji.line2": {
			Type:             "string",
			ShortDescription: "Building details",
		},
		"address_kanji.postal_code": {
			Type:             "string",
			ShortDescription: "Postal code",
		},
		"address_kanji.state": {
			Type:             "string",
			ShortDescription: "Prefecture",
		},
		"address_kanji.town": {
			Type:             "string",
			ShortDescription: "Town or cho-me",
		},
		"dob": {
			Type:       "clearable_object",
			MostCommon: true,
		},
		"dob.day": {
			Type:             "integer",
			ShortDescription: "The day of birth, between 1 and 31",
			MostCommon:       true,
		},
		"dob.month": {
			Type:             "integer",
			ShortDescription: "The month of birth, between 1 and 12",
			MostCommon:       true,
		},
		"dob.year": {
			Type:             "integer",
			ShortDescription: "The four-digit year of birth",
			MostCommon:       true,
		},
		"documents.company_authorization.files": {
			Type:             "array",
			ShortDescription: "One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`",
		},
		"documents.passport.files": {
			Type:             "array",
			ShortDescription: "One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`",
		},
		"documents.visa.files": {
			Type:             "array",
			ShortDescription: "One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`",
		},
		"email": {
			Type:             "string",
			ShortDescription: "The person's email address",
			MostCommon:       true,
		},
		"first_name": {
			Type:             "string",
			ShortDescription: "The person's first name",
			MostCommon:       true,
		},
		"first_name_kana": {
			Type:             "string",
			ShortDescription: "The Kana variation of the person's first name (Japan only)",
		},
		"first_name_kanji": {
			Type:             "string",
			ShortDescription: "The Kanji variation of the person's first name (Japan only)",
		},
		"full_name_aliases": {
			Type:             "array",
			ShortDescription: "A list of alternate names or aliases that the person is known by",
		},
		"gender": {
			Type:             "string",
			ShortDescription: "The person's gender (International regulations require either \"male\" or \"female\")",
		},
		"id_number": {
			Type:             "string",
			ShortDescription: "The person's ID number, as appropriate for their country",
			MostCommon:       true,
		},
		"id_number_secondary": {
			Type:             "string",
			ShortDescription: "The person's secondary ID number, as appropriate for their country, will be used for enhanced verification checks",
		},
		"last_name": {
			Type:             "string",
			ShortDescription: "The person's last name",
			MostCommon:       true,
		},
		"last_name_kana": {
			Type:             "string",
			ShortDescription: "The Kana variation of the person's last name (Japan only)",
		},
		"last_name_kanji": {
			Type:             "string",
			ShortDescription: "The Kanji variation of the person's last name (Japan only)",
		},
		"maiden_name": {
			Type:             "string",
			ShortDescription: "The person's maiden name",
		},
		"nationality": {
			Type:             "string",
			ShortDescription: "The country where the person is a national",
		},
		"person_token": {
			Type:             "string",
			ShortDescription: "A [person token](https://docs.stripe.com/connect/account-tokens), used to securely provide details to the person",
		},
		"phone": {
			Type:             "string",
			ShortDescription: "The person's phone number",
			MostCommon:       true,
		},
		"political_exposure": {
			Type:             "string",
			ShortDescription: "Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction",
			Enum: []resource.EnumSpec{
				{Value: "existing"},
				{Value: "none"},
			},
		},
		"registered_address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"registered_address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"registered_address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"registered_address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"registered_address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"registered_address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"relationship.authorizer": {
			Type:             "boolean",
			ShortDescription: "Whether the person is the authorizer of the account's representative",
		},
		"relationship.director": {
			Type:             "boolean",
			ShortDescription: "Whether the person is a director of the account's legal entity",
		},
		"relationship.executive": {
			Type:             "boolean",
			ShortDescription: "Whether the person has significant responsibility to control, manage, or direct the organization",
		},
		"relationship.legal_guardian": {
			Type:             "boolean",
			ShortDescription: "Whether the person is the legal guardian of the account's representative",
		},
		"relationship.owner": {
			Type:             "boolean",
			ShortDescription: "Whether the person is an owner of the account’s legal entity",
		},
		"relationship.percent_ownership": {
			Type:             "number",
			ShortDescription: "The percent owned by the person of the account's legal entity",
		},
		"relationship.representative": {
			Type:             "boolean",
			ShortDescription: "Whether the person is authorized as the primary representative of the account",
		},
		"relationship.title": {
			Type:             "string",
			ShortDescription: "The person's title (e.g., CEO, Support Engineer)",
		},
		"ssn_last_4": {
			Type:             "string",
			ShortDescription: "The last four digits of the person's Social Security number (U.S. only)",
			MostCommon:       true,
		},
		"us_cfpb_data.ethnicity_details.ethnicity": {
			Type:             "array",
			ShortDescription: "The persons ethnicity",
		},
		"us_cfpb_data.ethnicity_details.ethnicity_other": {
			Type:             "string",
			ShortDescription: "Please specify your origin, when other is selected",
		},
		"us_cfpb_data.race_details.race": {
			Type:             "array",
			ShortDescription: "The persons race",
		},
		"us_cfpb_data.race_details.race_other": {
			Type:             "string",
			ShortDescription: "Please specify your race, when other is selected",
		},
		"us_cfpb_data.self_identified_gender": {
			Type:             "string",
			ShortDescription: "The persons self-identified gender",
		},
		"verification.additional_document.back": {
			Type:             "string",
			ShortDescription: "The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`",
		},
		"verification.additional_document.front": {
			Type:             "string",
			ShortDescription: "The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`",
		},
		"verification.document.back": {
			Type:             "string",
			ShortDescription: "The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`",
		},
		"verification.document.front": {
			Type:             "string",
			ShortDescription: "The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`",
		},
	},
}
View Source
var V1PlansCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/plans",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"active": {
			Type:             "boolean",
			ShortDescription: "Whether the plan is currently available for new subscriptions",
			MostCommon:       true,
		},
		"amount": {
			Type:             "integer",
			ShortDescription: "A positive integer in cents (or local equivalent) (or 0 for a free plan) representing how much to charge on a recurring basis",
			MostCommon:       true,
		},
		"amount_decimal": {
			Type:             "string",
			ShortDescription: "Same as `amount`, but accepts a decimal value with at most 12 decimal places",
			Format:           "decimal",
		},
		"billing_scheme": {
			Type:             "string",
			ShortDescription: "Describes how to compute the price per period",
			Enum: []resource.EnumSpec{
				{Value: "per_unit"},
				{Value: "tiered"},
			},
		},
		"currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Required:         true,
			MostCommon:       true,
			Format:           "currency",
		},
		"id": {
			Type:             "string",
			ShortDescription: "An identifier randomly generated by Stripe",
		},
		"interval": {
			Type:             "string",
			ShortDescription: "Specifies billing frequency",
			Required:         true,
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "month"},
				{Value: "week"},
				{Value: "year"},
			},
		},
		"interval_count": {
			Type:             "integer",
			ShortDescription: "The number of intervals between subscription billings",
		},
		"meter": {
			Type:             "string",
			ShortDescription: "The meter tracking the usage of a metered price",
		},
		"nickname": {
			Type:             "string",
			ShortDescription: "A brief description of the plan, hidden from customers",
			MostCommon:       true,
		},
		"product.active": {
			Type:             "boolean",
			ShortDescription: "Whether the product is currently available for purchase",
		},
		"product.id": {
			Type:             "string",
			ShortDescription: "The identifier for the product",
		},
		"product.name": {
			Type:             "string",
			ShortDescription: "The product's name, meant to be displayable to the customer",
			MostCommon:       true,
		},
		"product.statement_descriptor": {
			Type:             "string",
			ShortDescription: "An arbitrary string to be displayed on your customer's credit card or bank statement",
		},
		"product.tax_code": {
			Type:             "string",
			ShortDescription: "A [tax code](https://docs.stripe.com/tax/tax-categories) ID",
		},
		"product.unit_label": {
			Type:             "string",
			ShortDescription: "A label that represents units of this product",
		},
		"tiers_mode": {
			Type:             "string",
			ShortDescription: "Defines if the tiering price should be `graduated` or `volume` based",
			Enum: []resource.EnumSpec{
				{Value: "graduated"},
				{Value: "volume"},
			},
		},
		"transform_usage.divide_by": {
			Type:             "integer",
			ShortDescription: "Divide usage by this number",
		},
		"transform_usage.round": {
			Type:             "string",
			ShortDescription: "After division, either round the result `up` or `down`",
			Enum: []resource.EnumSpec{
				{Value: "down"},
				{Value: "up"},
			},
		},
		"trial_period_days": {
			Type:             "integer",
			ShortDescription: "Default number of trial days when subscribing a customer to this plan using [`trial_from_plan=true`](https://docs.stripe.com/api#create_subscription-trial_from_plan)",
		},
		"usage_type": {
			Type:             "string",
			ShortDescription: "Configures how the quantity per period should be determined",
			Enum: []resource.EnumSpec{
				{Value: "licensed"},
				{Value: "metered"},
			},
		},
	},
}
View Source
var V1PlansDelete = resource.OperationSpec{
	Name:   "delete",
	Path:   "/v1/plans/{plan}",
	Method: "DELETE",
}
View Source
var V1PlansList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/plans",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"active": {
			Type:             "boolean",
			ShortDescription: "Only return plans that are active or inactive (e.g., pass `false` to list all inactive plans)",
		},
		"created": {
			Type:             "integer",
			ShortDescription: "A filter on the list, based on the object `created` field",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"product": {
			Type:             "string",
			ShortDescription: "Only return plans for the given product",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1PlansRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/plans/{plan}",
	Method: "GET",
}
View Source
var V1PlansUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/plans/{plan}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"active": {
			Type:             "boolean",
			ShortDescription: "Whether the plan is currently available for new subscriptions",
			MostCommon:       true,
		},
		"nickname": {
			Type:             "string",
			ShortDescription: "A brief description of the plan, hidden from customers",
			MostCommon:       true,
		},
		"product": {
			Type:             "string",
			ShortDescription: "The product the plan belongs to",
		},
		"trial_period_days": {
			Type:             "integer",
			ShortDescription: "Default number of trial days when subscribing a customer to this plan using [`trial_from_plan=true`](https://docs.stripe.com/api#create_subscription-trial_from_plan)",
		},
	},
}
View Source
var V1PricesCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/prices",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"active": {
			Type:             "boolean",
			ShortDescription: "Whether the price can be used for new purchases",
			MostCommon:       true,
		},
		"billing_scheme": {
			Type:             "string",
			ShortDescription: "Describes how to compute the price per period",
			Enum: []resource.EnumSpec{
				{Value: "per_unit"},
				{Value: "tiered"},
			},
		},
		"currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Required:         true,
			MostCommon:       true,
			Format:           "currency",
		},
		"custom_unit_amount.enabled": {
			Type:             "boolean",
			ShortDescription: "Pass in `true` to enable `custom_unit_amount`, otherwise omit `custom_unit_amount`",
		},
		"custom_unit_amount.maximum": {
			Type:             "integer",
			ShortDescription: "The maximum unit amount the customer can specify for this item",
		},
		"custom_unit_amount.minimum": {
			Type:             "integer",
			ShortDescription: "The minimum unit amount the customer can specify for this item",
		},
		"custom_unit_amount.preset": {
			Type:             "integer",
			ShortDescription: "The starting unit amount which can be updated by the customer",
		},
		"lookup_key": {
			Type:             "string",
			ShortDescription: "A lookup key used to retrieve prices dynamically from a static string",
		},
		"nickname": {
			Type:             "string",
			ShortDescription: "A brief description of the price, hidden from customers",
			MostCommon:       true,
		},
		"product": {
			Type:             "string",
			ShortDescription: "The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to",
			MostCommon:       true,
		},
		"product_data.active": {
			Type:             "boolean",
			ShortDescription: "Whether the product is currently available for purchase",
		},
		"product_data.id": {
			Type:             "string",
			ShortDescription: "The identifier for the product",
		},
		"product_data.name": {
			Type:             "string",
			ShortDescription: "The product's name, meant to be displayable to the customer",
		},
		"product_data.statement_descriptor": {
			Type:             "string",
			ShortDescription: "An arbitrary string to be displayed on your customer's credit card or bank statement",
		},
		"product_data.tax_code": {
			Type:             "string",
			ShortDescription: "A [tax code](https://docs.stripe.com/tax/tax-categories) ID",
		},
		"product_data.unit_label": {
			Type:             "string",
			ShortDescription: "A label that represents units of this product",
		},
		"recurring.interval": {
			Type:             "string",
			ShortDescription: "Specifies billing frequency",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "month"},
				{Value: "week"},
				{Value: "year"},
			},
		},
		"recurring.interval_count": {
			Type:             "integer",
			ShortDescription: "The number of intervals between subscription billings",
		},
		"recurring.meter": {
			Type:             "string",
			ShortDescription: "The meter tracking the usage of a metered price",
		},
		"recurring.trial_period_days": {
			Type:             "integer",
			ShortDescription: "Default number of trial days when subscribing a customer to this price using [`trial_from_plan=true`](https://docs.stripe.com/api#create_subscription-trial_from_plan)",
		},
		"recurring.usage_type": {
			Type:             "string",
			ShortDescription: "Configures how the quantity per period should be determined",
			Enum: []resource.EnumSpec{
				{Value: "licensed"},
				{Value: "metered"},
			},
		},
		"tax_behavior": {
			Type:             "string",
			ShortDescription: "Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "exclusive"},
				{Value: "inclusive"},
				{Value: "unspecified"},
			},
		},
		"tiers_mode": {
			Type:             "string",
			ShortDescription: "Defines if the tiering price should be `graduated` or `volume` based",
			Enum: []resource.EnumSpec{
				{Value: "graduated"},
				{Value: "volume"},
			},
		},
		"transfer_lookup_key": {
			Type:             "boolean",
			ShortDescription: "If set to true, will atomically remove the lookup key from the existing price, and assign it to this price",
		},
		"transform_quantity.divide_by": {
			Type:             "integer",
			ShortDescription: "Divide usage by this number",
		},
		"transform_quantity.round": {
			Type:             "string",
			ShortDescription: "After division, either round the result `up` or `down`",
			Enum: []resource.EnumSpec{
				{Value: "down"},
				{Value: "up"},
			},
		},
		"unit_amount": {
			Type:             "integer",
			ShortDescription: "A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge",
			MostCommon:       true,
		},
		"unit_amount_decimal": {
			Type:             "string",
			ShortDescription: "Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places",
			Format:           "decimal",
		},
	},
}
View Source
var V1PricesList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/prices",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"active": {
			Type:             "boolean",
			ShortDescription: "Only return prices that are active or inactive (e.g., pass `false` to list all inactive prices)",
		},
		"created": {
			Type:             "integer",
			ShortDescription: "A filter on the list, based on the object `created` field",
		},
		"currency": {
			Type:             "string",
			ShortDescription: "Only return prices for the given currency",
			Format:           "currency",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"lookup_keys": {
			Type:             "array",
			ShortDescription: "Only return the price with these lookup_keys, if any exist",
		},
		"product": {
			Type:             "string",
			ShortDescription: "Only return prices for the given product",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"type": {
			Type:             "string",
			ShortDescription: "Only return prices of type `recurring` or `one_time`",
			Enum: []resource.EnumSpec{
				{Value: "one_time"},
				{Value: "recurring"},
			},
		},
	},
}
View Source
var V1PricesRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/prices/{price}",
	Method: "GET",
}
View Source
var V1PricesSearch = resource.OperationSpec{
	Name:   "search",
	Path:   "/v1/prices/search",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"page": {
			Type:             "string",
			ShortDescription: "A cursor for pagination across multiple pages of results",
		},
		"query": {
			Type:             "string",
			ShortDescription: "The search query string",
			Required:         true,
		},
	},
}
View Source
var V1PricesUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/prices/{price}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"active": {
			Type:             "boolean",
			ShortDescription: "Whether the price can be used for new purchases",
			MostCommon:       true,
		},
		"currency_options": {
			Type: "clearable_object",
		},
		"lookup_key": {
			Type:             "string",
			ShortDescription: "A lookup key used to retrieve prices dynamically from a static string",
		},
		"nickname": {
			Type:             "string",
			ShortDescription: "A brief description of the price, hidden from customers",
			MostCommon:       true,
		},
		"tax_behavior": {
			Type:             "string",
			ShortDescription: "Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "exclusive"},
				{Value: "inclusive"},
				{Value: "unspecified"},
			},
		},
		"transfer_lookup_key": {
			Type:             "boolean",
			ShortDescription: "If set to true, will atomically remove the lookup key from the existing price, and assign it to this price",
		},
	},
}
View Source
var V1ProductFeaturesCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/products/{product}/features",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"entitlement_feature": {
			Type:             "string",
			ShortDescription: "The ID of the [Feature](https://docs.stripe.com/api/entitlements/feature) object attached to this product",
			Required:         true,
			MostCommon:       true,
		},
	},
}
View Source
var V1ProductFeaturesDelete = resource.OperationSpec{
	Name:   "delete",
	Path:   "/v1/products/{product}/features/{id}",
	Method: "DELETE",
}
View Source
var V1ProductFeaturesList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/products/{product}/features",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1ProductFeaturesRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/products/{product}/features/{id}",
	Method: "GET",
}
View Source
var V1ProductsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/products",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"active": {
			Type:             "boolean",
			ShortDescription: "Whether the product is currently available for purchase",
			MostCommon:       true,
		},
		"default_price_data.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Format:           "currency",
		},
		"default_price_data.custom_unit_amount.enabled": {
			Type:             "boolean",
			ShortDescription: "Pass in `true` to enable `custom_unit_amount`, otherwise omit `custom_unit_amount`",
		},
		"default_price_data.custom_unit_amount.maximum": {
			Type:             "integer",
			ShortDescription: "The maximum unit amount the customer can specify for this item",
		},
		"default_price_data.custom_unit_amount.minimum": {
			Type:             "integer",
			ShortDescription: "The minimum unit amount the customer can specify for this item",
		},
		"default_price_data.custom_unit_amount.preset": {
			Type:             "integer",
			ShortDescription: "The starting unit amount which can be updated by the customer",
		},
		"default_price_data.recurring.interval": {
			Type:             "string",
			ShortDescription: "Specifies billing frequency",
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "month"},
				{Value: "week"},
				{Value: "year"},
			},
		},
		"default_price_data.recurring.interval_count": {
			Type:             "integer",
			ShortDescription: "The number of intervals between subscription billings",
		},
		"default_price_data.tax_behavior": {
			Type:             "string",
			ShortDescription: "Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings",
			Enum: []resource.EnumSpec{
				{Value: "exclusive"},
				{Value: "inclusive"},
				{Value: "unspecified"},
			},
		},
		"default_price_data.unit_amount": {
			Type:             "integer",
			ShortDescription: "A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge",
		},
		"default_price_data.unit_amount_decimal": {
			Type:             "string",
			ShortDescription: "Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places",
			Format:           "decimal",
		},
		"description": {
			Type:             "string",
			ShortDescription: "The product's description, meant to be displayable to the customer",
			MostCommon:       true,
		},
		"id": {
			Type:             "string",
			ShortDescription: "An identifier will be randomly generated by Stripe",
			MostCommon:       true,
		},
		"images": {
			Type:             "array",
			ShortDescription: "A list of up to 8 URLs of images for this product, meant to be displayable to the customer",
		},
		"name": {
			Type:             "string",
			ShortDescription: "The product's name, meant to be displayable to the customer",
			Required:         true,
			MostCommon:       true,
		},
		"package_dimensions.height": {
			Type:             "number",
			ShortDescription: "Height, in inches",
		},
		"package_dimensions.length": {
			Type:             "number",
			ShortDescription: "Length, in inches",
		},
		"package_dimensions.weight": {
			Type:             "number",
			ShortDescription: "Weight, in ounces",
		},
		"package_dimensions.width": {
			Type:             "number",
			ShortDescription: "Width, in inches",
		},
		"shippable": {
			Type:             "boolean",
			ShortDescription: "Whether this product is shipped (i.e., physical goods)",
		},
		"statement_descriptor": {
			Type:             "string",
			ShortDescription: "An arbitrary string to be displayed on your customer's credit card or bank statement",
		},
		"tax_code": {
			Type:             "string",
			ShortDescription: "A [tax code](https://docs.stripe.com/tax/tax-categories) ID",
			MostCommon:       true,
		},
		"type": {
			Type:             "string",
			ShortDescription: "The type of the product",
			Enum: []resource.EnumSpec{
				{Value: "good"},
				{Value: "service"},
			},
		},
		"unit_label": {
			Type:             "string",
			ShortDescription: "A label that represents units of this product",
		},
		"url": {
			Type:             "string",
			ShortDescription: "A URL of a publicly-accessible webpage for this product",
		},
	},
}
View Source
var V1ProductsDelete = resource.OperationSpec{
	Name:   "delete",
	Path:   "/v1/products/{id}",
	Method: "DELETE",
}
View Source
var V1ProductsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/products",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"active": {
			Type:             "boolean",
			ShortDescription: "Only return products that are active or inactive (e.g., pass `false` to list all inactive products)",
		},
		"created": {
			Type:             "integer",
			ShortDescription: "Only return products that were created during the given date interval",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"ids": {
			Type:             "array",
			ShortDescription: "Only return products with the given IDs",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"shippable": {
			Type:             "boolean",
			ShortDescription: "Only return products that can be shipped (i.e., physical, not digital products)",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"type": {
			Type:             "string",
			ShortDescription: "Only return products of this type",
			Enum: []resource.EnumSpec{
				{Value: "good"},
				{Value: "service"},
			},
		},
		"url": {
			Type:             "string",
			ShortDescription: "Only return products with the given url",
		},
	},
}
View Source
var V1ProductsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/products/{id}",
	Method: "GET",
}
View Source
var V1ProductsSearch = resource.OperationSpec{
	Name:   "search",
	Path:   "/v1/products/search",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"page": {
			Type:             "string",
			ShortDescription: "A cursor for pagination across multiple pages of results",
		},
		"query": {
			Type:             "string",
			ShortDescription: "The search query string",
			Required:         true,
		},
	},
}
View Source
var V1ProductsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/products/{id}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"active": {
			Type:             "boolean",
			ShortDescription: "Whether the product is available for purchase",
			MostCommon:       true,
		},
		"default_price": {
			Type:             "string",
			ShortDescription: "The ID of the [Price](https://docs.stripe.com/api/prices) object that is the default price for this product",
			MostCommon:       true,
		},
		"description": {
			Type:             "string",
			ShortDescription: "The product's description, meant to be displayable to the customer",
			MostCommon:       true,
		},
		"images": {
			Type:             "array",
			ShortDescription: "A list of up to 8 URLs of images for this product, meant to be displayable to the customer",
		},
		"name": {
			Type:             "string",
			ShortDescription: "The product's name, meant to be displayable to the customer",
			MostCommon:       true,
		},
		"package_dimensions": {
			Type: "clearable_object",
		},
		"package_dimensions.height": {
			Type:             "number",
			ShortDescription: "Height, in inches",
		},
		"package_dimensions.length": {
			Type:             "number",
			ShortDescription: "Length, in inches",
		},
		"package_dimensions.weight": {
			Type:             "number",
			ShortDescription: "Weight, in ounces",
		},
		"package_dimensions.width": {
			Type:             "number",
			ShortDescription: "Width, in inches",
		},
		"shippable": {
			Type:             "boolean",
			ShortDescription: "Whether this product is shipped (i.e., physical goods)",
		},
		"statement_descriptor": {
			Type:             "string",
			ShortDescription: "An arbitrary string to be displayed on your customer's credit card or bank statement",
		},
		"tax_code": {
			Type:             "string",
			ShortDescription: "A [tax code](https://docs.stripe.com/tax/tax-categories) ID",
			MostCommon:       true,
		},
		"unit_label": {
			Type:             "string",
			ShortDescription: "A label that represents units of this product",
		},
		"url": {
			Type:             "string",
			ShortDescription: "A URL of a publicly-accessible webpage for this product",
		},
	},
}
View Source
var V1PromotionCodesCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/promotion_codes",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"active": {
			Type:             "boolean",
			ShortDescription: "Whether the promotion code is currently active",
		},
		"code": {
			Type:             "string",
			ShortDescription: "The customer-facing code",
			MostCommon:       true,
		},
		"customer": {
			Type:             "string",
			ShortDescription: "The customer who can use this promotion code",
		},
		"customer_account": {
			Type:             "string",
			ShortDescription: "The account representing the customer who can use this promotion code",
		},
		"expires_at": {
			Type:             "integer",
			ShortDescription: "The timestamp at which this promotion code will expire",
			Format:           "unix-time",
		},
		"max_redemptions": {
			Type:             "integer",
			ShortDescription: "A positive integer specifying the number of times the promotion code can be redeemed",
		},
		"promotion.coupon": {
			Type:             "string",
			ShortDescription: "If promotion `type` is `coupon`, the coupon for this promotion code",
		},
		"promotion.type": {
			Type:             "string",
			ShortDescription: "Specifies the type of promotion",
			Required:         true,
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "coupon"},
			},
		},
		"restrictions.first_time_transaction": {
			Type:             "boolean",
			ShortDescription: "A Boolean indicating if the Promotion Code should only be redeemed for Customers without any successful payments or invoices",
		},
		"restrictions.minimum_amount": {
			Type:             "integer",
			ShortDescription: "Minimum amount required to redeem this Promotion Code into a Coupon (e.g., a purchase must be $100 or more to work)",
		},
		"restrictions.minimum_amount_currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO code](https://stripe.com/docs/currencies) for minimum_amount",
			Format:           "currency",
		},
	},
}
View Source
var V1PromotionCodesList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/promotion_codes",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"active": {
			Type:             "boolean",
			ShortDescription: "Filter promotion codes by whether they are active",
		},
		"code": {
			Type:             "string",
			ShortDescription: "Only return promotion codes that have this case-insensitive code",
		},
		"coupon": {
			Type:             "string",
			ShortDescription: "Only return promotion codes for this coupon",
		},
		"created": {
			Type:             "integer",
			ShortDescription: "A filter on the list, based on the object `created` field",
		},
		"customer": {
			Type:             "string",
			ShortDescription: "Only return promotion codes that are restricted to this customer",
		},
		"customer_account": {
			Type:             "string",
			ShortDescription: "Only return promotion codes that are restricted to this account representing the customer",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1PromotionCodesRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/promotion_codes/{promotion_code}",
	Method: "GET",
}
View Source
var V1PromotionCodesUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/promotion_codes/{promotion_code}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"active": {
			Type:             "boolean",
			ShortDescription: "Whether the promotion code is currently active",
		},
	},
}
View Source
var V1QuotesAccept = resource.OperationSpec{
	Name:   "accept",
	Path:   "/v1/quotes/{quote}/accept",
	Method: "POST",
}
View Source
var V1QuotesCancel = resource.OperationSpec{
	Name:   "cancel",
	Path:   "/v1/quotes/{quote}/cancel",
	Method: "POST",
}
View Source
var V1QuotesCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/quotes",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"application_fee_amount": {
			Type:             "integer",
			ShortDescription: "The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account",
		},
		"application_fee_percent": {
			Type:             "number",
			ShortDescription: "A non-negative decimal between 0 and 100, with at most two decimal places",
		},
		"automatic_tax.enabled": {
			Type:             "boolean",
			ShortDescription: "Controls whether Stripe will automatically compute tax on the resulting invoices or subscriptions as well as the quote itself",
		},
		"automatic_tax.liability.account": {
			Type:             "string",
			ShortDescription: "The connected account being referenced when `type` is `account`",
		},
		"automatic_tax.liability.type": {
			Type:             "string",
			ShortDescription: "Type of the account referenced in the request",
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"collection_method": {
			Type:             "string",
			ShortDescription: "Either `charge_automatically`, or `send_invoice`",
			Enum: []resource.EnumSpec{
				{Value: "charge_automatically"},
				{Value: "send_invoice"},
			},
		},
		"customer": {
			Type:             "string",
			ShortDescription: "The customer for which this quote belongs to",
		},
		"customer_account": {
			Type:             "string",
			ShortDescription: "The account for which this quote belongs to",
		},
		"default_tax_rates": {
			Type:             "array",
			ShortDescription: "The tax rates that will apply to any line item that does not have `tax_rates` set",
		},
		"description": {
			Type:             "string",
			ShortDescription: "A description that will be displayed on the quote PDF",
		},
		"expires_at": {
			Type:             "integer",
			ShortDescription: "A future timestamp on which the quote will be canceled if in `open` or `draft` status",
			Format:           "unix-time",
		},
		"footer": {
			Type:             "string",
			ShortDescription: "A footer that will be displayed on the quote PDF",
		},
		"from_quote.is_revision": {
			Type:             "boolean",
			ShortDescription: "Whether this quote is a revision of the previous quote",
		},
		"from_quote.quote": {
			Type:             "string",
			ShortDescription: "The `id` of the quote that will be cloned",
		},
		"header": {
			Type:             "string",
			ShortDescription: "A header that will be displayed on the quote PDF",
		},
		"invoice_settings.days_until_due": {
			Type:             "integer",
			ShortDescription: "Number of days within which a customer must pay the invoice generated by this quote",
		},
		"invoice_settings.issuer.account": {
			Type:             "string",
			ShortDescription: "The connected account being referenced when `type` is `account`",
		},
		"invoice_settings.issuer.type": {
			Type:             "string",
			ShortDescription: "Type of the account referenced in the request",
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"on_behalf_of": {
			Type:             "string",
			ShortDescription: "The account on behalf of which to charge",
		},
		"subscription_data.billing_mode.flexible.proration_discounts": {
			Type:             "string",
			ShortDescription: "Controls how invoices and invoice items display proration amounts and discount amounts",
			Enum: []resource.EnumSpec{
				{Value: "included"},
				{Value: "itemized"},
			},
		},
		"subscription_data.billing_mode.type": {
			Type:             "string",
			ShortDescription: "Controls the calculation and orchestration of prorations and invoices for subscriptions",
			Enum: []resource.EnumSpec{
				{Value: "classic"},
				{Value: "flexible"},
			},
		},
		"subscription_data.description": {
			Type:             "string",
			ShortDescription: "The subscription's description, meant to be displayable to the customer",
		},
		"subscription_data.effective_date": {
			Type:             "string",
			ShortDescription: "When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted",
		},
		"subscription_data.trial_period_days": {
			Type:             "integer",
			ShortDescription: "Integer representing the number of trial period days before the customer is charged for the first time",
		},
		"test_clock": {
			Type:             "string",
			ShortDescription: "ID of the test clock to attach to the quote",
		},
		"transfer_data": {
			Type: "clearable_object",
		},
		"transfer_data.amount": {
			Type:             "integer",
			ShortDescription: "The amount that will be transferred automatically when the invoice is paid",
		},
		"transfer_data.amount_percent": {
			Type:             "number",
			ShortDescription: "A non-negative decimal between 0 and 100, with at most two decimal places",
		},
		"transfer_data.destination": {
			Type:             "string",
			ShortDescription: "ID of an existing, connected Stripe account",
		},
	},
}
View Source
var V1QuotesFinalizeQuote = resource.OperationSpec{
	Name:   "finalize_quote",
	Path:   "/v1/quotes/{quote}/finalize",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"expires_at": {
			Type:             "integer",
			ShortDescription: "A future timestamp on which the quote will be canceled if in `open` or `draft` status",
			Format:           "unix-time",
		},
	},
}
View Source
var V1QuotesList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/quotes",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"customer": {
			Type:             "string",
			ShortDescription: "The ID of the customer whose quotes you're retrieving",
		},
		"customer_account": {
			Type:             "string",
			ShortDescription: "The ID of the account representing the customer whose quotes you're retrieving",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"status": {
			Type:             "string",
			ShortDescription: "The status of the quote",
			Enum: []resource.EnumSpec{
				{Value: "accepted"},
				{Value: "canceled"},
				{Value: "draft"},
				{Value: "open"},
			},
		},
		"test_clock": {
			Type:             "string",
			ShortDescription: "Provides a list of quotes that are associated with the specified test clock",
		},
	},
}
View Source
var V1QuotesListComputedUpfrontLineItems = resource.OperationSpec{
	Name:   "list_computed_upfront_line_items",
	Path:   "/v1/quotes/{quote}/computed_upfront_line_items",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1QuotesListLineItems = resource.OperationSpec{
	Name:   "list_line_items",
	Path:   "/v1/quotes/{quote}/line_items",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1QuotesPdf = resource.OperationSpec{
	Name:      "pdf",
	Path:      "/v1/quotes/{quote}/pdf",
	Method:    "GET",
	ServerURL: "https://files.stripe.com/",
}
View Source
var V1QuotesRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/quotes/{quote}",
	Method: "GET",
}
View Source
var V1QuotesUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/quotes/{quote}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"application_fee_amount": {
			Type:             "integer",
			ShortDescription: "The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account",
		},
		"application_fee_percent": {
			Type:             "number",
			ShortDescription: "A non-negative decimal between 0 and 100, with at most two decimal places",
		},
		"automatic_tax.enabled": {
			Type:             "boolean",
			ShortDescription: "Controls whether Stripe will automatically compute tax on the resulting invoices or subscriptions as well as the quote itself",
		},
		"automatic_tax.liability.account": {
			Type:             "string",
			ShortDescription: "The connected account being referenced when `type` is `account`",
		},
		"automatic_tax.liability.type": {
			Type:             "string",
			ShortDescription: "Type of the account referenced in the request",
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"collection_method": {
			Type:             "string",
			ShortDescription: "Either `charge_automatically`, or `send_invoice`",
			Enum: []resource.EnumSpec{
				{Value: "charge_automatically"},
				{Value: "send_invoice"},
			},
		},
		"customer": {
			Type:             "string",
			ShortDescription: "The customer for which this quote belongs to",
		},
		"customer_account": {
			Type:             "string",
			ShortDescription: "The account for which this quote belongs to",
		},
		"default_tax_rates": {
			Type:             "array",
			ShortDescription: "The tax rates that will apply to any line item that does not have `tax_rates` set",
		},
		"description": {
			Type:             "string",
			ShortDescription: "A description that will be displayed on the quote PDF",
		},
		"expires_at": {
			Type:             "integer",
			ShortDescription: "A future timestamp on which the quote will be canceled if in `open` or `draft` status",
			Format:           "unix-time",
		},
		"footer": {
			Type:             "string",
			ShortDescription: "A footer that will be displayed on the quote PDF",
		},
		"header": {
			Type:             "string",
			ShortDescription: "A header that will be displayed on the quote PDF",
		},
		"invoice_settings.days_until_due": {
			Type:             "integer",
			ShortDescription: "Number of days within which a customer must pay the invoice generated by this quote",
		},
		"invoice_settings.issuer.account": {
			Type:             "string",
			ShortDescription: "The connected account being referenced when `type` is `account`",
		},
		"invoice_settings.issuer.type": {
			Type:             "string",
			ShortDescription: "Type of the account referenced in the request",
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"on_behalf_of": {
			Type:             "string",
			ShortDescription: "The account on behalf of which to charge",
		},
		"subscription_data.description": {
			Type:             "string",
			ShortDescription: "The subscription's description, meant to be displayable to the customer",
		},
		"subscription_data.effective_date": {
			Type:             "string",
			ShortDescription: "When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted",
		},
		"subscription_data.trial_period_days": {
			Type:             "integer",
			ShortDescription: "Integer representing the number of trial period days before the customer is charged for the first time",
		},
		"transfer_data": {
			Type: "clearable_object",
		},
		"transfer_data.amount": {
			Type:             "integer",
			ShortDescription: "The amount that will be transferred automatically when the invoice is paid",
		},
		"transfer_data.amount_percent": {
			Type:             "number",
			ShortDescription: "A non-negative decimal between 0 and 100, with at most two decimal places",
		},
		"transfer_data.destination": {
			Type:             "string",
			ShortDescription: "ID of an existing, connected Stripe account",
		},
	},
}
View Source
var V1RadarEarlyFraudWarningsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/radar/early_fraud_warnings",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"charge": {
			Type:             "string",
			ShortDescription: "Only return early fraud warnings for the charge specified by this charge ID",
		},
		"created": {
			Type:             "integer",
			ShortDescription: "Only return early fraud warnings that were created during the given date interval",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"payment_intent": {
			Type:             "string",
			ShortDescription: "Only return early fraud warnings for charges that were created by the PaymentIntent specified by this PaymentIntent ID",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1RadarEarlyFraudWarningsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/radar/early_fraud_warnings/{early_fraud_warning}",
	Method: "GET",
}
View Source
var V1RadarPaymentEvaluationsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/radar/payment_evaluations",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"client_device_metadata_details.radar_session": {
			Type:             "string",
			ShortDescription: "ID for the Radar Session to associate with the payment evaluation",
			MostCommon:       true,
		},
		"customer_details.customer": {
			Type:             "string",
			ShortDescription: "The ID of the customer associated with the payment evaluation",
		},
		"customer_details.customer_account": {
			Type:             "string",
			ShortDescription: "The ID of the Account representing the customer associated with the payment evaluation",
		},
		"customer_details.email": {
			Type:             "string",
			ShortDescription: "The customer's email address",
		},
		"customer_details.name": {
			Type:             "string",
			ShortDescription: "The customer's full name or business name",
		},
		"customer_details.phone": {
			Type:             "string",
			ShortDescription: "The customer's phone number",
		},
		"payment_details.amount": {
			Type:             "integer",
			ShortDescription: "The intended amount to collect with this payment",
			Required:         true,
			MostCommon:       true,
		},
		"payment_details.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Required:         true,
			MostCommon:       true,
			Format:           "currency",
		},
		"payment_details.description": {
			Type:             "string",
			ShortDescription: "An arbitrary string attached to the object",
		},
		"payment_details.money_movement_details.card.customer_presence": {
			Type:             "string",
			ShortDescription: "Describes the presence of the customer during the payment",
			Enum: []resource.EnumSpec{
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_details.money_movement_details.card.payment_type": {
			Type:             "string",
			ShortDescription: "Describes the type of payment",
			Enum: []resource.EnumSpec{
				{Value: "one_off"},
				{Value: "recurring"},
				{Value: "setup_one_off"},
				{Value: "setup_recurring"},
			},
		},
		"payment_details.money_movement_details.money_movement_type": {
			Type:             "string",
			ShortDescription: "Describes the type of money movement",
			Enum: []resource.EnumSpec{
				{Value: "card"},
			},
		},
		"payment_details.payment_method_details.billing_details.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"payment_details.payment_method_details.billing_details.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"payment_details.payment_method_details.billing_details.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"payment_details.payment_method_details.billing_details.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"payment_details.payment_method_details.billing_details.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"payment_details.payment_method_details.billing_details.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"payment_details.payment_method_details.billing_details.email": {
			Type:             "string",
			ShortDescription: "Email address",
		},
		"payment_details.payment_method_details.billing_details.name": {
			Type:             "string",
			ShortDescription: "Full name",
		},
		"payment_details.payment_method_details.billing_details.phone": {
			Type:             "string",
			ShortDescription: "Billing phone number (including extension)",
		},
		"payment_details.payment_method_details.payment_method": {
			Type:             "string",
			ShortDescription: "ID of the payment method used in this payment evaluation",
			Required:         true,
		},
		"payment_details.shipping_details.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"payment_details.shipping_details.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"payment_details.shipping_details.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"payment_details.shipping_details.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"payment_details.shipping_details.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"payment_details.shipping_details.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"payment_details.shipping_details.name": {
			Type:             "string",
			ShortDescription: "Shipping name",
		},
		"payment_details.shipping_details.phone": {
			Type:             "string",
			ShortDescription: "Shipping phone number",
		},
		"payment_details.statement_descriptor": {
			Type:             "string",
			ShortDescription: "Payment statement descriptor",
		},
	},
}
View Source
var V1RadarValueListItemsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/radar/value_list_items",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"value": {
			Type:             "string",
			ShortDescription: "The value of the item (whose type must match the type of the parent value list)",
			Required:         true,
			MostCommon:       true,
		},
		"value_list": {
			Type:             "string",
			ShortDescription: "The identifier of the value list which the created item will be added to",
			Required:         true,
			MostCommon:       true,
		},
	},
}
View Source
var V1RadarValueListItemsDelete = resource.OperationSpec{
	Name:   "delete",
	Path:   "/v1/radar/value_list_items/{item}",
	Method: "DELETE",
}
View Source
var V1RadarValueListItemsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/radar/value_list_items",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type:             "integer",
			ShortDescription: "Only return items that were created during the given date interval",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"value": {
			Type:             "string",
			ShortDescription: "Return items belonging to the parent list whose value matches the specified value (using an \"is like\" match)",
		},
		"value_list": {
			Type:             "string",
			ShortDescription: "Identifier for the parent value list this item belongs to",
			Required:         true,
		},
	},
}
View Source
var V1RadarValueListItemsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/radar/value_list_items/{item}",
	Method: "GET",
}
View Source
var V1RadarValueListsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/radar/value_lists",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"alias": {
			Type:             "string",
			ShortDescription: "The name of the value list for use in rules",
			Required:         true,
			MostCommon:       true,
		},
		"item_type": {
			Type:             "string",
			ShortDescription: "Type of the items in the value list",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "card_bin"},
				{Value: "card_fingerprint"},
				{Value: "case_sensitive_string"},
				{Value: "country"},
				{Value: "crypto_fingerprint"},
				{Value: "customer_id"},
				{Value: "email"},
				{Value: "ip_address"},
				{Value: "sepa_debit_fingerprint"},
				{Value: "string"},
				{Value: "us_bank_account_fingerprint"},
			},
		},
		"name": {
			Type:             "string",
			ShortDescription: "The human-readable name of the value list",
			Required:         true,
			MostCommon:       true,
		},
	},
}
View Source
var V1RadarValueListsDelete = resource.OperationSpec{
	Name:   "delete",
	Path:   "/v1/radar/value_lists/{value_list}",
	Method: "DELETE",
}
View Source
var V1RadarValueListsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/radar/value_lists",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"alias": {
			Type:             "string",
			ShortDescription: "The alias used to reference the value list when writing rules",
		},
		"contains": {
			Type:             "string",
			ShortDescription: "A value contained within a value list - returns all value lists containing this value",
		},
		"created": {
			Type:             "integer",
			ShortDescription: "Only return value lists that were created during the given date interval",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1RadarValueListsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/radar/value_lists/{value_list}",
	Method: "GET",
}
View Source
var V1RadarValueListsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/radar/value_lists/{value_list}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"alias": {
			Type:             "string",
			ShortDescription: "The name of the value list for use in rules",
			MostCommon:       true,
		},
		"name": {
			Type:             "string",
			ShortDescription: "The human-readable name of the value list",
			MostCommon:       true,
		},
	},
}
View Source
var V1RefundsCancel = resource.OperationSpec{
	Name:   "cancel",
	Path:   "/v1/refunds/{refund}/cancel",
	Method: "POST",
}
View Source
var V1RefundsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/refunds",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:       "integer",
			MostCommon: true,
		},
		"charge": {
			Type:             "string",
			ShortDescription: "The identifier of the charge to refund",
			MostCommon:       true,
		},
		"currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			MostCommon:       true,
			Format:           "currency",
		},
		"customer": {
			Type:             "string",
			ShortDescription: "Customer whose customer balance to refund from",
			MostCommon:       true,
		},
		"instructions_email": {
			Type:             "string",
			ShortDescription: "For payment methods without native refund support (e.g., Konbini, PromptPay), use this email from the customer to receive refund instructions",
			MostCommon:       true,
		},
		"origin": {
			Type:             "string",
			ShortDescription: "Origin of the refund",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "customer_balance"},
			},
		},
		"payment_intent": {
			Type:             "string",
			ShortDescription: "The identifier of the PaymentIntent to refund",
			MostCommon:       true,
		},
		"reason": {
			Type:             "string",
			ShortDescription: "String indicating the reason for the refund",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "duplicate"},
				{Value: "fraudulent"},
				{Value: "requested_by_customer"},
			},
		},
		"refund_application_fee": {
			Type:             "boolean",
			ShortDescription: "Boolean indicating whether the application fee should be refunded when refunding this charge",
		},
		"reverse_transfer": {
			Type:             "boolean",
			ShortDescription: "Boolean indicating whether the transfer should be reversed when refunding this charge",
		},
	},
}
View Source
var V1RefundsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/refunds",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"charge": {
			Type:             "string",
			ShortDescription: "Only return refunds for the charge specified by this charge ID",
		},
		"created": {
			Type:             "integer",
			ShortDescription: "Only return refunds that were created during the given date interval",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"payment_intent": {
			Type:             "string",
			ShortDescription: "Only return refunds for the PaymentIntent specified by this ID",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1RefundsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/refunds/{refund}",
	Method: "GET",
}
View Source
var V1RefundsTestHelpersExpire = resource.OperationSpec{
	Name:   "expire",
	Path:   "/v1/test_helpers/refunds/{refund}/expire",
	Method: "POST",
}
View Source
var V1RefundsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/refunds/{refund}",
	Method: "POST",
}
View Source
var V1ReportingReportRunsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/reporting/report_runs",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"parameters.columns": {
			Type:             "array",
			ShortDescription: "The set of report columns to include in the report output",
		},
		"parameters.connected_account": {
			Type:             "string",
			ShortDescription: "Connected account ID to filter for in the report run",
		},
		"parameters.currency": {
			Type:             "string",
			ShortDescription: "Currency of objects to be included in the report run",
			Format:           "currency",
		},
		"parameters.interval_end": {
			Type:             "integer",
			ShortDescription: "Ending timestamp of data to be included in the report run (exclusive)",
			Format:           "unix-time",
		},
		"parameters.interval_start": {
			Type:             "integer",
			ShortDescription: "Starting timestamp of data to be included in the report run",
			Format:           "unix-time",
		},
		"parameters.payout": {
			Type:             "string",
			ShortDescription: "Payout ID by which to filter the report run",
		},
		"parameters.reporting_category": {
			Type:             "string",
			ShortDescription: "Category of balance transactions to be included in the report run",
			Enum: []resource.EnumSpec{
				{Value: "advance"},
				{Value: "advance_funding"},
				{Value: "anticipation_repayment"},
				{Value: "charge"},
				{Value: "charge_failure"},
				{Value: "climate_order_purchase"},
				{Value: "climate_order_refund"},
				{Value: "connect_collection_transfer"},
				{Value: "connect_reserved_funds"},
				{Value: "contribution"},
				{Value: "dispute"},
				{Value: "dispute_reversal"},
				{Value: "fee"},
				{Value: "financing_paydown"},
				{Value: "financing_paydown_reversal"},
				{Value: "financing_payout"},
				{Value: "financing_payout_reversal"},
				{Value: "issuing_authorization_hold"},
				{Value: "issuing_authorization_release"},
				{Value: "issuing_dispute"},
				{Value: "issuing_transaction"},
				{Value: "network_cost"},
				{Value: "other_adjustment"},
				{Value: "partial_capture_reversal"},
				{Value: "payout"},
				{Value: "payout_reversal"},
				{Value: "platform_earning"},
				{Value: "platform_earning_refund"},
				{Value: "refund"},
				{Value: "refund_failure"},
				{Value: "risk_reserved_funds"},
				{Value: "tax"},
				{Value: "topup"},
				{Value: "topup_reversal"},
				{Value: "transfer"},
				{Value: "transfer_reversal"},
				{Value: "unreconciled_customer_funds"},
			},
		},
		"parameters.timezone": {
			Type:             "string",
			ShortDescription: "Defaults to `Etc/UTC`",
			Enum: []resource.EnumSpec{
				{Value: "Africa/Abidjan"},
				{Value: "Africa/Accra"},
				{Value: "Africa/Addis_Ababa"},
				{Value: "Africa/Algiers"},
				{Value: "Africa/Asmara"},
				{Value: "Africa/Asmera"},
				{Value: "Africa/Bamako"},
				{Value: "Africa/Bangui"},
				{Value: "Africa/Banjul"},
				{Value: "Africa/Bissau"},
				{Value: "Africa/Blantyre"},
				{Value: "Africa/Brazzaville"},
				{Value: "Africa/Bujumbura"},
				{Value: "Africa/Cairo"},
				{Value: "Africa/Casablanca"},
				{Value: "Africa/Ceuta"},
				{Value: "Africa/Conakry"},
				{Value: "Africa/Dakar"},
				{Value: "Africa/Dar_es_Salaam"},
				{Value: "Africa/Djibouti"},
				{Value: "Africa/Douala"},
				{Value: "Africa/El_Aaiun"},
				{Value: "Africa/Freetown"},
				{Value: "Africa/Gaborone"},
				{Value: "Africa/Harare"},
				{Value: "Africa/Johannesburg"},
				{Value: "Africa/Juba"},
				{Value: "Africa/Kampala"},
				{Value: "Africa/Khartoum"},
				{Value: "Africa/Kigali"},
				{Value: "Africa/Kinshasa"},
				{Value: "Africa/Lagos"},
				{Value: "Africa/Libreville"},
				{Value: "Africa/Lome"},
				{Value: "Africa/Luanda"},
				{Value: "Africa/Lubumbashi"},
				{Value: "Africa/Lusaka"},
				{Value: "Africa/Malabo"},
				{Value: "Africa/Maputo"},
				{Value: "Africa/Maseru"},
				{Value: "Africa/Mbabane"},
				{Value: "Africa/Mogadishu"},
				{Value: "Africa/Monrovia"},
				{Value: "Africa/Nairobi"},
				{Value: "Africa/Ndjamena"},
				{Value: "Africa/Niamey"},
				{Value: "Africa/Nouakchott"},
				{Value: "Africa/Ouagadougou"},
				{Value: "Africa/Porto-Novo"},
				{Value: "Africa/Sao_Tome"},
				{Value: "Africa/Timbuktu"},
				{Value: "Africa/Tripoli"},
				{Value: "Africa/Tunis"},
				{Value: "Africa/Windhoek"},
				{Value: "America/Adak"},
				{Value: "America/Anchorage"},
				{Value: "America/Anguilla"},
				{Value: "America/Antigua"},
				{Value: "America/Araguaina"},
				{Value: "America/Argentina/Buenos_Aires"},
				{Value: "America/Argentina/Catamarca"},
				{Value: "America/Argentina/ComodRivadavia"},
				{Value: "America/Argentina/Cordoba"},
				{Value: "America/Argentina/Jujuy"},
				{Value: "America/Argentina/La_Rioja"},
				{Value: "America/Argentina/Mendoza"},
				{Value: "America/Argentina/Rio_Gallegos"},
				{Value: "America/Argentina/Salta"},
				{Value: "America/Argentina/San_Juan"},
				{Value: "America/Argentina/San_Luis"},
				{Value: "America/Argentina/Tucuman"},
				{Value: "America/Argentina/Ushuaia"},
				{Value: "America/Aruba"},
				{Value: "America/Asuncion"},
				{Value: "America/Atikokan"},
				{Value: "America/Atka"},
				{Value: "America/Bahia"},
				{Value: "America/Bahia_Banderas"},
				{Value: "America/Barbados"},
				{Value: "America/Belem"},
				{Value: "America/Belize"},
				{Value: "America/Blanc-Sablon"},
				{Value: "America/Boa_Vista"},
				{Value: "America/Bogota"},
				{Value: "America/Boise"},
				{Value: "America/Buenos_Aires"},
				{Value: "America/Cambridge_Bay"},
				{Value: "America/Campo_Grande"},
				{Value: "America/Cancun"},
				{Value: "America/Caracas"},
				{Value: "America/Catamarca"},
				{Value: "America/Cayenne"},
				{Value: "America/Cayman"},
				{Value: "America/Chicago"},
				{Value: "America/Chihuahua"},
				{Value: "America/Ciudad_Juarez"},
				{Value: "America/Coral_Harbour"},
				{Value: "America/Cordoba"},
				{Value: "America/Costa_Rica"},
				{Value: "America/Coyhaique"},
				{Value: "America/Creston"},
				{Value: "America/Cuiaba"},
				{Value: "America/Curacao"},
				{Value: "America/Danmarkshavn"},
				{Value: "America/Dawson"},
				{Value: "America/Dawson_Creek"},
				{Value: "America/Denver"},
				{Value: "America/Detroit"},
				{Value: "America/Dominica"},
				{Value: "America/Edmonton"},
				{Value: "America/Eirunepe"},
				{Value: "America/El_Salvador"},
				{Value: "America/Ensenada"},
				{Value: "America/Fort_Nelson"},
				{Value: "America/Fort_Wayne"},
				{Value: "America/Fortaleza"},
				{Value: "America/Glace_Bay"},
				{Value: "America/Godthab"},
				{Value: "America/Goose_Bay"},
				{Value: "America/Grand_Turk"},
				{Value: "America/Grenada"},
				{Value: "America/Guadeloupe"},
				{Value: "America/Guatemala"},
				{Value: "America/Guayaquil"},
				{Value: "America/Guyana"},
				{Value: "America/Halifax"},
				{Value: "America/Havana"},
				{Value: "America/Hermosillo"},
				{Value: "America/Indiana/Indianapolis"},
				{Value: "America/Indiana/Knox"},
				{Value: "America/Indiana/Marengo"},
				{Value: "America/Indiana/Petersburg"},
				{Value: "America/Indiana/Tell_City"},
				{Value: "America/Indiana/Vevay"},
				{Value: "America/Indiana/Vincennes"},
				{Value: "America/Indiana/Winamac"},
				{Value: "America/Indianapolis"},
				{Value: "America/Inuvik"},
				{Value: "America/Iqaluit"},
				{Value: "America/Jamaica"},
				{Value: "America/Jujuy"},
				{Value: "America/Juneau"},
				{Value: "America/Kentucky/Louisville"},
				{Value: "America/Kentucky/Monticello"},
				{Value: "America/Knox_IN"},
				{Value: "America/Kralendijk"},
				{Value: "America/La_Paz"},
				{Value: "America/Lima"},
				{Value: "America/Los_Angeles"},
				{Value: "America/Louisville"},
				{Value: "America/Lower_Princes"},
				{Value: "America/Maceio"},
				{Value: "America/Managua"},
				{Value: "America/Manaus"},
				{Value: "America/Marigot"},
				{Value: "America/Martinique"},
				{Value: "America/Matamoros"},
				{Value: "America/Mazatlan"},
				{Value: "America/Mendoza"},
				{Value: "America/Menominee"},
				{Value: "America/Merida"},
				{Value: "America/Metlakatla"},
				{Value: "America/Mexico_City"},
				{Value: "America/Miquelon"},
				{Value: "America/Moncton"},
				{Value: "America/Monterrey"},
				{Value: "America/Montevideo"},
				{Value: "America/Montreal"},
				{Value: "America/Montserrat"},
				{Value: "America/Nassau"},
				{Value: "America/New_York"},
				{Value: "America/Nipigon"},
				{Value: "America/Nome"},
				{Value: "America/Noronha"},
				{Value: "America/North_Dakota/Beulah"},
				{Value: "America/North_Dakota/Center"},
				{Value: "America/North_Dakota/New_Salem"},
				{Value: "America/Nuuk"},
				{Value: "America/Ojinaga"},
				{Value: "America/Panama"},
				{Value: "America/Pangnirtung"},
				{Value: "America/Paramaribo"},
				{Value: "America/Phoenix"},
				{Value: "America/Port-au-Prince"},
				{Value: "America/Port_of_Spain"},
				{Value: "America/Porto_Acre"},
				{Value: "America/Porto_Velho"},
				{Value: "America/Puerto_Rico"},
				{Value: "America/Punta_Arenas"},
				{Value: "America/Rainy_River"},
				{Value: "America/Rankin_Inlet"},
				{Value: "America/Recife"},
				{Value: "America/Regina"},
				{Value: "America/Resolute"},
				{Value: "America/Rio_Branco"},
				{Value: "America/Rosario"},
				{Value: "America/Santa_Isabel"},
				{Value: "America/Santarem"},
				{Value: "America/Santiago"},
				{Value: "America/Santo_Domingo"},
				{Value: "America/Sao_Paulo"},
				{Value: "America/Scoresbysund"},
				{Value: "America/Shiprock"},
				{Value: "America/Sitka"},
				{Value: "America/St_Barthelemy"},
				{Value: "America/St_Johns"},
				{Value: "America/St_Kitts"},
				{Value: "America/St_Lucia"},
				{Value: "America/St_Thomas"},
				{Value: "America/St_Vincent"},
				{Value: "America/Swift_Current"},
				{Value: "America/Tegucigalpa"},
				{Value: "America/Thule"},
				{Value: "America/Thunder_Bay"},
				{Value: "America/Tijuana"},
				{Value: "America/Toronto"},
				{Value: "America/Tortola"},
				{Value: "America/Vancouver"},
				{Value: "America/Virgin"},
				{Value: "America/Whitehorse"},
				{Value: "America/Winnipeg"},
				{Value: "America/Yakutat"},
				{Value: "America/Yellowknife"},
				{Value: "Antarctica/Casey"},
				{Value: "Antarctica/Davis"},
				{Value: "Antarctica/DumontDUrville"},
				{Value: "Antarctica/Macquarie"},
				{Value: "Antarctica/Mawson"},
				{Value: "Antarctica/McMurdo"},
				{Value: "Antarctica/Palmer"},
				{Value: "Antarctica/Rothera"},
				{Value: "Antarctica/South_Pole"},
				{Value: "Antarctica/Syowa"},
				{Value: "Antarctica/Troll"},
				{Value: "Antarctica/Vostok"},
				{Value: "Arctic/Longyearbyen"},
				{Value: "Asia/Aden"},
				{Value: "Asia/Almaty"},
				{Value: "Asia/Amman"},
				{Value: "Asia/Anadyr"},
				{Value: "Asia/Aqtau"},
				{Value: "Asia/Aqtobe"},
				{Value: "Asia/Ashgabat"},
				{Value: "Asia/Ashkhabad"},
				{Value: "Asia/Atyrau"},
				{Value: "Asia/Baghdad"},
				{Value: "Asia/Bahrain"},
				{Value: "Asia/Baku"},
				{Value: "Asia/Bangkok"},
				{Value: "Asia/Barnaul"},
				{Value: "Asia/Beirut"},
				{Value: "Asia/Bishkek"},
				{Value: "Asia/Brunei"},
				{Value: "Asia/Calcutta"},
				{Value: "Asia/Chita"},
				{Value: "Asia/Choibalsan"},
				{Value: "Asia/Chongqing"},
				{Value: "Asia/Chungking"},
				{Value: "Asia/Colombo"},
				{Value: "Asia/Dacca"},
				{Value: "Asia/Damascus"},
				{Value: "Asia/Dhaka"},
				{Value: "Asia/Dili"},
				{Value: "Asia/Dubai"},
				{Value: "Asia/Dushanbe"},
				{Value: "Asia/Famagusta"},
				{Value: "Asia/Gaza"},
				{Value: "Asia/Harbin"},
				{Value: "Asia/Hebron"},
				{Value: "Asia/Ho_Chi_Minh"},
				{Value: "Asia/Hong_Kong"},
				{Value: "Asia/Hovd"},
				{Value: "Asia/Irkutsk"},
				{Value: "Asia/Istanbul"},
				{Value: "Asia/Jakarta"},
				{Value: "Asia/Jayapura"},
				{Value: "Asia/Jerusalem"},
				{Value: "Asia/Kabul"},
				{Value: "Asia/Kamchatka"},
				{Value: "Asia/Karachi"},
				{Value: "Asia/Kashgar"},
				{Value: "Asia/Kathmandu"},
				{Value: "Asia/Katmandu"},
				{Value: "Asia/Khandyga"},
				{Value: "Asia/Kolkata"},
				{Value: "Asia/Krasnoyarsk"},
				{Value: "Asia/Kuala_Lumpur"},
				{Value: "Asia/Kuching"},
				{Value: "Asia/Kuwait"},
				{Value: "Asia/Macao"},
				{Value: "Asia/Macau"},
				{Value: "Asia/Magadan"},
				{Value: "Asia/Makassar"},
				{Value: "Asia/Manila"},
				{Value: "Asia/Muscat"},
				{Value: "Asia/Nicosia"},
				{Value: "Asia/Novokuznetsk"},
				{Value: "Asia/Novosibirsk"},
				{Value: "Asia/Omsk"},
				{Value: "Asia/Oral"},
				{Value: "Asia/Phnom_Penh"},
				{Value: "Asia/Pontianak"},
				{Value: "Asia/Pyongyang"},
				{Value: "Asia/Qatar"},
				{Value: "Asia/Qostanay"},
				{Value: "Asia/Qyzylorda"},
				{Value: "Asia/Rangoon"},
				{Value: "Asia/Riyadh"},
				{Value: "Asia/Saigon"},
				{Value: "Asia/Sakhalin"},
				{Value: "Asia/Samarkand"},
				{Value: "Asia/Seoul"},
				{Value: "Asia/Shanghai"},
				{Value: "Asia/Singapore"},
				{Value: "Asia/Srednekolymsk"},
				{Value: "Asia/Taipei"},
				{Value: "Asia/Tashkent"},
				{Value: "Asia/Tbilisi"},
				{Value: "Asia/Tehran"},
				{Value: "Asia/Tel_Aviv"},
				{Value: "Asia/Thimbu"},
				{Value: "Asia/Thimphu"},
				{Value: "Asia/Tokyo"},
				{Value: "Asia/Tomsk"},
				{Value: "Asia/Ujung_Pandang"},
				{Value: "Asia/Ulaanbaatar"},
				{Value: "Asia/Ulan_Bator"},
				{Value: "Asia/Urumqi"},
				{Value: "Asia/Ust-Nera"},
				{Value: "Asia/Vientiane"},
				{Value: "Asia/Vladivostok"},
				{Value: "Asia/Yakutsk"},
				{Value: "Asia/Yangon"},
				{Value: "Asia/Yekaterinburg"},
				{Value: "Asia/Yerevan"},
				{Value: "Atlantic/Azores"},
				{Value: "Atlantic/Bermuda"},
				{Value: "Atlantic/Canary"},
				{Value: "Atlantic/Cape_Verde"},
				{Value: "Atlantic/Faeroe"},
				{Value: "Atlantic/Faroe"},
				{Value: "Atlantic/Jan_Mayen"},
				{Value: "Atlantic/Madeira"},
				{Value: "Atlantic/Reykjavik"},
				{Value: "Atlantic/South_Georgia"},
				{Value: "Atlantic/St_Helena"},
				{Value: "Atlantic/Stanley"},
				{Value: "Australia/ACT"},
				{Value: "Australia/Adelaide"},
				{Value: "Australia/Brisbane"},
				{Value: "Australia/Broken_Hill"},
				{Value: "Australia/Canberra"},
				{Value: "Australia/Currie"},
				{Value: "Australia/Darwin"},
				{Value: "Australia/Eucla"},
				{Value: "Australia/Hobart"},
				{Value: "Australia/LHI"},
				{Value: "Australia/Lindeman"},
				{Value: "Australia/Lord_Howe"},
				{Value: "Australia/Melbourne"},
				{Value: "Australia/NSW"},
				{Value: "Australia/North"},
				{Value: "Australia/Perth"},
				{Value: "Australia/Queensland"},
				{Value: "Australia/South"},
				{Value: "Australia/Sydney"},
				{Value: "Australia/Tasmania"},
				{Value: "Australia/Victoria"},
				{Value: "Australia/West"},
				{Value: "Australia/Yancowinna"},
				{Value: "Brazil/Acre"},
				{Value: "Brazil/DeNoronha"},
				{Value: "Brazil/East"},
				{Value: "Brazil/West"},
				{Value: "CET"},
				{Value: "CST6CDT"},
				{Value: "Canada/Atlantic"},
				{Value: "Canada/Central"},
				{Value: "Canada/Eastern"},
				{Value: "Canada/Mountain"},
				{Value: "Canada/Newfoundland"},
				{Value: "Canada/Pacific"},
				{Value: "Canada/Saskatchewan"},
				{Value: "Canada/Yukon"},
				{Value: "Chile/Continental"},
				{Value: "Chile/EasterIsland"},
				{Value: "Cuba"},
				{Value: "EET"},
				{Value: "EST"},
				{Value: "EST5EDT"},
				{Value: "Egypt"},
				{Value: "Eire"},
				{Value: "Etc/GMT"},
				{Value: "Etc/GMT+0"},
				{Value: "Etc/GMT+1"},
				{Value: "Etc/GMT+10"},
				{Value: "Etc/GMT+11"},
				{Value: "Etc/GMT+12"},
				{Value: "Etc/GMT+2"},
				{Value: "Etc/GMT+3"},
				{Value: "Etc/GMT+4"},
				{Value: "Etc/GMT+5"},
				{Value: "Etc/GMT+6"},
				{Value: "Etc/GMT+7"},
				{Value: "Etc/GMT+8"},
				{Value: "Etc/GMT+9"},
				{Value: "Etc/GMT-0"},
				{Value: "Etc/GMT-1"},
				{Value: "Etc/GMT-10"},
				{Value: "Etc/GMT-11"},
				{Value: "Etc/GMT-12"},
				{Value: "Etc/GMT-13"},
				{Value: "Etc/GMT-14"},
				{Value: "Etc/GMT-2"},
				{Value: "Etc/GMT-3"},
				{Value: "Etc/GMT-4"},
				{Value: "Etc/GMT-5"},
				{Value: "Etc/GMT-6"},
				{Value: "Etc/GMT-7"},
				{Value: "Etc/GMT-8"},
				{Value: "Etc/GMT-9"},
				{Value: "Etc/GMT0"},
				{Value: "Etc/Greenwich"},
				{Value: "Etc/UCT"},
				{Value: "Etc/UTC"},
				{Value: "Etc/Universal"},
				{Value: "Etc/Zulu"},
				{Value: "Europe/Amsterdam"},
				{Value: "Europe/Andorra"},
				{Value: "Europe/Astrakhan"},
				{Value: "Europe/Athens"},
				{Value: "Europe/Belfast"},
				{Value: "Europe/Belgrade"},
				{Value: "Europe/Berlin"},
				{Value: "Europe/Bratislava"},
				{Value: "Europe/Brussels"},
				{Value: "Europe/Bucharest"},
				{Value: "Europe/Budapest"},
				{Value: "Europe/Busingen"},
				{Value: "Europe/Chisinau"},
				{Value: "Europe/Copenhagen"},
				{Value: "Europe/Dublin"},
				{Value: "Europe/Gibraltar"},
				{Value: "Europe/Guernsey"},
				{Value: "Europe/Helsinki"},
				{Value: "Europe/Isle_of_Man"},
				{Value: "Europe/Istanbul"},
				{Value: "Europe/Jersey"},
				{Value: "Europe/Kaliningrad"},
				{Value: "Europe/Kiev"},
				{Value: "Europe/Kirov"},
				{Value: "Europe/Kyiv"},
				{Value: "Europe/Lisbon"},
				{Value: "Europe/Ljubljana"},
				{Value: "Europe/London"},
				{Value: "Europe/Luxembourg"},
				{Value: "Europe/Madrid"},
				{Value: "Europe/Malta"},
				{Value: "Europe/Mariehamn"},
				{Value: "Europe/Minsk"},
				{Value: "Europe/Monaco"},
				{Value: "Europe/Moscow"},
				{Value: "Europe/Nicosia"},
				{Value: "Europe/Oslo"},
				{Value: "Europe/Paris"},
				{Value: "Europe/Podgorica"},
				{Value: "Europe/Prague"},
				{Value: "Europe/Riga"},
				{Value: "Europe/Rome"},
				{Value: "Europe/Samara"},
				{Value: "Europe/San_Marino"},
				{Value: "Europe/Sarajevo"},
				{Value: "Europe/Saratov"},
				{Value: "Europe/Simferopol"},
				{Value: "Europe/Skopje"},
				{Value: "Europe/Sofia"},
				{Value: "Europe/Stockholm"},
				{Value: "Europe/Tallinn"},
				{Value: "Europe/Tirane"},
				{Value: "Europe/Tiraspol"},
				{Value: "Europe/Ulyanovsk"},
				{Value: "Europe/Uzhgorod"},
				{Value: "Europe/Vaduz"},
				{Value: "Europe/Vatican"},
				{Value: "Europe/Vienna"},
				{Value: "Europe/Vilnius"},
				{Value: "Europe/Volgograd"},
				{Value: "Europe/Warsaw"},
				{Value: "Europe/Zagreb"},
				{Value: "Europe/Zaporozhye"},
				{Value: "Europe/Zurich"},
				{Value: "Factory"},
				{Value: "GB"},
				{Value: "GB-Eire"},
				{Value: "GMT"},
				{Value: "GMT+0"},
				{Value: "GMT-0"},
				{Value: "GMT0"},
				{Value: "Greenwich"},
				{Value: "HST"},
				{Value: "Hongkong"},
				{Value: "Iceland"},
				{Value: "Indian/Antananarivo"},
				{Value: "Indian/Chagos"},
				{Value: "Indian/Christmas"},
				{Value: "Indian/Cocos"},
				{Value: "Indian/Comoro"},
				{Value: "Indian/Kerguelen"},
				{Value: "Indian/Mahe"},
				{Value: "Indian/Maldives"},
				{Value: "Indian/Mauritius"},
				{Value: "Indian/Mayotte"},
				{Value: "Indian/Reunion"},
				{Value: "Iran"},
				{Value: "Israel"},
				{Value: "Jamaica"},
				{Value: "Japan"},
				{Value: "Kwajalein"},
				{Value: "Libya"},
				{Value: "MET"},
				{Value: "MST"},
				{Value: "MST7MDT"},
				{Value: "Mexico/BajaNorte"},
				{Value: "Mexico/BajaSur"},
				{Value: "Mexico/General"},
				{Value: "NZ"},
				{Value: "NZ-CHAT"},
				{Value: "Navajo"},
				{Value: "PRC"},
				{Value: "PST8PDT"},
				{Value: "Pacific/Apia"},
				{Value: "Pacific/Auckland"},
				{Value: "Pacific/Bougainville"},
				{Value: "Pacific/Chatham"},
				{Value: "Pacific/Chuuk"},
				{Value: "Pacific/Easter"},
				{Value: "Pacific/Efate"},
				{Value: "Pacific/Enderbury"},
				{Value: "Pacific/Fakaofo"},
				{Value: "Pacific/Fiji"},
				{Value: "Pacific/Funafuti"},
				{Value: "Pacific/Galapagos"},
				{Value: "Pacific/Gambier"},
				{Value: "Pacific/Guadalcanal"},
				{Value: "Pacific/Guam"},
				{Value: "Pacific/Honolulu"},
				{Value: "Pacific/Johnston"},
				{Value: "Pacific/Kanton"},
				{Value: "Pacific/Kiritimati"},
				{Value: "Pacific/Kosrae"},
				{Value: "Pacific/Kwajalein"},
				{Value: "Pacific/Majuro"},
				{Value: "Pacific/Marquesas"},
				{Value: "Pacific/Midway"},
				{Value: "Pacific/Nauru"},
				{Value: "Pacific/Niue"},
				{Value: "Pacific/Norfolk"},
				{Value: "Pacific/Noumea"},
				{Value: "Pacific/Pago_Pago"},
				{Value: "Pacific/Palau"},
				{Value: "Pacific/Pitcairn"},
				{Value: "Pacific/Pohnpei"},
				{Value: "Pacific/Ponape"},
				{Value: "Pacific/Port_Moresby"},
				{Value: "Pacific/Rarotonga"},
				{Value: "Pacific/Saipan"},
				{Value: "Pacific/Samoa"},
				{Value: "Pacific/Tahiti"},
				{Value: "Pacific/Tarawa"},
				{Value: "Pacific/Tongatapu"},
				{Value: "Pacific/Truk"},
				{Value: "Pacific/Wake"},
				{Value: "Pacific/Wallis"},
				{Value: "Pacific/Yap"},
				{Value: "Poland"},
				{Value: "Portugal"},
				{Value: "ROC"},
				{Value: "ROK"},
				{Value: "Singapore"},
				{Value: "Turkey"},
				{Value: "UCT"},
				{Value: "US/Alaska"},
				{Value: "US/Aleutian"},
				{Value: "US/Arizona"},
				{Value: "US/Central"},
				{Value: "US/East-Indiana"},
				{Value: "US/Eastern"},
				{Value: "US/Hawaii"},
				{Value: "US/Indiana-Starke"},
				{Value: "US/Michigan"},
				{Value: "US/Mountain"},
				{Value: "US/Pacific"},
				{Value: "US/Pacific-New"},
				{Value: "US/Samoa"},
				{Value: "UTC"},
				{Value: "Universal"},
				{Value: "W-SU"},
				{Value: "WET"},
				{Value: "Zulu"},
			},
		},
		"report_type": {
			Type:             "string",
			ShortDescription: "The ID of the [report type](https://docs.stripe.com/reporting/statements/api#report-types) to run, such as `\"balance.summary.1\"`",
			Required:         true,
			MostCommon:       true,
		},
	},
}
View Source
var V1ReportingReportRunsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/reporting/report_runs",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type:             "integer",
			ShortDescription: "Only return Report Runs that were created during the given date interval",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1ReportingReportRunsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/reporting/report_runs/{report_run}",
	Method: "GET",
}
View Source
var V1ReportingReportTypesList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/reporting/report_types",
	Method: "GET",
}
View Source
var V1ReportingReportTypesRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/reporting/report_types/{report_type}",
	Method: "GET",
}
View Source
var V1ReviewsApprove = resource.OperationSpec{
	Name:   "approve",
	Path:   "/v1/reviews/{review}/approve",
	Method: "POST",
}
View Source
var V1ReviewsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/reviews",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type:             "integer",
			ShortDescription: "Only return reviews that were created during the given date interval",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1ReviewsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/reviews/{review}",
	Method: "GET",
}
View Source
var V1ScheduledQueryRunsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/sigma/scheduled_query_runs",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1ScheduledQueryRunsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/sigma/scheduled_query_runs/{scheduled_query_run}",
	Method: "GET",
}
View Source
var V1SetupAttemptsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/setup_attempts",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type:             "integer",
			ShortDescription: "A filter on the list, based on the object `created` field",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"setup_intent": {
			Type:             "string",
			ShortDescription: "Only return SetupAttempts created by the SetupIntent specified by\nthis ID",
			Required:         true,
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1SetupIntentsCancel = resource.OperationSpec{
	Name:   "cancel",
	Path:   "/v1/setup_intents/{intent}/cancel",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"cancellation_reason": {
			Type:             "string",
			ShortDescription: "Reason for canceling this SetupIntent",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "abandoned"},
				{Value: "duplicate"},
				{Value: "requested_by_customer"},
			},
		},
	},
}
View Source
var V1SetupIntentsConfirm = resource.OperationSpec{
	Name:   "confirm",
	Path:   "/v1/setup_intents/{intent}/confirm",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"confirmation_token": {
			Type:             "string",
			ShortDescription: "ID of the ConfirmationToken used to confirm this SetupIntent",
		},
		"mandate_data": {
			Type: "clearable_object",
		},
		"mandate_data.customer_acceptance.accepted_at": {
			Type:             "integer",
			ShortDescription: "The time at which the customer accepted the Mandate",
			Format:           "unix-time",
		},
		"mandate_data.customer_acceptance.online.ip_address": {
			Type:             "string",
			ShortDescription: "The IP address from which the Mandate was accepted by the customer",
		},
		"mandate_data.customer_acceptance.online.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the Mandate was accepted by the customer",
		},
		"mandate_data.customer_acceptance.type": {
			Type:             "string",
			ShortDescription: "The type of customer acceptance information included with the Mandate",
			Enum: []resource.EnumSpec{
				{Value: "offline"},
				{Value: "online"},
			},
		},
		"payment_method": {
			Type:             "string",
			ShortDescription: "ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this SetupIntent",
			MostCommon:       true,
		},
		"payment_method_data.acss_debit.account_number": {
			Type:             "string",
			ShortDescription: "Customer's bank account number",
		},
		"payment_method_data.acss_debit.institution_number": {
			Type:             "string",
			ShortDescription: "Institution number of the customer's bank",
		},
		"payment_method_data.acss_debit.transit_number": {
			Type:             "string",
			ShortDescription: "Transit number of the customer's bank",
		},
		"payment_method_data.allow_redisplay": {
			Type:             "string",
			ShortDescription: "This field indicates whether this payment method can be shown again to its customer in a checkout flow",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "limited"},
				{Value: "unspecified"},
			},
		},
		"payment_method_data.au_becs_debit.account_number": {
			Type:             "string",
			ShortDescription: "The account number for the bank account",
		},
		"payment_method_data.au_becs_debit.bsb_number": {
			Type:             "string",
			ShortDescription: "Bank-State-Branch number of the bank account",
		},
		"payment_method_data.bacs_debit.account_number": {
			Type:             "string",
			ShortDescription: "Account number of the bank account that the funds will be debited from",
		},
		"payment_method_data.bacs_debit.sort_code": {
			Type:             "string",
			ShortDescription: "Sort code of the bank account. (e.g., `10-20-30`)",
		},
		"payment_method_data.billing_details.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"payment_method_data.billing_details.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"payment_method_data.billing_details.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"payment_method_data.billing_details.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"payment_method_data.billing_details.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"payment_method_data.billing_details.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"payment_method_data.billing_details.email": {
			Type:             "string",
			ShortDescription: "Email address",
		},
		"payment_method_data.billing_details.name": {
			Type:             "string",
			ShortDescription: "Full name",
		},
		"payment_method_data.billing_details.phone": {
			Type:             "string",
			ShortDescription: "Billing phone number (including extension)",
		},
		"payment_method_data.billing_details.tax_id": {
			Type:             "string",
			ShortDescription: "Taxpayer identification number",
		},
		"payment_method_data.boleto.tax_id": {
			Type:             "string",
			ShortDescription: "The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)",
		},
		"payment_method_data.eps.bank": {
			Type:             "string",
			ShortDescription: "The customer's bank",
			Enum: []resource.EnumSpec{
				{Value: "arzte_und_apotheker_bank"},
				{Value: "austrian_anadi_bank_ag"},
				{Value: "bank_austria"},
				{Value: "bankhaus_carl_spangler"},
				{Value: "bankhaus_schelhammer_und_schattera_ag"},
				{Value: "bawag_psk_ag"},
				{Value: "bks_bank_ag"},
				{Value: "brull_kallmus_bank_ag"},
				{Value: "btv_vier_lander_bank"},
				{Value: "capital_bank_grawe_gruppe_ag"},
				{Value: "deutsche_bank_ag"},
				{Value: "dolomitenbank"},
				{Value: "easybank_ag"},
				{Value: "erste_bank_und_sparkassen"},
				{Value: "hypo_alpeadriabank_international_ag"},
				{Value: "hypo_bank_burgenland_aktiengesellschaft"},
				{Value: "hypo_noe_lb_fur_niederosterreich_u_wien"},
				{Value: "hypo_oberosterreich_salzburg_steiermark"},
				{Value: "hypo_tirol_bank_ag"},
				{Value: "hypo_vorarlberg_bank_ag"},
				{Value: "marchfelder_bank"},
				{Value: "oberbank_ag"},
				{Value: "raiffeisen_bankengruppe_osterreich"},
				{Value: "schoellerbank_ag"},
				{Value: "sparda_bank_wien"},
				{Value: "volksbank_gruppe"},
				{Value: "volkskreditbank_ag"},
				{Value: "vr_bank_braunau"},
			},
		},
		"payment_method_data.fpx.account_holder_type": {
			Type:             "string",
			ShortDescription: "Account holder type for FPX transaction",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"payment_method_data.fpx.bank": {
			Type:             "string",
			ShortDescription: "The customer's bank",
			Enum: []resource.EnumSpec{
				{Value: "affin_bank"},
				{Value: "agrobank"},
				{Value: "alliance_bank"},
				{Value: "ambank"},
				{Value: "bank_islam"},
				{Value: "bank_muamalat"},
				{Value: "bank_of_china"},
				{Value: "bank_rakyat"},
				{Value: "bsn"},
				{Value: "cimb"},
				{Value: "deutsche_bank"},
				{Value: "hong_leong_bank"},
				{Value: "hsbc"},
				{Value: "kfh"},
				{Value: "maybank2e"},
				{Value: "maybank2u"},
				{Value: "ocbc"},
				{Value: "pb_enterprise"},
				{Value: "public_bank"},
				{Value: "rhb"},
				{Value: "standard_chartered"},
				{Value: "uob"},
			},
		},
		"payment_method_data.ideal.bank": {
			Type:             "string",
			ShortDescription: "The customer's bank",
			Enum: []resource.EnumSpec{
				{Value: "abn_amro"},
				{Value: "adyen"},
				{Value: "asn_bank"},
				{Value: "bunq"},
				{Value: "buut"},
				{Value: "finom"},
				{Value: "handelsbanken"},
				{Value: "ing"},
				{Value: "knab"},
				{Value: "mollie"},
				{Value: "moneyou"},
				{Value: "n26"},
				{Value: "nn"},
				{Value: "rabobank"},
				{Value: "regiobank"},
				{Value: "revolut"},
				{Value: "sns_bank"},
				{Value: "triodos_bank"},
				{Value: "van_lanschot"},
				{Value: "yoursafe"},
			},
		},
		"payment_method_data.klarna.dob.day": {
			Type:             "integer",
			ShortDescription: "The day of birth, between 1 and 31",
		},
		"payment_method_data.klarna.dob.month": {
			Type:             "integer",
			ShortDescription: "The month of birth, between 1 and 12",
		},
		"payment_method_data.klarna.dob.year": {
			Type:             "integer",
			ShortDescription: "The four-digit year of birth",
		},
		"payment_method_data.naver_pay.funding": {
			Type:             "string",
			ShortDescription: "Whether to use Naver Pay points or a card to fund this transaction",
			Enum: []resource.EnumSpec{
				{Value: "card"},
				{Value: "points"},
			},
		},
		"payment_method_data.nz_bank_account.account_holder_name": {
			Type:             "string",
			ShortDescription: "The name on the bank account",
		},
		"payment_method_data.nz_bank_account.account_number": {
			Type:             "string",
			ShortDescription: "The account number for the bank account",
		},
		"payment_method_data.nz_bank_account.bank_code": {
			Type:             "string",
			ShortDescription: "The numeric code for the bank account's bank",
		},
		"payment_method_data.nz_bank_account.branch_code": {
			Type:             "string",
			ShortDescription: "The numeric code for the bank account's bank branch",
		},
		"payment_method_data.nz_bank_account.reference": {
			Type: "string",
		},
		"payment_method_data.nz_bank_account.suffix": {
			Type:             "string",
			ShortDescription: "The suffix of the bank account number",
		},
		"payment_method_data.p24.bank": {
			Type:             "string",
			ShortDescription: "The customer's bank",
			Enum: []resource.EnumSpec{
				{Value: "alior_bank"},
				{Value: "bank_millennium"},
				{Value: "bank_nowy_bfg_sa"},
				{Value: "bank_pekao_sa"},
				{Value: "banki_spbdzielcze"},
				{Value: "blik"},
				{Value: "bnp_paribas"},
				{Value: "boz"},
				{Value: "citi_handlowy"},
				{Value: "credit_agricole"},
				{Value: "envelobank"},
				{Value: "etransfer_pocztowy24"},
				{Value: "getin_bank"},
				{Value: "ideabank"},
				{Value: "ing"},
				{Value: "inteligo"},
				{Value: "mbank_mtransfer"},
				{Value: "nest_przelew"},
				{Value: "noble_pay"},
				{Value: "pbac_z_ipko"},
				{Value: "plus_bank"},
				{Value: "santander_przelew24"},
				{Value: "tmobile_usbugi_bankowe"},
				{Value: "toyota_bank"},
				{Value: "velobank"},
				{Value: "volkswagen_bank"},
			},
		},
		"payment_method_data.payto.account_number": {
			Type:             "string",
			ShortDescription: "The account number for the bank account",
		},
		"payment_method_data.payto.bsb_number": {
			Type:             "string",
			ShortDescription: "Bank-State-Branch number of the bank account",
		},
		"payment_method_data.payto.pay_id": {
			Type:             "string",
			ShortDescription: "The PayID alias for the bank account",
		},
		"payment_method_data.radar_options.session": {
			Type:             "string",
			ShortDescription: "A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments",
		},
		"payment_method_data.sepa_debit.iban": {
			Type:             "string",
			ShortDescription: "IBAN of the bank account",
		},
		"payment_method_data.sofort.country": {
			Type:             "string",
			ShortDescription: "Two-letter ISO code representing the country the bank account is located in",
			Enum: []resource.EnumSpec{
				{Value: "AT"},
				{Value: "BE"},
				{Value: "DE"},
				{Value: "ES"},
				{Value: "IT"},
				{Value: "NL"},
			},
		},
		"payment_method_data.type": {
			Type:             "string",
			ShortDescription: "The type of the PaymentMethod",
			Enum: []resource.EnumSpec{
				{Value: "acss_debit"},
				{Value: "affirm"},
				{Value: "afterpay_clearpay"},
				{Value: "alipay"},
				{Value: "alma"},
				{Value: "amazon_pay"},
				{Value: "au_becs_debit"},
				{Value: "bacs_debit"},
				{Value: "bancontact"},
				{Value: "billie"},
				{Value: "blik"},
				{Value: "boleto"},
				{Value: "cashapp"},
				{Value: "crypto"},
				{Value: "customer_balance"},
				{Value: "eps"},
				{Value: "fpx"},
				{Value: "giropay"},
				{Value: "grabpay"},
				{Value: "ideal"},
				{Value: "kakao_pay"},
				{Value: "klarna"},
				{Value: "konbini"},
				{Value: "kr_card"},
				{Value: "link"},
				{Value: "mb_way"},
				{Value: "mobilepay"},
				{Value: "multibanco"},
				{Value: "naver_pay"},
				{Value: "nz_bank_account"},
				{Value: "oxxo"},
				{Value: "p24"},
				{Value: "pay_by_bank"},
				{Value: "payco"},
				{Value: "paynow"},
				{Value: "paypal"},
				{Value: "payto"},
				{Value: "pix"},
				{Value: "promptpay"},
				{Value: "revolut_pay"},
				{Value: "samsung_pay"},
				{Value: "satispay"},
				{Value: "sepa_debit"},
				{Value: "sofort"},
				{Value: "swish"},
				{Value: "twint"},
				{Value: "upi"},
				{Value: "us_bank_account"},
				{Value: "wechat_pay"},
				{Value: "zip"},
			},
		},
		"payment_method_data.upi.mandate_options.amount": {
			Type:             "integer",
			ShortDescription: "Amount to be charged for future payments",
		},
		"payment_method_data.upi.mandate_options.amount_type": {
			Type:             "string",
			ShortDescription: "One of `fixed` or `maximum`",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_data.upi.mandate_options.description": {
			Type:             "string",
			ShortDescription: "A description of the mandate or subscription that is meant to be displayed to the customer",
		},
		"payment_method_data.upi.mandate_options.end_date": {
			Type:             "integer",
			ShortDescription: "End date of the mandate or subscription",
			Format:           "unix-time",
		},
		"payment_method_data.us_bank_account.account_holder_type": {
			Type:             "string",
			ShortDescription: "Account holder type: individual or company",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"payment_method_data.us_bank_account.account_number": {
			Type:             "string",
			ShortDescription: "Account number of the bank account",
		},
		"payment_method_data.us_bank_account.account_type": {
			Type:             "string",
			ShortDescription: "Account type: checkings or savings",
			Enum: []resource.EnumSpec{
				{Value: "checking"},
				{Value: "savings"},
			},
		},
		"payment_method_data.us_bank_account.financial_connections_account": {
			Type:             "string",
			ShortDescription: "The ID of a Financial Connections Account to use as a payment method",
		},
		"payment_method_data.us_bank_account.routing_number": {
			Type:             "string",
			ShortDescription: "Routing number of the bank account",
		},
		"payment_method_options.acss_debit.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Enum: []resource.EnumSpec{
				{Value: "cad"},
				{Value: "usd"},
			},
		},
		"payment_method_options.acss_debit.mandate_options.custom_mandate_url": {
			Type:             "string",
			ShortDescription: "A URL for custom mandate text to render during confirmation step",
		},
		"payment_method_options.acss_debit.mandate_options.default_for": {
			Type:             "array",
			ShortDescription: "List of Stripe products where this mandate can be selected automatically",
		},
		"payment_method_options.acss_debit.mandate_options.interval_description": {
			Type:             "string",
			ShortDescription: "Description of the mandate interval",
		},
		"payment_method_options.acss_debit.mandate_options.payment_schedule": {
			Type:             "string",
			ShortDescription: "Payment schedule for the mandate",
			Enum: []resource.EnumSpec{
				{Value: "combined"},
				{Value: "interval"},
				{Value: "sporadic"},
			},
		},
		"payment_method_options.acss_debit.mandate_options.transaction_type": {
			Type:             "string",
			ShortDescription: "Transaction type of the mandate",
			Enum: []resource.EnumSpec{
				{Value: "business"},
				{Value: "personal"},
			},
		},
		"payment_method_options.acss_debit.verification_method": {
			Type:             "string",
			ShortDescription: "Bank account verification method",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "instant"},
				{Value: "microdeposits"},
			},
		},
		"payment_method_options.bacs_debit.mandate_options.reference_prefix": {
			Type:             "string",
			ShortDescription: "Prefix used to generate the Mandate reference",
		},
		"payment_method_options.card.mandate_options.amount": {
			Type:             "integer",
			ShortDescription: "Amount to be charged for future payments, specified in the presentment currency",
		},
		"payment_method_options.card.mandate_options.amount_type": {
			Type:             "string",
			ShortDescription: "One of `fixed` or `maximum`",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_options.card.mandate_options.currency": {
			Type:             "string",
			ShortDescription: "Currency in which future payments will be charged",
			Format:           "currency",
		},
		"payment_method_options.card.mandate_options.description": {
			Type:             "string",
			ShortDescription: "A description of the mandate or subscription that is meant to be displayed to the customer",
		},
		"payment_method_options.card.mandate_options.end_date": {
			Type:             "integer",
			ShortDescription: "End date of the mandate or subscription",
			Format:           "unix-time",
		},
		"payment_method_options.card.mandate_options.interval": {
			Type:             "string",
			ShortDescription: "Specifies payment frequency",
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "month"},
				{Value: "sporadic"},
				{Value: "week"},
				{Value: "year"},
			},
		},
		"payment_method_options.card.mandate_options.interval_count": {
			Type:             "integer",
			ShortDescription: "The number of intervals between payments",
		},
		"payment_method_options.card.mandate_options.reference": {
			Type:             "string",
			ShortDescription: "Unique identifier for the mandate or subscription",
		},
		"payment_method_options.card.mandate_options.start_date": {
			Type:             "integer",
			ShortDescription: "Start date of the mandate or subscription",
			Format:           "unix-time",
		},
		"payment_method_options.card.mandate_options.supported_types": {
			Type:             "array",
			ShortDescription: "Specifies the type of mandates supported",
		},
		"payment_method_options.card.moto": {
			Type:             "boolean",
			ShortDescription: "When specified, this parameter signals that a card has been collected\nas MOTO (Mail Order Telephone Order) and thus out of scope for SCA",
		},
		"payment_method_options.card.network": {
			Type:             "string",
			ShortDescription: "Selected network to process this SetupIntent on",
			Enum: []resource.EnumSpec{
				{Value: "amex"},
				{Value: "cartes_bancaires"},
				{Value: "diners"},
				{Value: "discover"},
				{Value: "eftpos_au"},
				{Value: "girocard"},
				{Value: "interac"},
				{Value: "jcb"},
				{Value: "link"},
				{Value: "mastercard"},
				{Value: "unionpay"},
				{Value: "unknown"},
				{Value: "visa"},
			},
		},
		"payment_method_options.card.request_three_d_secure": {
			Type:             "string",
			ShortDescription: "We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication)",
			Enum: []resource.EnumSpec{
				{Value: "any"},
				{Value: "automatic"},
				{Value: "challenge"},
			},
		},
		"payment_method_options.card.three_d_secure.ares_trans_status": {
			Type:             "string",
			ShortDescription: "The `transStatus` returned from the card Issuer’s ACS in the ARes",
			Enum: []resource.EnumSpec{
				{Value: "A"},
				{Value: "C"},
				{Value: "I"},
				{Value: "N"},
				{Value: "R"},
				{Value: "U"},
				{Value: "Y"},
			},
		},
		"payment_method_options.card.three_d_secure.cryptogram": {
			Type:             "string",
			ShortDescription: "The cryptogram, also known as the \"authentication value\" (AAV, CAVV or\nAEVV)",
		},
		"payment_method_options.card.three_d_secure.electronic_commerce_indicator": {
			Type:             "string",
			ShortDescription: "The Electronic Commerce Indicator (ECI) is returned by your 3D Secure\nprovider and indicates what degree of authentication was performed",
			Enum: []resource.EnumSpec{
				{Value: "01"},
				{Value: "02"},
				{Value: "05"},
				{Value: "06"},
				{Value: "07"},
			},
		},
		"payment_method_options.card.three_d_secure.network_options.cartes_bancaires.cb_avalgo": {
			Type:             "string",
			ShortDescription: "The cryptogram calculation algorithm used by the card Issuer's ACS\nto calculate the Authentication cryptogram",
			Enum: []resource.EnumSpec{
				{Value: "0"},
				{Value: "1"},
				{Value: "2"},
				{Value: "3"},
				{Value: "4"},
				{Value: "A"},
			},
		},
		"payment_method_options.card.three_d_secure.network_options.cartes_bancaires.cb_exemption": {
			Type:             "string",
			ShortDescription: "The exemption indicator returned from Cartes Bancaires in the ARes.\nmessage extension: CB-EXEMPTION; string (4 characters)\nThis is a 3 byte bitmap (low significant byte first and most significant\nbit first) that has been Base64 encoded",
		},
		"payment_method_options.card.three_d_secure.network_options.cartes_bancaires.cb_score": {
			Type:             "integer",
			ShortDescription: "The risk score returned from Cartes Bancaires in the ARes.\nmessage extension: CB-SCORE; numeric value 0-99",
		},
		"payment_method_options.card.three_d_secure.requestor_challenge_indicator": {
			Type:             "string",
			ShortDescription: "The challenge indicator (`threeDSRequestorChallengeInd`) which was requested in the\nAReq sent to the card Issuer's ACS",
		},
		"payment_method_options.card.three_d_secure.transaction_id": {
			Type:             "string",
			ShortDescription: "For 3D Secure 1, the XID",
		},
		"payment_method_options.card.three_d_secure.version": {
			Type:             "string",
			ShortDescription: "The version of 3D Secure that was performed",
			Enum: []resource.EnumSpec{
				{Value: "1.0.2"},
				{Value: "2.1.0"},
				{Value: "2.2.0"},
				{Value: "2.3.0"},
				{Value: "2.3.1"},
			},
		},
		"payment_method_options.klarna.currency": {
			Type:             "string",
			ShortDescription: "The currency of the SetupIntent",
			Format:           "currency",
		},
		"payment_method_options.klarna.on_demand.average_amount": {
			Type:             "integer",
			ShortDescription: "Your average amount value",
		},
		"payment_method_options.klarna.on_demand.maximum_amount": {
			Type:             "integer",
			ShortDescription: "The maximum value you may charge a customer per purchase",
		},
		"payment_method_options.klarna.on_demand.minimum_amount": {
			Type:             "integer",
			ShortDescription: "The lowest or minimum value you may charge a customer per purchase",
		},
		"payment_method_options.klarna.on_demand.purchase_interval": {
			Type:             "string",
			ShortDescription: "Interval at which the customer is making purchases",
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "month"},
				{Value: "week"},
				{Value: "year"},
			},
		},
		"payment_method_options.klarna.on_demand.purchase_interval_count": {
			Type:             "integer",
			ShortDescription: "The number of `purchase_interval` between charges",
		},
		"payment_method_options.klarna.preferred_locale": {
			Type:             "string",
			ShortDescription: "Preferred language of the Klarna authorization page that the customer is redirected to",
			Enum: []resource.EnumSpec{
				{Value: "cs-CZ"},
				{Value: "da-DK"},
				{Value: "de-AT"},
				{Value: "de-CH"},
				{Value: "de-DE"},
				{Value: "el-GR"},
				{Value: "en-AT"},
				{Value: "en-AU"},
				{Value: "en-BE"},
				{Value: "en-CA"},
				{Value: "en-CH"},
				{Value: "en-CZ"},
				{Value: "en-DE"},
				{Value: "en-DK"},
				{Value: "en-ES"},
				{Value: "en-FI"},
				{Value: "en-FR"},
				{Value: "en-GB"},
				{Value: "en-GR"},
				{Value: "en-IE"},
				{Value: "en-IT"},
				{Value: "en-NL"},
				{Value: "en-NO"},
				{Value: "en-NZ"},
				{Value: "en-PL"},
				{Value: "en-PT"},
				{Value: "en-RO"},
				{Value: "en-SE"},
				{Value: "en-US"},
				{Value: "es-ES"},
				{Value: "es-US"},
				{Value: "fi-FI"},
				{Value: "fr-BE"},
				{Value: "fr-CA"},
				{Value: "fr-CH"},
				{Value: "fr-FR"},
				{Value: "it-CH"},
				{Value: "it-IT"},
				{Value: "nb-NO"},
				{Value: "nl-BE"},
				{Value: "nl-NL"},
				{Value: "pl-PL"},
				{Value: "pt-PT"},
				{Value: "ro-RO"},
				{Value: "sv-FI"},
				{Value: "sv-SE"},
			},
		},
		"payment_method_options.link.persistent_token": {
			Type:             "string",
			ShortDescription: "[Deprecated] This is a legacy parameter that no longer has any function",
		},
		"payment_method_options.paypal.billing_agreement_id": {
			Type:             "string",
			ShortDescription: "The PayPal Billing Agreement ID (BAID)",
		},
		"payment_method_options.payto.mandate_options.amount": {
			Type:             "integer",
			ShortDescription: "Amount that will be collected",
		},
		"payment_method_options.payto.mandate_options.amount_type": {
			Type:             "string",
			ShortDescription: "The type of amount that will be collected",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_options.payto.mandate_options.end_date": {
			Type:             "string",
			ShortDescription: "Date, in YYYY-MM-DD format, after which payments will not be collected",
		},
		"payment_method_options.payto.mandate_options.payment_schedule": {
			Type:             "string",
			ShortDescription: "The periodicity at which payments will be collected",
			Enum: []resource.EnumSpec{
				{Value: "adhoc"},
				{Value: "annual"},
				{Value: "daily"},
				{Value: "fortnightly"},
				{Value: "monthly"},
				{Value: "quarterly"},
				{Value: "semi_annual"},
				{Value: "weekly"},
			},
		},
		"payment_method_options.payto.mandate_options.payments_per_period": {
			Type:             "integer",
			ShortDescription: "The number of payments that will be made during a payment period",
		},
		"payment_method_options.payto.mandate_options.purpose": {
			Type:             "string",
			ShortDescription: "The purpose for which payments are made",
			Enum: []resource.EnumSpec{
				{Value: "dependant_support"},
				{Value: "government"},
				{Value: "loan"},
				{Value: "mortgage"},
				{Value: "other"},
				{Value: "pension"},
				{Value: "personal"},
				{Value: "retail"},
				{Value: "salary"},
				{Value: "tax"},
				{Value: "utility"},
			},
		},
		"payment_method_options.payto.mandate_options.start_date": {
			Type:             "string",
			ShortDescription: "Date, in YYYY-MM-DD format, from which payments will be collected",
		},
		"payment_method_options.sepa_debit.mandate_options.reference_prefix": {
			Type:             "string",
			ShortDescription: "Prefix used to generate the Mandate reference",
		},
		"payment_method_options.upi.mandate_options.amount": {
			Type:             "integer",
			ShortDescription: "Amount to be charged for future payments",
		},
		"payment_method_options.upi.mandate_options.amount_type": {
			Type:             "string",
			ShortDescription: "One of `fixed` or `maximum`",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_options.upi.mandate_options.description": {
			Type:             "string",
			ShortDescription: "A description of the mandate or subscription that is meant to be displayed to the customer",
		},
		"payment_method_options.upi.mandate_options.end_date": {
			Type:             "integer",
			ShortDescription: "End date of the mandate or subscription",
			Format:           "unix-time",
		},
		"payment_method_options.upi.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.us_bank_account.financial_connections.filters.account_subcategories": {
			Type:             "array",
			ShortDescription: "The account subcategories to use to filter for selectable accounts",
		},
		"payment_method_options.us_bank_account.financial_connections.permissions": {
			Type:             "array",
			ShortDescription: "The list of permissions to request",
		},
		"payment_method_options.us_bank_account.financial_connections.prefetch": {
			Type:             "array",
			ShortDescription: "List of data features that you would like to retrieve upon account creation",
		},
		"payment_method_options.us_bank_account.financial_connections.return_url": {
			Type:             "string",
			ShortDescription: "For webview integrations only",
		},
		"payment_method_options.us_bank_account.mandate_options.collection_method": {
			Type:             "string",
			ShortDescription: "The method used to collect offline mandate customer acceptance",
			Enum: []resource.EnumSpec{
				{Value: "paper"},
			},
		},
		"payment_method_options.us_bank_account.networks.requested": {
			Type:             "array",
			ShortDescription: "Triggers validations to run across the selected networks",
		},
		"payment_method_options.us_bank_account.verification_method": {
			Type:             "string",
			ShortDescription: "Bank account verification method",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "instant"},
				{Value: "microdeposits"},
			},
		},
		"return_url": {
			Type:             "string",
			ShortDescription: "The URL to redirect your customer back to after they authenticate on the payment method's app or site",
		},
		"use_stripe_sdk": {
			Type:             "boolean",
			ShortDescription: "Set to `true` when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions",
		},
	},
}
View Source
var V1SetupIntentsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/setup_intents",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"attach_to_self": {
			Type:             "boolean",
			ShortDescription: "If present, the SetupIntent's payment method will be attached to the in-context Stripe Account",
		},
		"automatic_payment_methods.allow_redirects": {
			Type:             "string",
			ShortDescription: "Controls whether this SetupIntent will accept redirect-based payment methods",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "never"},
			},
		},
		"automatic_payment_methods.enabled": {
			Type:             "boolean",
			ShortDescription: "Whether this feature is enabled",
			MostCommon:       true,
		},
		"confirm": {
			Type:             "boolean",
			ShortDescription: "Set to `true` to attempt to confirm this SetupIntent immediately",
			MostCommon:       true,
		},
		"confirmation_token": {
			Type:             "string",
			ShortDescription: "ID of the ConfirmationToken used to confirm this SetupIntent",
		},
		"customer": {
			Type:             "string",
			ShortDescription: "ID of the Customer this SetupIntent belongs to, if one exists",
			MostCommon:       true,
		},
		"customer_account": {
			Type:             "string",
			ShortDescription: "ID of the Account this SetupIntent belongs to, if one exists",
			MostCommon:       true,
		},
		"description": {
			Type:             "string",
			ShortDescription: "An arbitrary string attached to the object",
			MostCommon:       true,
		},
		"excluded_payment_method_types": {
			Type:             "array",
			ShortDescription: "The list of payment method types to exclude from use with this SetupIntent",
		},
		"flow_directions": {
			Type:             "array",
			ShortDescription: "Indicates the directions of money movement for which this payment method is intended to be used",
		},
		"mandate_data": {
			Type: "clearable_object",
		},
		"mandate_data.customer_acceptance.accepted_at": {
			Type:             "integer",
			ShortDescription: "The time at which the customer accepted the Mandate",
			Format:           "unix-time",
		},
		"mandate_data.customer_acceptance.online.ip_address": {
			Type:             "string",
			ShortDescription: "The IP address from which the Mandate was accepted by the customer",
		},
		"mandate_data.customer_acceptance.online.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the Mandate was accepted by the customer",
		},
		"mandate_data.customer_acceptance.type": {
			Type:             "string",
			ShortDescription: "The type of customer acceptance information included with the Mandate",
			Enum: []resource.EnumSpec{
				{Value: "offline"},
				{Value: "online"},
			},
		},
		"on_behalf_of": {
			Type:             "string",
			ShortDescription: "The Stripe account ID created for this SetupIntent",
		},
		"payment_method": {
			Type:             "string",
			ShortDescription: "ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this SetupIntent",
			MostCommon:       true,
		},
		"payment_method_configuration": {
			Type:             "string",
			ShortDescription: "The ID of the [payment method configuration](https://docs.stripe.com/api/payment_method_configurations) to use with this SetupIntent",
		},
		"payment_method_data.acss_debit.account_number": {
			Type:             "string",
			ShortDescription: "Customer's bank account number",
		},
		"payment_method_data.acss_debit.institution_number": {
			Type:             "string",
			ShortDescription: "Institution number of the customer's bank",
		},
		"payment_method_data.acss_debit.transit_number": {
			Type:             "string",
			ShortDescription: "Transit number of the customer's bank",
		},
		"payment_method_data.allow_redisplay": {
			Type:             "string",
			ShortDescription: "This field indicates whether this payment method can be shown again to its customer in a checkout flow",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "limited"},
				{Value: "unspecified"},
			},
		},
		"payment_method_data.au_becs_debit.account_number": {
			Type:             "string",
			ShortDescription: "The account number for the bank account",
		},
		"payment_method_data.au_becs_debit.bsb_number": {
			Type:             "string",
			ShortDescription: "Bank-State-Branch number of the bank account",
		},
		"payment_method_data.bacs_debit.account_number": {
			Type:             "string",
			ShortDescription: "Account number of the bank account that the funds will be debited from",
		},
		"payment_method_data.bacs_debit.sort_code": {
			Type:             "string",
			ShortDescription: "Sort code of the bank account. (e.g., `10-20-30`)",
		},
		"payment_method_data.billing_details.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"payment_method_data.billing_details.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"payment_method_data.billing_details.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"payment_method_data.billing_details.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"payment_method_data.billing_details.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"payment_method_data.billing_details.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"payment_method_data.billing_details.email": {
			Type:             "string",
			ShortDescription: "Email address",
		},
		"payment_method_data.billing_details.name": {
			Type:             "string",
			ShortDescription: "Full name",
		},
		"payment_method_data.billing_details.phone": {
			Type:             "string",
			ShortDescription: "Billing phone number (including extension)",
		},
		"payment_method_data.billing_details.tax_id": {
			Type:             "string",
			ShortDescription: "Taxpayer identification number",
		},
		"payment_method_data.boleto.tax_id": {
			Type:             "string",
			ShortDescription: "The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)",
		},
		"payment_method_data.eps.bank": {
			Type:             "string",
			ShortDescription: "The customer's bank",
			Enum: []resource.EnumSpec{
				{Value: "arzte_und_apotheker_bank"},
				{Value: "austrian_anadi_bank_ag"},
				{Value: "bank_austria"},
				{Value: "bankhaus_carl_spangler"},
				{Value: "bankhaus_schelhammer_und_schattera_ag"},
				{Value: "bawag_psk_ag"},
				{Value: "bks_bank_ag"},
				{Value: "brull_kallmus_bank_ag"},
				{Value: "btv_vier_lander_bank"},
				{Value: "capital_bank_grawe_gruppe_ag"},
				{Value: "deutsche_bank_ag"},
				{Value: "dolomitenbank"},
				{Value: "easybank_ag"},
				{Value: "erste_bank_und_sparkassen"},
				{Value: "hypo_alpeadriabank_international_ag"},
				{Value: "hypo_bank_burgenland_aktiengesellschaft"},
				{Value: "hypo_noe_lb_fur_niederosterreich_u_wien"},
				{Value: "hypo_oberosterreich_salzburg_steiermark"},
				{Value: "hypo_tirol_bank_ag"},
				{Value: "hypo_vorarlberg_bank_ag"},
				{Value: "marchfelder_bank"},
				{Value: "oberbank_ag"},
				{Value: "raiffeisen_bankengruppe_osterreich"},
				{Value: "schoellerbank_ag"},
				{Value: "sparda_bank_wien"},
				{Value: "volksbank_gruppe"},
				{Value: "volkskreditbank_ag"},
				{Value: "vr_bank_braunau"},
			},
		},
		"payment_method_data.fpx.account_holder_type": {
			Type:             "string",
			ShortDescription: "Account holder type for FPX transaction",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"payment_method_data.fpx.bank": {
			Type:             "string",
			ShortDescription: "The customer's bank",
			Enum: []resource.EnumSpec{
				{Value: "affin_bank"},
				{Value: "agrobank"},
				{Value: "alliance_bank"},
				{Value: "ambank"},
				{Value: "bank_islam"},
				{Value: "bank_muamalat"},
				{Value: "bank_of_china"},
				{Value: "bank_rakyat"},
				{Value: "bsn"},
				{Value: "cimb"},
				{Value: "deutsche_bank"},
				{Value: "hong_leong_bank"},
				{Value: "hsbc"},
				{Value: "kfh"},
				{Value: "maybank2e"},
				{Value: "maybank2u"},
				{Value: "ocbc"},
				{Value: "pb_enterprise"},
				{Value: "public_bank"},
				{Value: "rhb"},
				{Value: "standard_chartered"},
				{Value: "uob"},
			},
		},
		"payment_method_data.ideal.bank": {
			Type:             "string",
			ShortDescription: "The customer's bank",
			Enum: []resource.EnumSpec{
				{Value: "abn_amro"},
				{Value: "adyen"},
				{Value: "asn_bank"},
				{Value: "bunq"},
				{Value: "buut"},
				{Value: "finom"},
				{Value: "handelsbanken"},
				{Value: "ing"},
				{Value: "knab"},
				{Value: "mollie"},
				{Value: "moneyou"},
				{Value: "n26"},
				{Value: "nn"},
				{Value: "rabobank"},
				{Value: "regiobank"},
				{Value: "revolut"},
				{Value: "sns_bank"},
				{Value: "triodos_bank"},
				{Value: "van_lanschot"},
				{Value: "yoursafe"},
			},
		},
		"payment_method_data.klarna.dob.day": {
			Type:             "integer",
			ShortDescription: "The day of birth, between 1 and 31",
		},
		"payment_method_data.klarna.dob.month": {
			Type:             "integer",
			ShortDescription: "The month of birth, between 1 and 12",
		},
		"payment_method_data.klarna.dob.year": {
			Type:             "integer",
			ShortDescription: "The four-digit year of birth",
		},
		"payment_method_data.naver_pay.funding": {
			Type:             "string",
			ShortDescription: "Whether to use Naver Pay points or a card to fund this transaction",
			Enum: []resource.EnumSpec{
				{Value: "card"},
				{Value: "points"},
			},
		},
		"payment_method_data.nz_bank_account.account_holder_name": {
			Type:             "string",
			ShortDescription: "The name on the bank account",
		},
		"payment_method_data.nz_bank_account.account_number": {
			Type:             "string",
			ShortDescription: "The account number for the bank account",
		},
		"payment_method_data.nz_bank_account.bank_code": {
			Type:             "string",
			ShortDescription: "The numeric code for the bank account's bank",
		},
		"payment_method_data.nz_bank_account.branch_code": {
			Type:             "string",
			ShortDescription: "The numeric code for the bank account's bank branch",
		},
		"payment_method_data.nz_bank_account.reference": {
			Type: "string",
		},
		"payment_method_data.nz_bank_account.suffix": {
			Type:             "string",
			ShortDescription: "The suffix of the bank account number",
		},
		"payment_method_data.p24.bank": {
			Type:             "string",
			ShortDescription: "The customer's bank",
			Enum: []resource.EnumSpec{
				{Value: "alior_bank"},
				{Value: "bank_millennium"},
				{Value: "bank_nowy_bfg_sa"},
				{Value: "bank_pekao_sa"},
				{Value: "banki_spbdzielcze"},
				{Value: "blik"},
				{Value: "bnp_paribas"},
				{Value: "boz"},
				{Value: "citi_handlowy"},
				{Value: "credit_agricole"},
				{Value: "envelobank"},
				{Value: "etransfer_pocztowy24"},
				{Value: "getin_bank"},
				{Value: "ideabank"},
				{Value: "ing"},
				{Value: "inteligo"},
				{Value: "mbank_mtransfer"},
				{Value: "nest_przelew"},
				{Value: "noble_pay"},
				{Value: "pbac_z_ipko"},
				{Value: "plus_bank"},
				{Value: "santander_przelew24"},
				{Value: "tmobile_usbugi_bankowe"},
				{Value: "toyota_bank"},
				{Value: "velobank"},
				{Value: "volkswagen_bank"},
			},
		},
		"payment_method_data.payto.account_number": {
			Type:             "string",
			ShortDescription: "The account number for the bank account",
		},
		"payment_method_data.payto.bsb_number": {
			Type:             "string",
			ShortDescription: "Bank-State-Branch number of the bank account",
		},
		"payment_method_data.payto.pay_id": {
			Type:             "string",
			ShortDescription: "The PayID alias for the bank account",
		},
		"payment_method_data.radar_options.session": {
			Type:             "string",
			ShortDescription: "A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments",
		},
		"payment_method_data.sepa_debit.iban": {
			Type:             "string",
			ShortDescription: "IBAN of the bank account",
		},
		"payment_method_data.sofort.country": {
			Type:             "string",
			ShortDescription: "Two-letter ISO code representing the country the bank account is located in",
			Enum: []resource.EnumSpec{
				{Value: "AT"},
				{Value: "BE"},
				{Value: "DE"},
				{Value: "ES"},
				{Value: "IT"},
				{Value: "NL"},
			},
		},
		"payment_method_data.type": {
			Type:             "string",
			ShortDescription: "The type of the PaymentMethod",
			Enum: []resource.EnumSpec{
				{Value: "acss_debit"},
				{Value: "affirm"},
				{Value: "afterpay_clearpay"},
				{Value: "alipay"},
				{Value: "alma"},
				{Value: "amazon_pay"},
				{Value: "au_becs_debit"},
				{Value: "bacs_debit"},
				{Value: "bancontact"},
				{Value: "billie"},
				{Value: "blik"},
				{Value: "boleto"},
				{Value: "cashapp"},
				{Value: "crypto"},
				{Value: "customer_balance"},
				{Value: "eps"},
				{Value: "fpx"},
				{Value: "giropay"},
				{Value: "grabpay"},
				{Value: "ideal"},
				{Value: "kakao_pay"},
				{Value: "klarna"},
				{Value: "konbini"},
				{Value: "kr_card"},
				{Value: "link"},
				{Value: "mb_way"},
				{Value: "mobilepay"},
				{Value: "multibanco"},
				{Value: "naver_pay"},
				{Value: "nz_bank_account"},
				{Value: "oxxo"},
				{Value: "p24"},
				{Value: "pay_by_bank"},
				{Value: "payco"},
				{Value: "paynow"},
				{Value: "paypal"},
				{Value: "payto"},
				{Value: "pix"},
				{Value: "promptpay"},
				{Value: "revolut_pay"},
				{Value: "samsung_pay"},
				{Value: "satispay"},
				{Value: "sepa_debit"},
				{Value: "sofort"},
				{Value: "swish"},
				{Value: "twint"},
				{Value: "upi"},
				{Value: "us_bank_account"},
				{Value: "wechat_pay"},
				{Value: "zip"},
			},
		},
		"payment_method_data.upi.mandate_options.amount": {
			Type:             "integer",
			ShortDescription: "Amount to be charged for future payments",
		},
		"payment_method_data.upi.mandate_options.amount_type": {
			Type:             "string",
			ShortDescription: "One of `fixed` or `maximum`",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_data.upi.mandate_options.description": {
			Type:             "string",
			ShortDescription: "A description of the mandate or subscription that is meant to be displayed to the customer",
		},
		"payment_method_data.upi.mandate_options.end_date": {
			Type:             "integer",
			ShortDescription: "End date of the mandate or subscription",
			Format:           "unix-time",
		},
		"payment_method_data.us_bank_account.account_holder_type": {
			Type:             "string",
			ShortDescription: "Account holder type: individual or company",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"payment_method_data.us_bank_account.account_number": {
			Type:             "string",
			ShortDescription: "Account number of the bank account",
		},
		"payment_method_data.us_bank_account.account_type": {
			Type:             "string",
			ShortDescription: "Account type: checkings or savings",
			Enum: []resource.EnumSpec{
				{Value: "checking"},
				{Value: "savings"},
			},
		},
		"payment_method_data.us_bank_account.financial_connections_account": {
			Type:             "string",
			ShortDescription: "The ID of a Financial Connections Account to use as a payment method",
		},
		"payment_method_data.us_bank_account.routing_number": {
			Type:             "string",
			ShortDescription: "Routing number of the bank account",
		},
		"payment_method_options.acss_debit.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Enum: []resource.EnumSpec{
				{Value: "cad"},
				{Value: "usd"},
			},
		},
		"payment_method_options.acss_debit.mandate_options.custom_mandate_url": {
			Type:             "string",
			ShortDescription: "A URL for custom mandate text to render during confirmation step",
		},
		"payment_method_options.acss_debit.mandate_options.default_for": {
			Type:             "array",
			ShortDescription: "List of Stripe products where this mandate can be selected automatically",
		},
		"payment_method_options.acss_debit.mandate_options.interval_description": {
			Type:             "string",
			ShortDescription: "Description of the mandate interval",
		},
		"payment_method_options.acss_debit.mandate_options.payment_schedule": {
			Type:             "string",
			ShortDescription: "Payment schedule for the mandate",
			Enum: []resource.EnumSpec{
				{Value: "combined"},
				{Value: "interval"},
				{Value: "sporadic"},
			},
		},
		"payment_method_options.acss_debit.mandate_options.transaction_type": {
			Type:             "string",
			ShortDescription: "Transaction type of the mandate",
			Enum: []resource.EnumSpec{
				{Value: "business"},
				{Value: "personal"},
			},
		},
		"payment_method_options.acss_debit.verification_method": {
			Type:             "string",
			ShortDescription: "Bank account verification method",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "instant"},
				{Value: "microdeposits"},
			},
		},
		"payment_method_options.bacs_debit.mandate_options.reference_prefix": {
			Type:             "string",
			ShortDescription: "Prefix used to generate the Mandate reference",
		},
		"payment_method_options.card.mandate_options.amount": {
			Type:             "integer",
			ShortDescription: "Amount to be charged for future payments, specified in the presentment currency",
		},
		"payment_method_options.card.mandate_options.amount_type": {
			Type:             "string",
			ShortDescription: "One of `fixed` or `maximum`",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_options.card.mandate_options.currency": {
			Type:             "string",
			ShortDescription: "Currency in which future payments will be charged",
			Format:           "currency",
		},
		"payment_method_options.card.mandate_options.description": {
			Type:             "string",
			ShortDescription: "A description of the mandate or subscription that is meant to be displayed to the customer",
		},
		"payment_method_options.card.mandate_options.end_date": {
			Type:             "integer",
			ShortDescription: "End date of the mandate or subscription",
			Format:           "unix-time",
		},
		"payment_method_options.card.mandate_options.interval": {
			Type:             "string",
			ShortDescription: "Specifies payment frequency",
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "month"},
				{Value: "sporadic"},
				{Value: "week"},
				{Value: "year"},
			},
		},
		"payment_method_options.card.mandate_options.interval_count": {
			Type:             "integer",
			ShortDescription: "The number of intervals between payments",
		},
		"payment_method_options.card.mandate_options.reference": {
			Type:             "string",
			ShortDescription: "Unique identifier for the mandate or subscription",
		},
		"payment_method_options.card.mandate_options.start_date": {
			Type:             "integer",
			ShortDescription: "Start date of the mandate or subscription",
			Format:           "unix-time",
		},
		"payment_method_options.card.mandate_options.supported_types": {
			Type:             "array",
			ShortDescription: "Specifies the type of mandates supported",
		},
		"payment_method_options.card.moto": {
			Type:             "boolean",
			ShortDescription: "When specified, this parameter signals that a card has been collected\nas MOTO (Mail Order Telephone Order) and thus out of scope for SCA",
		},
		"payment_method_options.card.network": {
			Type:             "string",
			ShortDescription: "Selected network to process this SetupIntent on",
			Enum: []resource.EnumSpec{
				{Value: "amex"},
				{Value: "cartes_bancaires"},
				{Value: "diners"},
				{Value: "discover"},
				{Value: "eftpos_au"},
				{Value: "girocard"},
				{Value: "interac"},
				{Value: "jcb"},
				{Value: "link"},
				{Value: "mastercard"},
				{Value: "unionpay"},
				{Value: "unknown"},
				{Value: "visa"},
			},
		},
		"payment_method_options.card.request_three_d_secure": {
			Type:             "string",
			ShortDescription: "We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication)",
			Enum: []resource.EnumSpec{
				{Value: "any"},
				{Value: "automatic"},
				{Value: "challenge"},
			},
		},
		"payment_method_options.card.three_d_secure.ares_trans_status": {
			Type:             "string",
			ShortDescription: "The `transStatus` returned from the card Issuer’s ACS in the ARes",
			Enum: []resource.EnumSpec{
				{Value: "A"},
				{Value: "C"},
				{Value: "I"},
				{Value: "N"},
				{Value: "R"},
				{Value: "U"},
				{Value: "Y"},
			},
		},
		"payment_method_options.card.three_d_secure.cryptogram": {
			Type:             "string",
			ShortDescription: "The cryptogram, also known as the \"authentication value\" (AAV, CAVV or\nAEVV)",
		},
		"payment_method_options.card.three_d_secure.electronic_commerce_indicator": {
			Type:             "string",
			ShortDescription: "The Electronic Commerce Indicator (ECI) is returned by your 3D Secure\nprovider and indicates what degree of authentication was performed",
			Enum: []resource.EnumSpec{
				{Value: "01"},
				{Value: "02"},
				{Value: "05"},
				{Value: "06"},
				{Value: "07"},
			},
		},
		"payment_method_options.card.three_d_secure.network_options.cartes_bancaires.cb_avalgo": {
			Type:             "string",
			ShortDescription: "The cryptogram calculation algorithm used by the card Issuer's ACS\nto calculate the Authentication cryptogram",
			Enum: []resource.EnumSpec{
				{Value: "0"},
				{Value: "1"},
				{Value: "2"},
				{Value: "3"},
				{Value: "4"},
				{Value: "A"},
			},
		},
		"payment_method_options.card.three_d_secure.network_options.cartes_bancaires.cb_exemption": {
			Type:             "string",
			ShortDescription: "The exemption indicator returned from Cartes Bancaires in the ARes.\nmessage extension: CB-EXEMPTION; string (4 characters)\nThis is a 3 byte bitmap (low significant byte first and most significant\nbit first) that has been Base64 encoded",
		},
		"payment_method_options.card.three_d_secure.network_options.cartes_bancaires.cb_score": {
			Type:             "integer",
			ShortDescription: "The risk score returned from Cartes Bancaires in the ARes.\nmessage extension: CB-SCORE; numeric value 0-99",
		},
		"payment_method_options.card.three_d_secure.requestor_challenge_indicator": {
			Type:             "string",
			ShortDescription: "The challenge indicator (`threeDSRequestorChallengeInd`) which was requested in the\nAReq sent to the card Issuer's ACS",
		},
		"payment_method_options.card.three_d_secure.transaction_id": {
			Type:             "string",
			ShortDescription: "For 3D Secure 1, the XID",
		},
		"payment_method_options.card.three_d_secure.version": {
			Type:             "string",
			ShortDescription: "The version of 3D Secure that was performed",
			Enum: []resource.EnumSpec{
				{Value: "1.0.2"},
				{Value: "2.1.0"},
				{Value: "2.2.0"},
				{Value: "2.3.0"},
				{Value: "2.3.1"},
			},
		},
		"payment_method_options.klarna.currency": {
			Type:             "string",
			ShortDescription: "The currency of the SetupIntent",
			Format:           "currency",
		},
		"payment_method_options.klarna.on_demand.average_amount": {
			Type:             "integer",
			ShortDescription: "Your average amount value",
		},
		"payment_method_options.klarna.on_demand.maximum_amount": {
			Type:             "integer",
			ShortDescription: "The maximum value you may charge a customer per purchase",
		},
		"payment_method_options.klarna.on_demand.minimum_amount": {
			Type:             "integer",
			ShortDescription: "The lowest or minimum value you may charge a customer per purchase",
		},
		"payment_method_options.klarna.on_demand.purchase_interval": {
			Type:             "string",
			ShortDescription: "Interval at which the customer is making purchases",
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "month"},
				{Value: "week"},
				{Value: "year"},
			},
		},
		"payment_method_options.klarna.on_demand.purchase_interval_count": {
			Type:             "integer",
			ShortDescription: "The number of `purchase_interval` between charges",
		},
		"payment_method_options.klarna.preferred_locale": {
			Type:             "string",
			ShortDescription: "Preferred language of the Klarna authorization page that the customer is redirected to",
			Enum: []resource.EnumSpec{
				{Value: "cs-CZ"},
				{Value: "da-DK"},
				{Value: "de-AT"},
				{Value: "de-CH"},
				{Value: "de-DE"},
				{Value: "el-GR"},
				{Value: "en-AT"},
				{Value: "en-AU"},
				{Value: "en-BE"},
				{Value: "en-CA"},
				{Value: "en-CH"},
				{Value: "en-CZ"},
				{Value: "en-DE"},
				{Value: "en-DK"},
				{Value: "en-ES"},
				{Value: "en-FI"},
				{Value: "en-FR"},
				{Value: "en-GB"},
				{Value: "en-GR"},
				{Value: "en-IE"},
				{Value: "en-IT"},
				{Value: "en-NL"},
				{Value: "en-NO"},
				{Value: "en-NZ"},
				{Value: "en-PL"},
				{Value: "en-PT"},
				{Value: "en-RO"},
				{Value: "en-SE"},
				{Value: "en-US"},
				{Value: "es-ES"},
				{Value: "es-US"},
				{Value: "fi-FI"},
				{Value: "fr-BE"},
				{Value: "fr-CA"},
				{Value: "fr-CH"},
				{Value: "fr-FR"},
				{Value: "it-CH"},
				{Value: "it-IT"},
				{Value: "nb-NO"},
				{Value: "nl-BE"},
				{Value: "nl-NL"},
				{Value: "pl-PL"},
				{Value: "pt-PT"},
				{Value: "ro-RO"},
				{Value: "sv-FI"},
				{Value: "sv-SE"},
			},
		},
		"payment_method_options.link.persistent_token": {
			Type:             "string",
			ShortDescription: "[Deprecated] This is a legacy parameter that no longer has any function",
		},
		"payment_method_options.paypal.billing_agreement_id": {
			Type:             "string",
			ShortDescription: "The PayPal Billing Agreement ID (BAID)",
		},
		"payment_method_options.payto.mandate_options.amount": {
			Type:             "integer",
			ShortDescription: "Amount that will be collected",
		},
		"payment_method_options.payto.mandate_options.amount_type": {
			Type:             "string",
			ShortDescription: "The type of amount that will be collected",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_options.payto.mandate_options.end_date": {
			Type:             "string",
			ShortDescription: "Date, in YYYY-MM-DD format, after which payments will not be collected",
		},
		"payment_method_options.payto.mandate_options.payment_schedule": {
			Type:             "string",
			ShortDescription: "The periodicity at which payments will be collected",
			Enum: []resource.EnumSpec{
				{Value: "adhoc"},
				{Value: "annual"},
				{Value: "daily"},
				{Value: "fortnightly"},
				{Value: "monthly"},
				{Value: "quarterly"},
				{Value: "semi_annual"},
				{Value: "weekly"},
			},
		},
		"payment_method_options.payto.mandate_options.payments_per_period": {
			Type:             "integer",
			ShortDescription: "The number of payments that will be made during a payment period",
		},
		"payment_method_options.payto.mandate_options.purpose": {
			Type:             "string",
			ShortDescription: "The purpose for which payments are made",
			Enum: []resource.EnumSpec{
				{Value: "dependant_support"},
				{Value: "government"},
				{Value: "loan"},
				{Value: "mortgage"},
				{Value: "other"},
				{Value: "pension"},
				{Value: "personal"},
				{Value: "retail"},
				{Value: "salary"},
				{Value: "tax"},
				{Value: "utility"},
			},
		},
		"payment_method_options.payto.mandate_options.start_date": {
			Type:             "string",
			ShortDescription: "Date, in YYYY-MM-DD format, from which payments will be collected",
		},
		"payment_method_options.sepa_debit.mandate_options.reference_prefix": {
			Type:             "string",
			ShortDescription: "Prefix used to generate the Mandate reference",
		},
		"payment_method_options.upi.mandate_options.amount": {
			Type:             "integer",
			ShortDescription: "Amount to be charged for future payments",
		},
		"payment_method_options.upi.mandate_options.amount_type": {
			Type:             "string",
			ShortDescription: "One of `fixed` or `maximum`",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_options.upi.mandate_options.description": {
			Type:             "string",
			ShortDescription: "A description of the mandate or subscription that is meant to be displayed to the customer",
		},
		"payment_method_options.upi.mandate_options.end_date": {
			Type:             "integer",
			ShortDescription: "End date of the mandate or subscription",
			Format:           "unix-time",
		},
		"payment_method_options.upi.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.us_bank_account.financial_connections.filters.account_subcategories": {
			Type:             "array",
			ShortDescription: "The account subcategories to use to filter for selectable accounts",
		},
		"payment_method_options.us_bank_account.financial_connections.permissions": {
			Type:             "array",
			ShortDescription: "The list of permissions to request",
		},
		"payment_method_options.us_bank_account.financial_connections.prefetch": {
			Type:             "array",
			ShortDescription: "List of data features that you would like to retrieve upon account creation",
		},
		"payment_method_options.us_bank_account.financial_connections.return_url": {
			Type:             "string",
			ShortDescription: "For webview integrations only",
		},
		"payment_method_options.us_bank_account.mandate_options.collection_method": {
			Type:             "string",
			ShortDescription: "The method used to collect offline mandate customer acceptance",
			Enum: []resource.EnumSpec{
				{Value: "paper"},
			},
		},
		"payment_method_options.us_bank_account.networks.requested": {
			Type:             "array",
			ShortDescription: "Triggers validations to run across the selected networks",
		},
		"payment_method_options.us_bank_account.verification_method": {
			Type:             "string",
			ShortDescription: "Bank account verification method",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "instant"},
				{Value: "microdeposits"},
			},
		},
		"payment_method_types": {
			Type:             "array",
			ShortDescription: "The list of payment method types (for example, card) that this SetupIntent can use",
		},
		"return_url": {
			Type:             "string",
			ShortDescription: "The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site",
		},
		"single_use.amount": {
			Type:             "integer",
			ShortDescription: "Amount the customer is granting permission to collect later",
		},
		"single_use.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Format:           "currency",
		},
		"usage": {
			Type:             "string",
			ShortDescription: "Indicates how the payment method is intended to be used in the future",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"use_stripe_sdk": {
			Type:             "boolean",
			ShortDescription: "Set to `true` when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions",
		},
	},
}
View Source
var V1SetupIntentsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/setup_intents",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"attach_to_self": {
			Type:             "boolean",
			ShortDescription: "If present, the SetupIntent's payment method will be attached to the in-context Stripe Account",
		},
		"created": {
			Type:             "integer",
			ShortDescription: "A filter on the list, based on the object `created` field",
		},
		"customer": {
			Type:             "string",
			ShortDescription: "Only return SetupIntents for the customer specified by this customer ID",
		},
		"customer_account": {
			Type:             "string",
			ShortDescription: "Only return SetupIntents for the account specified by this customer ID",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"payment_method": {
			Type:             "string",
			ShortDescription: "Only return SetupIntents that associate with the specified payment method",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1SetupIntentsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/setup_intents/{intent}",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"client_secret": {
			Type:             "string",
			ShortDescription: "The client secret of the SetupIntent",
		},
	},
}
View Source
var V1SetupIntentsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/setup_intents/{intent}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"attach_to_self": {
			Type:             "boolean",
			ShortDescription: "If present, the SetupIntent's payment method will be attached to the in-context Stripe Account",
		},
		"customer": {
			Type:             "string",
			ShortDescription: "ID of the Customer this SetupIntent belongs to, if one exists",
			MostCommon:       true,
		},
		"customer_account": {
			Type:             "string",
			ShortDescription: "ID of the Account this SetupIntent belongs to, if one exists",
			MostCommon:       true,
		},
		"description": {
			Type:             "string",
			ShortDescription: "An arbitrary string attached to the object",
			MostCommon:       true,
		},
		"excluded_payment_method_types": {
			Type:             "array",
			ShortDescription: "The list of payment method types to exclude from use with this SetupIntent",
		},
		"flow_directions": {
			Type:             "array",
			ShortDescription: "Indicates the directions of money movement for which this payment method is intended to be used",
		},
		"payment_method": {
			Type:             "string",
			ShortDescription: "ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this SetupIntent",
			MostCommon:       true,
		},
		"payment_method_configuration": {
			Type:             "string",
			ShortDescription: "The ID of the [payment method configuration](https://docs.stripe.com/api/payment_method_configurations) to use with this SetupIntent",
		},
		"payment_method_data.acss_debit.account_number": {
			Type:             "string",
			ShortDescription: "Customer's bank account number",
		},
		"payment_method_data.acss_debit.institution_number": {
			Type:             "string",
			ShortDescription: "Institution number of the customer's bank",
		},
		"payment_method_data.acss_debit.transit_number": {
			Type:             "string",
			ShortDescription: "Transit number of the customer's bank",
		},
		"payment_method_data.allow_redisplay": {
			Type:             "string",
			ShortDescription: "This field indicates whether this payment method can be shown again to its customer in a checkout flow",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "limited"},
				{Value: "unspecified"},
			},
		},
		"payment_method_data.au_becs_debit.account_number": {
			Type:             "string",
			ShortDescription: "The account number for the bank account",
		},
		"payment_method_data.au_becs_debit.bsb_number": {
			Type:             "string",
			ShortDescription: "Bank-State-Branch number of the bank account",
		},
		"payment_method_data.bacs_debit.account_number": {
			Type:             "string",
			ShortDescription: "Account number of the bank account that the funds will be debited from",
		},
		"payment_method_data.bacs_debit.sort_code": {
			Type:             "string",
			ShortDescription: "Sort code of the bank account. (e.g., `10-20-30`)",
		},
		"payment_method_data.billing_details.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"payment_method_data.billing_details.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"payment_method_data.billing_details.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"payment_method_data.billing_details.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"payment_method_data.billing_details.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"payment_method_data.billing_details.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"payment_method_data.billing_details.email": {
			Type:             "string",
			ShortDescription: "Email address",
		},
		"payment_method_data.billing_details.name": {
			Type:             "string",
			ShortDescription: "Full name",
		},
		"payment_method_data.billing_details.phone": {
			Type:             "string",
			ShortDescription: "Billing phone number (including extension)",
		},
		"payment_method_data.billing_details.tax_id": {
			Type:             "string",
			ShortDescription: "Taxpayer identification number",
		},
		"payment_method_data.boleto.tax_id": {
			Type:             "string",
			ShortDescription: "The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)",
		},
		"payment_method_data.eps.bank": {
			Type:             "string",
			ShortDescription: "The customer's bank",
			Enum: []resource.EnumSpec{
				{Value: "arzte_und_apotheker_bank"},
				{Value: "austrian_anadi_bank_ag"},
				{Value: "bank_austria"},
				{Value: "bankhaus_carl_spangler"},
				{Value: "bankhaus_schelhammer_und_schattera_ag"},
				{Value: "bawag_psk_ag"},
				{Value: "bks_bank_ag"},
				{Value: "brull_kallmus_bank_ag"},
				{Value: "btv_vier_lander_bank"},
				{Value: "capital_bank_grawe_gruppe_ag"},
				{Value: "deutsche_bank_ag"},
				{Value: "dolomitenbank"},
				{Value: "easybank_ag"},
				{Value: "erste_bank_und_sparkassen"},
				{Value: "hypo_alpeadriabank_international_ag"},
				{Value: "hypo_bank_burgenland_aktiengesellschaft"},
				{Value: "hypo_noe_lb_fur_niederosterreich_u_wien"},
				{Value: "hypo_oberosterreich_salzburg_steiermark"},
				{Value: "hypo_tirol_bank_ag"},
				{Value: "hypo_vorarlberg_bank_ag"},
				{Value: "marchfelder_bank"},
				{Value: "oberbank_ag"},
				{Value: "raiffeisen_bankengruppe_osterreich"},
				{Value: "schoellerbank_ag"},
				{Value: "sparda_bank_wien"},
				{Value: "volksbank_gruppe"},
				{Value: "volkskreditbank_ag"},
				{Value: "vr_bank_braunau"},
			},
		},
		"payment_method_data.fpx.account_holder_type": {
			Type:             "string",
			ShortDescription: "Account holder type for FPX transaction",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"payment_method_data.fpx.bank": {
			Type:             "string",
			ShortDescription: "The customer's bank",
			Enum: []resource.EnumSpec{
				{Value: "affin_bank"},
				{Value: "agrobank"},
				{Value: "alliance_bank"},
				{Value: "ambank"},
				{Value: "bank_islam"},
				{Value: "bank_muamalat"},
				{Value: "bank_of_china"},
				{Value: "bank_rakyat"},
				{Value: "bsn"},
				{Value: "cimb"},
				{Value: "deutsche_bank"},
				{Value: "hong_leong_bank"},
				{Value: "hsbc"},
				{Value: "kfh"},
				{Value: "maybank2e"},
				{Value: "maybank2u"},
				{Value: "ocbc"},
				{Value: "pb_enterprise"},
				{Value: "public_bank"},
				{Value: "rhb"},
				{Value: "standard_chartered"},
				{Value: "uob"},
			},
		},
		"payment_method_data.ideal.bank": {
			Type:             "string",
			ShortDescription: "The customer's bank",
			Enum: []resource.EnumSpec{
				{Value: "abn_amro"},
				{Value: "adyen"},
				{Value: "asn_bank"},
				{Value: "bunq"},
				{Value: "buut"},
				{Value: "finom"},
				{Value: "handelsbanken"},
				{Value: "ing"},
				{Value: "knab"},
				{Value: "mollie"},
				{Value: "moneyou"},
				{Value: "n26"},
				{Value: "nn"},
				{Value: "rabobank"},
				{Value: "regiobank"},
				{Value: "revolut"},
				{Value: "sns_bank"},
				{Value: "triodos_bank"},
				{Value: "van_lanschot"},
				{Value: "yoursafe"},
			},
		},
		"payment_method_data.klarna.dob.day": {
			Type:             "integer",
			ShortDescription: "The day of birth, between 1 and 31",
		},
		"payment_method_data.klarna.dob.month": {
			Type:             "integer",
			ShortDescription: "The month of birth, between 1 and 12",
		},
		"payment_method_data.klarna.dob.year": {
			Type:             "integer",
			ShortDescription: "The four-digit year of birth",
		},
		"payment_method_data.naver_pay.funding": {
			Type:             "string",
			ShortDescription: "Whether to use Naver Pay points or a card to fund this transaction",
			Enum: []resource.EnumSpec{
				{Value: "card"},
				{Value: "points"},
			},
		},
		"payment_method_data.nz_bank_account.account_holder_name": {
			Type:             "string",
			ShortDescription: "The name on the bank account",
		},
		"payment_method_data.nz_bank_account.account_number": {
			Type:             "string",
			ShortDescription: "The account number for the bank account",
		},
		"payment_method_data.nz_bank_account.bank_code": {
			Type:             "string",
			ShortDescription: "The numeric code for the bank account's bank",
		},
		"payment_method_data.nz_bank_account.branch_code": {
			Type:             "string",
			ShortDescription: "The numeric code for the bank account's bank branch",
		},
		"payment_method_data.nz_bank_account.reference": {
			Type: "string",
		},
		"payment_method_data.nz_bank_account.suffix": {
			Type:             "string",
			ShortDescription: "The suffix of the bank account number",
		},
		"payment_method_data.p24.bank": {
			Type:             "string",
			ShortDescription: "The customer's bank",
			Enum: []resource.EnumSpec{
				{Value: "alior_bank"},
				{Value: "bank_millennium"},
				{Value: "bank_nowy_bfg_sa"},
				{Value: "bank_pekao_sa"},
				{Value: "banki_spbdzielcze"},
				{Value: "blik"},
				{Value: "bnp_paribas"},
				{Value: "boz"},
				{Value: "citi_handlowy"},
				{Value: "credit_agricole"},
				{Value: "envelobank"},
				{Value: "etransfer_pocztowy24"},
				{Value: "getin_bank"},
				{Value: "ideabank"},
				{Value: "ing"},
				{Value: "inteligo"},
				{Value: "mbank_mtransfer"},
				{Value: "nest_przelew"},
				{Value: "noble_pay"},
				{Value: "pbac_z_ipko"},
				{Value: "plus_bank"},
				{Value: "santander_przelew24"},
				{Value: "tmobile_usbugi_bankowe"},
				{Value: "toyota_bank"},
				{Value: "velobank"},
				{Value: "volkswagen_bank"},
			},
		},
		"payment_method_data.payto.account_number": {
			Type:             "string",
			ShortDescription: "The account number for the bank account",
		},
		"payment_method_data.payto.bsb_number": {
			Type:             "string",
			ShortDescription: "Bank-State-Branch number of the bank account",
		},
		"payment_method_data.payto.pay_id": {
			Type:             "string",
			ShortDescription: "The PayID alias for the bank account",
		},
		"payment_method_data.radar_options.session": {
			Type:             "string",
			ShortDescription: "A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments",
		},
		"payment_method_data.sepa_debit.iban": {
			Type:             "string",
			ShortDescription: "IBAN of the bank account",
		},
		"payment_method_data.sofort.country": {
			Type:             "string",
			ShortDescription: "Two-letter ISO code representing the country the bank account is located in",
			Enum: []resource.EnumSpec{
				{Value: "AT"},
				{Value: "BE"},
				{Value: "DE"},
				{Value: "ES"},
				{Value: "IT"},
				{Value: "NL"},
			},
		},
		"payment_method_data.type": {
			Type:             "string",
			ShortDescription: "The type of the PaymentMethod",
			Enum: []resource.EnumSpec{
				{Value: "acss_debit"},
				{Value: "affirm"},
				{Value: "afterpay_clearpay"},
				{Value: "alipay"},
				{Value: "alma"},
				{Value: "amazon_pay"},
				{Value: "au_becs_debit"},
				{Value: "bacs_debit"},
				{Value: "bancontact"},
				{Value: "billie"},
				{Value: "blik"},
				{Value: "boleto"},
				{Value: "cashapp"},
				{Value: "crypto"},
				{Value: "customer_balance"},
				{Value: "eps"},
				{Value: "fpx"},
				{Value: "giropay"},
				{Value: "grabpay"},
				{Value: "ideal"},
				{Value: "kakao_pay"},
				{Value: "klarna"},
				{Value: "konbini"},
				{Value: "kr_card"},
				{Value: "link"},
				{Value: "mb_way"},
				{Value: "mobilepay"},
				{Value: "multibanco"},
				{Value: "naver_pay"},
				{Value: "nz_bank_account"},
				{Value: "oxxo"},
				{Value: "p24"},
				{Value: "pay_by_bank"},
				{Value: "payco"},
				{Value: "paynow"},
				{Value: "paypal"},
				{Value: "payto"},
				{Value: "pix"},
				{Value: "promptpay"},
				{Value: "revolut_pay"},
				{Value: "samsung_pay"},
				{Value: "satispay"},
				{Value: "sepa_debit"},
				{Value: "sofort"},
				{Value: "swish"},
				{Value: "twint"},
				{Value: "upi"},
				{Value: "us_bank_account"},
				{Value: "wechat_pay"},
				{Value: "zip"},
			},
		},
		"payment_method_data.upi.mandate_options.amount": {
			Type:             "integer",
			ShortDescription: "Amount to be charged for future payments",
		},
		"payment_method_data.upi.mandate_options.amount_type": {
			Type:             "string",
			ShortDescription: "One of `fixed` or `maximum`",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_data.upi.mandate_options.description": {
			Type:             "string",
			ShortDescription: "A description of the mandate or subscription that is meant to be displayed to the customer",
		},
		"payment_method_data.upi.mandate_options.end_date": {
			Type:             "integer",
			ShortDescription: "End date of the mandate or subscription",
			Format:           "unix-time",
		},
		"payment_method_data.us_bank_account.account_holder_type": {
			Type:             "string",
			ShortDescription: "Account holder type: individual or company",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"payment_method_data.us_bank_account.account_number": {
			Type:             "string",
			ShortDescription: "Account number of the bank account",
		},
		"payment_method_data.us_bank_account.account_type": {
			Type:             "string",
			ShortDescription: "Account type: checkings or savings",
			Enum: []resource.EnumSpec{
				{Value: "checking"},
				{Value: "savings"},
			},
		},
		"payment_method_data.us_bank_account.financial_connections_account": {
			Type:             "string",
			ShortDescription: "The ID of a Financial Connections Account to use as a payment method",
		},
		"payment_method_data.us_bank_account.routing_number": {
			Type:             "string",
			ShortDescription: "Routing number of the bank account",
		},
		"payment_method_options.acss_debit.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Enum: []resource.EnumSpec{
				{Value: "cad"},
				{Value: "usd"},
			},
		},
		"payment_method_options.acss_debit.mandate_options.custom_mandate_url": {
			Type:             "string",
			ShortDescription: "A URL for custom mandate text to render during confirmation step",
		},
		"payment_method_options.acss_debit.mandate_options.default_for": {
			Type:             "array",
			ShortDescription: "List of Stripe products where this mandate can be selected automatically",
		},
		"payment_method_options.acss_debit.mandate_options.interval_description": {
			Type:             "string",
			ShortDescription: "Description of the mandate interval",
		},
		"payment_method_options.acss_debit.mandate_options.payment_schedule": {
			Type:             "string",
			ShortDescription: "Payment schedule for the mandate",
			Enum: []resource.EnumSpec{
				{Value: "combined"},
				{Value: "interval"},
				{Value: "sporadic"},
			},
		},
		"payment_method_options.acss_debit.mandate_options.transaction_type": {
			Type:             "string",
			ShortDescription: "Transaction type of the mandate",
			Enum: []resource.EnumSpec{
				{Value: "business"},
				{Value: "personal"},
			},
		},
		"payment_method_options.acss_debit.verification_method": {
			Type:             "string",
			ShortDescription: "Bank account verification method",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "instant"},
				{Value: "microdeposits"},
			},
		},
		"payment_method_options.bacs_debit.mandate_options.reference_prefix": {
			Type:             "string",
			ShortDescription: "Prefix used to generate the Mandate reference",
		},
		"payment_method_options.card.mandate_options.amount": {
			Type:             "integer",
			ShortDescription: "Amount to be charged for future payments, specified in the presentment currency",
		},
		"payment_method_options.card.mandate_options.amount_type": {
			Type:             "string",
			ShortDescription: "One of `fixed` or `maximum`",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_options.card.mandate_options.currency": {
			Type:             "string",
			ShortDescription: "Currency in which future payments will be charged",
			Format:           "currency",
		},
		"payment_method_options.card.mandate_options.description": {
			Type:             "string",
			ShortDescription: "A description of the mandate or subscription that is meant to be displayed to the customer",
		},
		"payment_method_options.card.mandate_options.end_date": {
			Type:             "integer",
			ShortDescription: "End date of the mandate or subscription",
			Format:           "unix-time",
		},
		"payment_method_options.card.mandate_options.interval": {
			Type:             "string",
			ShortDescription: "Specifies payment frequency",
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "month"},
				{Value: "sporadic"},
				{Value: "week"},
				{Value: "year"},
			},
		},
		"payment_method_options.card.mandate_options.interval_count": {
			Type:             "integer",
			ShortDescription: "The number of intervals between payments",
		},
		"payment_method_options.card.mandate_options.reference": {
			Type:             "string",
			ShortDescription: "Unique identifier for the mandate or subscription",
		},
		"payment_method_options.card.mandate_options.start_date": {
			Type:             "integer",
			ShortDescription: "Start date of the mandate or subscription",
			Format:           "unix-time",
		},
		"payment_method_options.card.mandate_options.supported_types": {
			Type:             "array",
			ShortDescription: "Specifies the type of mandates supported",
		},
		"payment_method_options.card.moto": {
			Type:             "boolean",
			ShortDescription: "When specified, this parameter signals that a card has been collected\nas MOTO (Mail Order Telephone Order) and thus out of scope for SCA",
		},
		"payment_method_options.card.network": {
			Type:             "string",
			ShortDescription: "Selected network to process this SetupIntent on",
			Enum: []resource.EnumSpec{
				{Value: "amex"},
				{Value: "cartes_bancaires"},
				{Value: "diners"},
				{Value: "discover"},
				{Value: "eftpos_au"},
				{Value: "girocard"},
				{Value: "interac"},
				{Value: "jcb"},
				{Value: "link"},
				{Value: "mastercard"},
				{Value: "unionpay"},
				{Value: "unknown"},
				{Value: "visa"},
			},
		},
		"payment_method_options.card.request_three_d_secure": {
			Type:             "string",
			ShortDescription: "We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication)",
			Enum: []resource.EnumSpec{
				{Value: "any"},
				{Value: "automatic"},
				{Value: "challenge"},
			},
		},
		"payment_method_options.card.three_d_secure.ares_trans_status": {
			Type:             "string",
			ShortDescription: "The `transStatus` returned from the card Issuer’s ACS in the ARes",
			Enum: []resource.EnumSpec{
				{Value: "A"},
				{Value: "C"},
				{Value: "I"},
				{Value: "N"},
				{Value: "R"},
				{Value: "U"},
				{Value: "Y"},
			},
		},
		"payment_method_options.card.three_d_secure.cryptogram": {
			Type:             "string",
			ShortDescription: "The cryptogram, also known as the \"authentication value\" (AAV, CAVV or\nAEVV)",
		},
		"payment_method_options.card.three_d_secure.electronic_commerce_indicator": {
			Type:             "string",
			ShortDescription: "The Electronic Commerce Indicator (ECI) is returned by your 3D Secure\nprovider and indicates what degree of authentication was performed",
			Enum: []resource.EnumSpec{
				{Value: "01"},
				{Value: "02"},
				{Value: "05"},
				{Value: "06"},
				{Value: "07"},
			},
		},
		"payment_method_options.card.three_d_secure.network_options.cartes_bancaires.cb_avalgo": {
			Type:             "string",
			ShortDescription: "The cryptogram calculation algorithm used by the card Issuer's ACS\nto calculate the Authentication cryptogram",
			Enum: []resource.EnumSpec{
				{Value: "0"},
				{Value: "1"},
				{Value: "2"},
				{Value: "3"},
				{Value: "4"},
				{Value: "A"},
			},
		},
		"payment_method_options.card.three_d_secure.network_options.cartes_bancaires.cb_exemption": {
			Type:             "string",
			ShortDescription: "The exemption indicator returned from Cartes Bancaires in the ARes.\nmessage extension: CB-EXEMPTION; string (4 characters)\nThis is a 3 byte bitmap (low significant byte first and most significant\nbit first) that has been Base64 encoded",
		},
		"payment_method_options.card.three_d_secure.network_options.cartes_bancaires.cb_score": {
			Type:             "integer",
			ShortDescription: "The risk score returned from Cartes Bancaires in the ARes.\nmessage extension: CB-SCORE; numeric value 0-99",
		},
		"payment_method_options.card.three_d_secure.requestor_challenge_indicator": {
			Type:             "string",
			ShortDescription: "The challenge indicator (`threeDSRequestorChallengeInd`) which was requested in the\nAReq sent to the card Issuer's ACS",
		},
		"payment_method_options.card.three_d_secure.transaction_id": {
			Type:             "string",
			ShortDescription: "For 3D Secure 1, the XID",
		},
		"payment_method_options.card.three_d_secure.version": {
			Type:             "string",
			ShortDescription: "The version of 3D Secure that was performed",
			Enum: []resource.EnumSpec{
				{Value: "1.0.2"},
				{Value: "2.1.0"},
				{Value: "2.2.0"},
				{Value: "2.3.0"},
				{Value: "2.3.1"},
			},
		},
		"payment_method_options.klarna.currency": {
			Type:             "string",
			ShortDescription: "The currency of the SetupIntent",
			Format:           "currency",
		},
		"payment_method_options.klarna.on_demand.average_amount": {
			Type:             "integer",
			ShortDescription: "Your average amount value",
		},
		"payment_method_options.klarna.on_demand.maximum_amount": {
			Type:             "integer",
			ShortDescription: "The maximum value you may charge a customer per purchase",
		},
		"payment_method_options.klarna.on_demand.minimum_amount": {
			Type:             "integer",
			ShortDescription: "The lowest or minimum value you may charge a customer per purchase",
		},
		"payment_method_options.klarna.on_demand.purchase_interval": {
			Type:             "string",
			ShortDescription: "Interval at which the customer is making purchases",
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "month"},
				{Value: "week"},
				{Value: "year"},
			},
		},
		"payment_method_options.klarna.on_demand.purchase_interval_count": {
			Type:             "integer",
			ShortDescription: "The number of `purchase_interval` between charges",
		},
		"payment_method_options.klarna.preferred_locale": {
			Type:             "string",
			ShortDescription: "Preferred language of the Klarna authorization page that the customer is redirected to",
			Enum: []resource.EnumSpec{
				{Value: "cs-CZ"},
				{Value: "da-DK"},
				{Value: "de-AT"},
				{Value: "de-CH"},
				{Value: "de-DE"},
				{Value: "el-GR"},
				{Value: "en-AT"},
				{Value: "en-AU"},
				{Value: "en-BE"},
				{Value: "en-CA"},
				{Value: "en-CH"},
				{Value: "en-CZ"},
				{Value: "en-DE"},
				{Value: "en-DK"},
				{Value: "en-ES"},
				{Value: "en-FI"},
				{Value: "en-FR"},
				{Value: "en-GB"},
				{Value: "en-GR"},
				{Value: "en-IE"},
				{Value: "en-IT"},
				{Value: "en-NL"},
				{Value: "en-NO"},
				{Value: "en-NZ"},
				{Value: "en-PL"},
				{Value: "en-PT"},
				{Value: "en-RO"},
				{Value: "en-SE"},
				{Value: "en-US"},
				{Value: "es-ES"},
				{Value: "es-US"},
				{Value: "fi-FI"},
				{Value: "fr-BE"},
				{Value: "fr-CA"},
				{Value: "fr-CH"},
				{Value: "fr-FR"},
				{Value: "it-CH"},
				{Value: "it-IT"},
				{Value: "nb-NO"},
				{Value: "nl-BE"},
				{Value: "nl-NL"},
				{Value: "pl-PL"},
				{Value: "pt-PT"},
				{Value: "ro-RO"},
				{Value: "sv-FI"},
				{Value: "sv-SE"},
			},
		},
		"payment_method_options.link.persistent_token": {
			Type:             "string",
			ShortDescription: "[Deprecated] This is a legacy parameter that no longer has any function",
		},
		"payment_method_options.paypal.billing_agreement_id": {
			Type:             "string",
			ShortDescription: "The PayPal Billing Agreement ID (BAID)",
		},
		"payment_method_options.payto.mandate_options.amount": {
			Type:             "integer",
			ShortDescription: "Amount that will be collected",
		},
		"payment_method_options.payto.mandate_options.amount_type": {
			Type:             "string",
			ShortDescription: "The type of amount that will be collected",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_options.payto.mandate_options.end_date": {
			Type:             "string",
			ShortDescription: "Date, in YYYY-MM-DD format, after which payments will not be collected",
		},
		"payment_method_options.payto.mandate_options.payment_schedule": {
			Type:             "string",
			ShortDescription: "The periodicity at which payments will be collected",
			Enum: []resource.EnumSpec{
				{Value: "adhoc"},
				{Value: "annual"},
				{Value: "daily"},
				{Value: "fortnightly"},
				{Value: "monthly"},
				{Value: "quarterly"},
				{Value: "semi_annual"},
				{Value: "weekly"},
			},
		},
		"payment_method_options.payto.mandate_options.payments_per_period": {
			Type:             "integer",
			ShortDescription: "The number of payments that will be made during a payment period",
		},
		"payment_method_options.payto.mandate_options.purpose": {
			Type:             "string",
			ShortDescription: "The purpose for which payments are made",
			Enum: []resource.EnumSpec{
				{Value: "dependant_support"},
				{Value: "government"},
				{Value: "loan"},
				{Value: "mortgage"},
				{Value: "other"},
				{Value: "pension"},
				{Value: "personal"},
				{Value: "retail"},
				{Value: "salary"},
				{Value: "tax"},
				{Value: "utility"},
			},
		},
		"payment_method_options.payto.mandate_options.start_date": {
			Type:             "string",
			ShortDescription: "Date, in YYYY-MM-DD format, from which payments will be collected",
		},
		"payment_method_options.sepa_debit.mandate_options.reference_prefix": {
			Type:             "string",
			ShortDescription: "Prefix used to generate the Mandate reference",
		},
		"payment_method_options.upi.mandate_options.amount": {
			Type:             "integer",
			ShortDescription: "Amount to be charged for future payments",
		},
		"payment_method_options.upi.mandate_options.amount_type": {
			Type:             "string",
			ShortDescription: "One of `fixed` or `maximum`",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_options.upi.mandate_options.description": {
			Type:             "string",
			ShortDescription: "A description of the mandate or subscription that is meant to be displayed to the customer",
		},
		"payment_method_options.upi.mandate_options.end_date": {
			Type:             "integer",
			ShortDescription: "End date of the mandate or subscription",
			Format:           "unix-time",
		},
		"payment_method_options.upi.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.us_bank_account.financial_connections.filters.account_subcategories": {
			Type:             "array",
			ShortDescription: "The account subcategories to use to filter for selectable accounts",
		},
		"payment_method_options.us_bank_account.financial_connections.permissions": {
			Type:             "array",
			ShortDescription: "The list of permissions to request",
		},
		"payment_method_options.us_bank_account.financial_connections.prefetch": {
			Type:             "array",
			ShortDescription: "List of data features that you would like to retrieve upon account creation",
		},
		"payment_method_options.us_bank_account.financial_connections.return_url": {
			Type:             "string",
			ShortDescription: "For webview integrations only",
		},
		"payment_method_options.us_bank_account.mandate_options.collection_method": {
			Type:             "string",
			ShortDescription: "The method used to collect offline mandate customer acceptance",
			Enum: []resource.EnumSpec{
				{Value: "paper"},
			},
		},
		"payment_method_options.us_bank_account.networks.requested": {
			Type:             "array",
			ShortDescription: "Triggers validations to run across the selected networks",
		},
		"payment_method_options.us_bank_account.verification_method": {
			Type:             "string",
			ShortDescription: "Bank account verification method",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "instant"},
				{Value: "microdeposits"},
			},
		},
		"payment_method_types": {
			Type:             "array",
			ShortDescription: "The list of payment method types (for example, card) that this SetupIntent can set up",
		},
	},
}
View Source
var V1SetupIntentsVerifyMicrodeposits = resource.OperationSpec{
	Name:   "verify_microdeposits",
	Path:   "/v1/setup_intents/{intent}/verify_microdeposits",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amounts": {
			Type:             "array",
			ShortDescription: "Two positive integers, in *cents*, equal to the values of the microdeposits sent to the bank account",
			MostCommon:       true,
		},
		"descriptor_code": {
			Type:             "string",
			ShortDescription: "A six-character code starting with SM present in the microdeposit sent to the bank account",
			MostCommon:       true,
		},
	},
}
View Source
var V1ShippingRatesCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/shipping_rates",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"delivery_estimate.maximum.unit": {
			Type:             "string",
			ShortDescription: "A unit of time",
			Enum: []resource.EnumSpec{
				{Value: "business_day"},
				{Value: "day"},
				{Value: "hour"},
				{Value: "month"},
				{Value: "week"},
			},
		},
		"delivery_estimate.maximum.value": {
			Type:             "integer",
			ShortDescription: "Must be greater than 0",
		},
		"delivery_estimate.minimum.unit": {
			Type:             "string",
			ShortDescription: "A unit of time",
			Enum: []resource.EnumSpec{
				{Value: "business_day"},
				{Value: "day"},
				{Value: "hour"},
				{Value: "month"},
				{Value: "week"},
			},
		},
		"delivery_estimate.minimum.value": {
			Type:             "integer",
			ShortDescription: "Must be greater than 0",
		},
		"display_name": {
			Type:             "string",
			ShortDescription: "The name of the shipping rate, meant to be displayable to the customer",
			Required:         true,
			MostCommon:       true,
		},
		"fixed_amount.amount": {
			Type:             "integer",
			ShortDescription: "A non-negative integer in cents representing how much to charge",
			MostCommon:       true,
		},
		"fixed_amount.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			MostCommon:       true,
			Format:           "currency",
		},
		"tax_behavior": {
			Type:             "string",
			ShortDescription: "Specifies whether the rate is considered inclusive of taxes or exclusive of taxes",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "exclusive"},
				{Value: "inclusive"},
				{Value: "unspecified"},
			},
		},
		"tax_code": {
			Type:             "string",
			ShortDescription: "A [tax code](https://docs.stripe.com/tax/tax-categories) ID",
			MostCommon:       true,
		},
		"type": {
			Type:             "string",
			ShortDescription: "The type of calculation to use on the shipping rate",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "fixed_amount"},
			},
		},
	},
}
View Source
var V1ShippingRatesList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/shipping_rates",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"active": {
			Type:             "boolean",
			ShortDescription: "Only return shipping rates that are active or inactive",
		},
		"created": {
			Type:             "integer",
			ShortDescription: "A filter on the list, based on the object `created` field",
		},
		"currency": {
			Type:             "string",
			ShortDescription: "Only return shipping rates for the given currency",
			Format:           "currency",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1ShippingRatesRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/shipping_rates/{shipping_rate_token}",
	Method: "GET",
}
View Source
var V1ShippingRatesUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/shipping_rates/{shipping_rate_token}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"active": {
			Type:             "boolean",
			ShortDescription: "Whether the shipping rate can be used for new purchases",
			MostCommon:       true,
		},
		"tax_behavior": {
			Type:             "string",
			ShortDescription: "Specifies whether the rate is considered inclusive of taxes or exclusive of taxes",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "exclusive"},
				{Value: "inclusive"},
				{Value: "unspecified"},
			},
		},
	},
}
View Source
var V1SourcesCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/sources",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "Amount associated with the source",
			MostCommon:       true,
		},
		"currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) associated with the source",
			MostCommon:       true,
			Format:           "currency",
		},
		"customer": {
			Type:             "string",
			ShortDescription: "The `Customer` to whom the original source is attached to",
			MostCommon:       true,
		},
		"flow": {
			Type:             "string",
			ShortDescription: "The authentication `flow` of the source to create",
			Enum: []resource.EnumSpec{
				{Value: "code_verification"},
				{Value: "none"},
				{Value: "receiver"},
				{Value: "redirect"},
			},
		},
		"mandate.acceptance.date": {
			Type:             "integer",
			ShortDescription: "The Unix timestamp (in seconds) when the mandate was accepted or refused by the customer",
			Format:           "unix-time",
		},
		"mandate.acceptance.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the mandate was accepted or refused by the customer",
		},
		"mandate.acceptance.offline.contact_email": {
			Type:             "string",
			ShortDescription: "An email to contact you with if a copy of the mandate is requested, required if `type` is `offline`",
		},
		"mandate.acceptance.online.date": {
			Type:             "integer",
			ShortDescription: "The Unix timestamp (in seconds) when the mandate was accepted or refused by the customer",
			Format:           "unix-time",
		},
		"mandate.acceptance.online.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the mandate was accepted or refused by the customer",
		},
		"mandate.acceptance.online.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the mandate was accepted or refused by the customer",
		},
		"mandate.acceptance.status": {
			Type:             "string",
			ShortDescription: "The status of the mandate acceptance",
			Enum: []resource.EnumSpec{
				{Value: "accepted"},
				{Value: "pending"},
				{Value: "refused"},
				{Value: "revoked"},
			},
		},
		"mandate.acceptance.type": {
			Type:             "string",
			ShortDescription: "The type of acceptance information included with the mandate",
			Enum: []resource.EnumSpec{
				{Value: "offline"},
				{Value: "online"},
			},
		},
		"mandate.acceptance.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the mandate was accepted or refused by the customer",
		},
		"mandate.amount": {
			Type:             "integer",
			ShortDescription: "The amount specified by the mandate",
		},
		"mandate.currency": {
			Type:             "string",
			ShortDescription: "The currency specified by the mandate",
			Format:           "currency",
		},
		"mandate.interval": {
			Type:             "string",
			ShortDescription: "The interval of debits permitted by the mandate",
			Enum: []resource.EnumSpec{
				{Value: "one_time"},
				{Value: "scheduled"},
				{Value: "variable"},
			},
		},
		"mandate.notification_method": {
			Type:             "string",
			ShortDescription: "The method Stripe should use to notify the customer of upcoming debit instructions and/or mandate confirmation as required by the underlying debit network",
			Enum: []resource.EnumSpec{
				{Value: "deprecated_none"},
				{Value: "email"},
				{Value: "manual"},
				{Value: "none"},
				{Value: "stripe_email"},
			},
		},
		"original_source": {
			Type:             "string",
			ShortDescription: "The source to share",
			MostCommon:       true,
		},
		"owner.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"owner.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"owner.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"owner.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"owner.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"owner.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"owner.email": {
			Type:             "string",
			ShortDescription: "Owner's email address",
		},
		"owner.name": {
			Type:             "string",
			ShortDescription: "Owner's full name",
		},
		"owner.phone": {
			Type:             "string",
			ShortDescription: "Owner's phone number",
		},
		"receiver.refund_attributes_method": {
			Type:             "string",
			ShortDescription: "The method Stripe should use to request information needed to process a refund or mispayment",
			Enum: []resource.EnumSpec{
				{Value: "email"},
				{Value: "manual"},
				{Value: "none"},
			},
		},
		"redirect.return_url": {
			Type:             "string",
			ShortDescription: "The URL you provide to redirect the customer back to you after they authenticated their payment",
			MostCommon:       true,
		},
		"source_order.shipping.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"source_order.shipping.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"source_order.shipping.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"source_order.shipping.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"source_order.shipping.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"source_order.shipping.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"source_order.shipping.carrier": {
			Type:             "string",
			ShortDescription: "The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.",
		},
		"source_order.shipping.name": {
			Type:             "string",
			ShortDescription: "Recipient name",
		},
		"source_order.shipping.phone": {
			Type:             "string",
			ShortDescription: "Recipient phone (including extension)",
		},
		"source_order.shipping.tracking_number": {
			Type:             "string",
			ShortDescription: "The tracking number for a physical product, obtained from the delivery service",
		},
		"statement_descriptor": {
			Type:             "string",
			ShortDescription: "An arbitrary string to be displayed on your customer's statement",
			MostCommon:       true,
		},
		"token": {
			Type:             "string",
			ShortDescription: "An optional token used to create the source",
		},
		"type": {
			Type:             "string",
			ShortDescription: "The `type` of the source to create",
			MostCommon:       true,
		},
		"usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "reusable"},
				{Value: "single_use"},
			},
		},
	},
}
View Source
var V1SourcesDetach = resource.OperationSpec{
	Name:   "detach",
	Path:   "/v1/customers/{customer}/sources/{id}",
	Method: "DELETE",
}
View Source
var V1SourcesRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/sources/{source}",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"client_secret": {
			Type:             "string",
			ShortDescription: "The client secret of the source",
		},
	},
}
View Source
var V1SourcesSourceTransactions = resource.OperationSpec{
	Name:   "source_transactions",
	Path:   "/v1/sources/{source}/source_transactions",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1SourcesUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/sources/{source}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "Amount associated with the source",
			MostCommon:       true,
		},
		"mandate.acceptance.date": {
			Type:             "integer",
			ShortDescription: "The Unix timestamp (in seconds) when the mandate was accepted or refused by the customer",
			Format:           "unix-time",
		},
		"mandate.acceptance.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the mandate was accepted or refused by the customer",
		},
		"mandate.acceptance.offline.contact_email": {
			Type:             "string",
			ShortDescription: "An email to contact you with if a copy of the mandate is requested, required if `type` is `offline`",
		},
		"mandate.acceptance.online.date": {
			Type:             "integer",
			ShortDescription: "The Unix timestamp (in seconds) when the mandate was accepted or refused by the customer",
			Format:           "unix-time",
		},
		"mandate.acceptance.online.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the mandate was accepted or refused by the customer",
		},
		"mandate.acceptance.online.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the mandate was accepted or refused by the customer",
		},
		"mandate.acceptance.status": {
			Type:             "string",
			ShortDescription: "The status of the mandate acceptance",
			Enum: []resource.EnumSpec{
				{Value: "accepted"},
				{Value: "pending"},
				{Value: "refused"},
				{Value: "revoked"},
			},
		},
		"mandate.acceptance.type": {
			Type:             "string",
			ShortDescription: "The type of acceptance information included with the mandate",
			Enum: []resource.EnumSpec{
				{Value: "offline"},
				{Value: "online"},
			},
		},
		"mandate.acceptance.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the mandate was accepted or refused by the customer",
		},
		"mandate.amount": {
			Type:             "integer",
			ShortDescription: "The amount specified by the mandate",
		},
		"mandate.currency": {
			Type:             "string",
			ShortDescription: "The currency specified by the mandate",
			Format:           "currency",
		},
		"mandate.interval": {
			Type:             "string",
			ShortDescription: "The interval of debits permitted by the mandate",
			Enum: []resource.EnumSpec{
				{Value: "one_time"},
				{Value: "scheduled"},
				{Value: "variable"},
			},
		},
		"mandate.notification_method": {
			Type:             "string",
			ShortDescription: "The method Stripe should use to notify the customer of upcoming debit instructions and/or mandate confirmation as required by the underlying debit network",
			Enum: []resource.EnumSpec{
				{Value: "deprecated_none"},
				{Value: "email"},
				{Value: "manual"},
				{Value: "none"},
				{Value: "stripe_email"},
			},
		},
		"owner.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"owner.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"owner.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"owner.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"owner.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"owner.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"owner.email": {
			Type:             "string",
			ShortDescription: "Owner's email address",
		},
		"owner.name": {
			Type:             "string",
			ShortDescription: "Owner's full name",
		},
		"owner.phone": {
			Type:             "string",
			ShortDescription: "Owner's phone number",
		},
		"source_order.shipping.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"source_order.shipping.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"source_order.shipping.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"source_order.shipping.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"source_order.shipping.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"source_order.shipping.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"source_order.shipping.carrier": {
			Type:             "string",
			ShortDescription: "The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.",
		},
		"source_order.shipping.name": {
			Type:             "string",
			ShortDescription: "Recipient name",
		},
		"source_order.shipping.phone": {
			Type:             "string",
			ShortDescription: "Recipient phone (including extension)",
		},
		"source_order.shipping.tracking_number": {
			Type:             "string",
			ShortDescription: "The tracking number for a physical product, obtained from the delivery service",
		},
	},
}
View Source
var V1SourcesVerify = resource.OperationSpec{
	Name:   "verify",
	Path:   "/v1/sources/{source}/verify",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"values": {
			Type:             "array",
			ShortDescription: "The values needed to verify the source",
			Required:         true,
			MostCommon:       true,
		},
	},
}
View Source
var V1SubscriptionItemsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/subscription_items",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"billing_thresholds": {
			Type: "clearable_object",
		},
		"billing_thresholds.usage_gte": {
			Type:             "integer",
			ShortDescription: "Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://docs.stripe.com/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte))",
		},
		"payment_behavior": {
			Type:             "string",
			ShortDescription: "Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "allow_incomplete"},
				{Value: "default_incomplete"},
				{Value: "error_if_incomplete"},
				{Value: "pending_if_incomplete"},
			},
		},
		"plan": {
			Type:             "string",
			ShortDescription: "The identifier of the plan to add to the subscription",
		},
		"price": {
			Type:             "string",
			ShortDescription: "The ID of the price object",
			MostCommon:       true,
		},
		"price_data.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Format:           "currency",
		},
		"price_data.product": {
			Type:             "string",
			ShortDescription: "The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to",
		},
		"price_data.recurring.interval": {
			Type:             "string",
			ShortDescription: "Specifies billing frequency",
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "month"},
				{Value: "week"},
				{Value: "year"},
			},
		},
		"price_data.recurring.interval_count": {
			Type:             "integer",
			ShortDescription: "The number of intervals between subscription billings",
		},
		"price_data.tax_behavior": {
			Type:             "string",
			ShortDescription: "Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings",
			Enum: []resource.EnumSpec{
				{Value: "exclusive"},
				{Value: "inclusive"},
				{Value: "unspecified"},
			},
		},
		"price_data.unit_amount": {
			Type:             "integer",
			ShortDescription: "A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge",
		},
		"price_data.unit_amount_decimal": {
			Type:             "string",
			ShortDescription: "Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places",
			Format:           "decimal",
		},
		"proration_behavior": {
			Type:             "string",
			ShortDescription: "Determines how to handle [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "always_invoice"},
				{Value: "create_prorations"},
				{Value: "none"},
			},
		},
		"proration_date": {
			Type:             "integer",
			ShortDescription: "If set, the proration will be calculated as though the subscription was updated at the given time",
			Format:           "unix-time",
		},
		"quantity": {
			Type:             "integer",
			ShortDescription: "The quantity you'd like to apply to the subscription item you're creating",
			MostCommon:       true,
		},
		"subscription": {
			Type:             "string",
			ShortDescription: "The identifier of the subscription to modify",
			Required:         true,
			MostCommon:       true,
		},
		"tax_rates": {
			Type:             "array",
			ShortDescription: "A list of [Tax Rate](https://docs.stripe.com/api/tax_rates) ids",
		},
	},
}
View Source
var V1SubscriptionItemsDelete = resource.OperationSpec{
	Name:   "delete",
	Path:   "/v1/subscription_items/{item}",
	Method: "DELETE",
}
View Source
var V1SubscriptionItemsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/subscription_items",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"subscription": {
			Type:             "string",
			ShortDescription: "The ID of the subscription whose items will be retrieved",
			Required:         true,
		},
	},
}
View Source
var V1SubscriptionItemsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/subscription_items/{item}",
	Method: "GET",
}
View Source
var V1SubscriptionItemsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/subscription_items/{item}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"billing_thresholds": {
			Type: "clearable_object",
		},
		"billing_thresholds.usage_gte": {
			Type:             "integer",
			ShortDescription: "Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://docs.stripe.com/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte))",
		},
		"off_session": {
			Type:             "boolean",
			ShortDescription: "Indicates if a customer is on or off-session while an invoice payment is attempted",
		},
		"payment_behavior": {
			Type:             "string",
			ShortDescription: "Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "allow_incomplete"},
				{Value: "default_incomplete"},
				{Value: "error_if_incomplete"},
				{Value: "pending_if_incomplete"},
			},
		},
		"plan": {
			Type:             "string",
			ShortDescription: "The identifier of the new plan for this subscription item",
		},
		"price": {
			Type:             "string",
			ShortDescription: "The ID of the price object",
			MostCommon:       true,
		},
		"price_data.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Format:           "currency",
		},
		"price_data.product": {
			Type:             "string",
			ShortDescription: "The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to",
		},
		"price_data.recurring.interval": {
			Type:             "string",
			ShortDescription: "Specifies billing frequency",
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "month"},
				{Value: "week"},
				{Value: "year"},
			},
		},
		"price_data.recurring.interval_count": {
			Type:             "integer",
			ShortDescription: "The number of intervals between subscription billings",
		},
		"price_data.tax_behavior": {
			Type:             "string",
			ShortDescription: "Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings",
			Enum: []resource.EnumSpec{
				{Value: "exclusive"},
				{Value: "inclusive"},
				{Value: "unspecified"},
			},
		},
		"price_data.unit_amount": {
			Type:             "integer",
			ShortDescription: "A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge",
		},
		"price_data.unit_amount_decimal": {
			Type:             "string",
			ShortDescription: "Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places",
			Format:           "decimal",
		},
		"proration_behavior": {
			Type:             "string",
			ShortDescription: "Determines how to handle [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "always_invoice"},
				{Value: "create_prorations"},
				{Value: "none"},
			},
		},
		"proration_date": {
			Type:             "integer",
			ShortDescription: "If set, the proration will be calculated as though the subscription was updated at the given time",
			Format:           "unix-time",
		},
		"quantity": {
			Type:             "integer",
			ShortDescription: "The quantity you'd like to apply to the subscription item you're creating",
			MostCommon:       true,
		},
		"tax_rates": {
			Type:             "array",
			ShortDescription: "A list of [Tax Rate](https://docs.stripe.com/api/tax_rates) ids",
		},
	},
}
View Source
var V1SubscriptionSchedulesCancel = resource.OperationSpec{
	Name:   "cancel",
	Path:   "/v1/subscription_schedules/{schedule}/cancel",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"invoice_now": {
			Type:             "boolean",
			ShortDescription: "If the subscription schedule is `active`, indicates if a final invoice will be generated that contains any un-invoiced metered usage and new/pending proration invoice items",
			MostCommon:       true,
		},
		"prorate": {
			Type:             "boolean",
			ShortDescription: "If the subscription schedule is `active`, indicates if the cancellation should be prorated",
		},
	},
}
View Source
var V1SubscriptionSchedulesCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/subscription_schedules",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"billing_mode.flexible.proration_discounts": {
			Type:             "string",
			ShortDescription: "Controls how invoices and invoice items display proration amounts and discount amounts",
			Enum: []resource.EnumSpec{
				{Value: "included"},
				{Value: "itemized"},
			},
		},
		"billing_mode.type": {
			Type:             "string",
			ShortDescription: "Controls the calculation and orchestration of prorations and invoices for subscriptions",
			Enum: []resource.EnumSpec{
				{Value: "classic"},
				{Value: "flexible"},
			},
		},
		"customer": {
			Type:             "string",
			ShortDescription: "The identifier of the customer to create the subscription schedule for",
			MostCommon:       true,
		},
		"customer_account": {
			Type:             "string",
			ShortDescription: "The identifier of the account to create the subscription schedule for",
		},
		"default_settings.application_fee_percent": {
			Type:             "number",
			ShortDescription: "A non-negative decimal between 0 and 100, with at most two decimal places",
		},
		"default_settings.automatic_tax.enabled": {
			Type:             "boolean",
			ShortDescription: "Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription",
		},
		"default_settings.automatic_tax.liability.account": {
			Type:             "string",
			ShortDescription: "The connected account being referenced when `type` is `account`",
		},
		"default_settings.automatic_tax.liability.type": {
			Type:             "string",
			ShortDescription: "Type of the account referenced in the request",
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"default_settings.billing_cycle_anchor": {
			Type:             "string",
			ShortDescription: "Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "phase_start"},
			},
		},
		"default_settings.billing_thresholds.amount_gte": {
			Type:             "integer",
			ShortDescription: "Monetary threshold that triggers the subscription to advance to a new billing period",
		},
		"default_settings.billing_thresholds.reset_billing_cycle_anchor": {
			Type:             "boolean",
			ShortDescription: "Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached",
		},
		"default_settings.collection_method": {
			Type:             "string",
			ShortDescription: "Either `charge_automatically`, or `send_invoice`",
			Enum: []resource.EnumSpec{
				{Value: "charge_automatically"},
				{Value: "send_invoice"},
			},
		},
		"default_settings.default_payment_method": {
			Type:             "string",
			ShortDescription: "ID of the default payment method for the subscription schedule",
		},
		"default_settings.description": {
			Type:             "string",
			ShortDescription: "Subscription description, meant to be displayable to the customer",
		},
		"default_settings.invoice_settings.account_tax_ids": {
			Type:             "array",
			ShortDescription: "The account tax IDs associated with the subscription schedule",
		},
		"default_settings.invoice_settings.days_until_due": {
			Type:             "integer",
			ShortDescription: "Number of days within which a customer must pay invoices generated by this subscription schedule",
		},
		"default_settings.invoice_settings.issuer.account": {
			Type:             "string",
			ShortDescription: "The connected account being referenced when `type` is `account`",
		},
		"default_settings.invoice_settings.issuer.type": {
			Type:             "string",
			ShortDescription: "Type of the account referenced in the request",
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"default_settings.on_behalf_of": {
			Type:             "string",
			ShortDescription: "The account on behalf of which to charge, for each of the associated subscription's invoices",
		},
		"default_settings.transfer_data.amount_percent": {
			Type:             "number",
			ShortDescription: "A non-negative decimal between 0 and 100, with at most two decimal places",
		},
		"default_settings.transfer_data.destination": {
			Type:             "string",
			ShortDescription: "ID of an existing, connected Stripe account",
		},
		"end_behavior": {
			Type:             "string",
			ShortDescription: "Behavior of the subscription schedule and underlying subscription when it ends",
			Enum: []resource.EnumSpec{
				{Value: "cancel"},
				{Value: "none"},
				{Value: "release"},
				{Value: "renew"},
			},
		},
		"from_subscription": {
			Type:             "string",
			ShortDescription: "Migrate an existing subscription to be managed by a subscription schedule",
		},
		"start_date": {
			Type:             "integer",
			ShortDescription: "When the subscription schedule starts",
			MostCommon:       true,
		},
	},
}
View Source
var V1SubscriptionSchedulesList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/subscription_schedules",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"canceled_at": {
			Type:             "integer",
			ShortDescription: "Only return subscription schedules that were created canceled the given date interval",
		},
		"completed_at": {
			Type:             "integer",
			ShortDescription: "Only return subscription schedules that completed during the given date interval",
		},
		"created": {
			Type:             "integer",
			ShortDescription: "Only return subscription schedules that were created during the given date interval",
		},
		"customer": {
			Type:             "string",
			ShortDescription: "Only return subscription schedules for the given customer",
		},
		"customer_account": {
			Type:             "string",
			ShortDescription: "Only return subscription schedules for the given account",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"released_at": {
			Type:             "integer",
			ShortDescription: "Only return subscription schedules that were released during the given date interval",
		},
		"scheduled": {
			Type:             "boolean",
			ShortDescription: "Only return subscription schedules that have not started yet",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1SubscriptionSchedulesRelease = resource.OperationSpec{
	Name:   "release",
	Path:   "/v1/subscription_schedules/{schedule}/release",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"preserve_cancel_date": {
			Type:             "boolean",
			ShortDescription: "Keep any cancellation on the subscription that the schedule has set",
		},
	},
}
View Source
var V1SubscriptionSchedulesRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/subscription_schedules/{schedule}",
	Method: "GET",
}
View Source
var V1SubscriptionSchedulesUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/subscription_schedules/{schedule}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"default_settings.application_fee_percent": {
			Type:             "number",
			ShortDescription: "A non-negative decimal between 0 and 100, with at most two decimal places",
		},
		"default_settings.automatic_tax.enabled": {
			Type:             "boolean",
			ShortDescription: "Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription",
		},
		"default_settings.automatic_tax.liability.account": {
			Type:             "string",
			ShortDescription: "The connected account being referenced when `type` is `account`",
		},
		"default_settings.automatic_tax.liability.type": {
			Type:             "string",
			ShortDescription: "Type of the account referenced in the request",
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"default_settings.billing_cycle_anchor": {
			Type:             "string",
			ShortDescription: "Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "phase_start"},
			},
		},
		"default_settings.billing_thresholds.amount_gte": {
			Type:             "integer",
			ShortDescription: "Monetary threshold that triggers the subscription to advance to a new billing period",
		},
		"default_settings.billing_thresholds.reset_billing_cycle_anchor": {
			Type:             "boolean",
			ShortDescription: "Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached",
		},
		"default_settings.collection_method": {
			Type:             "string",
			ShortDescription: "Either `charge_automatically`, or `send_invoice`",
			Enum: []resource.EnumSpec{
				{Value: "charge_automatically"},
				{Value: "send_invoice"},
			},
		},
		"default_settings.default_payment_method": {
			Type:             "string",
			ShortDescription: "ID of the default payment method for the subscription schedule",
		},
		"default_settings.description": {
			Type:             "string",
			ShortDescription: "Subscription description, meant to be displayable to the customer",
		},
		"default_settings.invoice_settings.account_tax_ids": {
			Type:             "array",
			ShortDescription: "The account tax IDs associated with the subscription schedule",
		},
		"default_settings.invoice_settings.days_until_due": {
			Type:             "integer",
			ShortDescription: "Number of days within which a customer must pay invoices generated by this subscription schedule",
		},
		"default_settings.invoice_settings.issuer.account": {
			Type:             "string",
			ShortDescription: "The connected account being referenced when `type` is `account`",
		},
		"default_settings.invoice_settings.issuer.type": {
			Type:             "string",
			ShortDescription: "Type of the account referenced in the request",
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"default_settings.on_behalf_of": {
			Type:             "string",
			ShortDescription: "The account on behalf of which to charge, for each of the associated subscription's invoices",
		},
		"default_settings.transfer_data.amount_percent": {
			Type:             "number",
			ShortDescription: "A non-negative decimal between 0 and 100, with at most two decimal places",
		},
		"default_settings.transfer_data.destination": {
			Type:             "string",
			ShortDescription: "ID of an existing, connected Stripe account",
		},
		"end_behavior": {
			Type:             "string",
			ShortDescription: "Behavior of the subscription schedule and underlying subscription when it ends",
			Enum: []resource.EnumSpec{
				{Value: "cancel"},
				{Value: "none"},
				{Value: "release"},
				{Value: "renew"},
			},
		},
		"proration_behavior": {
			Type:             "string",
			ShortDescription: "If the update changes the billing configuration (item price, quantity, etc.) of the current phase, indicates how prorations from this change should be handled",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "always_invoice"},
				{Value: "create_prorations"},
				{Value: "none"},
			},
		},
	},
}
View Source
var V1SubscriptionsCancel = resource.OperationSpec{
	Name:   "cancel",
	Path:   "/v1/subscriptions/{subscription_exposed_id}",
	Method: "DELETE",
}
View Source
var V1SubscriptionsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/subscriptions",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"application_fee_percent": {
			Type:             "number",
			ShortDescription: "A non-negative decimal between 0 and 100, with at most two decimal places",
		},
		"automatic_tax.enabled": {
			Type:             "boolean",
			ShortDescription: "Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription",
			MostCommon:       true,
		},
		"automatic_tax.liability.account": {
			Type:             "string",
			ShortDescription: "The connected account being referenced when `type` is `account`",
		},
		"automatic_tax.liability.type": {
			Type:             "string",
			ShortDescription: "Type of the account referenced in the request",
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"backdate_start_date": {
			Type:             "integer",
			ShortDescription: "A past timestamp to backdate the subscription's start date to",
			Format:           "unix-time",
		},
		"billing_cycle_anchor": {
			Type:             "integer",
			ShortDescription: "A future timestamp in UTC format to anchor the subscription's [billing cycle](https://docs.stripe.com/subscriptions/billing-cycle)",
			Format:           "unix-time",
		},
		"billing_cycle_anchor_config.day_of_month": {
			Type:             "integer",
			ShortDescription: "The day of the month the anchor should be",
		},
		"billing_cycle_anchor_config.hour": {
			Type:             "integer",
			ShortDescription: "The hour of the day the anchor should be",
		},
		"billing_cycle_anchor_config.minute": {
			Type:             "integer",
			ShortDescription: "The minute of the hour the anchor should be",
		},
		"billing_cycle_anchor_config.month": {
			Type:             "integer",
			ShortDescription: "The month to start full cycle periods",
		},
		"billing_cycle_anchor_config.second": {
			Type:             "integer",
			ShortDescription: "The second of the minute the anchor should be",
		},
		"billing_mode.flexible.proration_discounts": {
			Type:             "string",
			ShortDescription: "Controls how invoices and invoice items display proration amounts and discount amounts",
			Enum: []resource.EnumSpec{
				{Value: "included"},
				{Value: "itemized"},
			},
		},
		"billing_mode.type": {
			Type:             "string",
			ShortDescription: "Controls the calculation and orchestration of prorations and invoices for subscriptions",
			Enum: []resource.EnumSpec{
				{Value: "classic"},
				{Value: "flexible"},
			},
		},
		"billing_thresholds": {
			Type: "clearable_object",
		},
		"billing_thresholds.amount_gte": {
			Type:             "integer",
			ShortDescription: "Monetary threshold that triggers the subscription to advance to a new billing period",
		},
		"billing_thresholds.reset_billing_cycle_anchor": {
			Type:             "boolean",
			ShortDescription: "Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached",
		},
		"cancel_at": {
			Type:             "integer",
			ShortDescription: "A timestamp at which the subscription should cancel",
		},
		"cancel_at_period_end": {
			Type:             "boolean",
			ShortDescription: "Indicate whether this subscription should cancel at the end of the current period (`current_period_end`)",
		},
		"collection_method": {
			Type:             "string",
			ShortDescription: "Either `charge_automatically`, or `send_invoice`",
			Enum: []resource.EnumSpec{
				{Value: "charge_automatically"},
				{Value: "send_invoice"},
			},
		},
		"currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			MostCommon:       true,
			Format:           "currency",
		},
		"customer": {
			Type:             "string",
			ShortDescription: "The identifier of the customer to subscribe",
			MostCommon:       true,
		},
		"customer_account": {
			Type:             "string",
			ShortDescription: "The identifier of the account representing the customer to subscribe",
			MostCommon:       true,
		},
		"days_until_due": {
			Type:             "integer",
			ShortDescription: "Number of days a customer has to pay invoices generated by this subscription",
		},
		"default_payment_method": {
			Type:             "string",
			ShortDescription: "ID of the default payment method for the subscription",
			MostCommon:       true,
		},
		"default_source": {
			Type:             "string",
			ShortDescription: "ID of the default payment source for the subscription",
		},
		"default_tax_rates": {
			Type:             "array",
			ShortDescription: "The tax rates that will apply to any subscription item that does not have `tax_rates` set",
		},
		"description": {
			Type:             "string",
			ShortDescription: "The subscription's description, meant to be displayable to the customer",
			MostCommon:       true,
		},
		"invoice_settings.account_tax_ids": {
			Type:             "array",
			ShortDescription: "The account tax IDs associated with the subscription",
		},
		"invoice_settings.issuer.account": {
			Type:             "string",
			ShortDescription: "The connected account being referenced when `type` is `account`",
		},
		"invoice_settings.issuer.type": {
			Type:             "string",
			ShortDescription: "Type of the account referenced in the request",
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"off_session": {
			Type:             "boolean",
			ShortDescription: "Indicates if a customer is on or off-session while an invoice payment is attempted",
		},
		"on_behalf_of": {
			Type:             "string",
			ShortDescription: "The account on behalf of which to charge, for each of the subscription's invoices",
		},
		"payment_behavior": {
			Type:             "string",
			ShortDescription: "Only applies to subscriptions with `collection_method=charge_automatically`",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "allow_incomplete"},
				{Value: "default_incomplete"},
				{Value: "error_if_incomplete"},
				{Value: "pending_if_incomplete"},
			},
		},
		"payment_settings.payment_method_options.acss_debit.mandate_options.transaction_type": {
			Type:             "string",
			ShortDescription: "Transaction type of the mandate",
			Enum: []resource.EnumSpec{
				{Value: "business"},
				{Value: "personal"},
			},
		},
		"payment_settings.payment_method_options.acss_debit.verification_method": {
			Type:             "string",
			ShortDescription: "Verification method for the intent",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "instant"},
				{Value: "microdeposits"},
			},
		},
		"payment_settings.payment_method_options.bancontact.preferred_language": {
			Type:             "string",
			ShortDescription: "Preferred language of the Bancontact authorization page that the customer is redirected to",
			Enum: []resource.EnumSpec{
				{Value: "de"},
				{Value: "en"},
				{Value: "fr"},
				{Value: "nl"},
			},
		},
		"payment_settings.payment_method_options.card.mandate_options.amount": {
			Type:             "integer",
			ShortDescription: "Amount to be charged for future payments, specified in the presentment currency",
		},
		"payment_settings.payment_method_options.card.mandate_options.amount_type": {
			Type:             "string",
			ShortDescription: "One of `fixed` or `maximum`",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_settings.payment_method_options.card.mandate_options.description": {
			Type:             "string",
			ShortDescription: "A description of the mandate or subscription that is meant to be displayed to the customer",
		},
		"payment_settings.payment_method_options.card.network": {
			Type:             "string",
			ShortDescription: "Selected network to process this Subscription on",
			Enum: []resource.EnumSpec{
				{Value: "amex"},
				{Value: "cartes_bancaires"},
				{Value: "diners"},
				{Value: "discover"},
				{Value: "eftpos_au"},
				{Value: "girocard"},
				{Value: "interac"},
				{Value: "jcb"},
				{Value: "link"},
				{Value: "mastercard"},
				{Value: "unionpay"},
				{Value: "unknown"},
				{Value: "visa"},
			},
		},
		"payment_settings.payment_method_options.card.request_three_d_secure": {
			Type:             "string",
			ShortDescription: "We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication)",
			Enum: []resource.EnumSpec{
				{Value: "any"},
				{Value: "automatic"},
				{Value: "challenge"},
			},
		},
		"payment_settings.payment_method_options.customer_balance.bank_transfer.eu_bank_transfer.country": {
			Type:             "string",
			ShortDescription: "The desired country code of the bank account information",
		},
		"payment_settings.payment_method_options.customer_balance.bank_transfer.type": {
			Type:             "string",
			ShortDescription: "The bank transfer type that can be used for funding",
		},
		"payment_settings.payment_method_options.customer_balance.funding_type": {
			Type:             "string",
			ShortDescription: "The funding method type to be used when there are not enough funds in the customer balance",
		},
		"payment_settings.payment_method_options.payto.mandate_options.amount": {
			Type:             "integer",
			ShortDescription: "The maximum amount that can be collected in a single invoice",
		},
		"payment_settings.payment_method_options.payto.mandate_options.purpose": {
			Type:             "string",
			ShortDescription: "The purpose for which payments are made",
			Enum: []resource.EnumSpec{
				{Value: "dependant_support"},
				{Value: "government"},
				{Value: "loan"},
				{Value: "mortgage"},
				{Value: "other"},
				{Value: "pension"},
				{Value: "personal"},
				{Value: "retail"},
				{Value: "salary"},
				{Value: "tax"},
				{Value: "utility"},
			},
		},
		"payment_settings.payment_method_options.us_bank_account.financial_connections.filters.account_subcategories": {
			Type:             "array",
			ShortDescription: "The account subcategories to use to filter for selectable accounts",
		},
		"payment_settings.payment_method_options.us_bank_account.financial_connections.permissions": {
			Type:             "array",
			ShortDescription: "The list of permissions to request",
		},
		"payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch": {
			Type:             "array",
			ShortDescription: "List of data features that you would like to retrieve upon account creation",
		},
		"payment_settings.payment_method_options.us_bank_account.verification_method": {
			Type:             "string",
			ShortDescription: "Verification method for the intent",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "instant"},
				{Value: "microdeposits"},
			},
		},
		"payment_settings.payment_method_types": {
			Type:             "array",
			ShortDescription: "The list of payment method types (e.g. card) to provide to the invoice’s PaymentIntent",
		},
		"payment_settings.save_default_payment_method": {
			Type:             "string",
			ShortDescription: "Configure whether Stripe updates `subscription.default_payment_method` when payment succeeds",
			Enum: []resource.EnumSpec{
				{Value: "off"},
				{Value: "on_subscription"},
			},
		},
		"pending_invoice_item_interval": {
			Type: "clearable_object",
		},
		"pending_invoice_item_interval.interval": {
			Type:             "string",
			ShortDescription: "Specifies invoicing frequency",
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "month"},
				{Value: "week"},
				{Value: "year"},
			},
		},
		"pending_invoice_item_interval.interval_count": {
			Type:             "integer",
			ShortDescription: "The number of intervals between invoices",
		},
		"proration_behavior": {
			Type:             "string",
			ShortDescription: "Determines how to handle [prorations](https://docs.stripe.com/billing/subscriptions/prorations) resulting from the `billing_cycle_anchor`",
			Enum: []resource.EnumSpec{
				{Value: "always_invoice"},
				{Value: "create_prorations"},
				{Value: "none"},
			},
		},
		"transfer_data.amount_percent": {
			Type:             "number",
			ShortDescription: "A non-negative decimal between 0 and 100, with at most two decimal places",
		},
		"transfer_data.destination": {
			Type:             "string",
			ShortDescription: "ID of an existing, connected Stripe account",
		},
		"trial_end": {
			Type:             "string",
			ShortDescription: "Unix timestamp representing the end of the trial period the customer will get before being charged for the first time",
		},
		"trial_from_plan": {
			Type:             "boolean",
			ShortDescription: "Indicates if a plan's `trial_period_days` should be applied to the subscription",
		},
		"trial_period_days": {
			Type:             "integer",
			ShortDescription: "Integer representing the number of trial period days before the customer is charged for the first time",
		},
		"trial_settings.end_behavior.missing_payment_method": {
			Type:             "string",
			ShortDescription: "Indicates how the subscription should change when the trial ends if the user did not provide a payment method",
			Enum: []resource.EnumSpec{
				{Value: "cancel"},
				{Value: "create_invoice"},
				{Value: "pause"},
			},
		},
	},
}
View Source
var V1SubscriptionsDeleteDiscount = resource.OperationSpec{
	Name:   "delete_discount",
	Path:   "/v1/subscriptions/{subscription_exposed_id}/discount",
	Method: "DELETE",
}
View Source
var V1SubscriptionsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/subscriptions",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"collection_method": {
			Type:             "string",
			ShortDescription: "The collection method of the subscriptions to retrieve",
			Enum: []resource.EnumSpec{
				{Value: "charge_automatically"},
				{Value: "send_invoice"},
			},
		},
		"created": {
			Type:             "integer",
			ShortDescription: "Only return subscriptions that were created during the given date interval",
		},
		"current_period_end": {
			Type:             "integer",
			ShortDescription: "Only return subscriptions whose minimum item current_period_end falls within the given date interval",
		},
		"current_period_start": {
			Type:             "integer",
			ShortDescription: "Only return subscriptions whose maximum item current_period_start falls within the given date interval",
		},
		"customer": {
			Type:             "string",
			ShortDescription: "The ID of the customer whose subscriptions you're retrieving",
		},
		"customer_account": {
			Type:             "string",
			ShortDescription: "The ID of the account representing the customer whose subscriptions you're retrieving",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"plan": {
			Type:             "string",
			ShortDescription: "The ID of the plan whose subscriptions will be retrieved",
		},
		"price": {
			Type:             "string",
			ShortDescription: "Filter for subscriptions that contain this recurring price ID",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"status": {
			Type:             "string",
			ShortDescription: "The status of the subscriptions to retrieve",
			Enum: []resource.EnumSpec{
				{Value: "active"},
				{Value: "all"},
				{Value: "canceled"},
				{Value: "ended"},
				{Value: "incomplete"},
				{Value: "incomplete_expired"},
				{Value: "past_due"},
				{Value: "paused"},
				{Value: "trialing"},
				{Value: "unpaid"},
			},
		},
		"test_clock": {
			Type:             "string",
			ShortDescription: "Filter for subscriptions that are associated with the specified test clock",
		},
	},
}
View Source
var V1SubscriptionsMigrate = resource.OperationSpec{
	Name:   "migrate",
	Path:   "/v1/subscriptions/{subscription}/migrate",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"billing_mode.flexible.proration_discounts": {
			Type:             "string",
			ShortDescription: "Controls how invoices and invoice items display proration amounts and discount amounts",
			Enum: []resource.EnumSpec{
				{Value: "included"},
				{Value: "itemized"},
			},
		},
		"billing_mode.type": {
			Type:             "string",
			ShortDescription: "Controls the calculation and orchestration of prorations and invoices for subscriptions",
			Required:         true,
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "flexible"},
			},
		},
	},
}
View Source
var V1SubscriptionsResume = resource.OperationSpec{
	Name:   "resume",
	Path:   "/v1/subscriptions/{subscription}/resume",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"billing_cycle_anchor": {
			Type:             "string",
			ShortDescription: "The billing cycle anchor that applies when the subscription is resumed",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "now"},
				{Value: "unchanged"},
			},
		},
		"proration_behavior": {
			Type:             "string",
			ShortDescription: "Determines how to handle [prorations](https://docs.stripe.com/billing/subscriptions/prorations) resulting from the `billing_cycle_anchor` being `unchanged`",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "always_invoice"},
				{Value: "create_prorations"},
				{Value: "none"},
			},
		},
		"proration_date": {
			Type:             "integer",
			ShortDescription: "If set, prorations will be calculated as though the subscription was resumed at the given time",
			Format:           "unix-time",
		},
	},
}
View Source
var V1SubscriptionsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/subscriptions/{subscription_exposed_id}",
	Method: "GET",
}
View Source
var V1SubscriptionsSearch = resource.OperationSpec{
	Name:   "search",
	Path:   "/v1/subscriptions/search",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"page": {
			Type:             "string",
			ShortDescription: "A cursor for pagination across multiple pages of results",
		},
		"query": {
			Type:             "string",
			ShortDescription: "The search query string",
			Required:         true,
		},
	},
}
View Source
var V1SubscriptionsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/subscriptions/{subscription_exposed_id}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"application_fee_percent": {
			Type:             "number",
			ShortDescription: "A non-negative decimal between 0 and 100, with at most two decimal places",
		},
		"automatic_tax.enabled": {
			Type:             "boolean",
			ShortDescription: "Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription",
			MostCommon:       true,
		},
		"automatic_tax.liability.account": {
			Type:             "string",
			ShortDescription: "The connected account being referenced when `type` is `account`",
		},
		"automatic_tax.liability.type": {
			Type:             "string",
			ShortDescription: "Type of the account referenced in the request",
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"billing_cycle_anchor": {
			Type:             "string",
			ShortDescription: "Either `now` or `unchanged`",
			Enum: []resource.EnumSpec{
				{Value: "now"},
				{Value: "unchanged"},
			},
		},
		"billing_thresholds": {
			Type: "clearable_object",
		},
		"billing_thresholds.amount_gte": {
			Type:             "integer",
			ShortDescription: "Monetary threshold that triggers the subscription to advance to a new billing period",
		},
		"billing_thresholds.reset_billing_cycle_anchor": {
			Type:             "boolean",
			ShortDescription: "Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached",
		},
		"cancel_at": {
			Type:             "integer",
			ShortDescription: "A timestamp at which the subscription should cancel",
		},
		"cancel_at_period_end": {
			Type:             "boolean",
			ShortDescription: "Indicate whether this subscription should cancel at the end of the current period (`current_period_end`)",
		},
		"cancellation_details.comment": {
			Type:             "string",
			ShortDescription: "Additional comments about why the user canceled the subscription, if the subscription was canceled explicitly by the user",
		},
		"cancellation_details.feedback": {
			Type:             "string",
			ShortDescription: "The customer submitted reason for why they canceled, if the subscription was canceled explicitly by the user",
			Enum: []resource.EnumSpec{
				{Value: "customer_service"},
				{Value: "low_quality"},
				{Value: "missing_features"},
				{Value: "other"},
				{Value: "switched_service"},
				{Value: "too_complex"},
				{Value: "too_expensive"},
				{Value: "unused"},
			},
		},
		"collection_method": {
			Type:             "string",
			ShortDescription: "Either `charge_automatically`, or `send_invoice`",
			Enum: []resource.EnumSpec{
				{Value: "charge_automatically"},
				{Value: "send_invoice"},
			},
		},
		"days_until_due": {
			Type:             "integer",
			ShortDescription: "Number of days a customer has to pay invoices generated by this subscription",
		},
		"default_payment_method": {
			Type:             "string",
			ShortDescription: "ID of the default payment method for the subscription",
			MostCommon:       true,
		},
		"default_source": {
			Type:             "string",
			ShortDescription: "ID of the default payment source for the subscription",
		},
		"default_tax_rates": {
			Type:             "array",
			ShortDescription: "The tax rates that will apply to any subscription item that does not have `tax_rates` set",
		},
		"description": {
			Type:             "string",
			ShortDescription: "The subscription's description, meant to be displayable to the customer",
			MostCommon:       true,
		},
		"invoice_settings.account_tax_ids": {
			Type:             "array",
			ShortDescription: "The account tax IDs associated with the subscription",
		},
		"invoice_settings.issuer.account": {
			Type:             "string",
			ShortDescription: "The connected account being referenced when `type` is `account`",
		},
		"invoice_settings.issuer.type": {
			Type:             "string",
			ShortDescription: "Type of the account referenced in the request",
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"off_session": {
			Type:             "boolean",
			ShortDescription: "Indicates if a customer is on or off-session while an invoice payment is attempted",
		},
		"on_behalf_of": {
			Type:             "string",
			ShortDescription: "The account on behalf of which to charge, for each of the subscription's invoices",
		},
		"pause_collection": {
			Type: "clearable_object",
		},
		"pause_collection.behavior": {
			Type:             "string",
			ShortDescription: "The payment collection behavior for this subscription while paused",
			Enum: []resource.EnumSpec{
				{Value: "keep_as_draft"},
				{Value: "mark_uncollectible"},
				{Value: "void"},
			},
		},
		"pause_collection.resumes_at": {
			Type:             "integer",
			ShortDescription: "The time after which the subscription will resume collecting payments",
			Format:           "unix-time",
		},
		"payment_behavior": {
			Type:             "string",
			ShortDescription: "Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "allow_incomplete"},
				{Value: "default_incomplete"},
				{Value: "error_if_incomplete"},
				{Value: "pending_if_incomplete"},
			},
		},
		"payment_settings.payment_method_options.acss_debit.mandate_options.transaction_type": {
			Type:             "string",
			ShortDescription: "Transaction type of the mandate",
			Enum: []resource.EnumSpec{
				{Value: "business"},
				{Value: "personal"},
			},
		},
		"payment_settings.payment_method_options.acss_debit.verification_method": {
			Type:             "string",
			ShortDescription: "Verification method for the intent",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "instant"},
				{Value: "microdeposits"},
			},
		},
		"payment_settings.payment_method_options.bancontact.preferred_language": {
			Type:             "string",
			ShortDescription: "Preferred language of the Bancontact authorization page that the customer is redirected to",
			Enum: []resource.EnumSpec{
				{Value: "de"},
				{Value: "en"},
				{Value: "fr"},
				{Value: "nl"},
			},
		},
		"payment_settings.payment_method_options.card.mandate_options.amount": {
			Type:             "integer",
			ShortDescription: "Amount to be charged for future payments, specified in the presentment currency",
		},
		"payment_settings.payment_method_options.card.mandate_options.amount_type": {
			Type:             "string",
			ShortDescription: "One of `fixed` or `maximum`",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_settings.payment_method_options.card.mandate_options.description": {
			Type:             "string",
			ShortDescription: "A description of the mandate or subscription that is meant to be displayed to the customer",
		},
		"payment_settings.payment_method_options.card.network": {
			Type:             "string",
			ShortDescription: "Selected network to process this Subscription on",
			Enum: []resource.EnumSpec{
				{Value: "amex"},
				{Value: "cartes_bancaires"},
				{Value: "diners"},
				{Value: "discover"},
				{Value: "eftpos_au"},
				{Value: "girocard"},
				{Value: "interac"},
				{Value: "jcb"},
				{Value: "link"},
				{Value: "mastercard"},
				{Value: "unionpay"},
				{Value: "unknown"},
				{Value: "visa"},
			},
		},
		"payment_settings.payment_method_options.card.request_three_d_secure": {
			Type:             "string",
			ShortDescription: "We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication)",
			Enum: []resource.EnumSpec{
				{Value: "any"},
				{Value: "automatic"},
				{Value: "challenge"},
			},
		},
		"payment_settings.payment_method_options.customer_balance.bank_transfer.eu_bank_transfer.country": {
			Type:             "string",
			ShortDescription: "The desired country code of the bank account information",
		},
		"payment_settings.payment_method_options.customer_balance.bank_transfer.type": {
			Type:             "string",
			ShortDescription: "The bank transfer type that can be used for funding",
		},
		"payment_settings.payment_method_options.customer_balance.funding_type": {
			Type:             "string",
			ShortDescription: "The funding method type to be used when there are not enough funds in the customer balance",
		},
		"payment_settings.payment_method_options.payto.mandate_options.amount": {
			Type:             "integer",
			ShortDescription: "The maximum amount that can be collected in a single invoice",
		},
		"payment_settings.payment_method_options.payto.mandate_options.purpose": {
			Type:             "string",
			ShortDescription: "The purpose for which payments are made",
			Enum: []resource.EnumSpec{
				{Value: "dependant_support"},
				{Value: "government"},
				{Value: "loan"},
				{Value: "mortgage"},
				{Value: "other"},
				{Value: "pension"},
				{Value: "personal"},
				{Value: "retail"},
				{Value: "salary"},
				{Value: "tax"},
				{Value: "utility"},
			},
		},
		"payment_settings.payment_method_options.us_bank_account.financial_connections.filters.account_subcategories": {
			Type:             "array",
			ShortDescription: "The account subcategories to use to filter for selectable accounts",
		},
		"payment_settings.payment_method_options.us_bank_account.financial_connections.permissions": {
			Type:             "array",
			ShortDescription: "The list of permissions to request",
		},
		"payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch": {
			Type:             "array",
			ShortDescription: "List of data features that you would like to retrieve upon account creation",
		},
		"payment_settings.payment_method_options.us_bank_account.verification_method": {
			Type:             "string",
			ShortDescription: "Verification method for the intent",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "instant"},
				{Value: "microdeposits"},
			},
		},
		"payment_settings.payment_method_types": {
			Type:             "array",
			ShortDescription: "The list of payment method types (e.g. card) to provide to the invoice’s PaymentIntent",
		},
		"payment_settings.save_default_payment_method": {
			Type:             "string",
			ShortDescription: "Configure whether Stripe updates `subscription.default_payment_method` when payment succeeds",
			Enum: []resource.EnumSpec{
				{Value: "off"},
				{Value: "on_subscription"},
			},
		},
		"pending_invoice_item_interval": {
			Type: "clearable_object",
		},
		"pending_invoice_item_interval.interval": {
			Type:             "string",
			ShortDescription: "Specifies invoicing frequency",
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "month"},
				{Value: "week"},
				{Value: "year"},
			},
		},
		"pending_invoice_item_interval.interval_count": {
			Type:             "integer",
			ShortDescription: "The number of intervals between invoices",
		},
		"proration_behavior": {
			Type:             "string",
			ShortDescription: "Determines how to handle [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "always_invoice"},
				{Value: "create_prorations"},
				{Value: "none"},
			},
		},
		"proration_date": {
			Type:             "integer",
			ShortDescription: "If set, prorations will be calculated as though the subscription was updated at the given time",
			Format:           "unix-time",
		},
		"transfer_data": {
			Type: "clearable_object",
		},
		"transfer_data.amount_percent": {
			Type:             "number",
			ShortDescription: "A non-negative decimal between 0 and 100, with at most two decimal places",
		},
		"transfer_data.destination": {
			Type:             "string",
			ShortDescription: "ID of an existing, connected Stripe account",
		},
		"trial_end": {
			Type:             "string",
			ShortDescription: "Unix timestamp representing the end of the trial period the customer will get before being charged for the first time",
		},
		"trial_from_plan": {
			Type:             "boolean",
			ShortDescription: "Indicates if a plan's `trial_period_days` should be applied to the subscription",
		},
		"trial_settings.end_behavior.missing_payment_method": {
			Type:             "string",
			ShortDescription: "Indicates how the subscription should change when the trial ends if the user did not provide a payment method",
			Enum: []resource.EnumSpec{
				{Value: "cancel"},
				{Value: "create_invoice"},
				{Value: "pause"},
			},
		},
	},
}
View Source
var V1TaxAssociationsFind = resource.OperationSpec{
	Name:   "find",
	Path:   "/v1/tax/associations/find",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"payment_intent": {
			Type:             "string",
			ShortDescription: "Valid [PaymentIntent](https://docs.stripe.com/api/payment_intents/object) id",
			Required:         true,
		},
	},
}
View Source
var V1TaxCalculationsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/tax/calculations",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Required:         true,
			MostCommon:       true,
			Format:           "currency",
		},
		"customer": {
			Type:             "string",
			ShortDescription: "The ID of an existing customer to use for this calculation",
		},
		"customer_details.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"customer_details.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"customer_details.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"customer_details.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"customer_details.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"customer_details.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"customer_details.address_source": {
			Type:             "string",
			ShortDescription: "The type of customer address provided",
			Enum: []resource.EnumSpec{
				{Value: "billing"},
				{Value: "shipping"},
			},
		},
		"customer_details.ip_address": {
			Type:             "string",
			ShortDescription: "The customer's IP address (IPv4 or IPv6)",
		},
		"customer_details.taxability_override": {
			Type:             "string",
			ShortDescription: "Overrides the tax calculation result to allow you to not collect tax from your customer",
			Enum: []resource.EnumSpec{
				{Value: "customer_exempt"},
				{Value: "none"},
				{Value: "reverse_charge"},
			},
		},
		"ship_from_details.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"ship_from_details.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"ship_from_details.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"ship_from_details.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"ship_from_details.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"ship_from_details.address.state": {
			Type:             "string",
			ShortDescription: "State/province as an [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) subdivision code, without country prefix, such as \"NY\" or \"TX\"",
		},
		"shipping_cost.amount": {
			Type:             "integer",
			ShortDescription: "A positive integer in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units) representing the shipping charge",
		},
		"shipping_cost.shipping_rate": {
			Type:             "string",
			ShortDescription: "If provided, the [shipping rate](https://docs.stripe.com/api/shipping_rates/object)'s `amount`, `tax_code` and `tax_behavior` are used",
		},
		"shipping_cost.tax_behavior": {
			Type:             "string",
			ShortDescription: "Specifies whether the `amount` includes taxes",
			Enum: []resource.EnumSpec{
				{Value: "exclusive"},
				{Value: "inclusive"},
			},
		},
		"shipping_cost.tax_code": {
			Type:             "string",
			ShortDescription: "The [tax code](https://docs.stripe.com/tax/tax-categories) used to calculate tax on shipping",
		},
		"tax_date": {
			Type:             "integer",
			ShortDescription: "Timestamp of date at which the tax rules and rates in effect applies for the calculation",
		},
	},
}
View Source
var V1TaxCalculationsListLineItems = resource.OperationSpec{
	Name:   "list_line_items",
	Path:   "/v1/tax/calculations/{calculation}/line_items",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1TaxCalculationsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/tax/calculations/{calculation}",
	Method: "GET",
}
View Source
var V1TaxCodesList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/tax_codes",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1TaxCodesRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/tax_codes/{id}",
	Method: "GET",
}
View Source
var V1TaxIdsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/customers/{customer}/tax_ids",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"type": {
			Type:             "string",
			ShortDescription: "Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `lk_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `pl_nip`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`",
			Required:         true,
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "ad_nrt"},
				{Value: "ae_trn"},
				{Value: "al_tin"},
				{Value: "am_tin"},
				{Value: "ao_tin"},
				{Value: "ar_cuit"},
				{Value: "au_abn"},
				{Value: "au_arn"},
				{Value: "aw_tin"},
				{Value: "az_tin"},
				{Value: "ba_tin"},
				{Value: "bb_tin"},
				{Value: "bd_bin"},
				{Value: "bf_ifu"},
				{Value: "bg_uic"},
				{Value: "bh_vat"},
				{Value: "bj_ifu"},
				{Value: "bo_tin"},
				{Value: "br_cnpj"},
				{Value: "br_cpf"},
				{Value: "bs_tin"},
				{Value: "by_tin"},
				{Value: "ca_bn"},
				{Value: "ca_gst_hst"},
				{Value: "ca_pst_bc"},
				{Value: "ca_pst_mb"},
				{Value: "ca_pst_sk"},
				{Value: "ca_qst"},
				{Value: "cd_nif"},
				{Value: "ch_uid"},
				{Value: "ch_vat"},
				{Value: "cl_tin"},
				{Value: "cm_niu"},
				{Value: "cn_tin"},
				{Value: "co_nit"},
				{Value: "cr_tin"},
				{Value: "cv_nif"},
				{Value: "de_stn"},
				{Value: "do_rcn"},
				{Value: "ec_ruc"},
				{Value: "eg_tin"},
				{Value: "es_cif"},
				{Value: "et_tin"},
				{Value: "eu_oss_vat"},
				{Value: "eu_vat"},
				{Value: "gb_vat"},
				{Value: "ge_vat"},
				{Value: "gn_nif"},
				{Value: "hk_br"},
				{Value: "hr_oib"},
				{Value: "hu_tin"},
				{Value: "id_npwp"},
				{Value: "il_vat"},
				{Value: "in_gst"},
				{Value: "is_vat"},
				{Value: "jp_cn"},
				{Value: "jp_rn"},
				{Value: "jp_trn"},
				{Value: "ke_pin"},
				{Value: "kg_tin"},
				{Value: "kh_tin"},
				{Value: "kr_brn"},
				{Value: "kz_bin"},
				{Value: "la_tin"},
				{Value: "li_uid"},
				{Value: "li_vat"},
				{Value: "lk_vat"},
				{Value: "ma_vat"},
				{Value: "md_vat"},
				{Value: "me_pib"},
				{Value: "mk_vat"},
				{Value: "mr_nif"},
				{Value: "mx_rfc"},
				{Value: "my_frp"},
				{Value: "my_itn"},
				{Value: "my_sst"},
				{Value: "ng_tin"},
				{Value: "no_vat"},
				{Value: "no_voec"},
				{Value: "np_pan"},
				{Value: "nz_gst"},
				{Value: "om_vat"},
				{Value: "pe_ruc"},
				{Value: "ph_tin"},
				{Value: "pl_nip"},
				{Value: "ro_tin"},
				{Value: "rs_pib"},
				{Value: "ru_inn"},
				{Value: "ru_kpp"},
				{Value: "sa_vat"},
				{Value: "sg_gst"},
				{Value: "sg_uen"},
				{Value: "si_tin"},
				{Value: "sn_ninea"},
				{Value: "sr_fin"},
				{Value: "sv_nit"},
				{Value: "th_vat"},
				{Value: "tj_tin"},
				{Value: "tr_tin"},
				{Value: "tw_vat"},
				{Value: "tz_vat"},
				{Value: "ua_vat"},
				{Value: "ug_tin"},
				{Value: "us_ein"},
				{Value: "uy_ruc"},
				{Value: "uz_tin"},
				{Value: "uz_vat"},
				{Value: "ve_rif"},
				{Value: "vn_tin"},
				{Value: "za_vat"},
				{Value: "zm_tin"},
				{Value: "zw_tin"},
			},
		},
		"value": {
			Type:             "string",
			ShortDescription: "Value of the tax ID",
			Required:         true,
			MostCommon:       true,
		},
	},
}
View Source
var V1TaxIdsDelete = resource.OperationSpec{
	Name:   "delete",
	Path:   "/v1/customers/{customer}/tax_ids/{id}",
	Method: "DELETE",
}
View Source
var V1TaxIdsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/customers/{customer}/tax_ids",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1TaxIdsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/customers/{customer}/tax_ids/{id}",
	Method: "GET",
}
View Source
var V1TaxRatesCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/tax_rates",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"active": {
			Type:             "boolean",
			ShortDescription: "Flag determining whether the tax rate is active or inactive (archived)",
			MostCommon:       true,
		},
		"country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
			MostCommon:       true,
		},
		"description": {
			Type:             "string",
			ShortDescription: "An arbitrary string attached to the tax rate for your internal use only",
			MostCommon:       true,
		},
		"display_name": {
			Type:             "string",
			ShortDescription: "The display name of the tax rate, which will be shown to users",
			Required:         true,
			MostCommon:       true,
		},
		"inclusive": {
			Type:             "boolean",
			ShortDescription: "This specifies if the tax rate is inclusive or exclusive",
			Required:         true,
			MostCommon:       true,
		},
		"jurisdiction": {
			Type:             "string",
			ShortDescription: "The jurisdiction for the tax rate",
			MostCommon:       true,
		},
		"percentage": {
			Type:             "number",
			ShortDescription: "This represents the tax rate percent out of 100",
			Required:         true,
			MostCommon:       true,
		},
		"state": {
			Type:             "string",
			ShortDescription: "[ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix",
			MostCommon:       true,
		},
		"tax_type": {
			Type:             "string",
			ShortDescription: "The high-level tax type, such as `vat` or `sales_tax`",
			Enum: []resource.EnumSpec{
				{Value: "amusement_tax"},
				{Value: "communications_tax"},
				{Value: "gst"},
				{Value: "hst"},
				{Value: "igst"},
				{Value: "jct"},
				{Value: "lease_tax"},
				{Value: "pst"},
				{Value: "qst"},
				{Value: "retail_delivery_fee"},
				{Value: "rst"},
				{Value: "sales_tax"},
				{Value: "service_tax"},
				{Value: "vat"},
			},
		},
	},
}
View Source
var V1TaxRatesList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/tax_rates",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"active": {
			Type:             "boolean",
			ShortDescription: "Optional flag to filter by tax rates that are either active or inactive (archived)",
		},
		"created": {
			Type:             "integer",
			ShortDescription: "Optional range for filtering created date",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"inclusive": {
			Type:             "boolean",
			ShortDescription: "Optional flag to filter by tax rates that are inclusive (or those that are not inclusive)",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1TaxRatesRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/tax_rates/{tax_rate}",
	Method: "GET",
}
View Source
var V1TaxRatesUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/tax_rates/{tax_rate}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"active": {
			Type:             "boolean",
			ShortDescription: "Flag determining whether the tax rate is active or inactive (archived)",
			MostCommon:       true,
		},
		"country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
			MostCommon:       true,
		},
		"description": {
			Type:             "string",
			ShortDescription: "An arbitrary string attached to the tax rate for your internal use only",
			MostCommon:       true,
		},
		"display_name": {
			Type:             "string",
			ShortDescription: "The display name of the tax rate, which will be shown to users",
			MostCommon:       true,
		},
		"jurisdiction": {
			Type:             "string",
			ShortDescription: "The jurisdiction for the tax rate",
			MostCommon:       true,
		},
		"state": {
			Type:             "string",
			ShortDescription: "[ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix",
			MostCommon:       true,
		},
		"tax_type": {
			Type:             "string",
			ShortDescription: "The high-level tax type, such as `vat` or `sales_tax`",
			Enum: []resource.EnumSpec{
				{Value: "amusement_tax"},
				{Value: "communications_tax"},
				{Value: "gst"},
				{Value: "hst"},
				{Value: "igst"},
				{Value: "jct"},
				{Value: "lease_tax"},
				{Value: "pst"},
				{Value: "qst"},
				{Value: "retail_delivery_fee"},
				{Value: "rst"},
				{Value: "sales_tax"},
				{Value: "service_tax"},
				{Value: "vat"},
			},
		},
	},
}
View Source
var V1TaxRegistrationsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/tax/registrations",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"active_from": {
			Type:             "string",
			ShortDescription: "Time at which the Tax Registration becomes active",
			Required:         true,
			MostCommon:       true,
		},
		"country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
			Required:         true,
			MostCommon:       true,
		},
		"country_options.ae.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.ae.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.al.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.al.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.am.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.ao.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.ao.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.at.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an EU standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.at.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in an EU country",
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.au.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.au.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.aw.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.aw.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.az.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.ba.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.ba.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.bb.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.bb.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.bd.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.bd.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.be.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an EU standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.be.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in an EU country",
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.bf.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.bf.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.bg.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an EU standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.bg.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in an EU country",
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.bh.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.bh.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.bj.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.bs.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.bs.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.by.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.ca.province_standard.province": {
			Type:             "string",
			ShortDescription: "Two-letter CA province code ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"country_options.ca.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in Canada",
			Enum: []resource.EnumSpec{
				{Value: "province_standard"},
				{Value: "simplified"},
				{Value: "standard"},
			},
		},
		"country_options.cd.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.cd.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.ch.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.ch.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.cl.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.cm.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.co.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.cr.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.cv.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.cy.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an EU standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.cy.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in an EU country",
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.cz.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an EU standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.cz.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in an EU country",
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.de.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an EU standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.de.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in an EU country",
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.dk.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an EU standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.dk.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in an EU country",
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.ec.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.ee.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an EU standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.ee.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in an EU country",
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.eg.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.es.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an EU standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.es.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in an EU country",
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.et.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.et.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.fi.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an EU standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.fi.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in an EU country",
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.fr.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an EU standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.fr.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in an EU country",
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.gb.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.gb.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.ge.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.gn.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.gn.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.gr.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an EU standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.gr.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in an EU country",
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.hr.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an EU standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.hr.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in an EU country",
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.hu.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an EU standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.hu.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in an EU country",
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.id.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.ie.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an EU standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.ie.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in an EU country",
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.in.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.is.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.is.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.it.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an EU standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.it.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in an EU country",
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.jp.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.jp.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.ke.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.kg.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.kh.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.kr.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.kz.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.la.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.lk.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.lt.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an EU standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.lt.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in an EU country",
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.lu.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an EU standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.lu.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in an EU country",
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.lv.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an EU standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.lv.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in an EU country",
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.ma.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.md.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.me.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.me.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.mk.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.mk.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.mr.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.mr.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.mt.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an EU standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.mt.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in an EU country",
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.mx.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.my.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.ng.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.nl.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an EU standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.nl.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in an EU country",
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.no.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.no.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.np.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.nz.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.nz.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.om.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.om.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.pe.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.ph.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.pl.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an EU standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.pl.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in an EU country",
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.pt.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an EU standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.pt.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in an EU country",
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.ro.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an EU standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.ro.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in an EU country",
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.rs.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.rs.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.ru.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.sa.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.se.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an EU standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.se.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in an EU country",
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.sg.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.sg.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.si.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an EU standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.si.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in an EU country",
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.sk.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an EU standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.sk.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in an EU country",
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.sn.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.sr.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.sr.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.th.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.tj.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.tr.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.tw.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.tz.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.ua.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.ug.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.us.local_amusement_tax.jurisdiction": {
			Type:             "string",
			ShortDescription: "A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction",
		},
		"country_options.us.local_lease_tax.jurisdiction": {
			Type:             "string",
			ShortDescription: "A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction",
		},
		"country_options.us.state": {
			Type:             "string",
			ShortDescription: "Two-letter US state code ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"country_options.us.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in the US",
			Enum: []resource.EnumSpec{
				{Value: "local_amusement_tax"},
				{Value: "local_lease_tax"},
				{Value: "state_communications_tax"},
				{Value: "state_retail_delivery_fee"},
				{Value: "state_sales_tax"},
			},
		},
		"country_options.uy.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.uy.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.uz.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.vn.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.za.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.za.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.zm.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.zw.standard.place_of_supply_scheme": {
			Type:             "string",
			ShortDescription: "Place of supply scheme used in an standard registration",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.zw.type": {
			Type:             "string",
			ShortDescription: "Type of registration to be created in `country`",
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"expires_at": {
			Type:             "integer",
			ShortDescription: "If set, the Tax Registration stops being active at this time",
			MostCommon:       true,
			Format:           "unix-time",
		},
	},
}
View Source
var V1TaxRegistrationsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/tax/registrations",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"status": {
			Type:             "string",
			ShortDescription: "The status of the Tax Registration",
			Enum: []resource.EnumSpec{
				{Value: "active"},
				{Value: "all"},
				{Value: "expired"},
				{Value: "scheduled"},
			},
		},
	},
}
View Source
var V1TaxRegistrationsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/tax/registrations/{id}",
	Method: "GET",
}
View Source
var V1TaxRegistrationsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/tax/registrations/{id}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"active_from": {
			Type:             "string",
			ShortDescription: "Time at which the registration becomes active",
			MostCommon:       true,
		},
		"expires_at": {
			Type:             "string",
			ShortDescription: "If set, the registration stops being active at this time",
			MostCommon:       true,
		},
	},
}
View Source
var V1TaxSettingsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/tax/settings",
	Method: "GET",
}
View Source
var V1TaxSettingsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/tax/settings",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"defaults.tax_behavior": {
			Type:             "string",
			ShortDescription: "Specifies the default [tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#tax-behavior) to be used when the item's price has unspecified tax behavior",
			Enum: []resource.EnumSpec{
				{Value: "exclusive"},
				{Value: "inclusive"},
				{Value: "inferred_by_currency"},
			},
		},
		"defaults.tax_code": {
			Type:             "string",
			ShortDescription: "A [tax code](https://docs.stripe.com/tax/tax-categories) ID",
		},
		"head_office.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"head_office.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"head_office.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"head_office.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"head_office.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"head_office.address.state": {
			Type:             "string",
			ShortDescription: "State/province as an [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) subdivision code, without country prefix, such as \"NY\" or \"TX\"",
		},
	},
}
View Source
var V1TaxTransactionsCreateFromCalculation = resource.OperationSpec{
	Name:   "create_from_calculation",
	Path:   "/v1/tax/transactions/create_from_calculation",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"calculation": {
			Type:             "string",
			ShortDescription: "Tax Calculation ID to be used as input when creating the transaction",
			Required:         true,
			MostCommon:       true,
		},
		"posted_at": {
			Type:             "integer",
			ShortDescription: "The Unix timestamp representing when the tax liability is assumed or reduced, which determines the liability posting period and handling in tax liability reports",
			Format:           "unix-time",
		},
		"reference": {
			Type:             "string",
			ShortDescription: "A custom order or sale identifier, such as 'myOrder_123'. Must be unique across all transactions, including reversals",
			Required:         true,
			MostCommon:       true,
		},
	},
}
View Source
var V1TaxTransactionsCreateReversal = resource.OperationSpec{
	Name:   "create_reversal",
	Path:   "/v1/tax/transactions/create_reversal",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"flat_amount": {
			Type:             "integer",
			ShortDescription: "A flat amount to reverse across the entire transaction, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units) in negative",
			MostCommon:       true,
		},
		"mode": {
			Type:             "string",
			ShortDescription: "If `partial`, the provided line item or shipping cost amounts are reversed",
			Required:         true,
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "full"},
				{Value: "partial"},
			},
		},
		"original_transaction": {
			Type:             "string",
			ShortDescription: "The ID of the Transaction to partially or fully reverse",
			Required:         true,
			MostCommon:       true,
		},
		"reference": {
			Type:             "string",
			ShortDescription: "A custom identifier for this reversal, such as `myOrder_123-refund_1`, which must be unique across all transactions",
			Required:         true,
			MostCommon:       true,
		},
		"shipping_cost.amount": {
			Type:             "integer",
			ShortDescription: "The amount to reverse, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units) in negative",
		},
		"shipping_cost.amount_tax": {
			Type:             "integer",
			ShortDescription: "The amount of tax to reverse, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units) in negative",
		},
	},
}
View Source
var V1TaxTransactionsListLineItems = resource.OperationSpec{
	Name:   "list_line_items",
	Path:   "/v1/tax/transactions/{transaction}/line_items",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1TaxTransactionsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/tax/transactions/{transaction}",
	Method: "GET",
}
View Source
var V1TerminalConfigurationsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/terminal/configurations",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"bbpos_wisepad3.splashscreen": {
			Type:             "string",
			ShortDescription: "A File ID representing an image you want to display on the reader",
		},
		"bbpos_wisepos_e.splashscreen": {
			Type:             "string",
			ShortDescription: "A File ID representing an image to display on the reader",
		},
		"cellular": {
			Type: "clearable_object",
		},
		"cellular.enabled": {
			Type:             "boolean",
			ShortDescription: "Determines whether to allow the reader to connect to a cellular network",
		},
		"name": {
			Type:             "string",
			ShortDescription: "Name of the configuration",
		},
		"offline": {
			Type: "clearable_object",
		},
		"offline.enabled": {
			Type:             "boolean",
			ShortDescription: "Determines whether to allow transactions to be collected while reader is offline",
		},
		"reboot_window.end_hour": {
			Type:             "integer",
			ShortDescription: "Integer between 0 to 23 that represents the end hour of the reboot time window",
		},
		"reboot_window.start_hour": {
			Type:             "integer",
			ShortDescription: "Integer between 0 to 23 that represents the start hour of the reboot time window",
		},
		"stripe_s700.splashscreen": {
			Type:             "string",
			ShortDescription: "A File ID representing an image you want to display on the reader",
		},
		"stripe_s710.splashscreen": {
			Type:             "string",
			ShortDescription: "A File ID representing an image you want to display on the reader",
		},
		"tipping": {
			Type:       "clearable_object",
			MostCommon: true,
		},
		"tipping.aed.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.aed.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.aed.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.aud.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.aud.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.aud.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.cad.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.cad.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.cad.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.chf.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.chf.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.chf.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.czk.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.czk.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.czk.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.dkk.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.dkk.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.dkk.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.eur.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.eur.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.eur.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.gbp.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.gbp.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.gbp.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.gip.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.gip.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.gip.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.hkd.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.hkd.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.hkd.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.huf.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.huf.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.huf.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.jpy.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.jpy.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.jpy.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.mxn.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.mxn.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.mxn.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.myr.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.myr.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.myr.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.nok.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.nok.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.nok.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.nzd.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.nzd.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.nzd.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.pln.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.pln.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.pln.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.ron.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.ron.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.ron.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.sek.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.sek.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.sek.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.sgd.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.sgd.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.sgd.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.usd.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.usd.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.usd.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"verifone_p400.splashscreen": {
			Type:             "string",
			ShortDescription: "A File ID representing an image you want to display on the reader",
		},
		"wifi": {
			Type: "clearable_object",
		},
		"wifi.enterprise_eap_peap.ca_certificate_file": {
			Type:             "string",
			ShortDescription: "A File ID representing a PEM file containing the server certificate",
		},
		"wifi.enterprise_eap_peap.password": {
			Type:             "string",
			ShortDescription: "Password for connecting to the WiFi network",
		},
		"wifi.enterprise_eap_peap.ssid": {
			Type:             "string",
			ShortDescription: "Name of the WiFi network",
		},
		"wifi.enterprise_eap_peap.username": {
			Type:             "string",
			ShortDescription: "Username for connecting to the WiFi network",
		},
		"wifi.enterprise_eap_tls.ca_certificate_file": {
			Type:             "string",
			ShortDescription: "A File ID representing a PEM file containing the server certificate",
		},
		"wifi.enterprise_eap_tls.client_certificate_file": {
			Type:             "string",
			ShortDescription: "A File ID representing a PEM file containing the client certificate",
		},
		"wifi.enterprise_eap_tls.private_key_file": {
			Type:             "string",
			ShortDescription: "A File ID representing a PEM file containing the client RSA private key",
		},
		"wifi.enterprise_eap_tls.private_key_file_password": {
			Type:             "string",
			ShortDescription: "Password for the private key file",
		},
		"wifi.enterprise_eap_tls.ssid": {
			Type:             "string",
			ShortDescription: "Name of the WiFi network",
		},
		"wifi.personal_psk.password": {
			Type:             "string",
			ShortDescription: "Password for connecting to the WiFi network",
		},
		"wifi.personal_psk.ssid": {
			Type:             "string",
			ShortDescription: "Name of the WiFi network",
		},
		"wifi.type": {
			Type:             "string",
			ShortDescription: "Security type of the WiFi network",
			Enum: []resource.EnumSpec{
				{Value: "enterprise_eap_peap"},
				{Value: "enterprise_eap_tls"},
				{Value: "personal_psk"},
			},
		},
	},
}
View Source
var V1TerminalConfigurationsDelete = resource.OperationSpec{
	Name:   "delete",
	Path:   "/v1/terminal/configurations/{configuration}",
	Method: "DELETE",
}
View Source
var V1TerminalConfigurationsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/terminal/configurations",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"is_account_default": {
			Type:             "boolean",
			ShortDescription: "if present, only return the account default or non-default configurations",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1TerminalConfigurationsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/terminal/configurations/{configuration}",
	Method: "GET",
}
View Source
var V1TerminalConfigurationsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/terminal/configurations/{configuration}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"bbpos_wisepad3": {
			Type:       "clearable_object",
			MostCommon: true,
		},
		"bbpos_wisepad3.splashscreen": {
			Type:             "string",
			ShortDescription: "A File ID representing an image you want to display on the reader",
			MostCommon:       true,
		},
		"bbpos_wisepos_e": {
			Type:       "clearable_object",
			MostCommon: true,
		},
		"bbpos_wisepos_e.splashscreen": {
			Type:             "string",
			ShortDescription: "A File ID representing an image to display on the reader",
			MostCommon:       true,
		},
		"cellular": {
			Type: "clearable_object",
		},
		"cellular.enabled": {
			Type:             "boolean",
			ShortDescription: "Determines whether to allow the reader to connect to a cellular network",
		},
		"name": {
			Type:             "string",
			ShortDescription: "Name of the configuration",
		},
		"offline": {
			Type: "clearable_object",
		},
		"offline.enabled": {
			Type:             "boolean",
			ShortDescription: "Determines whether to allow transactions to be collected while reader is offline",
		},
		"reboot_window": {
			Type: "clearable_object",
		},
		"reboot_window.end_hour": {
			Type:             "integer",
			ShortDescription: "Integer between 0 to 23 that represents the end hour of the reboot time window",
		},
		"reboot_window.start_hour": {
			Type:             "integer",
			ShortDescription: "Integer between 0 to 23 that represents the start hour of the reboot time window",
		},
		"stripe_s700": {
			Type:       "clearable_object",
			MostCommon: true,
		},
		"stripe_s700.splashscreen": {
			Type:             "string",
			ShortDescription: "A File ID representing an image you want to display on the reader",
			MostCommon:       true,
		},
		"stripe_s710": {
			Type: "clearable_object",
		},
		"stripe_s710.splashscreen": {
			Type:             "string",
			ShortDescription: "A File ID representing an image you want to display on the reader",
		},
		"tipping": {
			Type:       "clearable_object",
			MostCommon: true,
		},
		"tipping.aed.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.aed.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.aed.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.aud.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.aud.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.aud.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.cad.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.cad.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.cad.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.chf.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.chf.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.chf.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.czk.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.czk.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.czk.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.dkk.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.dkk.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.dkk.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.eur.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.eur.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.eur.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.gbp.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.gbp.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.gbp.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.gip.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.gip.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.gip.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.hkd.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.hkd.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.hkd.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.huf.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.huf.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.huf.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.jpy.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.jpy.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.jpy.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.mxn.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.mxn.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.mxn.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.myr.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.myr.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.myr.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.nok.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.nok.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.nok.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.nzd.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.nzd.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.nzd.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.pln.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.pln.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.pln.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.ron.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.ron.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.ron.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.sek.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.sek.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.sek.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.sgd.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.sgd.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.sgd.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"tipping.usd.fixed_amounts": {
			Type:             "array",
			ShortDescription: "Fixed amounts displayed when collecting a tip",
		},
		"tipping.usd.percentages": {
			Type:             "array",
			ShortDescription: "Percentages displayed when collecting a tip",
		},
		"tipping.usd.smart_tip_threshold": {
			Type:             "integer",
			ShortDescription: "Below this amount, fixed amounts will be displayed; above it, percentages will be displayed",
		},
		"verifone_p400": {
			Type:       "clearable_object",
			MostCommon: true,
		},
		"verifone_p400.splashscreen": {
			Type:             "string",
			ShortDescription: "A File ID representing an image you want to display on the reader",
			MostCommon:       true,
		},
		"wifi": {
			Type: "clearable_object",
		},
		"wifi.enterprise_eap_peap.ca_certificate_file": {
			Type:             "string",
			ShortDescription: "A File ID representing a PEM file containing the server certificate",
		},
		"wifi.enterprise_eap_peap.password": {
			Type:             "string",
			ShortDescription: "Password for connecting to the WiFi network",
		},
		"wifi.enterprise_eap_peap.ssid": {
			Type:             "string",
			ShortDescription: "Name of the WiFi network",
		},
		"wifi.enterprise_eap_peap.username": {
			Type:             "string",
			ShortDescription: "Username for connecting to the WiFi network",
		},
		"wifi.enterprise_eap_tls.ca_certificate_file": {
			Type:             "string",
			ShortDescription: "A File ID representing a PEM file containing the server certificate",
		},
		"wifi.enterprise_eap_tls.client_certificate_file": {
			Type:             "string",
			ShortDescription: "A File ID representing a PEM file containing the client certificate",
		},
		"wifi.enterprise_eap_tls.private_key_file": {
			Type:             "string",
			ShortDescription: "A File ID representing a PEM file containing the client RSA private key",
		},
		"wifi.enterprise_eap_tls.private_key_file_password": {
			Type:             "string",
			ShortDescription: "Password for the private key file",
		},
		"wifi.enterprise_eap_tls.ssid": {
			Type:             "string",
			ShortDescription: "Name of the WiFi network",
		},
		"wifi.personal_psk.password": {
			Type:             "string",
			ShortDescription: "Password for connecting to the WiFi network",
		},
		"wifi.personal_psk.ssid": {
			Type:             "string",
			ShortDescription: "Name of the WiFi network",
		},
		"wifi.type": {
			Type:             "string",
			ShortDescription: "Security type of the WiFi network",
			Enum: []resource.EnumSpec{
				{Value: "enterprise_eap_peap"},
				{Value: "enterprise_eap_tls"},
				{Value: "personal_psk"},
			},
		},
	},
}
View Source
var V1TerminalConnectionTokensCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/terminal/connection_tokens",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"location": {
			Type:             "string",
			ShortDescription: "The id of the location that this connection token is scoped to",
			MostCommon:       true,
		},
	},
}
View Source
var V1TerminalLocationsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/terminal/locations",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
			MostCommon:       true,
		},
		"address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"address_kana.city": {
			Type:             "string",
			ShortDescription: "City or ward",
		},
		"address_kana.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"address_kana.line1": {
			Type:             "string",
			ShortDescription: "Block or building number",
		},
		"address_kana.line2": {
			Type:             "string",
			ShortDescription: "Building details",
		},
		"address_kana.postal_code": {
			Type:             "string",
			ShortDescription: "Postal code",
		},
		"address_kana.state": {
			Type:             "string",
			ShortDescription: "Prefecture",
		},
		"address_kana.town": {
			Type:             "string",
			ShortDescription: "Town or cho-me",
		},
		"address_kanji.city": {
			Type:             "string",
			ShortDescription: "City or ward",
		},
		"address_kanji.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"address_kanji.line1": {
			Type:             "string",
			ShortDescription: "Block or building number",
		},
		"address_kanji.line2": {
			Type:             "string",
			ShortDescription: "Building details",
		},
		"address_kanji.postal_code": {
			Type:             "string",
			ShortDescription: "Postal code",
		},
		"address_kanji.state": {
			Type:             "string",
			ShortDescription: "Prefecture",
		},
		"address_kanji.town": {
			Type:             "string",
			ShortDescription: "Town or cho-me",
		},
		"configuration_overrides": {
			Type:             "string",
			ShortDescription: "The ID of a configuration that will be used to customize all readers in this location",
		},
		"display_name": {
			Type:             "string",
			ShortDescription: "A name for the location",
			MostCommon:       true,
		},
		"display_name_kana": {
			Type:             "string",
			ShortDescription: "The Kana variation of the name for the location (Japan only)",
		},
		"display_name_kanji": {
			Type:             "string",
			ShortDescription: "The Kanji variation of the name for the location (Japan only)",
		},
		"phone": {
			Type:             "string",
			ShortDescription: "The phone number for the location",
		},
	},
}
View Source
var V1TerminalLocationsDelete = resource.OperationSpec{
	Name:   "delete",
	Path:   "/v1/terminal/locations/{location}",
	Method: "DELETE",
}
View Source
var V1TerminalLocationsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/terminal/locations",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1TerminalLocationsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/terminal/locations/{location}",
	Method: "GET",
}
View Source
var V1TerminalLocationsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/terminal/locations/{location}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"address_kana.city": {
			Type:             "string",
			ShortDescription: "City or ward",
		},
		"address_kana.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"address_kana.line1": {
			Type:             "string",
			ShortDescription: "Block or building number",
		},
		"address_kana.line2": {
			Type:             "string",
			ShortDescription: "Building details",
		},
		"address_kana.postal_code": {
			Type:             "string",
			ShortDescription: "Postal code",
		},
		"address_kana.state": {
			Type:             "string",
			ShortDescription: "Prefecture",
		},
		"address_kana.town": {
			Type:             "string",
			ShortDescription: "Town or cho-me",
		},
		"address_kanji.city": {
			Type:             "string",
			ShortDescription: "City or ward",
		},
		"address_kanji.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"address_kanji.line1": {
			Type:             "string",
			ShortDescription: "Block or building number",
		},
		"address_kanji.line2": {
			Type:             "string",
			ShortDescription: "Building details",
		},
		"address_kanji.postal_code": {
			Type:             "string",
			ShortDescription: "Postal code",
		},
		"address_kanji.state": {
			Type:             "string",
			ShortDescription: "Prefecture",
		},
		"address_kanji.town": {
			Type:             "string",
			ShortDescription: "Town or cho-me",
		},
		"configuration_overrides": {
			Type:             "string",
			ShortDescription: "The ID of a configuration that will be used to customize all readers in this location",
		},
		"display_name": {
			Type:             "string",
			ShortDescription: "A name for the location",
			MostCommon:       true,
		},
		"display_name_kana": {
			Type:             "string",
			ShortDescription: "The Kana variation of the name for the location (Japan only)",
		},
		"display_name_kanji": {
			Type:             "string",
			ShortDescription: "The Kanji variation of the name for the location (Japan only)",
		},
		"phone": {
			Type:             "string",
			ShortDescription: "The phone number for the location",
		},
	},
}
View Source
var V1TerminalOnboardingLinksCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/terminal/onboarding_links",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"link_options.apple_terms_and_conditions.allow_relinking": {
			Type:             "boolean",
			ShortDescription: "Whether the link should also support users relinking their Apple account",
		},
		"link_options.apple_terms_and_conditions.merchant_display_name": {
			Type:             "string",
			ShortDescription: "The business name of the merchant accepting Apple's Terms and Conditions",
		},
		"link_type": {
			Type:             "string",
			ShortDescription: "The type of link being generated",
			Required:         true,
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "apple_terms_and_conditions"},
			},
		},
		"on_behalf_of": {
			Type:             "string",
			ShortDescription: "Stripe account ID to generate the link for",
			MostCommon:       true,
		},
	},
}
View Source
var V1TerminalReadersCancelAction = resource.OperationSpec{
	Name:   "cancel_action",
	Path:   "/v1/terminal/readers/{reader}/cancel_action",
	Method: "POST",
}
View Source
var V1TerminalReadersCollectInputs = resource.OperationSpec{
	Name:   "collect_inputs",
	Path:   "/v1/terminal/readers/{reader}/collect_inputs",
	Method: "POST",
}
View Source
var V1TerminalReadersCollectPaymentMethod = resource.OperationSpec{
	Name:   "collect_payment_method",
	Path:   "/v1/terminal/readers/{reader}/collect_payment_method",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"collect_config.allow_redisplay": {
			Type:             "string",
			ShortDescription: "This field indicates whether this payment method can be shown again to its customer in a checkout flow",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "limited"},
				{Value: "unspecified"},
			},
		},
		"collect_config.enable_customer_cancellation": {
			Type:             "boolean",
			ShortDescription: "Enables cancel button on transaction screens",
		},
		"collect_config.skip_tipping": {
			Type:             "boolean",
			ShortDescription: "Override showing a tipping selection screen on this transaction",
		},
		"collect_config.tipping.amount_eligible": {
			Type:             "integer",
			ShortDescription: "Amount used to calculate tip suggestions on tipping selection screen for this transaction",
		},
		"payment_intent": {
			Type:             "string",
			ShortDescription: "The ID of the PaymentIntent to collect a payment method for",
			Required:         true,
			MostCommon:       true,
		},
	},
}
View Source
var V1TerminalReadersConfirmPaymentIntent = resource.OperationSpec{
	Name:   "confirm_payment_intent",
	Path:   "/v1/terminal/readers/{reader}/confirm_payment_intent",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"confirm_config.return_url": {
			Type:             "string",
			ShortDescription: "The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site",
		},
		"payment_intent": {
			Type:             "string",
			ShortDescription: "The ID of the PaymentIntent to confirm",
			Required:         true,
			MostCommon:       true,
		},
	},
}
View Source
var V1TerminalReadersCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/terminal/readers",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"label": {
			Type:             "string",
			ShortDescription: "Custom label given to the reader for easier identification",
			MostCommon:       true,
		},
		"location": {
			Type:             "string",
			ShortDescription: "The location to assign the reader to",
			MostCommon:       true,
		},
		"registration_code": {
			Type:             "string",
			ShortDescription: "A code generated by the reader used for registering to an account",
			Required:         true,
			MostCommon:       true,
		},
	},
}
View Source
var V1TerminalReadersDelete = resource.OperationSpec{
	Name:   "delete",
	Path:   "/v1/terminal/readers/{reader}",
	Method: "DELETE",
}
View Source
var V1TerminalReadersList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/terminal/readers",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"device_type": {
			Type:             "string",
			ShortDescription: "Filters readers by device type",
			Enum: []resource.EnumSpec{
				{Value: "bbpos_chipper2x"},
				{Value: "bbpos_wisepad3"},
				{Value: "bbpos_wisepos_e"},
				{Value: "mobile_phone_reader"},
				{Value: "simulated_stripe_s700"},
				{Value: "simulated_stripe_s710"},
				{Value: "simulated_wisepos_e"},
				{Value: "stripe_m2"},
				{Value: "stripe_s700"},
				{Value: "stripe_s710"},
				{Value: "verifone_P400"},
			},
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"location": {
			Type:             "string",
			ShortDescription: "A location ID to filter the response list to only readers at the specific location",
		},
		"serial_number": {
			Type:             "string",
			ShortDescription: "Filters readers by serial number",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"status": {
			Type:             "string",
			ShortDescription: "A status filter to filter readers to only offline or online readers",
			Enum: []resource.EnumSpec{
				{Value: "offline"},
				{Value: "online"},
			},
		},
	},
}
View Source
var V1TerminalReadersProcessPaymentIntent = resource.OperationSpec{
	Name:   "process_payment_intent",
	Path:   "/v1/terminal/readers/{reader}/process_payment_intent",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"payment_intent": {
			Type:             "string",
			ShortDescription: "The ID of the PaymentIntent to process on the reader",
			Required:         true,
			MostCommon:       true,
		},
		"process_config.allow_redisplay": {
			Type:             "string",
			ShortDescription: "This field indicates whether this payment method can be shown again to its customer in a checkout flow",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "limited"},
				{Value: "unspecified"},
			},
		},
		"process_config.enable_customer_cancellation": {
			Type:             "boolean",
			ShortDescription: "Enables cancel button on transaction screens",
		},
		"process_config.return_url": {
			Type:             "string",
			ShortDescription: "The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site",
		},
		"process_config.skip_tipping": {
			Type:             "boolean",
			ShortDescription: "Override showing a tipping selection screen on this transaction",
		},
		"process_config.tipping.amount_eligible": {
			Type:             "integer",
			ShortDescription: "Amount used to calculate tip suggestions on tipping selection screen for this transaction",
		},
	},
}
View Source
var V1TerminalReadersProcessSetupIntent = resource.OperationSpec{
	Name:   "process_setup_intent",
	Path:   "/v1/terminal/readers/{reader}/process_setup_intent",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"allow_redisplay": {
			Type:             "string",
			ShortDescription: "This field indicates whether this payment method can be shown again to its customer in a checkout flow",
			Required:         true,
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "limited"},
				{Value: "unspecified"},
			},
		},
		"process_config.enable_customer_cancellation": {
			Type:             "boolean",
			ShortDescription: "Enables cancel button on transaction screens",
		},
		"setup_intent": {
			Type:             "string",
			ShortDescription: "The ID of the SetupIntent to process on the reader",
			Required:         true,
			MostCommon:       true,
		},
	},
}
View Source
var V1TerminalReadersRefundPayment = resource.OperationSpec{
	Name:   "refund_payment",
	Path:   "/v1/terminal/readers/{reader}/refund_payment",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "A positive integer in __cents__ representing how much of this charge to refund",
			MostCommon:       true,
		},
		"charge": {
			Type:             "string",
			ShortDescription: "ID of the Charge to refund",
			MostCommon:       true,
		},
		"payment_intent": {
			Type:             "string",
			ShortDescription: "ID of the PaymentIntent to refund",
			MostCommon:       true,
		},
		"refund_application_fee": {
			Type:             "boolean",
			ShortDescription: "Boolean indicating whether the application fee should be refunded when refunding this charge",
			MostCommon:       true,
		},
		"refund_payment_config.enable_customer_cancellation": {
			Type:             "boolean",
			ShortDescription: "Enables cancel button on transaction screens",
		},
		"reverse_transfer": {
			Type:             "boolean",
			ShortDescription: "Boolean indicating whether the transfer should be reversed when refunding this charge",
			MostCommon:       true,
		},
	},
}
View Source
var V1TerminalReadersRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/terminal/readers/{reader}",
	Method: "GET",
}
View Source
var V1TerminalReadersSetReaderDisplay = resource.OperationSpec{
	Name:   "set_reader_display",
	Path:   "/v1/terminal/readers/{reader}/set_reader_display",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"cart.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			MostCommon:       true,
			Format:           "currency",
		},
		"cart.tax": {
			Type:             "integer",
			ShortDescription: "The amount of tax in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal)",
		},
		"cart.total": {
			Type:             "integer",
			ShortDescription: "Total balance of cart due in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal)",
			MostCommon:       true,
		},
		"type": {
			Type:             "string",
			ShortDescription: "Type of information to display",
			Required:         true,
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "cart"},
			},
		},
	},
}
View Source
var V1TerminalReadersTestHelpersPresentPaymentMethod = resource.OperationSpec{
	Name:   "present_payment_method",
	Path:   "/v1/test_helpers/terminal/readers/{reader}/present_payment_method",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount_tip": {
			Type:             "integer",
			ShortDescription: "Simulated on-reader tip amount",
		},
		"card.cvc": {
			Type:             "string",
			ShortDescription: "Card security code",
		},
		"card.exp_month": {
			Type:             "integer",
			ShortDescription: "Two-digit number representing the card's expiration month",
		},
		"card.exp_year": {
			Type:             "integer",
			ShortDescription: "Two- or four-digit number representing the card's expiration year",
		},
		"card.number": {
			Type:             "string",
			ShortDescription: "The card number, as a string without any separators",
		},
		"card_present.number": {
			Type:             "string",
			ShortDescription: "The card number, as a string without any separators",
		},
		"interac_present.number": {
			Type:             "string",
			ShortDescription: "The Interac card number",
		},
		"type": {
			Type:             "string",
			ShortDescription: "Simulated payment type",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "card"},
				{Value: "card_present"},
				{Value: "interac_present"},
			},
		},
	},
}
View Source
var V1TerminalReadersTestHelpersSucceedInputCollection = resource.OperationSpec{
	Name:   "succeed_input_collection",
	Path:   "/v1/test_helpers/terminal/readers/{reader}/succeed_input_collection",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"skip_non_required_inputs": {
			Type:             "string",
			ShortDescription: "This parameter defines the skip behavior for input collection",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "all"},
				{Value: "none"},
			},
		},
	},
}
View Source
var V1TerminalReadersTestHelpersTimeoutInputCollection = resource.OperationSpec{
	Name:   "timeout_input_collection",
	Path:   "/v1/test_helpers/terminal/readers/{reader}/timeout_input_collection",
	Method: "POST",
}
View Source
var V1TerminalReadersUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/terminal/readers/{reader}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"label": {
			Type:             "string",
			ShortDescription: "The new label of the reader",
			MostCommon:       true,
		},
	},
}
View Source
var V1TestHelpersConfirmationTokensCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/test_helpers/confirmation_tokens",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"payment_method": {
			Type:             "string",
			ShortDescription: "ID of an existing PaymentMethod",
			MostCommon:       true,
		},
		"payment_method_data.acss_debit.account_number": {
			Type:             "string",
			ShortDescription: "Customer's bank account number",
		},
		"payment_method_data.acss_debit.institution_number": {
			Type:             "string",
			ShortDescription: "Institution number of the customer's bank",
		},
		"payment_method_data.acss_debit.transit_number": {
			Type:             "string",
			ShortDescription: "Transit number of the customer's bank",
		},
		"payment_method_data.allow_redisplay": {
			Type:             "string",
			ShortDescription: "This field indicates whether this payment method can be shown again to its customer in a checkout flow",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "limited"},
				{Value: "unspecified"},
			},
		},
		"payment_method_data.au_becs_debit.account_number": {
			Type:             "string",
			ShortDescription: "The account number for the bank account",
		},
		"payment_method_data.au_becs_debit.bsb_number": {
			Type:             "string",
			ShortDescription: "Bank-State-Branch number of the bank account",
		},
		"payment_method_data.bacs_debit.account_number": {
			Type:             "string",
			ShortDescription: "Account number of the bank account that the funds will be debited from",
		},
		"payment_method_data.bacs_debit.sort_code": {
			Type:             "string",
			ShortDescription: "Sort code of the bank account. (e.g., `10-20-30`)",
		},
		"payment_method_data.billing_details.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"payment_method_data.billing_details.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"payment_method_data.billing_details.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"payment_method_data.billing_details.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"payment_method_data.billing_details.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"payment_method_data.billing_details.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"payment_method_data.billing_details.email": {
			Type:             "string",
			ShortDescription: "Email address",
		},
		"payment_method_data.billing_details.name": {
			Type:             "string",
			ShortDescription: "Full name",
		},
		"payment_method_data.billing_details.phone": {
			Type:             "string",
			ShortDescription: "Billing phone number (including extension)",
		},
		"payment_method_data.billing_details.tax_id": {
			Type:             "string",
			ShortDescription: "Taxpayer identification number",
		},
		"payment_method_data.boleto.tax_id": {
			Type:             "string",
			ShortDescription: "The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)",
		},
		"payment_method_data.eps.bank": {
			Type:             "string",
			ShortDescription: "The customer's bank",
			Enum: []resource.EnumSpec{
				{Value: "arzte_und_apotheker_bank"},
				{Value: "austrian_anadi_bank_ag"},
				{Value: "bank_austria"},
				{Value: "bankhaus_carl_spangler"},
				{Value: "bankhaus_schelhammer_und_schattera_ag"},
				{Value: "bawag_psk_ag"},
				{Value: "bks_bank_ag"},
				{Value: "brull_kallmus_bank_ag"},
				{Value: "btv_vier_lander_bank"},
				{Value: "capital_bank_grawe_gruppe_ag"},
				{Value: "deutsche_bank_ag"},
				{Value: "dolomitenbank"},
				{Value: "easybank_ag"},
				{Value: "erste_bank_und_sparkassen"},
				{Value: "hypo_alpeadriabank_international_ag"},
				{Value: "hypo_bank_burgenland_aktiengesellschaft"},
				{Value: "hypo_noe_lb_fur_niederosterreich_u_wien"},
				{Value: "hypo_oberosterreich_salzburg_steiermark"},
				{Value: "hypo_tirol_bank_ag"},
				{Value: "hypo_vorarlberg_bank_ag"},
				{Value: "marchfelder_bank"},
				{Value: "oberbank_ag"},
				{Value: "raiffeisen_bankengruppe_osterreich"},
				{Value: "schoellerbank_ag"},
				{Value: "sparda_bank_wien"},
				{Value: "volksbank_gruppe"},
				{Value: "volkskreditbank_ag"},
				{Value: "vr_bank_braunau"},
			},
		},
		"payment_method_data.fpx.account_holder_type": {
			Type:             "string",
			ShortDescription: "Account holder type for FPX transaction",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"payment_method_data.fpx.bank": {
			Type:             "string",
			ShortDescription: "The customer's bank",
			Enum: []resource.EnumSpec{
				{Value: "affin_bank"},
				{Value: "agrobank"},
				{Value: "alliance_bank"},
				{Value: "ambank"},
				{Value: "bank_islam"},
				{Value: "bank_muamalat"},
				{Value: "bank_of_china"},
				{Value: "bank_rakyat"},
				{Value: "bsn"},
				{Value: "cimb"},
				{Value: "deutsche_bank"},
				{Value: "hong_leong_bank"},
				{Value: "hsbc"},
				{Value: "kfh"},
				{Value: "maybank2e"},
				{Value: "maybank2u"},
				{Value: "ocbc"},
				{Value: "pb_enterprise"},
				{Value: "public_bank"},
				{Value: "rhb"},
				{Value: "standard_chartered"},
				{Value: "uob"},
			},
		},
		"payment_method_data.ideal.bank": {
			Type:             "string",
			ShortDescription: "The customer's bank",
			Enum: []resource.EnumSpec{
				{Value: "abn_amro"},
				{Value: "adyen"},
				{Value: "asn_bank"},
				{Value: "bunq"},
				{Value: "buut"},
				{Value: "finom"},
				{Value: "handelsbanken"},
				{Value: "ing"},
				{Value: "knab"},
				{Value: "mollie"},
				{Value: "moneyou"},
				{Value: "n26"},
				{Value: "nn"},
				{Value: "rabobank"},
				{Value: "regiobank"},
				{Value: "revolut"},
				{Value: "sns_bank"},
				{Value: "triodos_bank"},
				{Value: "van_lanschot"},
				{Value: "yoursafe"},
			},
		},
		"payment_method_data.klarna.dob.day": {
			Type:             "integer",
			ShortDescription: "The day of birth, between 1 and 31",
		},
		"payment_method_data.klarna.dob.month": {
			Type:             "integer",
			ShortDescription: "The month of birth, between 1 and 12",
		},
		"payment_method_data.klarna.dob.year": {
			Type:             "integer",
			ShortDescription: "The four-digit year of birth",
		},
		"payment_method_data.naver_pay.funding": {
			Type:             "string",
			ShortDescription: "Whether to use Naver Pay points or a card to fund this transaction",
			Enum: []resource.EnumSpec{
				{Value: "card"},
				{Value: "points"},
			},
		},
		"payment_method_data.nz_bank_account.account_holder_name": {
			Type:             "string",
			ShortDescription: "The name on the bank account",
		},
		"payment_method_data.nz_bank_account.account_number": {
			Type:             "string",
			ShortDescription: "The account number for the bank account",
		},
		"payment_method_data.nz_bank_account.bank_code": {
			Type:             "string",
			ShortDescription: "The numeric code for the bank account's bank",
		},
		"payment_method_data.nz_bank_account.branch_code": {
			Type:             "string",
			ShortDescription: "The numeric code for the bank account's bank branch",
		},
		"payment_method_data.nz_bank_account.reference": {
			Type: "string",
		},
		"payment_method_data.nz_bank_account.suffix": {
			Type:             "string",
			ShortDescription: "The suffix of the bank account number",
		},
		"payment_method_data.p24.bank": {
			Type:             "string",
			ShortDescription: "The customer's bank",
			Enum: []resource.EnumSpec{
				{Value: "alior_bank"},
				{Value: "bank_millennium"},
				{Value: "bank_nowy_bfg_sa"},
				{Value: "bank_pekao_sa"},
				{Value: "banki_spbdzielcze"},
				{Value: "blik"},
				{Value: "bnp_paribas"},
				{Value: "boz"},
				{Value: "citi_handlowy"},
				{Value: "credit_agricole"},
				{Value: "envelobank"},
				{Value: "etransfer_pocztowy24"},
				{Value: "getin_bank"},
				{Value: "ideabank"},
				{Value: "ing"},
				{Value: "inteligo"},
				{Value: "mbank_mtransfer"},
				{Value: "nest_przelew"},
				{Value: "noble_pay"},
				{Value: "pbac_z_ipko"},
				{Value: "plus_bank"},
				{Value: "santander_przelew24"},
				{Value: "tmobile_usbugi_bankowe"},
				{Value: "toyota_bank"},
				{Value: "velobank"},
				{Value: "volkswagen_bank"},
			},
		},
		"payment_method_data.payto.account_number": {
			Type:             "string",
			ShortDescription: "The account number for the bank account",
		},
		"payment_method_data.payto.bsb_number": {
			Type:             "string",
			ShortDescription: "Bank-State-Branch number of the bank account",
		},
		"payment_method_data.payto.pay_id": {
			Type:             "string",
			ShortDescription: "The PayID alias for the bank account",
		},
		"payment_method_data.radar_options.session": {
			Type:             "string",
			ShortDescription: "A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments",
		},
		"payment_method_data.sepa_debit.iban": {
			Type:             "string",
			ShortDescription: "IBAN of the bank account",
		},
		"payment_method_data.sofort.country": {
			Type:             "string",
			ShortDescription: "Two-letter ISO code representing the country the bank account is located in",
			Enum: []resource.EnumSpec{
				{Value: "AT"},
				{Value: "BE"},
				{Value: "DE"},
				{Value: "ES"},
				{Value: "IT"},
				{Value: "NL"},
			},
		},
		"payment_method_data.type": {
			Type:             "string",
			ShortDescription: "The type of the PaymentMethod",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "acss_debit"},
				{Value: "affirm"},
				{Value: "afterpay_clearpay"},
				{Value: "alipay"},
				{Value: "alma"},
				{Value: "amazon_pay"},
				{Value: "au_becs_debit"},
				{Value: "bacs_debit"},
				{Value: "bancontact"},
				{Value: "billie"},
				{Value: "blik"},
				{Value: "boleto"},
				{Value: "cashapp"},
				{Value: "crypto"},
				{Value: "customer_balance"},
				{Value: "eps"},
				{Value: "fpx"},
				{Value: "giropay"},
				{Value: "grabpay"},
				{Value: "ideal"},
				{Value: "kakao_pay"},
				{Value: "klarna"},
				{Value: "konbini"},
				{Value: "kr_card"},
				{Value: "link"},
				{Value: "mb_way"},
				{Value: "mobilepay"},
				{Value: "multibanco"},
				{Value: "naver_pay"},
				{Value: "nz_bank_account"},
				{Value: "oxxo"},
				{Value: "p24"},
				{Value: "pay_by_bank"},
				{Value: "payco"},
				{Value: "paynow"},
				{Value: "paypal"},
				{Value: "payto"},
				{Value: "pix"},
				{Value: "promptpay"},
				{Value: "revolut_pay"},
				{Value: "samsung_pay"},
				{Value: "satispay"},
				{Value: "sepa_debit"},
				{Value: "sofort"},
				{Value: "swish"},
				{Value: "twint"},
				{Value: "upi"},
				{Value: "us_bank_account"},
				{Value: "wechat_pay"},
				{Value: "zip"},
			},
		},
		"payment_method_data.upi.mandate_options.amount": {
			Type:             "integer",
			ShortDescription: "Amount to be charged for future payments",
		},
		"payment_method_data.upi.mandate_options.amount_type": {
			Type:             "string",
			ShortDescription: "One of `fixed` or `maximum`",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_data.upi.mandate_options.description": {
			Type:             "string",
			ShortDescription: "A description of the mandate or subscription that is meant to be displayed to the customer",
		},
		"payment_method_data.upi.mandate_options.end_date": {
			Type:             "integer",
			ShortDescription: "End date of the mandate or subscription",
			Format:           "unix-time",
		},
		"payment_method_data.us_bank_account.account_holder_type": {
			Type:             "string",
			ShortDescription: "Account holder type: individual or company",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"payment_method_data.us_bank_account.account_number": {
			Type:             "string",
			ShortDescription: "Account number of the bank account",
		},
		"payment_method_data.us_bank_account.account_type": {
			Type:             "string",
			ShortDescription: "Account type: checkings or savings",
			Enum: []resource.EnumSpec{
				{Value: "checking"},
				{Value: "savings"},
			},
		},
		"payment_method_data.us_bank_account.financial_connections_account": {
			Type:             "string",
			ShortDescription: "The ID of a Financial Connections Account to use as a payment method",
		},
		"payment_method_data.us_bank_account.routing_number": {
			Type:             "string",
			ShortDescription: "Routing number of the bank account",
		},
		"payment_method_options.card.installments.plan.count": {
			Type:             "integer",
			ShortDescription: "For `fixed_count` installment plans, this is required",
		},
		"payment_method_options.card.installments.plan.interval": {
			Type:             "string",
			ShortDescription: "For `fixed_count` installment plans, this is required",
			Enum: []resource.EnumSpec{
				{Value: "month"},
			},
		},
		"payment_method_options.card.installments.plan.type": {
			Type:             "string",
			ShortDescription: "Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`",
			Enum: []resource.EnumSpec{
				{Value: "bonus"},
				{Value: "fixed_count"},
				{Value: "revolving"},
			},
		},
		"return_url": {
			Type:             "string",
			ShortDescription: "Return URL used to confirm the Intent",
			MostCommon:       true,
		},
		"setup_future_usage": {
			Type:             "string",
			ShortDescription: "Indicates that you intend to make future payments with this ConfirmationToken's payment method",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"shipping.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"shipping.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"shipping.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"shipping.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"shipping.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"shipping.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"shipping.name": {
			Type:             "string",
			ShortDescription: "Recipient name",
			MostCommon:       true,
		},
		"shipping.phone": {
			Type:             "string",
			ShortDescription: "Recipient phone (including extension)",
		},
	},
}
View Source
var V1TestHelpersCustomersFundCashBalance = resource.OperationSpec{
	Name:   "fund_cash_balance",
	Path:   "/v1/test_helpers/customers/{customer}/fund_cash_balance",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "Amount to be used for this test cash balance transaction",
			Required:         true,
			MostCommon:       true,
		},
		"currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Required:         true,
			MostCommon:       true,
			Format:           "currency",
		},
		"reference": {
			Type:             "string",
			ShortDescription: "A description of the test funding",
		},
	},
}
View Source
var V1TestHelpersIssuingAuthorizationsCapture = resource.OperationSpec{
	Name:   "capture",
	Path:   "/v1/test_helpers/issuing/authorizations/{authorization}/capture",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"capture_amount": {
			Type:             "integer",
			ShortDescription: "The amount to capture from the authorization",
			MostCommon:       true,
		},
		"close_authorization": {
			Type:             "boolean",
			ShortDescription: "Whether to close the authorization after capture",
			MostCommon:       true,
		},
		"purchase_details.fleet.cardholder_prompt_data.driver_id": {
			Type:             "string",
			ShortDescription: "Driver ID",
		},
		"purchase_details.fleet.cardholder_prompt_data.odometer": {
			Type:             "integer",
			ShortDescription: "Odometer reading",
		},
		"purchase_details.fleet.cardholder_prompt_data.unspecified_id": {
			Type:             "string",
			ShortDescription: "An alphanumeric ID",
		},
		"purchase_details.fleet.cardholder_prompt_data.user_id": {
			Type:             "string",
			ShortDescription: "User ID",
		},
		"purchase_details.fleet.cardholder_prompt_data.vehicle_number": {
			Type:             "string",
			ShortDescription: "Vehicle number",
		},
		"purchase_details.fleet.purchase_type": {
			Type:             "string",
			ShortDescription: "The type of purchase",
			Enum: []resource.EnumSpec{
				{Value: "fuel_and_non_fuel_purchase"},
				{Value: "fuel_purchase"},
				{Value: "non_fuel_purchase"},
			},
		},
		"purchase_details.fleet.reported_breakdown.fuel.gross_amount_decimal": {
			Type:             "string",
			ShortDescription: "Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes",
			Format:           "decimal",
		},
		"purchase_details.fleet.reported_breakdown.non_fuel.gross_amount_decimal": {
			Type:             "string",
			ShortDescription: "Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes",
			Format:           "decimal",
		},
		"purchase_details.fleet.reported_breakdown.tax.local_amount_decimal": {
			Type:             "string",
			ShortDescription: "Amount of state or provincial Sales Tax included in the transaction amount",
			Format:           "decimal",
		},
		"purchase_details.fleet.reported_breakdown.tax.national_amount_decimal": {
			Type:             "string",
			ShortDescription: "Amount of national Sales Tax or VAT included in the transaction amount",
			Format:           "decimal",
		},
		"purchase_details.fleet.service_type": {
			Type:             "string",
			ShortDescription: "The type of fuel service",
			Enum: []resource.EnumSpec{
				{Value: "full_service"},
				{Value: "non_fuel_transaction"},
				{Value: "self_service"},
			},
		},
		"purchase_details.flight.departure_at": {
			Type:             "integer",
			ShortDescription: "The time that the flight departed",
			Format:           "unix-time",
		},
		"purchase_details.flight.passenger_name": {
			Type:             "string",
			ShortDescription: "The name of the passenger",
		},
		"purchase_details.flight.refundable": {
			Type:             "boolean",
			ShortDescription: "Whether the ticket is refundable",
		},
		"purchase_details.flight.travel_agency": {
			Type:             "string",
			ShortDescription: "The travel agency that issued the ticket",
		},
		"purchase_details.fuel.industry_product_code": {
			Type:             "string",
			ShortDescription: "[Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased",
		},
		"purchase_details.fuel.quantity_decimal": {
			Type:             "string",
			ShortDescription: "The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places",
			Format:           "decimal",
		},
		"purchase_details.fuel.type": {
			Type:             "string",
			ShortDescription: "The type of fuel that was purchased",
			Enum: []resource.EnumSpec{
				{Value: "diesel"},
				{Value: "other"},
				{Value: "unleaded_plus"},
				{Value: "unleaded_regular"},
				{Value: "unleaded_super"},
			},
		},
		"purchase_details.fuel.unit": {
			Type:             "string",
			ShortDescription: "The units for `quantity_decimal`",
			Enum: []resource.EnumSpec{
				{Value: "charging_minute"},
				{Value: "imperial_gallon"},
				{Value: "kilogram"},
				{Value: "kilowatt_hour"},
				{Value: "liter"},
				{Value: "other"},
				{Value: "pound"},
				{Value: "us_gallon"},
			},
		},
		"purchase_details.fuel.unit_cost_decimal": {
			Type:             "string",
			ShortDescription: "The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places",
			Format:           "decimal",
		},
		"purchase_details.lodging.check_in_at": {
			Type:             "integer",
			ShortDescription: "The time of checking into the lodging",
			Format:           "unix-time",
		},
		"purchase_details.lodging.nights": {
			Type:             "integer",
			ShortDescription: "The number of nights stayed at the lodging",
		},
		"purchase_details.reference": {
			Type:             "string",
			ShortDescription: "A merchant-specific order number",
		},
	},
}
View Source
var V1TestHelpersIssuingAuthorizationsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/test_helpers/issuing/authorizations",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "The total amount to attempt to authorize",
			MostCommon:       true,
		},
		"amount_details.atm_fee": {
			Type:             "integer",
			ShortDescription: "The ATM withdrawal fee",
		},
		"amount_details.cashback_amount": {
			Type:             "integer",
			ShortDescription: "The amount of cash requested by the cardholder",
		},
		"authorization_method": {
			Type:             "string",
			ShortDescription: "How the card details were provided",
			Enum: []resource.EnumSpec{
				{Value: "chip"},
				{Value: "contactless"},
				{Value: "keyed_in"},
				{Value: "online"},
				{Value: "swipe"},
			},
		},
		"card": {
			Type:             "string",
			ShortDescription: "Card associated with this authorization",
			Required:         true,
			MostCommon:       true,
		},
		"currency": {
			Type:             "string",
			ShortDescription: "The currency of the authorization",
			MostCommon:       true,
			Format:           "currency",
		},
		"fleet.cardholder_prompt_data.driver_id": {
			Type:             "string",
			ShortDescription: "Driver ID",
		},
		"fleet.cardholder_prompt_data.odometer": {
			Type:             "integer",
			ShortDescription: "Odometer reading",
		},
		"fleet.cardholder_prompt_data.unspecified_id": {
			Type:             "string",
			ShortDescription: "An alphanumeric ID",
		},
		"fleet.cardholder_prompt_data.user_id": {
			Type:             "string",
			ShortDescription: "User ID",
		},
		"fleet.cardholder_prompt_data.vehicle_number": {
			Type:             "string",
			ShortDescription: "Vehicle number",
		},
		"fleet.purchase_type": {
			Type:             "string",
			ShortDescription: "The type of purchase",
			Enum: []resource.EnumSpec{
				{Value: "fuel_and_non_fuel_purchase"},
				{Value: "fuel_purchase"},
				{Value: "non_fuel_purchase"},
			},
		},
		"fleet.reported_breakdown.fuel.gross_amount_decimal": {
			Type:             "string",
			ShortDescription: "Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes",
			Format:           "decimal",
		},
		"fleet.reported_breakdown.non_fuel.gross_amount_decimal": {
			Type:             "string",
			ShortDescription: "Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes",
			Format:           "decimal",
		},
		"fleet.reported_breakdown.tax.local_amount_decimal": {
			Type:             "string",
			ShortDescription: "Amount of state or provincial Sales Tax included in the transaction amount",
			Format:           "decimal",
		},
		"fleet.reported_breakdown.tax.national_amount_decimal": {
			Type:             "string",
			ShortDescription: "Amount of national Sales Tax or VAT included in the transaction amount",
			Format:           "decimal",
		},
		"fleet.service_type": {
			Type:             "string",
			ShortDescription: "The type of fuel service",
			Enum: []resource.EnumSpec{
				{Value: "full_service"},
				{Value: "non_fuel_transaction"},
				{Value: "self_service"},
			},
		},
		"fraud_disputability_likelihood": {
			Type:             "string",
			ShortDescription: "Probability that this transaction can be disputed in the event of fraud",
			Enum: []resource.EnumSpec{
				{Value: "neutral"},
				{Value: "unknown"},
				{Value: "very_likely"},
				{Value: "very_unlikely"},
			},
		},
		"fuel.industry_product_code": {
			Type:             "string",
			ShortDescription: "[Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased",
		},
		"fuel.quantity_decimal": {
			Type:             "string",
			ShortDescription: "The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places",
			Format:           "decimal",
		},
		"fuel.type": {
			Type:             "string",
			ShortDescription: "The type of fuel that was purchased",
			Enum: []resource.EnumSpec{
				{Value: "diesel"},
				{Value: "other"},
				{Value: "unleaded_plus"},
				{Value: "unleaded_regular"},
				{Value: "unleaded_super"},
			},
		},
		"fuel.unit": {
			Type:             "string",
			ShortDescription: "The units for `quantity_decimal`",
			Enum: []resource.EnumSpec{
				{Value: "charging_minute"},
				{Value: "imperial_gallon"},
				{Value: "kilogram"},
				{Value: "kilowatt_hour"},
				{Value: "liter"},
				{Value: "other"},
				{Value: "pound"},
				{Value: "us_gallon"},
			},
		},
		"fuel.unit_cost_decimal": {
			Type:             "string",
			ShortDescription: "The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places",
			Format:           "decimal",
		},
		"is_amount_controllable": {
			Type:             "boolean",
			ShortDescription: "If set `true`, you may provide [amount](https://docs.stripe.com/api/issuing/authorizations/approve#approve_issuing_authorization-amount) to control how much to hold for the authorization",
		},
		"merchant_amount": {
			Type:             "integer",
			ShortDescription: "The total amount to attempt to authorize",
		},
		"merchant_currency": {
			Type:             "string",
			ShortDescription: "The currency of the authorization",
			Format:           "currency",
		},
		"merchant_data.category": {
			Type:             "string",
			ShortDescription: "A categorization of the seller's type of business",
			Enum: []resource.EnumSpec{
				{Value: "ac_refrigeration_repair"},
				{Value: "accounting_bookkeeping_services"},
				{Value: "advertising_services"},
				{Value: "agricultural_cooperative"},
				{Value: "airlines_air_carriers"},
				{Value: "airports_flying_fields"},
				{Value: "ambulance_services"},
				{Value: "amusement_parks_carnivals"},
				{Value: "antique_reproductions"},
				{Value: "antique_shops"},
				{Value: "aquariums"},
				{Value: "architectural_surveying_services"},
				{Value: "art_dealers_and_galleries"},
				{Value: "artists_supply_and_craft_shops"},
				{Value: "auto_and_home_supply_stores"},
				{Value: "auto_body_repair_shops"},
				{Value: "auto_paint_shops"},
				{Value: "auto_service_shops"},
				{Value: "automated_cash_disburse"},
				{Value: "automated_fuel_dispensers"},
				{Value: "automobile_associations"},
				{Value: "automotive_parts_and_accessories_stores"},
				{Value: "automotive_tire_stores"},
				{Value: "bail_and_bond_payments"},
				{Value: "bakeries"},
				{Value: "bands_orchestras"},
				{Value: "barber_and_beauty_shops"},
				{Value: "betting_casino_gambling"},
				{Value: "bicycle_shops"},
				{Value: "billiard_pool_establishments"},
				{Value: "boat_dealers"},
				{Value: "boat_rentals_and_leases"},
				{Value: "book_stores"},
				{Value: "books_periodicals_and_newspapers"},
				{Value: "bowling_alleys"},
				{Value: "bus_lines"},
				{Value: "business_secretarial_schools"},
				{Value: "buying_shopping_services"},
				{Value: "cable_satellite_and_other_pay_television_and_radio"},
				{Value: "camera_and_photographic_supply_stores"},
				{Value: "candy_nut_and_confectionery_stores"},
				{Value: "car_and_truck_dealers_new_used"},
				{Value: "car_and_truck_dealers_used_only"},
				{Value: "car_rental_agencies"},
				{Value: "car_washes"},
				{Value: "carpentry_services"},
				{Value: "carpet_upholstery_cleaning"},
				{Value: "caterers"},
				{Value: "charitable_and_social_service_organizations_fundraising"},
				{Value: "chemicals_and_allied_products"},
				{Value: "child_care_services"},
				{Value: "childrens_and_infants_wear_stores"},
				{Value: "chiropodists_podiatrists"},
				{Value: "chiropractors"},
				{Value: "cigar_stores_and_stands"},
				{Value: "civic_social_fraternal_associations"},
				{Value: "cleaning_and_maintenance"},
				{Value: "clothing_rental"},
				{Value: "colleges_universities"},
				{Value: "commercial_equipment"},
				{Value: "commercial_footwear"},
				{Value: "commercial_photography_art_and_graphics"},
				{Value: "commuter_transport_and_ferries"},
				{Value: "computer_network_services"},
				{Value: "computer_programming"},
				{Value: "computer_repair"},
				{Value: "computer_software_stores"},
				{Value: "computers_peripherals_and_software"},
				{Value: "concrete_work_services"},
				{Value: "construction_materials"},
				{Value: "consulting_public_relations"},
				{Value: "correspondence_schools"},
				{Value: "cosmetic_stores"},
				{Value: "counseling_services"},
				{Value: "country_clubs"},
				{Value: "courier_services"},
				{Value: "court_costs"},
				{Value: "credit_reporting_agencies"},
				{Value: "cruise_lines"},
				{Value: "dairy_products_stores"},
				{Value: "dance_hall_studios_schools"},
				{Value: "dating_escort_services"},
				{Value: "dentists_orthodontists"},
				{Value: "department_stores"},
				{Value: "detective_agencies"},
				{Value: "digital_goods_applications"},
				{Value: "digital_goods_games"},
				{Value: "digital_goods_large_volume"},
				{Value: "digital_goods_media"},
				{Value: "direct_marketing_catalog_merchant"},
				{Value: "direct_marketing_combination_catalog_and_retail_merchant"},
				{Value: "direct_marketing_inbound_telemarketing"},
				{Value: "direct_marketing_insurance_services"},
				{Value: "direct_marketing_other"},
				{Value: "direct_marketing_outbound_telemarketing"},
				{Value: "direct_marketing_subscription"},
				{Value: "direct_marketing_travel"},
				{Value: "discount_stores"},
				{Value: "doctors"},
				{Value: "door_to_door_sales"},
				{Value: "drapery_window_covering_and_upholstery_stores"},
				{Value: "drinking_places"},
				{Value: "drug_stores_and_pharmacies"},
				{Value: "drugs_drug_proprietaries_and_druggist_sundries"},
				{Value: "dry_cleaners"},
				{Value: "durable_goods"},
				{Value: "duty_free_stores"},
				{Value: "eating_places_restaurants"},
				{Value: "educational_services"},
				{Value: "electric_razor_stores"},
				{Value: "electric_vehicle_charging"},
				{Value: "electrical_parts_and_equipment"},
				{Value: "electrical_services"},
				{Value: "electronics_repair_shops"},
				{Value: "electronics_stores"},
				{Value: "elementary_secondary_schools"},
				{Value: "emergency_services_gcas_visa_use_only"},
				{Value: "employment_temp_agencies"},
				{Value: "equipment_rental"},
				{Value: "exterminating_services"},
				{Value: "family_clothing_stores"},
				{Value: "fast_food_restaurants"},
				{Value: "financial_institutions"},
				{Value: "fines_government_administrative_entities"},
				{Value: "fireplace_fireplace_screens_and_accessories_stores"},
				{Value: "floor_covering_stores"},
				{Value: "florists"},
				{Value: "florists_supplies_nursery_stock_and_flowers"},
				{Value: "freezer_and_locker_meat_provisioners"},
				{Value: "fuel_dealers_non_automotive"},
				{Value: "funeral_services_crematories"},
				{Value: "furniture_home_furnishings_and_equipment_stores_except_appliances"},
				{Value: "furniture_repair_refinishing"},
				{Value: "furriers_and_fur_shops"},
				{Value: "general_services"},
				{Value: "gift_card_novelty_and_souvenir_shops"},
				{Value: "glass_paint_and_wallpaper_stores"},
				{Value: "glassware_crystal_stores"},
				{Value: "golf_courses_public"},
				{Value: "government_licensed_horse_dog_racing_us_region_only"},
				{Value: "government_licensed_online_casions_online_gambling_us_region_only"},
				{Value: "government_owned_lotteries_non_us_region"},
				{Value: "government_owned_lotteries_us_region_only"},
				{Value: "government_services"},
				{Value: "grocery_stores_supermarkets"},
				{Value: "hardware_equipment_and_supplies"},
				{Value: "hardware_stores"},
				{Value: "health_and_beauty_spas"},
				{Value: "hearing_aids_sales_and_supplies"},
				{Value: "heating_plumbing_a_c"},
				{Value: "hobby_toy_and_game_shops"},
				{Value: "home_supply_warehouse_stores"},
				{Value: "hospitals"},
				{Value: "hotels_motels_and_resorts"},
				{Value: "household_appliance_stores"},
				{Value: "industrial_supplies"},
				{Value: "information_retrieval_services"},
				{Value: "insurance_default"},
				{Value: "insurance_underwriting_premiums"},
				{Value: "intra_company_purchases"},
				{Value: "jewelry_stores_watches_clocks_and_silverware_stores"},
				{Value: "landscaping_services"},
				{Value: "laundries"},
				{Value: "laundry_cleaning_services"},
				{Value: "legal_services_attorneys"},
				{Value: "luggage_and_leather_goods_stores"},
				{Value: "lumber_building_materials_stores"},
				{Value: "manual_cash_disburse"},
				{Value: "marinas_service_and_supplies"},
				{Value: "marketplaces"},
				{Value: "masonry_stonework_and_plaster"},
				{Value: "massage_parlors"},
				{Value: "medical_and_dental_labs"},
				{Value: "medical_dental_ophthalmic_and_hospital_equipment_and_supplies"},
				{Value: "medical_services"},
				{Value: "membership_organizations"},
				{Value: "mens_and_boys_clothing_and_accessories_stores"},
				{Value: "mens_womens_clothing_stores"},
				{Value: "metal_service_centers"},
				{Value: "miscellaneous_apparel_and_accessory_shops"},
				{Value: "miscellaneous_auto_dealers"},
				{Value: "miscellaneous_business_services"},
				{Value: "miscellaneous_food_stores"},
				{Value: "miscellaneous_general_merchandise"},
				{Value: "miscellaneous_general_services"},
				{Value: "miscellaneous_home_furnishing_specialty_stores"},
				{Value: "miscellaneous_publishing_and_printing"},
				{Value: "miscellaneous_recreation_services"},
				{Value: "miscellaneous_repair_shops"},
				{Value: "miscellaneous_specialty_retail"},
				{Value: "mobile_home_dealers"},
				{Value: "motion_picture_theaters"},
				{Value: "motor_freight_carriers_and_trucking"},
				{Value: "motor_homes_dealers"},
				{Value: "motor_vehicle_supplies_and_new_parts"},
				{Value: "motorcycle_shops_and_dealers"},
				{Value: "motorcycle_shops_dealers"},
				{Value: "music_stores_musical_instruments_pianos_and_sheet_music"},
				{Value: "news_dealers_and_newsstands"},
				{Value: "non_fi_money_orders"},
				{Value: "non_fi_stored_value_card_purchase_load"},
				{Value: "nondurable_goods"},
				{Value: "nurseries_lawn_and_garden_supply_stores"},
				{Value: "nursing_personal_care"},
				{Value: "office_and_commercial_furniture"},
				{Value: "opticians_eyeglasses"},
				{Value: "optometrists_ophthalmologist"},
				{Value: "orthopedic_goods_prosthetic_devices"},
				{Value: "osteopaths"},
				{Value: "package_stores_beer_wine_and_liquor"},
				{Value: "paints_varnishes_and_supplies"},
				{Value: "parking_lots_garages"},
				{Value: "passenger_railways"},
				{Value: "pawn_shops"},
				{Value: "pet_shops_pet_food_and_supplies"},
				{Value: "petroleum_and_petroleum_products"},
				{Value: "photo_developing"},
				{Value: "photographic_photocopy_microfilm_equipment_and_supplies"},
				{Value: "photographic_studios"},
				{Value: "picture_video_production"},
				{Value: "piece_goods_notions_and_other_dry_goods"},
				{Value: "plumbing_heating_equipment_and_supplies"},
				{Value: "political_organizations"},
				{Value: "postal_services_government_only"},
				{Value: "precious_stones_and_metals_watches_and_jewelry"},
				{Value: "professional_services"},
				{Value: "public_warehousing_and_storage"},
				{Value: "quick_copy_repro_and_blueprint"},
				{Value: "railroads"},
				{Value: "real_estate_agents_and_managers_rentals"},
				{Value: "record_stores"},
				{Value: "recreational_vehicle_rentals"},
				{Value: "religious_goods_stores"},
				{Value: "religious_organizations"},
				{Value: "roofing_siding_sheet_metal"},
				{Value: "secretarial_support_services"},
				{Value: "security_brokers_dealers"},
				{Value: "service_stations"},
				{Value: "sewing_needlework_fabric_and_piece_goods_stores"},
				{Value: "shoe_repair_hat_cleaning"},
				{Value: "shoe_stores"},
				{Value: "small_appliance_repair"},
				{Value: "snowmobile_dealers"},
				{Value: "special_trade_services"},
				{Value: "specialty_cleaning"},
				{Value: "sporting_goods_stores"},
				{Value: "sporting_recreation_camps"},
				{Value: "sports_and_riding_apparel_stores"},
				{Value: "sports_clubs_fields"},
				{Value: "stamp_and_coin_stores"},
				{Value: "stationary_office_supplies_printing_and_writing_paper"},
				{Value: "stationery_stores_office_and_school_supply_stores"},
				{Value: "swimming_pools_sales"},
				{Value: "t_ui_travel_germany"},
				{Value: "tailors_alterations"},
				{Value: "tax_payments_government_agencies"},
				{Value: "tax_preparation_services"},
				{Value: "taxicabs_limousines"},
				{Value: "telecommunication_equipment_and_telephone_sales"},
				{Value: "telecommunication_services"},
				{Value: "telegraph_services"},
				{Value: "tent_and_awning_shops"},
				{Value: "testing_laboratories"},
				{Value: "theatrical_ticket_agencies"},
				{Value: "timeshares"},
				{Value: "tire_retreading_and_repair"},
				{Value: "tolls_bridge_fees"},
				{Value: "tourist_attractions_and_exhibits"},
				{Value: "towing_services"},
				{Value: "trailer_parks_campgrounds"},
				{Value: "transportation_services"},
				{Value: "travel_agencies_tour_operators"},
				{Value: "truck_stop_iteration"},
				{Value: "truck_utility_trailer_rentals"},
				{Value: "typesetting_plate_making_and_related_services"},
				{Value: "typewriter_stores"},
				{Value: "u_s_federal_government_agencies_or_departments"},
				{Value: "uniforms_commercial_clothing"},
				{Value: "used_merchandise_and_secondhand_stores"},
				{Value: "utilities"},
				{Value: "variety_stores"},
				{Value: "veterinary_services"},
				{Value: "video_amusement_game_supplies"},
				{Value: "video_game_arcades"},
				{Value: "video_tape_rental_stores"},
				{Value: "vocational_trade_schools"},
				{Value: "watch_jewelry_repair"},
				{Value: "welding_repair"},
				{Value: "wholesale_clubs"},
				{Value: "wig_and_toupee_stores"},
				{Value: "wires_money_orders"},
				{Value: "womens_accessory_and_specialty_shops"},
				{Value: "womens_ready_to_wear_stores"},
				{Value: "wrecking_and_salvage_yards"},
			},
		},
		"merchant_data.city": {
			Type:             "string",
			ShortDescription: "City where the seller is located",
		},
		"merchant_data.country": {
			Type:             "string",
			ShortDescription: "Country where the seller is located",
		},
		"merchant_data.name": {
			Type:             "string",
			ShortDescription: "Name of the seller",
		},
		"merchant_data.network_id": {
			Type:             "string",
			ShortDescription: "Identifier assigned to the seller by the card network",
		},
		"merchant_data.postal_code": {
			Type:             "string",
			ShortDescription: "Postal code where the seller is located",
		},
		"merchant_data.state": {
			Type:             "string",
			ShortDescription: "State where the seller is located",
		},
		"merchant_data.terminal_id": {
			Type:             "string",
			ShortDescription: "An ID assigned by the seller to the location of the sale",
		},
		"merchant_data.url": {
			Type:             "string",
			ShortDescription: "URL provided by the merchant on a 3DS request",
		},
		"network_data.acquiring_institution_id": {
			Type:             "string",
			ShortDescription: "Identifier assigned to the acquirer by the card network",
		},
		"risk_assessment.card_testing_risk.invalid_account_number_decline_rate_past_hour": {
			Type:             "integer",
			ShortDescription: "The % of declines due to a card number not existing in the past hour, taking place at the same merchant",
		},
		"risk_assessment.card_testing_risk.invalid_credentials_decline_rate_past_hour": {
			Type:             "integer",
			ShortDescription: "The % of declines due to incorrect verification data (like CVV or expiry) in the past hour, taking place at the same merchant",
		},
		"risk_assessment.card_testing_risk.level": {
			Type:             "string",
			ShortDescription: "The likelihood that this authorization is associated with card testing activity",
			Enum: []resource.EnumSpec{
				{Value: "elevated"},
				{Value: "highest"},
				{Value: "low"},
				{Value: "normal"},
				{Value: "not_assessed"},
				{Value: "unknown"},
			},
		},
		"risk_assessment.fraud_risk.level": {
			Type:             "string",
			ShortDescription: "Stripe’s assessment of the likelihood of fraud on an authorization",
			Enum: []resource.EnumSpec{
				{Value: "elevated"},
				{Value: "highest"},
				{Value: "low"},
				{Value: "normal"},
				{Value: "not_assessed"},
				{Value: "unknown"},
			},
		},
		"risk_assessment.fraud_risk.score": {
			Type:             "number",
			ShortDescription: "Stripe’s numerical model score assessing the likelihood of fraudulent activity",
		},
		"risk_assessment.merchant_dispute_risk.dispute_rate": {
			Type:             "integer",
			ShortDescription: "The dispute rate observed across all Stripe Issuing authorizations for this merchant",
		},
		"risk_assessment.merchant_dispute_risk.level": {
			Type:             "string",
			ShortDescription: "The likelihood that authorizations from this merchant will result in a dispute based on their history on Stripe Issuing",
			Enum: []resource.EnumSpec{
				{Value: "elevated"},
				{Value: "highest"},
				{Value: "low"},
				{Value: "normal"},
				{Value: "not_assessed"},
				{Value: "unknown"},
			},
		},
		"verification_data.address_line1_check": {
			Type:             "string",
			ShortDescription: "Whether the cardholder provided an address first line and if it matched the cardholder’s `billing.address.line1`",
			Enum: []resource.EnumSpec{
				{Value: "match"},
				{Value: "mismatch"},
				{Value: "not_provided"},
			},
		},
		"verification_data.address_postal_code_check": {
			Type:             "string",
			ShortDescription: "Whether the cardholder provided a postal code and if it matched the cardholder’s `billing.address.postal_code`",
			Enum: []resource.EnumSpec{
				{Value: "match"},
				{Value: "mismatch"},
				{Value: "not_provided"},
			},
		},
		"verification_data.authentication_exemption.claimed_by": {
			Type:             "string",
			ShortDescription: "The entity that requested the exemption, either the acquiring merchant or the Issuing user",
			Enum: []resource.EnumSpec{
				{Value: "acquirer"},
				{Value: "issuer"},
			},
		},
		"verification_data.authentication_exemption.type": {
			Type:             "string",
			ShortDescription: "The specific exemption claimed for this authorization",
			Enum: []resource.EnumSpec{
				{Value: "low_value_transaction"},
				{Value: "transaction_risk_analysis"},
				{Value: "unknown"},
			},
		},
		"verification_data.cvc_check": {
			Type:             "string",
			ShortDescription: "Whether the cardholder provided a CVC and if it matched Stripe’s record",
			Enum: []resource.EnumSpec{
				{Value: "match"},
				{Value: "mismatch"},
				{Value: "not_provided"},
			},
		},
		"verification_data.expiry_check": {
			Type:             "string",
			ShortDescription: "Whether the cardholder provided an expiry date and if it matched Stripe’s record",
			Enum: []resource.EnumSpec{
				{Value: "match"},
				{Value: "mismatch"},
				{Value: "not_provided"},
			},
		},
		"verification_data.three_d_secure.result": {
			Type:             "string",
			ShortDescription: "The outcome of the 3D Secure authentication request",
			Enum: []resource.EnumSpec{
				{Value: "attempt_acknowledged"},
				{Value: "authenticated"},
				{Value: "failed"},
				{Value: "required"},
			},
		},
		"wallet": {
			Type:             "string",
			ShortDescription: "The digital wallet used for this transaction",
			Enum: []resource.EnumSpec{
				{Value: "apple_pay"},
				{Value: "google_pay"},
				{Value: "samsung_pay"},
			},
		},
	},
}
View Source
var V1TestHelpersIssuingAuthorizationsExpire = resource.OperationSpec{
	Name:   "expire",
	Path:   "/v1/test_helpers/issuing/authorizations/{authorization}/expire",
	Method: "POST",
}
View Source
var V1TestHelpersIssuingAuthorizationsFinalizeAmount = resource.OperationSpec{
	Name:   "finalize_amount",
	Path:   "/v1/test_helpers/issuing/authorizations/{authorization}/finalize_amount",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"final_amount": {
			Type:             "integer",
			ShortDescription: "The final authorization amount that will be captured by the merchant",
			Required:         true,
			MostCommon:       true,
		},
		"fleet.cardholder_prompt_data.driver_id": {
			Type:             "string",
			ShortDescription: "Driver ID",
		},
		"fleet.cardholder_prompt_data.odometer": {
			Type:             "integer",
			ShortDescription: "Odometer reading",
		},
		"fleet.cardholder_prompt_data.unspecified_id": {
			Type:             "string",
			ShortDescription: "An alphanumeric ID",
		},
		"fleet.cardholder_prompt_data.user_id": {
			Type:             "string",
			ShortDescription: "User ID",
		},
		"fleet.cardholder_prompt_data.vehicle_number": {
			Type:             "string",
			ShortDescription: "Vehicle number",
		},
		"fleet.purchase_type": {
			Type:             "string",
			ShortDescription: "The type of purchase",
			Enum: []resource.EnumSpec{
				{Value: "fuel_and_non_fuel_purchase"},
				{Value: "fuel_purchase"},
				{Value: "non_fuel_purchase"},
			},
		},
		"fleet.reported_breakdown.fuel.gross_amount_decimal": {
			Type:             "string",
			ShortDescription: "Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes",
			Format:           "decimal",
		},
		"fleet.reported_breakdown.non_fuel.gross_amount_decimal": {
			Type:             "string",
			ShortDescription: "Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes",
			Format:           "decimal",
		},
		"fleet.reported_breakdown.tax.local_amount_decimal": {
			Type:             "string",
			ShortDescription: "Amount of state or provincial Sales Tax included in the transaction amount",
			Format:           "decimal",
		},
		"fleet.reported_breakdown.tax.national_amount_decimal": {
			Type:             "string",
			ShortDescription: "Amount of national Sales Tax or VAT included in the transaction amount",
			Format:           "decimal",
		},
		"fleet.service_type": {
			Type:             "string",
			ShortDescription: "The type of fuel service",
			Enum: []resource.EnumSpec{
				{Value: "full_service"},
				{Value: "non_fuel_transaction"},
				{Value: "self_service"},
			},
		},
		"fuel.industry_product_code": {
			Type:             "string",
			ShortDescription: "[Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased",
		},
		"fuel.quantity_decimal": {
			Type:             "string",
			ShortDescription: "The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places",
			Format:           "decimal",
		},
		"fuel.type": {
			Type:             "string",
			ShortDescription: "The type of fuel that was purchased",
			Enum: []resource.EnumSpec{
				{Value: "diesel"},
				{Value: "other"},
				{Value: "unleaded_plus"},
				{Value: "unleaded_regular"},
				{Value: "unleaded_super"},
			},
		},
		"fuel.unit": {
			Type:             "string",
			ShortDescription: "The units for `quantity_decimal`",
			Enum: []resource.EnumSpec{
				{Value: "charging_minute"},
				{Value: "imperial_gallon"},
				{Value: "kilogram"},
				{Value: "kilowatt_hour"},
				{Value: "liter"},
				{Value: "other"},
				{Value: "pound"},
				{Value: "us_gallon"},
			},
		},
		"fuel.unit_cost_decimal": {
			Type:             "string",
			ShortDescription: "The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places",
			Format:           "decimal",
		},
	},
}
View Source
var V1TestHelpersIssuingAuthorizationsIncrement = resource.OperationSpec{
	Name:   "increment",
	Path:   "/v1/test_helpers/issuing/authorizations/{authorization}/increment",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"increment_amount": {
			Type:             "integer",
			ShortDescription: "The amount to increment the authorization by",
			Required:         true,
			MostCommon:       true,
		},
		"is_amount_controllable": {
			Type:             "boolean",
			ShortDescription: "If set `true`, you may provide [amount](https://docs.stripe.com/api/issuing/authorizations/approve#approve_issuing_authorization-amount) to control how much to hold for the authorization",
			MostCommon:       true,
		},
	},
}
View Source
var V1TestHelpersIssuingAuthorizationsRespond = resource.OperationSpec{
	Name:   "respond",
	Path:   "/v1/test_helpers/issuing/authorizations/{authorization}/fraud_challenges/respond",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"confirmed": {
			Type:             "boolean",
			ShortDescription: "Whether to simulate the user confirming that the transaction was legitimate (true) or telling Stripe that it was fraudulent (false)",
			Required:         true,
			MostCommon:       true,
		},
	},
}
View Source
var V1TestHelpersIssuingAuthorizationsReverse = resource.OperationSpec{
	Name:   "reverse",
	Path:   "/v1/test_helpers/issuing/authorizations/{authorization}/reverse",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"reverse_amount": {
			Type:             "integer",
			ShortDescription: "The amount to reverse from the authorization",
			MostCommon:       true,
		},
	},
}
View Source
var V1TestHelpersIssuingCardsDeliverCard = resource.OperationSpec{
	Name:   "deliver_card",
	Path:   "/v1/test_helpers/issuing/cards/{card}/shipping/deliver",
	Method: "POST",
}
View Source
var V1TestHelpersIssuingCardsFailCard = resource.OperationSpec{
	Name:   "fail_card",
	Path:   "/v1/test_helpers/issuing/cards/{card}/shipping/fail",
	Method: "POST",
}
View Source
var V1TestHelpersIssuingCardsReturnCard = resource.OperationSpec{
	Name:   "return_card",
	Path:   "/v1/test_helpers/issuing/cards/{card}/shipping/return",
	Method: "POST",
}
View Source
var V1TestHelpersIssuingCardsShipCard = resource.OperationSpec{
	Name:   "ship_card",
	Path:   "/v1/test_helpers/issuing/cards/{card}/shipping/ship",
	Method: "POST",
}
View Source
var V1TestHelpersIssuingCardsSubmitCard = resource.OperationSpec{
	Name:   "submit_card",
	Path:   "/v1/test_helpers/issuing/cards/{card}/shipping/submit",
	Method: "POST",
}
View Source
var V1TestHelpersIssuingPersonalizationDesignsActivate = resource.OperationSpec{
	Name:   "activate",
	Path:   "/v1/test_helpers/issuing/personalization_designs/{personalization_design}/activate",
	Method: "POST",
}
View Source
var V1TestHelpersIssuingPersonalizationDesignsDeactivate = resource.OperationSpec{
	Name:   "deactivate",
	Path:   "/v1/test_helpers/issuing/personalization_designs/{personalization_design}/deactivate",
	Method: "POST",
}
View Source
var V1TestHelpersIssuingPersonalizationDesignsReject = resource.OperationSpec{
	Name:   "reject",
	Path:   "/v1/test_helpers/issuing/personalization_designs/{personalization_design}/reject",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"rejection_reasons.card_logo": {
			Type:             "array",
			ShortDescription: "The reason(s) the card logo was rejected",
		},
		"rejection_reasons.carrier_text": {
			Type:             "array",
			ShortDescription: "The reason(s) the carrier text was rejected",
		},
	},
}
View Source
var V1TestHelpersIssuingTransactionsCreateForceCapture = resource.OperationSpec{
	Name:   "create_force_capture",
	Path:   "/v1/test_helpers/issuing/transactions/create_force_capture",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "The total amount to attempt to capture",
			Required:         true,
			MostCommon:       true,
		},
		"card": {
			Type:             "string",
			ShortDescription: "Card associated with this transaction",
			Required:         true,
			MostCommon:       true,
		},
		"currency": {
			Type:             "string",
			ShortDescription: "The currency of the capture",
			MostCommon:       true,
			Format:           "currency",
		},
		"merchant_data.category": {
			Type:             "string",
			ShortDescription: "A categorization of the seller's type of business",
			Enum: []resource.EnumSpec{
				{Value: "ac_refrigeration_repair"},
				{Value: "accounting_bookkeeping_services"},
				{Value: "advertising_services"},
				{Value: "agricultural_cooperative"},
				{Value: "airlines_air_carriers"},
				{Value: "airports_flying_fields"},
				{Value: "ambulance_services"},
				{Value: "amusement_parks_carnivals"},
				{Value: "antique_reproductions"},
				{Value: "antique_shops"},
				{Value: "aquariums"},
				{Value: "architectural_surveying_services"},
				{Value: "art_dealers_and_galleries"},
				{Value: "artists_supply_and_craft_shops"},
				{Value: "auto_and_home_supply_stores"},
				{Value: "auto_body_repair_shops"},
				{Value: "auto_paint_shops"},
				{Value: "auto_service_shops"},
				{Value: "automated_cash_disburse"},
				{Value: "automated_fuel_dispensers"},
				{Value: "automobile_associations"},
				{Value: "automotive_parts_and_accessories_stores"},
				{Value: "automotive_tire_stores"},
				{Value: "bail_and_bond_payments"},
				{Value: "bakeries"},
				{Value: "bands_orchestras"},
				{Value: "barber_and_beauty_shops"},
				{Value: "betting_casino_gambling"},
				{Value: "bicycle_shops"},
				{Value: "billiard_pool_establishments"},
				{Value: "boat_dealers"},
				{Value: "boat_rentals_and_leases"},
				{Value: "book_stores"},
				{Value: "books_periodicals_and_newspapers"},
				{Value: "bowling_alleys"},
				{Value: "bus_lines"},
				{Value: "business_secretarial_schools"},
				{Value: "buying_shopping_services"},
				{Value: "cable_satellite_and_other_pay_television_and_radio"},
				{Value: "camera_and_photographic_supply_stores"},
				{Value: "candy_nut_and_confectionery_stores"},
				{Value: "car_and_truck_dealers_new_used"},
				{Value: "car_and_truck_dealers_used_only"},
				{Value: "car_rental_agencies"},
				{Value: "car_washes"},
				{Value: "carpentry_services"},
				{Value: "carpet_upholstery_cleaning"},
				{Value: "caterers"},
				{Value: "charitable_and_social_service_organizations_fundraising"},
				{Value: "chemicals_and_allied_products"},
				{Value: "child_care_services"},
				{Value: "childrens_and_infants_wear_stores"},
				{Value: "chiropodists_podiatrists"},
				{Value: "chiropractors"},
				{Value: "cigar_stores_and_stands"},
				{Value: "civic_social_fraternal_associations"},
				{Value: "cleaning_and_maintenance"},
				{Value: "clothing_rental"},
				{Value: "colleges_universities"},
				{Value: "commercial_equipment"},
				{Value: "commercial_footwear"},
				{Value: "commercial_photography_art_and_graphics"},
				{Value: "commuter_transport_and_ferries"},
				{Value: "computer_network_services"},
				{Value: "computer_programming"},
				{Value: "computer_repair"},
				{Value: "computer_software_stores"},
				{Value: "computers_peripherals_and_software"},
				{Value: "concrete_work_services"},
				{Value: "construction_materials"},
				{Value: "consulting_public_relations"},
				{Value: "correspondence_schools"},
				{Value: "cosmetic_stores"},
				{Value: "counseling_services"},
				{Value: "country_clubs"},
				{Value: "courier_services"},
				{Value: "court_costs"},
				{Value: "credit_reporting_agencies"},
				{Value: "cruise_lines"},
				{Value: "dairy_products_stores"},
				{Value: "dance_hall_studios_schools"},
				{Value: "dating_escort_services"},
				{Value: "dentists_orthodontists"},
				{Value: "department_stores"},
				{Value: "detective_agencies"},
				{Value: "digital_goods_applications"},
				{Value: "digital_goods_games"},
				{Value: "digital_goods_large_volume"},
				{Value: "digital_goods_media"},
				{Value: "direct_marketing_catalog_merchant"},
				{Value: "direct_marketing_combination_catalog_and_retail_merchant"},
				{Value: "direct_marketing_inbound_telemarketing"},
				{Value: "direct_marketing_insurance_services"},
				{Value: "direct_marketing_other"},
				{Value: "direct_marketing_outbound_telemarketing"},
				{Value: "direct_marketing_subscription"},
				{Value: "direct_marketing_travel"},
				{Value: "discount_stores"},
				{Value: "doctors"},
				{Value: "door_to_door_sales"},
				{Value: "drapery_window_covering_and_upholstery_stores"},
				{Value: "drinking_places"},
				{Value: "drug_stores_and_pharmacies"},
				{Value: "drugs_drug_proprietaries_and_druggist_sundries"},
				{Value: "dry_cleaners"},
				{Value: "durable_goods"},
				{Value: "duty_free_stores"},
				{Value: "eating_places_restaurants"},
				{Value: "educational_services"},
				{Value: "electric_razor_stores"},
				{Value: "electric_vehicle_charging"},
				{Value: "electrical_parts_and_equipment"},
				{Value: "electrical_services"},
				{Value: "electronics_repair_shops"},
				{Value: "electronics_stores"},
				{Value: "elementary_secondary_schools"},
				{Value: "emergency_services_gcas_visa_use_only"},
				{Value: "employment_temp_agencies"},
				{Value: "equipment_rental"},
				{Value: "exterminating_services"},
				{Value: "family_clothing_stores"},
				{Value: "fast_food_restaurants"},
				{Value: "financial_institutions"},
				{Value: "fines_government_administrative_entities"},
				{Value: "fireplace_fireplace_screens_and_accessories_stores"},
				{Value: "floor_covering_stores"},
				{Value: "florists"},
				{Value: "florists_supplies_nursery_stock_and_flowers"},
				{Value: "freezer_and_locker_meat_provisioners"},
				{Value: "fuel_dealers_non_automotive"},
				{Value: "funeral_services_crematories"},
				{Value: "furniture_home_furnishings_and_equipment_stores_except_appliances"},
				{Value: "furniture_repair_refinishing"},
				{Value: "furriers_and_fur_shops"},
				{Value: "general_services"},
				{Value: "gift_card_novelty_and_souvenir_shops"},
				{Value: "glass_paint_and_wallpaper_stores"},
				{Value: "glassware_crystal_stores"},
				{Value: "golf_courses_public"},
				{Value: "government_licensed_horse_dog_racing_us_region_only"},
				{Value: "government_licensed_online_casions_online_gambling_us_region_only"},
				{Value: "government_owned_lotteries_non_us_region"},
				{Value: "government_owned_lotteries_us_region_only"},
				{Value: "government_services"},
				{Value: "grocery_stores_supermarkets"},
				{Value: "hardware_equipment_and_supplies"},
				{Value: "hardware_stores"},
				{Value: "health_and_beauty_spas"},
				{Value: "hearing_aids_sales_and_supplies"},
				{Value: "heating_plumbing_a_c"},
				{Value: "hobby_toy_and_game_shops"},
				{Value: "home_supply_warehouse_stores"},
				{Value: "hospitals"},
				{Value: "hotels_motels_and_resorts"},
				{Value: "household_appliance_stores"},
				{Value: "industrial_supplies"},
				{Value: "information_retrieval_services"},
				{Value: "insurance_default"},
				{Value: "insurance_underwriting_premiums"},
				{Value: "intra_company_purchases"},
				{Value: "jewelry_stores_watches_clocks_and_silverware_stores"},
				{Value: "landscaping_services"},
				{Value: "laundries"},
				{Value: "laundry_cleaning_services"},
				{Value: "legal_services_attorneys"},
				{Value: "luggage_and_leather_goods_stores"},
				{Value: "lumber_building_materials_stores"},
				{Value: "manual_cash_disburse"},
				{Value: "marinas_service_and_supplies"},
				{Value: "marketplaces"},
				{Value: "masonry_stonework_and_plaster"},
				{Value: "massage_parlors"},
				{Value: "medical_and_dental_labs"},
				{Value: "medical_dental_ophthalmic_and_hospital_equipment_and_supplies"},
				{Value: "medical_services"},
				{Value: "membership_organizations"},
				{Value: "mens_and_boys_clothing_and_accessories_stores"},
				{Value: "mens_womens_clothing_stores"},
				{Value: "metal_service_centers"},
				{Value: "miscellaneous_apparel_and_accessory_shops"},
				{Value: "miscellaneous_auto_dealers"},
				{Value: "miscellaneous_business_services"},
				{Value: "miscellaneous_food_stores"},
				{Value: "miscellaneous_general_merchandise"},
				{Value: "miscellaneous_general_services"},
				{Value: "miscellaneous_home_furnishing_specialty_stores"},
				{Value: "miscellaneous_publishing_and_printing"},
				{Value: "miscellaneous_recreation_services"},
				{Value: "miscellaneous_repair_shops"},
				{Value: "miscellaneous_specialty_retail"},
				{Value: "mobile_home_dealers"},
				{Value: "motion_picture_theaters"},
				{Value: "motor_freight_carriers_and_trucking"},
				{Value: "motor_homes_dealers"},
				{Value: "motor_vehicle_supplies_and_new_parts"},
				{Value: "motorcycle_shops_and_dealers"},
				{Value: "motorcycle_shops_dealers"},
				{Value: "music_stores_musical_instruments_pianos_and_sheet_music"},
				{Value: "news_dealers_and_newsstands"},
				{Value: "non_fi_money_orders"},
				{Value: "non_fi_stored_value_card_purchase_load"},
				{Value: "nondurable_goods"},
				{Value: "nurseries_lawn_and_garden_supply_stores"},
				{Value: "nursing_personal_care"},
				{Value: "office_and_commercial_furniture"},
				{Value: "opticians_eyeglasses"},
				{Value: "optometrists_ophthalmologist"},
				{Value: "orthopedic_goods_prosthetic_devices"},
				{Value: "osteopaths"},
				{Value: "package_stores_beer_wine_and_liquor"},
				{Value: "paints_varnishes_and_supplies"},
				{Value: "parking_lots_garages"},
				{Value: "passenger_railways"},
				{Value: "pawn_shops"},
				{Value: "pet_shops_pet_food_and_supplies"},
				{Value: "petroleum_and_petroleum_products"},
				{Value: "photo_developing"},
				{Value: "photographic_photocopy_microfilm_equipment_and_supplies"},
				{Value: "photographic_studios"},
				{Value: "picture_video_production"},
				{Value: "piece_goods_notions_and_other_dry_goods"},
				{Value: "plumbing_heating_equipment_and_supplies"},
				{Value: "political_organizations"},
				{Value: "postal_services_government_only"},
				{Value: "precious_stones_and_metals_watches_and_jewelry"},
				{Value: "professional_services"},
				{Value: "public_warehousing_and_storage"},
				{Value: "quick_copy_repro_and_blueprint"},
				{Value: "railroads"},
				{Value: "real_estate_agents_and_managers_rentals"},
				{Value: "record_stores"},
				{Value: "recreational_vehicle_rentals"},
				{Value: "religious_goods_stores"},
				{Value: "religious_organizations"},
				{Value: "roofing_siding_sheet_metal"},
				{Value: "secretarial_support_services"},
				{Value: "security_brokers_dealers"},
				{Value: "service_stations"},
				{Value: "sewing_needlework_fabric_and_piece_goods_stores"},
				{Value: "shoe_repair_hat_cleaning"},
				{Value: "shoe_stores"},
				{Value: "small_appliance_repair"},
				{Value: "snowmobile_dealers"},
				{Value: "special_trade_services"},
				{Value: "specialty_cleaning"},
				{Value: "sporting_goods_stores"},
				{Value: "sporting_recreation_camps"},
				{Value: "sports_and_riding_apparel_stores"},
				{Value: "sports_clubs_fields"},
				{Value: "stamp_and_coin_stores"},
				{Value: "stationary_office_supplies_printing_and_writing_paper"},
				{Value: "stationery_stores_office_and_school_supply_stores"},
				{Value: "swimming_pools_sales"},
				{Value: "t_ui_travel_germany"},
				{Value: "tailors_alterations"},
				{Value: "tax_payments_government_agencies"},
				{Value: "tax_preparation_services"},
				{Value: "taxicabs_limousines"},
				{Value: "telecommunication_equipment_and_telephone_sales"},
				{Value: "telecommunication_services"},
				{Value: "telegraph_services"},
				{Value: "tent_and_awning_shops"},
				{Value: "testing_laboratories"},
				{Value: "theatrical_ticket_agencies"},
				{Value: "timeshares"},
				{Value: "tire_retreading_and_repair"},
				{Value: "tolls_bridge_fees"},
				{Value: "tourist_attractions_and_exhibits"},
				{Value: "towing_services"},
				{Value: "trailer_parks_campgrounds"},
				{Value: "transportation_services"},
				{Value: "travel_agencies_tour_operators"},
				{Value: "truck_stop_iteration"},
				{Value: "truck_utility_trailer_rentals"},
				{Value: "typesetting_plate_making_and_related_services"},
				{Value: "typewriter_stores"},
				{Value: "u_s_federal_government_agencies_or_departments"},
				{Value: "uniforms_commercial_clothing"},
				{Value: "used_merchandise_and_secondhand_stores"},
				{Value: "utilities"},
				{Value: "variety_stores"},
				{Value: "veterinary_services"},
				{Value: "video_amusement_game_supplies"},
				{Value: "video_game_arcades"},
				{Value: "video_tape_rental_stores"},
				{Value: "vocational_trade_schools"},
				{Value: "watch_jewelry_repair"},
				{Value: "welding_repair"},
				{Value: "wholesale_clubs"},
				{Value: "wig_and_toupee_stores"},
				{Value: "wires_money_orders"},
				{Value: "womens_accessory_and_specialty_shops"},
				{Value: "womens_ready_to_wear_stores"},
				{Value: "wrecking_and_salvage_yards"},
			},
		},
		"merchant_data.city": {
			Type:             "string",
			ShortDescription: "City where the seller is located",
		},
		"merchant_data.country": {
			Type:             "string",
			ShortDescription: "Country where the seller is located",
		},
		"merchant_data.name": {
			Type:             "string",
			ShortDescription: "Name of the seller",
		},
		"merchant_data.network_id": {
			Type:             "string",
			ShortDescription: "Identifier assigned to the seller by the card network",
		},
		"merchant_data.postal_code": {
			Type:             "string",
			ShortDescription: "Postal code where the seller is located",
		},
		"merchant_data.state": {
			Type:             "string",
			ShortDescription: "State where the seller is located",
		},
		"merchant_data.terminal_id": {
			Type:             "string",
			ShortDescription: "An ID assigned by the seller to the location of the sale",
		},
		"merchant_data.url": {
			Type:             "string",
			ShortDescription: "URL provided by the merchant on a 3DS request",
		},
		"purchase_details.fleet.cardholder_prompt_data.driver_id": {
			Type:             "string",
			ShortDescription: "Driver ID",
		},
		"purchase_details.fleet.cardholder_prompt_data.odometer": {
			Type:             "integer",
			ShortDescription: "Odometer reading",
		},
		"purchase_details.fleet.cardholder_prompt_data.unspecified_id": {
			Type:             "string",
			ShortDescription: "An alphanumeric ID",
		},
		"purchase_details.fleet.cardholder_prompt_data.user_id": {
			Type:             "string",
			ShortDescription: "User ID",
		},
		"purchase_details.fleet.cardholder_prompt_data.vehicle_number": {
			Type:             "string",
			ShortDescription: "Vehicle number",
		},
		"purchase_details.fleet.purchase_type": {
			Type:             "string",
			ShortDescription: "The type of purchase",
			Enum: []resource.EnumSpec{
				{Value: "fuel_and_non_fuel_purchase"},
				{Value: "fuel_purchase"},
				{Value: "non_fuel_purchase"},
			},
		},
		"purchase_details.fleet.reported_breakdown.fuel.gross_amount_decimal": {
			Type:             "string",
			ShortDescription: "Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes",
			Format:           "decimal",
		},
		"purchase_details.fleet.reported_breakdown.non_fuel.gross_amount_decimal": {
			Type:             "string",
			ShortDescription: "Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes",
			Format:           "decimal",
		},
		"purchase_details.fleet.reported_breakdown.tax.local_amount_decimal": {
			Type:             "string",
			ShortDescription: "Amount of state or provincial Sales Tax included in the transaction amount",
			Format:           "decimal",
		},
		"purchase_details.fleet.reported_breakdown.tax.national_amount_decimal": {
			Type:             "string",
			ShortDescription: "Amount of national Sales Tax or VAT included in the transaction amount",
			Format:           "decimal",
		},
		"purchase_details.fleet.service_type": {
			Type:             "string",
			ShortDescription: "The type of fuel service",
			Enum: []resource.EnumSpec{
				{Value: "full_service"},
				{Value: "non_fuel_transaction"},
				{Value: "self_service"},
			},
		},
		"purchase_details.flight.departure_at": {
			Type:             "integer",
			ShortDescription: "The time that the flight departed",
			Format:           "unix-time",
		},
		"purchase_details.flight.passenger_name": {
			Type:             "string",
			ShortDescription: "The name of the passenger",
		},
		"purchase_details.flight.refundable": {
			Type:             "boolean",
			ShortDescription: "Whether the ticket is refundable",
		},
		"purchase_details.flight.travel_agency": {
			Type:             "string",
			ShortDescription: "The travel agency that issued the ticket",
		},
		"purchase_details.fuel.industry_product_code": {
			Type:             "string",
			ShortDescription: "[Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased",
		},
		"purchase_details.fuel.quantity_decimal": {
			Type:             "string",
			ShortDescription: "The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places",
			Format:           "decimal",
		},
		"purchase_details.fuel.type": {
			Type:             "string",
			ShortDescription: "The type of fuel that was purchased",
			Enum: []resource.EnumSpec{
				{Value: "diesel"},
				{Value: "other"},
				{Value: "unleaded_plus"},
				{Value: "unleaded_regular"},
				{Value: "unleaded_super"},
			},
		},
		"purchase_details.fuel.unit": {
			Type:             "string",
			ShortDescription: "The units for `quantity_decimal`",
			Enum: []resource.EnumSpec{
				{Value: "charging_minute"},
				{Value: "imperial_gallon"},
				{Value: "kilogram"},
				{Value: "kilowatt_hour"},
				{Value: "liter"},
				{Value: "other"},
				{Value: "pound"},
				{Value: "us_gallon"},
			},
		},
		"purchase_details.fuel.unit_cost_decimal": {
			Type:             "string",
			ShortDescription: "The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places",
			Format:           "decimal",
		},
		"purchase_details.lodging.check_in_at": {
			Type:             "integer",
			ShortDescription: "The time of checking into the lodging",
			Format:           "unix-time",
		},
		"purchase_details.lodging.nights": {
			Type:             "integer",
			ShortDescription: "The number of nights stayed at the lodging",
		},
		"purchase_details.reference": {
			Type:             "string",
			ShortDescription: "A merchant-specific order number",
		},
	},
}
View Source
var V1TestHelpersIssuingTransactionsCreateUnlinkedRefund = resource.OperationSpec{
	Name:   "create_unlinked_refund",
	Path:   "/v1/test_helpers/issuing/transactions/create_unlinked_refund",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "The total amount to attempt to refund",
			Required:         true,
			MostCommon:       true,
		},
		"card": {
			Type:             "string",
			ShortDescription: "Card associated with this unlinked refund transaction",
			Required:         true,
			MostCommon:       true,
		},
		"currency": {
			Type:             "string",
			ShortDescription: "The currency of the unlinked refund",
			MostCommon:       true,
			Format:           "currency",
		},
		"merchant_data.category": {
			Type:             "string",
			ShortDescription: "A categorization of the seller's type of business",
			Enum: []resource.EnumSpec{
				{Value: "ac_refrigeration_repair"},
				{Value: "accounting_bookkeeping_services"},
				{Value: "advertising_services"},
				{Value: "agricultural_cooperative"},
				{Value: "airlines_air_carriers"},
				{Value: "airports_flying_fields"},
				{Value: "ambulance_services"},
				{Value: "amusement_parks_carnivals"},
				{Value: "antique_reproductions"},
				{Value: "antique_shops"},
				{Value: "aquariums"},
				{Value: "architectural_surveying_services"},
				{Value: "art_dealers_and_galleries"},
				{Value: "artists_supply_and_craft_shops"},
				{Value: "auto_and_home_supply_stores"},
				{Value: "auto_body_repair_shops"},
				{Value: "auto_paint_shops"},
				{Value: "auto_service_shops"},
				{Value: "automated_cash_disburse"},
				{Value: "automated_fuel_dispensers"},
				{Value: "automobile_associations"},
				{Value: "automotive_parts_and_accessories_stores"},
				{Value: "automotive_tire_stores"},
				{Value: "bail_and_bond_payments"},
				{Value: "bakeries"},
				{Value: "bands_orchestras"},
				{Value: "barber_and_beauty_shops"},
				{Value: "betting_casino_gambling"},
				{Value: "bicycle_shops"},
				{Value: "billiard_pool_establishments"},
				{Value: "boat_dealers"},
				{Value: "boat_rentals_and_leases"},
				{Value: "book_stores"},
				{Value: "books_periodicals_and_newspapers"},
				{Value: "bowling_alleys"},
				{Value: "bus_lines"},
				{Value: "business_secretarial_schools"},
				{Value: "buying_shopping_services"},
				{Value: "cable_satellite_and_other_pay_television_and_radio"},
				{Value: "camera_and_photographic_supply_stores"},
				{Value: "candy_nut_and_confectionery_stores"},
				{Value: "car_and_truck_dealers_new_used"},
				{Value: "car_and_truck_dealers_used_only"},
				{Value: "car_rental_agencies"},
				{Value: "car_washes"},
				{Value: "carpentry_services"},
				{Value: "carpet_upholstery_cleaning"},
				{Value: "caterers"},
				{Value: "charitable_and_social_service_organizations_fundraising"},
				{Value: "chemicals_and_allied_products"},
				{Value: "child_care_services"},
				{Value: "childrens_and_infants_wear_stores"},
				{Value: "chiropodists_podiatrists"},
				{Value: "chiropractors"},
				{Value: "cigar_stores_and_stands"},
				{Value: "civic_social_fraternal_associations"},
				{Value: "cleaning_and_maintenance"},
				{Value: "clothing_rental"},
				{Value: "colleges_universities"},
				{Value: "commercial_equipment"},
				{Value: "commercial_footwear"},
				{Value: "commercial_photography_art_and_graphics"},
				{Value: "commuter_transport_and_ferries"},
				{Value: "computer_network_services"},
				{Value: "computer_programming"},
				{Value: "computer_repair"},
				{Value: "computer_software_stores"},
				{Value: "computers_peripherals_and_software"},
				{Value: "concrete_work_services"},
				{Value: "construction_materials"},
				{Value: "consulting_public_relations"},
				{Value: "correspondence_schools"},
				{Value: "cosmetic_stores"},
				{Value: "counseling_services"},
				{Value: "country_clubs"},
				{Value: "courier_services"},
				{Value: "court_costs"},
				{Value: "credit_reporting_agencies"},
				{Value: "cruise_lines"},
				{Value: "dairy_products_stores"},
				{Value: "dance_hall_studios_schools"},
				{Value: "dating_escort_services"},
				{Value: "dentists_orthodontists"},
				{Value: "department_stores"},
				{Value: "detective_agencies"},
				{Value: "digital_goods_applications"},
				{Value: "digital_goods_games"},
				{Value: "digital_goods_large_volume"},
				{Value: "digital_goods_media"},
				{Value: "direct_marketing_catalog_merchant"},
				{Value: "direct_marketing_combination_catalog_and_retail_merchant"},
				{Value: "direct_marketing_inbound_telemarketing"},
				{Value: "direct_marketing_insurance_services"},
				{Value: "direct_marketing_other"},
				{Value: "direct_marketing_outbound_telemarketing"},
				{Value: "direct_marketing_subscription"},
				{Value: "direct_marketing_travel"},
				{Value: "discount_stores"},
				{Value: "doctors"},
				{Value: "door_to_door_sales"},
				{Value: "drapery_window_covering_and_upholstery_stores"},
				{Value: "drinking_places"},
				{Value: "drug_stores_and_pharmacies"},
				{Value: "drugs_drug_proprietaries_and_druggist_sundries"},
				{Value: "dry_cleaners"},
				{Value: "durable_goods"},
				{Value: "duty_free_stores"},
				{Value: "eating_places_restaurants"},
				{Value: "educational_services"},
				{Value: "electric_razor_stores"},
				{Value: "electric_vehicle_charging"},
				{Value: "electrical_parts_and_equipment"},
				{Value: "electrical_services"},
				{Value: "electronics_repair_shops"},
				{Value: "electronics_stores"},
				{Value: "elementary_secondary_schools"},
				{Value: "emergency_services_gcas_visa_use_only"},
				{Value: "employment_temp_agencies"},
				{Value: "equipment_rental"},
				{Value: "exterminating_services"},
				{Value: "family_clothing_stores"},
				{Value: "fast_food_restaurants"},
				{Value: "financial_institutions"},
				{Value: "fines_government_administrative_entities"},
				{Value: "fireplace_fireplace_screens_and_accessories_stores"},
				{Value: "floor_covering_stores"},
				{Value: "florists"},
				{Value: "florists_supplies_nursery_stock_and_flowers"},
				{Value: "freezer_and_locker_meat_provisioners"},
				{Value: "fuel_dealers_non_automotive"},
				{Value: "funeral_services_crematories"},
				{Value: "furniture_home_furnishings_and_equipment_stores_except_appliances"},
				{Value: "furniture_repair_refinishing"},
				{Value: "furriers_and_fur_shops"},
				{Value: "general_services"},
				{Value: "gift_card_novelty_and_souvenir_shops"},
				{Value: "glass_paint_and_wallpaper_stores"},
				{Value: "glassware_crystal_stores"},
				{Value: "golf_courses_public"},
				{Value: "government_licensed_horse_dog_racing_us_region_only"},
				{Value: "government_licensed_online_casions_online_gambling_us_region_only"},
				{Value: "government_owned_lotteries_non_us_region"},
				{Value: "government_owned_lotteries_us_region_only"},
				{Value: "government_services"},
				{Value: "grocery_stores_supermarkets"},
				{Value: "hardware_equipment_and_supplies"},
				{Value: "hardware_stores"},
				{Value: "health_and_beauty_spas"},
				{Value: "hearing_aids_sales_and_supplies"},
				{Value: "heating_plumbing_a_c"},
				{Value: "hobby_toy_and_game_shops"},
				{Value: "home_supply_warehouse_stores"},
				{Value: "hospitals"},
				{Value: "hotels_motels_and_resorts"},
				{Value: "household_appliance_stores"},
				{Value: "industrial_supplies"},
				{Value: "information_retrieval_services"},
				{Value: "insurance_default"},
				{Value: "insurance_underwriting_premiums"},
				{Value: "intra_company_purchases"},
				{Value: "jewelry_stores_watches_clocks_and_silverware_stores"},
				{Value: "landscaping_services"},
				{Value: "laundries"},
				{Value: "laundry_cleaning_services"},
				{Value: "legal_services_attorneys"},
				{Value: "luggage_and_leather_goods_stores"},
				{Value: "lumber_building_materials_stores"},
				{Value: "manual_cash_disburse"},
				{Value: "marinas_service_and_supplies"},
				{Value: "marketplaces"},
				{Value: "masonry_stonework_and_plaster"},
				{Value: "massage_parlors"},
				{Value: "medical_and_dental_labs"},
				{Value: "medical_dental_ophthalmic_and_hospital_equipment_and_supplies"},
				{Value: "medical_services"},
				{Value: "membership_organizations"},
				{Value: "mens_and_boys_clothing_and_accessories_stores"},
				{Value: "mens_womens_clothing_stores"},
				{Value: "metal_service_centers"},
				{Value: "miscellaneous_apparel_and_accessory_shops"},
				{Value: "miscellaneous_auto_dealers"},
				{Value: "miscellaneous_business_services"},
				{Value: "miscellaneous_food_stores"},
				{Value: "miscellaneous_general_merchandise"},
				{Value: "miscellaneous_general_services"},
				{Value: "miscellaneous_home_furnishing_specialty_stores"},
				{Value: "miscellaneous_publishing_and_printing"},
				{Value: "miscellaneous_recreation_services"},
				{Value: "miscellaneous_repair_shops"},
				{Value: "miscellaneous_specialty_retail"},
				{Value: "mobile_home_dealers"},
				{Value: "motion_picture_theaters"},
				{Value: "motor_freight_carriers_and_trucking"},
				{Value: "motor_homes_dealers"},
				{Value: "motor_vehicle_supplies_and_new_parts"},
				{Value: "motorcycle_shops_and_dealers"},
				{Value: "motorcycle_shops_dealers"},
				{Value: "music_stores_musical_instruments_pianos_and_sheet_music"},
				{Value: "news_dealers_and_newsstands"},
				{Value: "non_fi_money_orders"},
				{Value: "non_fi_stored_value_card_purchase_load"},
				{Value: "nondurable_goods"},
				{Value: "nurseries_lawn_and_garden_supply_stores"},
				{Value: "nursing_personal_care"},
				{Value: "office_and_commercial_furniture"},
				{Value: "opticians_eyeglasses"},
				{Value: "optometrists_ophthalmologist"},
				{Value: "orthopedic_goods_prosthetic_devices"},
				{Value: "osteopaths"},
				{Value: "package_stores_beer_wine_and_liquor"},
				{Value: "paints_varnishes_and_supplies"},
				{Value: "parking_lots_garages"},
				{Value: "passenger_railways"},
				{Value: "pawn_shops"},
				{Value: "pet_shops_pet_food_and_supplies"},
				{Value: "petroleum_and_petroleum_products"},
				{Value: "photo_developing"},
				{Value: "photographic_photocopy_microfilm_equipment_and_supplies"},
				{Value: "photographic_studios"},
				{Value: "picture_video_production"},
				{Value: "piece_goods_notions_and_other_dry_goods"},
				{Value: "plumbing_heating_equipment_and_supplies"},
				{Value: "political_organizations"},
				{Value: "postal_services_government_only"},
				{Value: "precious_stones_and_metals_watches_and_jewelry"},
				{Value: "professional_services"},
				{Value: "public_warehousing_and_storage"},
				{Value: "quick_copy_repro_and_blueprint"},
				{Value: "railroads"},
				{Value: "real_estate_agents_and_managers_rentals"},
				{Value: "record_stores"},
				{Value: "recreational_vehicle_rentals"},
				{Value: "religious_goods_stores"},
				{Value: "religious_organizations"},
				{Value: "roofing_siding_sheet_metal"},
				{Value: "secretarial_support_services"},
				{Value: "security_brokers_dealers"},
				{Value: "service_stations"},
				{Value: "sewing_needlework_fabric_and_piece_goods_stores"},
				{Value: "shoe_repair_hat_cleaning"},
				{Value: "shoe_stores"},
				{Value: "small_appliance_repair"},
				{Value: "snowmobile_dealers"},
				{Value: "special_trade_services"},
				{Value: "specialty_cleaning"},
				{Value: "sporting_goods_stores"},
				{Value: "sporting_recreation_camps"},
				{Value: "sports_and_riding_apparel_stores"},
				{Value: "sports_clubs_fields"},
				{Value: "stamp_and_coin_stores"},
				{Value: "stationary_office_supplies_printing_and_writing_paper"},
				{Value: "stationery_stores_office_and_school_supply_stores"},
				{Value: "swimming_pools_sales"},
				{Value: "t_ui_travel_germany"},
				{Value: "tailors_alterations"},
				{Value: "tax_payments_government_agencies"},
				{Value: "tax_preparation_services"},
				{Value: "taxicabs_limousines"},
				{Value: "telecommunication_equipment_and_telephone_sales"},
				{Value: "telecommunication_services"},
				{Value: "telegraph_services"},
				{Value: "tent_and_awning_shops"},
				{Value: "testing_laboratories"},
				{Value: "theatrical_ticket_agencies"},
				{Value: "timeshares"},
				{Value: "tire_retreading_and_repair"},
				{Value: "tolls_bridge_fees"},
				{Value: "tourist_attractions_and_exhibits"},
				{Value: "towing_services"},
				{Value: "trailer_parks_campgrounds"},
				{Value: "transportation_services"},
				{Value: "travel_agencies_tour_operators"},
				{Value: "truck_stop_iteration"},
				{Value: "truck_utility_trailer_rentals"},
				{Value: "typesetting_plate_making_and_related_services"},
				{Value: "typewriter_stores"},
				{Value: "u_s_federal_government_agencies_or_departments"},
				{Value: "uniforms_commercial_clothing"},
				{Value: "used_merchandise_and_secondhand_stores"},
				{Value: "utilities"},
				{Value: "variety_stores"},
				{Value: "veterinary_services"},
				{Value: "video_amusement_game_supplies"},
				{Value: "video_game_arcades"},
				{Value: "video_tape_rental_stores"},
				{Value: "vocational_trade_schools"},
				{Value: "watch_jewelry_repair"},
				{Value: "welding_repair"},
				{Value: "wholesale_clubs"},
				{Value: "wig_and_toupee_stores"},
				{Value: "wires_money_orders"},
				{Value: "womens_accessory_and_specialty_shops"},
				{Value: "womens_ready_to_wear_stores"},
				{Value: "wrecking_and_salvage_yards"},
			},
		},
		"merchant_data.city": {
			Type:             "string",
			ShortDescription: "City where the seller is located",
		},
		"merchant_data.country": {
			Type:             "string",
			ShortDescription: "Country where the seller is located",
		},
		"merchant_data.name": {
			Type:             "string",
			ShortDescription: "Name of the seller",
		},
		"merchant_data.network_id": {
			Type:             "string",
			ShortDescription: "Identifier assigned to the seller by the card network",
		},
		"merchant_data.postal_code": {
			Type:             "string",
			ShortDescription: "Postal code where the seller is located",
		},
		"merchant_data.state": {
			Type:             "string",
			ShortDescription: "State where the seller is located",
		},
		"merchant_data.terminal_id": {
			Type:             "string",
			ShortDescription: "An ID assigned by the seller to the location of the sale",
		},
		"merchant_data.url": {
			Type:             "string",
			ShortDescription: "URL provided by the merchant on a 3DS request",
		},
		"purchase_details.fleet.cardholder_prompt_data.driver_id": {
			Type:             "string",
			ShortDescription: "Driver ID",
		},
		"purchase_details.fleet.cardholder_prompt_data.odometer": {
			Type:             "integer",
			ShortDescription: "Odometer reading",
		},
		"purchase_details.fleet.cardholder_prompt_data.unspecified_id": {
			Type:             "string",
			ShortDescription: "An alphanumeric ID",
		},
		"purchase_details.fleet.cardholder_prompt_data.user_id": {
			Type:             "string",
			ShortDescription: "User ID",
		},
		"purchase_details.fleet.cardholder_prompt_data.vehicle_number": {
			Type:             "string",
			ShortDescription: "Vehicle number",
		},
		"purchase_details.fleet.purchase_type": {
			Type:             "string",
			ShortDescription: "The type of purchase",
			Enum: []resource.EnumSpec{
				{Value: "fuel_and_non_fuel_purchase"},
				{Value: "fuel_purchase"},
				{Value: "non_fuel_purchase"},
			},
		},
		"purchase_details.fleet.reported_breakdown.fuel.gross_amount_decimal": {
			Type:             "string",
			ShortDescription: "Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes",
			Format:           "decimal",
		},
		"purchase_details.fleet.reported_breakdown.non_fuel.gross_amount_decimal": {
			Type:             "string",
			ShortDescription: "Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes",
			Format:           "decimal",
		},
		"purchase_details.fleet.reported_breakdown.tax.local_amount_decimal": {
			Type:             "string",
			ShortDescription: "Amount of state or provincial Sales Tax included in the transaction amount",
			Format:           "decimal",
		},
		"purchase_details.fleet.reported_breakdown.tax.national_amount_decimal": {
			Type:             "string",
			ShortDescription: "Amount of national Sales Tax or VAT included in the transaction amount",
			Format:           "decimal",
		},
		"purchase_details.fleet.service_type": {
			Type:             "string",
			ShortDescription: "The type of fuel service",
			Enum: []resource.EnumSpec{
				{Value: "full_service"},
				{Value: "non_fuel_transaction"},
				{Value: "self_service"},
			},
		},
		"purchase_details.flight.departure_at": {
			Type:             "integer",
			ShortDescription: "The time that the flight departed",
			Format:           "unix-time",
		},
		"purchase_details.flight.passenger_name": {
			Type:             "string",
			ShortDescription: "The name of the passenger",
		},
		"purchase_details.flight.refundable": {
			Type:             "boolean",
			ShortDescription: "Whether the ticket is refundable",
		},
		"purchase_details.flight.travel_agency": {
			Type:             "string",
			ShortDescription: "The travel agency that issued the ticket",
		},
		"purchase_details.fuel.industry_product_code": {
			Type:             "string",
			ShortDescription: "[Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased",
		},
		"purchase_details.fuel.quantity_decimal": {
			Type:             "string",
			ShortDescription: "The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places",
			Format:           "decimal",
		},
		"purchase_details.fuel.type": {
			Type:             "string",
			ShortDescription: "The type of fuel that was purchased",
			Enum: []resource.EnumSpec{
				{Value: "diesel"},
				{Value: "other"},
				{Value: "unleaded_plus"},
				{Value: "unleaded_regular"},
				{Value: "unleaded_super"},
			},
		},
		"purchase_details.fuel.unit": {
			Type:             "string",
			ShortDescription: "The units for `quantity_decimal`",
			Enum: []resource.EnumSpec{
				{Value: "charging_minute"},
				{Value: "imperial_gallon"},
				{Value: "kilogram"},
				{Value: "kilowatt_hour"},
				{Value: "liter"},
				{Value: "other"},
				{Value: "pound"},
				{Value: "us_gallon"},
			},
		},
		"purchase_details.fuel.unit_cost_decimal": {
			Type:             "string",
			ShortDescription: "The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places",
			Format:           "decimal",
		},
		"purchase_details.lodging.check_in_at": {
			Type:             "integer",
			ShortDescription: "The time of checking into the lodging",
			Format:           "unix-time",
		},
		"purchase_details.lodging.nights": {
			Type:             "integer",
			ShortDescription: "The number of nights stayed at the lodging",
		},
		"purchase_details.reference": {
			Type:             "string",
			ShortDescription: "A merchant-specific order number",
		},
	},
}
View Source
var V1TestHelpersIssuingTransactionsRefund = resource.OperationSpec{
	Name:   "refund",
	Path:   "/v1/test_helpers/issuing/transactions/{transaction}/refund",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"refund_amount": {
			Type:             "integer",
			ShortDescription: "The total amount to attempt to refund",
			MostCommon:       true,
		},
	},
}
View Source
var V1TestHelpersRefundsExpire = resource.OperationSpec{
	Name:   "expire",
	Path:   "/v1/test_helpers/refunds/{refund}/expire",
	Method: "POST",
}
View Source
var V1TestHelpersTerminalReadersPresentPaymentMethod = resource.OperationSpec{
	Name:   "present_payment_method",
	Path:   "/v1/test_helpers/terminal/readers/{reader}/present_payment_method",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount_tip": {
			Type:             "integer",
			ShortDescription: "Simulated on-reader tip amount",
		},
		"card.cvc": {
			Type:             "string",
			ShortDescription: "Card security code",
		},
		"card.exp_month": {
			Type:             "integer",
			ShortDescription: "Two-digit number representing the card's expiration month",
		},
		"card.exp_year": {
			Type:             "integer",
			ShortDescription: "Two- or four-digit number representing the card's expiration year",
		},
		"card.number": {
			Type:             "string",
			ShortDescription: "The card number, as a string without any separators",
		},
		"card_present.number": {
			Type:             "string",
			ShortDescription: "The card number, as a string without any separators",
		},
		"interac_present.number": {
			Type:             "string",
			ShortDescription: "The Interac card number",
		},
		"type": {
			Type:             "string",
			ShortDescription: "Simulated payment type",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "card"},
				{Value: "card_present"},
				{Value: "interac_present"},
			},
		},
	},
}
View Source
var V1TestHelpersTerminalReadersSucceedInputCollection = resource.OperationSpec{
	Name:   "succeed_input_collection",
	Path:   "/v1/test_helpers/terminal/readers/{reader}/succeed_input_collection",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"skip_non_required_inputs": {
			Type:             "string",
			ShortDescription: "This parameter defines the skip behavior for input collection",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "all"},
				{Value: "none"},
			},
		},
	},
}
View Source
var V1TestHelpersTerminalReadersTimeoutInputCollection = resource.OperationSpec{
	Name:   "timeout_input_collection",
	Path:   "/v1/test_helpers/terminal/readers/{reader}/timeout_input_collection",
	Method: "POST",
}
View Source
var V1TestHelpersTestClocksAdvance = resource.OperationSpec{
	Name:   "advance",
	Path:   "/v1/test_helpers/test_clocks/{test_clock}/advance",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"frozen_time": {
			Type:             "integer",
			ShortDescription: "The time to advance the test clock",
			Required:         true,
			MostCommon:       true,
			Format:           "unix-time",
		},
	},
}
View Source
var V1TestHelpersTestClocksCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/test_helpers/test_clocks",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"frozen_time": {
			Type:             "integer",
			ShortDescription: "The initial frozen time for this test clock",
			Required:         true,
			MostCommon:       true,
			Format:           "unix-time",
		},
		"name": {
			Type:             "string",
			ShortDescription: "The name for this test clock",
			MostCommon:       true,
		},
	},
}
View Source
var V1TestHelpersTestClocksDelete = resource.OperationSpec{
	Name:   "delete",
	Path:   "/v1/test_helpers/test_clocks/{test_clock}",
	Method: "DELETE",
}
View Source
var V1TestHelpersTestClocksList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/test_helpers/test_clocks",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1TestHelpersTestClocksRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/test_helpers/test_clocks/{test_clock}",
	Method: "GET",
}
View Source
var V1TestHelpersTreasuryInboundTransfersFail = resource.OperationSpec{
	Name:   "fail",
	Path:   "/v1/test_helpers/treasury/inbound_transfers/{id}/fail",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"failure_details.code": {
			Type:             "string",
			ShortDescription: "Reason for the failure",
			Enum: []resource.EnumSpec{
				{Value: "account_closed"},
				{Value: "account_frozen"},
				{Value: "bank_account_restricted"},
				{Value: "bank_ownership_changed"},
				{Value: "debit_not_authorized"},
				{Value: "incorrect_account_holder_address"},
				{Value: "incorrect_account_holder_name"},
				{Value: "incorrect_account_holder_tax_id"},
				{Value: "insufficient_funds"},
				{Value: "invalid_account_number"},
				{Value: "invalid_currency"},
				{Value: "no_account"},
				{Value: "other"},
			},
		},
	},
}
View Source
var V1TestHelpersTreasuryInboundTransfersReturnInboundTransfer = resource.OperationSpec{
	Name:   "return_inbound_transfer",
	Path:   "/v1/test_helpers/treasury/inbound_transfers/{id}/return",
	Method: "POST",
}
View Source
var V1TestHelpersTreasuryInboundTransfersSucceed = resource.OperationSpec{
	Name:   "succeed",
	Path:   "/v1/test_helpers/treasury/inbound_transfers/{id}/succeed",
	Method: "POST",
}
View Source
var V1TestHelpersTreasuryOutboundPaymentsFail = resource.OperationSpec{
	Name:   "fail",
	Path:   "/v1/test_helpers/treasury/outbound_payments/{id}/fail",
	Method: "POST",
}
View Source
var V1TestHelpersTreasuryOutboundPaymentsPost = resource.OperationSpec{
	Name:   "post",
	Path:   "/v1/test_helpers/treasury/outbound_payments/{id}/post",
	Method: "POST",
}
View Source
var V1TestHelpersTreasuryOutboundPaymentsReturnOutboundPayment = resource.OperationSpec{
	Name:   "return_outbound_payment",
	Path:   "/v1/test_helpers/treasury/outbound_payments/{id}/return",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"returned_details.code": {
			Type:             "string",
			ShortDescription: "The return code to be set on the OutboundPayment object",
			Enum: []resource.EnumSpec{
				{Value: "account_closed"},
				{Value: "account_frozen"},
				{Value: "bank_account_restricted"},
				{Value: "bank_ownership_changed"},
				{Value: "declined"},
				{Value: "incorrect_account_holder_name"},
				{Value: "invalid_account_number"},
				{Value: "invalid_currency"},
				{Value: "no_account"},
				{Value: "other"},
			},
		},
	},
}
View Source
var V1TestHelpersTreasuryOutboundPaymentsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/test_helpers/treasury/outbound_payments/{id}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"tracking_details.ach.trace_id": {
			Type:             "string",
			ShortDescription: "ACH trace ID for funds sent over the `ach` network",
		},
		"tracking_details.type": {
			Type:             "string",
			ShortDescription: "The US bank account network used to send funds",
			Required:         true,
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "ach"},
				{Value: "us_domestic_wire"},
			},
		},
		"tracking_details.us_domestic_wire.chips": {
			Type:             "string",
			ShortDescription: "CHIPS System Sequence Number (SSN) for funds sent over the `us_domestic_wire` network",
		},
		"tracking_details.us_domestic_wire.imad": {
			Type:             "string",
			ShortDescription: "IMAD for funds sent over the `us_domestic_wire` network",
		},
		"tracking_details.us_domestic_wire.omad": {
			Type:             "string",
			ShortDescription: "OMAD for funds sent over the `us_domestic_wire` network",
		},
	},
}
View Source
var V1TestHelpersTreasuryOutboundTransfersFail = resource.OperationSpec{
	Name:   "fail",
	Path:   "/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/fail",
	Method: "POST",
}
View Source
var V1TestHelpersTreasuryOutboundTransfersPost = resource.OperationSpec{
	Name:   "post",
	Path:   "/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/post",
	Method: "POST",
}
View Source
var V1TestHelpersTreasuryOutboundTransfersReturnOutboundTransfer = resource.OperationSpec{
	Name:   "return_outbound_transfer",
	Path:   "/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/return",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"returned_details.code": {
			Type:             "string",
			ShortDescription: "Reason for the return",
			Enum: []resource.EnumSpec{
				{Value: "account_closed"},
				{Value: "account_frozen"},
				{Value: "bank_account_restricted"},
				{Value: "bank_ownership_changed"},
				{Value: "declined"},
				{Value: "incorrect_account_holder_name"},
				{Value: "invalid_account_number"},
				{Value: "invalid_currency"},
				{Value: "no_account"},
				{Value: "other"},
			},
		},
	},
}
View Source
var V1TestHelpersTreasuryOutboundTransfersUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"tracking_details.ach.trace_id": {
			Type:             "string",
			ShortDescription: "ACH trace ID for funds sent over the `ach` network",
		},
		"tracking_details.type": {
			Type:             "string",
			ShortDescription: "The US bank account network used to send funds",
			Required:         true,
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "ach"},
				{Value: "us_domestic_wire"},
			},
		},
		"tracking_details.us_domestic_wire.chips": {
			Type:             "string",
			ShortDescription: "CHIPS System Sequence Number (SSN) for funds sent over the `us_domestic_wire` network",
		},
		"tracking_details.us_domestic_wire.imad": {
			Type:             "string",
			ShortDescription: "IMAD for funds sent over the `us_domestic_wire` network",
		},
		"tracking_details.us_domestic_wire.omad": {
			Type:             "string",
			ShortDescription: "OMAD for funds sent over the `us_domestic_wire` network",
		},
	},
}
View Source
var V1TestHelpersTreasuryReceivedCreditsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/test_helpers/treasury/received_credits",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "Amount (in cents) to be transferred",
			Required:         true,
			MostCommon:       true,
		},
		"currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Required:         true,
			MostCommon:       true,
			Format:           "currency",
		},
		"description": {
			Type:             "string",
			ShortDescription: "An arbitrary string attached to the object",
			MostCommon:       true,
		},
		"financial_account": {
			Type:             "string",
			ShortDescription: "The FinancialAccount to send funds to",
			Required:         true,
			MostCommon:       true,
		},
		"initiating_payment_method_details.type": {
			Type:             "string",
			ShortDescription: "The source type",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "us_bank_account"},
			},
		},
		"initiating_payment_method_details.us_bank_account.account_holder_name": {
			Type:             "string",
			ShortDescription: "The bank account holder's name",
		},
		"initiating_payment_method_details.us_bank_account.account_number": {
			Type:             "string",
			ShortDescription: "The bank account number",
		},
		"initiating_payment_method_details.us_bank_account.routing_number": {
			Type:             "string",
			ShortDescription: "The bank account's routing number",
		},
		"network": {
			Type:             "string",
			ShortDescription: "Specifies the network rails to be used",
			Required:         true,
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "ach"},
				{Value: "us_domestic_wire"},
			},
		},
	},
}
View Source
var V1TestHelpersTreasuryReceivedDebitsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/test_helpers/treasury/received_debits",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "Amount (in cents) to be transferred",
			Required:         true,
			MostCommon:       true,
		},
		"currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Required:         true,
			MostCommon:       true,
			Format:           "currency",
		},
		"description": {
			Type:             "string",
			ShortDescription: "An arbitrary string attached to the object",
			MostCommon:       true,
		},
		"financial_account": {
			Type:             "string",
			ShortDescription: "The FinancialAccount to pull funds from",
			Required:         true,
			MostCommon:       true,
		},
		"initiating_payment_method_details.type": {
			Type:             "string",
			ShortDescription: "The source type",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "us_bank_account"},
			},
		},
		"initiating_payment_method_details.us_bank_account.account_holder_name": {
			Type:             "string",
			ShortDescription: "The bank account holder's name",
		},
		"initiating_payment_method_details.us_bank_account.account_number": {
			Type:             "string",
			ShortDescription: "The bank account number",
		},
		"initiating_payment_method_details.us_bank_account.routing_number": {
			Type:             "string",
			ShortDescription: "The bank account's routing number",
		},
		"network": {
			Type:             "string",
			ShortDescription: "Specifies the network rails to be used",
			Required:         true,
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "ach"},
			},
		},
	},
}
View Source
var V1TokensCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/tokens",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"account.business_type": {
			Type:             "string",
			ShortDescription: "The business type",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "government_entity"},
				{Value: "individual"},
				{Value: "non_profit"},
			},
		},
		"account.company.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"account.company.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"account.company.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"account.company.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"account.company.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"account.company.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"account.company.address_kana.city": {
			Type:             "string",
			ShortDescription: "City or ward",
		},
		"account.company.address_kana.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"account.company.address_kana.line1": {
			Type:             "string",
			ShortDescription: "Block or building number",
		},
		"account.company.address_kana.line2": {
			Type:             "string",
			ShortDescription: "Building details",
		},
		"account.company.address_kana.postal_code": {
			Type:             "string",
			ShortDescription: "Postal code",
		},
		"account.company.address_kana.state": {
			Type:             "string",
			ShortDescription: "Prefecture",
		},
		"account.company.address_kana.town": {
			Type:             "string",
			ShortDescription: "Town or cho-me",
		},
		"account.company.address_kanji.city": {
			Type:             "string",
			ShortDescription: "City or ward",
		},
		"account.company.address_kanji.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"account.company.address_kanji.line1": {
			Type:             "string",
			ShortDescription: "Block or building number",
		},
		"account.company.address_kanji.line2": {
			Type:             "string",
			ShortDescription: "Building details",
		},
		"account.company.address_kanji.postal_code": {
			Type:             "string",
			ShortDescription: "Postal code",
		},
		"account.company.address_kanji.state": {
			Type:             "string",
			ShortDescription: "Prefecture",
		},
		"account.company.address_kanji.town": {
			Type:             "string",
			ShortDescription: "Town or cho-me",
		},
		"account.company.directors_provided": {
			Type:             "boolean",
			ShortDescription: "Whether the company's directors have been provided",
		},
		"account.company.directorship_declaration.date": {
			Type:             "integer",
			ShortDescription: "The Unix timestamp marking when the directorship declaration attestation was made",
			Format:           "unix-time",
		},
		"account.company.directorship_declaration.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the directorship declaration attestation was made",
		},
		"account.company.directorship_declaration.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the directorship declaration attestation was made",
		},
		"account.company.executives_provided": {
			Type:             "boolean",
			ShortDescription: "Whether the company's executives have been provided",
		},
		"account.company.export_license_id": {
			Type:             "string",
			ShortDescription: "The export license ID number of the company, also referred as Import Export Code (India only)",
		},
		"account.company.export_purpose_code": {
			Type:             "string",
			ShortDescription: "The purpose code to use for export transactions (India only)",
		},
		"account.company.name": {
			Type:             "string",
			ShortDescription: "The company's legal name",
		},
		"account.company.name_kana": {
			Type:             "string",
			ShortDescription: "The Kana variation of the company's legal name (Japan only)",
		},
		"account.company.name_kanji": {
			Type:             "string",
			ShortDescription: "The Kanji variation of the company's legal name (Japan only)",
		},
		"account.company.owners_provided": {
			Type:             "boolean",
			ShortDescription: "Whether the company's owners have been provided",
		},
		"account.company.ownership_declaration.date": {
			Type:             "integer",
			ShortDescription: "The Unix timestamp marking when the beneficial owner attestation was made",
			Format:           "unix-time",
		},
		"account.company.ownership_declaration.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the beneficial owner attestation was made",
		},
		"account.company.ownership_declaration.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the beneficial owner attestation was made",
		},
		"account.company.ownership_declaration_shown_and_signed": {
			Type:             "boolean",
			ShortDescription: "Whether the user described by the data in the token has been shown the Ownership Declaration and indicated that it is correct",
		},
		"account.company.ownership_exemption_reason": {
			Type:             "string",
			ShortDescription: "This value is used to determine if a business is exempt from providing ultimate beneficial owners",
			Enum: []resource.EnumSpec{
				{Value: "qualified_entity_exceeds_ownership_threshold"},
				{Value: "qualifies_as_financial_institution"},
			},
		},
		"account.company.phone": {
			Type:             "string",
			ShortDescription: "The company's phone number (used for verification)",
		},
		"account.company.registration_date.day": {
			Type:             "integer",
			ShortDescription: "The day of registration, between 1 and 31",
		},
		"account.company.registration_date.month": {
			Type:             "integer",
			ShortDescription: "The month of registration, between 1 and 12",
		},
		"account.company.registration_date.year": {
			Type:             "integer",
			ShortDescription: "The four-digit year of registration",
		},
		"account.company.registration_number": {
			Type:             "string",
			ShortDescription: "The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes",
		},
		"account.company.representative_declaration.date": {
			Type:             "integer",
			ShortDescription: "The Unix timestamp marking when the representative declaration attestation was made",
			Format:           "unix-time",
		},
		"account.company.representative_declaration.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the representative declaration attestation was made",
		},
		"account.company.representative_declaration.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the representative declaration attestation was made",
		},
		"account.company.structure": {
			Type:             "string",
			ShortDescription: "The category identifying the legal structure of the company or legal entity",
			Enum: []resource.EnumSpec{
				{Value: "free_zone_establishment"},
				{Value: "free_zone_llc"},
				{Value: "government_instrumentality"},
				{Value: "governmental_unit"},
				{Value: "incorporated_non_profit"},
				{Value: "incorporated_partnership"},
				{Value: "limited_liability_partnership"},
				{Value: "llc"},
				{Value: "multi_member_llc"},
				{Value: "private_company"},
				{Value: "private_corporation"},
				{Value: "private_partnership"},
				{Value: "public_company"},
				{Value: "public_corporation"},
				{Value: "public_partnership"},
				{Value: "registered_charity"},
				{Value: "single_member_llc"},
				{Value: "sole_establishment"},
				{Value: "sole_proprietorship"},
				{Value: "tax_exempt_government_instrumentality"},
				{Value: "unincorporated_association"},
				{Value: "unincorporated_non_profit"},
				{Value: "unincorporated_partnership"},
			},
		},
		"account.company.tax_id": {
			Type:             "string",
			ShortDescription: "The business ID number of the company, as appropriate for the company’s country",
		},
		"account.company.tax_id_registrar": {
			Type:             "string",
			ShortDescription: "The jurisdiction in which the `tax_id` is registered (Germany-based companies only)",
		},
		"account.company.vat_id": {
			Type:             "string",
			ShortDescription: "The VAT number of the company",
		},
		"account.company.verification.document.back": {
			Type:             "string",
			ShortDescription: "The back of a document returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `additional_verification`",
		},
		"account.company.verification.document.front": {
			Type:             "string",
			ShortDescription: "The front of a document returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `additional_verification`",
		},
		"account.individual.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"account.individual.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"account.individual.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"account.individual.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"account.individual.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"account.individual.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"account.individual.address_kana.city": {
			Type:             "string",
			ShortDescription: "City or ward",
		},
		"account.individual.address_kana.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"account.individual.address_kana.line1": {
			Type:             "string",
			ShortDescription: "Block or building number",
		},
		"account.individual.address_kana.line2": {
			Type:             "string",
			ShortDescription: "Building details",
		},
		"account.individual.address_kana.postal_code": {
			Type:             "string",
			ShortDescription: "Postal code",
		},
		"account.individual.address_kana.state": {
			Type:             "string",
			ShortDescription: "Prefecture",
		},
		"account.individual.address_kana.town": {
			Type:             "string",
			ShortDescription: "Town or cho-me",
		},
		"account.individual.address_kanji.city": {
			Type:             "string",
			ShortDescription: "City or ward",
		},
		"account.individual.address_kanji.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"account.individual.address_kanji.line1": {
			Type:             "string",
			ShortDescription: "Block or building number",
		},
		"account.individual.address_kanji.line2": {
			Type:             "string",
			ShortDescription: "Building details",
		},
		"account.individual.address_kanji.postal_code": {
			Type:             "string",
			ShortDescription: "Postal code",
		},
		"account.individual.address_kanji.state": {
			Type:             "string",
			ShortDescription: "Prefecture",
		},
		"account.individual.address_kanji.town": {
			Type:             "string",
			ShortDescription: "Town or cho-me",
		},
		"account.individual.dob.day": {
			Type:             "integer",
			ShortDescription: "The day of birth, between 1 and 31",
		},
		"account.individual.dob.month": {
			Type:             "integer",
			ShortDescription: "The month of birth, between 1 and 12",
		},
		"account.individual.dob.year": {
			Type:             "integer",
			ShortDescription: "The four-digit year of birth",
		},
		"account.individual.email": {
			Type:             "string",
			ShortDescription: "The individual's email address",
		},
		"account.individual.first_name": {
			Type:             "string",
			ShortDescription: "The individual's first name",
		},
		"account.individual.first_name_kana": {
			Type:             "string",
			ShortDescription: "The Kana variation of the individual's first name (Japan only)",
		},
		"account.individual.first_name_kanji": {
			Type:             "string",
			ShortDescription: "The Kanji variation of the individual's first name (Japan only)",
		},
		"account.individual.full_name_aliases": {
			Type:             "array",
			ShortDescription: "A list of alternate names or aliases that the individual is known by",
		},
		"account.individual.gender": {
			Type:             "string",
			ShortDescription: "The individual's gender",
		},
		"account.individual.id_number": {
			Type:             "string",
			ShortDescription: "The government-issued ID number of the individual, as appropriate for the representative's country",
		},
		"account.individual.id_number_secondary": {
			Type:             "string",
			ShortDescription: "The government-issued secondary ID number of the individual, as appropriate for the representative's country, will be used for enhanced verification checks",
		},
		"account.individual.last_name": {
			Type:             "string",
			ShortDescription: "The individual's last name",
		},
		"account.individual.last_name_kana": {
			Type:             "string",
			ShortDescription: "The Kana variation of the individual's last name (Japan only)",
		},
		"account.individual.last_name_kanji": {
			Type:             "string",
			ShortDescription: "The Kanji variation of the individual's last name (Japan only)",
		},
		"account.individual.maiden_name": {
			Type:             "string",
			ShortDescription: "The individual's maiden name",
		},
		"account.individual.phone": {
			Type:             "string",
			ShortDescription: "The individual's phone number",
		},
		"account.individual.political_exposure": {
			Type:             "string",
			ShortDescription: "Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction",
			Enum: []resource.EnumSpec{
				{Value: "existing"},
				{Value: "none"},
			},
		},
		"account.individual.registered_address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"account.individual.registered_address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"account.individual.registered_address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"account.individual.registered_address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"account.individual.registered_address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"account.individual.registered_address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"account.individual.relationship.director": {
			Type:             "boolean",
			ShortDescription: "Whether the person is a director of the account's legal entity",
		},
		"account.individual.relationship.executive": {
			Type:             "boolean",
			ShortDescription: "Whether the person has significant responsibility to control, manage, or direct the organization",
		},
		"account.individual.relationship.owner": {
			Type:             "boolean",
			ShortDescription: "Whether the person is an owner of the account’s legal entity",
		},
		"account.individual.relationship.percent_ownership": {
			Type:             "number",
			ShortDescription: "The percent owned by the person of the account's legal entity",
		},
		"account.individual.relationship.title": {
			Type:             "string",
			ShortDescription: "The person's title (e.g., CEO, Support Engineer)",
		},
		"account.individual.ssn_last_4": {
			Type:             "string",
			ShortDescription: "The last four digits of the individual's Social Security Number (U.S. only)",
		},
		"account.individual.verification.additional_document.back": {
			Type:             "string",
			ShortDescription: "The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`",
		},
		"account.individual.verification.additional_document.front": {
			Type:             "string",
			ShortDescription: "The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`",
		},
		"account.individual.verification.document.back": {
			Type:             "string",
			ShortDescription: "The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`",
		},
		"account.individual.verification.document.front": {
			Type:             "string",
			ShortDescription: "The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`",
		},
		"account.tos_shown_and_accepted": {
			Type:             "boolean",
			ShortDescription: "Whether the user described by the data in the token has been shown [the Stripe Connected Account Agreement](/connect/account-tokens#stripe-connected-account-agreement)",
		},
		"bank_account.account_holder_name": {
			Type:             "string",
			ShortDescription: "The name of the person or business that owns the bank account",
		},
		"bank_account.account_holder_type": {
			Type:             "string",
			ShortDescription: "The type of entity that holds the account",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"bank_account.account_number": {
			Type:             "string",
			ShortDescription: "The account number for the bank account, in string form",
			MostCommon:       true,
		},
		"bank_account.account_type": {
			Type:             "string",
			ShortDescription: "The bank account type",
			Enum: []resource.EnumSpec{
				{Value: "checking"},
				{Value: "futsu"},
				{Value: "savings"},
				{Value: "toza"},
			},
		},
		"bank_account.country": {
			Type:             "string",
			ShortDescription: "The country in which the bank account is located",
			MostCommon:       true,
		},
		"bank_account.currency": {
			Type:             "string",
			ShortDescription: "The currency the bank account is in",
			Format:           "currency",
		},
		"bank_account.payment_method": {
			Type:             "string",
			ShortDescription: "The ID of a Payment Method with a `type` of `us_bank_account`",
		},
		"bank_account.routing_number": {
			Type:             "string",
			ShortDescription: "The routing number, sort code, or other country-appropriate institution number for the bank account",
		},
		"card.address_city": {
			Type:             "string",
			ShortDescription: "City / District / Suburb / Town / Village",
		},
		"card.address_country": {
			Type:             "string",
			ShortDescription: "Billing address country, if provided",
		},
		"card.address_line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (Street address / PO Box / Company name)",
		},
		"card.address_line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (Apartment / Suite / Unit / Building)",
		},
		"card.address_state": {
			Type:             "string",
			ShortDescription: "State / County / Province / Region",
		},
		"card.address_zip": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"card.currency": {
			Type:             "string",
			ShortDescription: "Required in order to add the card to an account; in all other cases, this parameter is not used",
		},
		"card.cvc": {
			Type:             "string",
			ShortDescription: "Card security code",
		},
		"card.exp_month": {
			Type:             "string",
			ShortDescription: "Two-digit number representing the card's expiration month",
			MostCommon:       true,
		},
		"card.exp_year": {
			Type:             "string",
			ShortDescription: "Two- or four-digit number representing the card's expiration year",
			MostCommon:       true,
		},
		"card.name": {
			Type:             "string",
			ShortDescription: "Cardholder's full name",
		},
		"card.networks.preferred": {
			Type:             "string",
			ShortDescription: "The customer's preferred card network for co-branded cards",
			Enum: []resource.EnumSpec{
				{Value: "cartes_bancaires"},
				{Value: "mastercard"},
				{Value: "visa"},
			},
		},
		"card.number": {
			Type:             "string",
			ShortDescription: "The card number, as a string without any separators",
			MostCommon:       true,
		},
		"customer": {
			Type:             "string",
			ShortDescription: "Create a token for the customer, which is owned by the application's account",
		},
		"cvc_update.cvc": {
			Type:             "string",
			ShortDescription: "The CVC value, in string form",
			MostCommon:       true,
		},
		"person.additional_tos_acceptances.account.date": {
			Type:             "integer",
			ShortDescription: "The Unix timestamp marking when the account representative accepted the service agreement",
			Format:           "unix-time",
		},
		"person.additional_tos_acceptances.account.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the account representative accepted the service agreement",
		},
		"person.additional_tos_acceptances.account.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the account representative accepted the service agreement",
		},
		"person.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"person.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"person.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"person.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"person.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"person.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"person.address_kana.city": {
			Type:             "string",
			ShortDescription: "City or ward",
		},
		"person.address_kana.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"person.address_kana.line1": {
			Type:             "string",
			ShortDescription: "Block or building number",
		},
		"person.address_kana.line2": {
			Type:             "string",
			ShortDescription: "Building details",
		},
		"person.address_kana.postal_code": {
			Type:             "string",
			ShortDescription: "Postal code",
		},
		"person.address_kana.state": {
			Type:             "string",
			ShortDescription: "Prefecture",
		},
		"person.address_kana.town": {
			Type:             "string",
			ShortDescription: "Town or cho-me",
		},
		"person.address_kanji.city": {
			Type:             "string",
			ShortDescription: "City or ward",
		},
		"person.address_kanji.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"person.address_kanji.line1": {
			Type:             "string",
			ShortDescription: "Block or building number",
		},
		"person.address_kanji.line2": {
			Type:             "string",
			ShortDescription: "Building details",
		},
		"person.address_kanji.postal_code": {
			Type:             "string",
			ShortDescription: "Postal code",
		},
		"person.address_kanji.state": {
			Type:             "string",
			ShortDescription: "Prefecture",
		},
		"person.address_kanji.town": {
			Type:             "string",
			ShortDescription: "Town or cho-me",
		},
		"person.dob.day": {
			Type:             "integer",
			ShortDescription: "The day of birth, between 1 and 31",
		},
		"person.dob.month": {
			Type:             "integer",
			ShortDescription: "The month of birth, between 1 and 12",
		},
		"person.dob.year": {
			Type:             "integer",
			ShortDescription: "The four-digit year of birth",
		},
		"person.documents.company_authorization.files": {
			Type:             "array",
			ShortDescription: "One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`",
		},
		"person.documents.passport.files": {
			Type:             "array",
			ShortDescription: "One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`",
		},
		"person.documents.visa.files": {
			Type:             "array",
			ShortDescription: "One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`",
		},
		"person.email": {
			Type:             "string",
			ShortDescription: "The person's email address",
		},
		"person.first_name": {
			Type:             "string",
			ShortDescription: "The person's first name",
		},
		"person.first_name_kana": {
			Type:             "string",
			ShortDescription: "The Kana variation of the person's first name (Japan only)",
		},
		"person.first_name_kanji": {
			Type:             "string",
			ShortDescription: "The Kanji variation of the person's first name (Japan only)",
		},
		"person.full_name_aliases": {
			Type:             "array",
			ShortDescription: "A list of alternate names or aliases that the person is known by",
		},
		"person.gender": {
			Type:             "string",
			ShortDescription: "The person's gender (International regulations require either \"male\" or \"female\")",
		},
		"person.id_number": {
			Type:             "string",
			ShortDescription: "The person's ID number, as appropriate for their country",
		},
		"person.id_number_secondary": {
			Type:             "string",
			ShortDescription: "The person's secondary ID number, as appropriate for their country, will be used for enhanced verification checks",
		},
		"person.last_name": {
			Type:             "string",
			ShortDescription: "The person's last name",
		},
		"person.last_name_kana": {
			Type:             "string",
			ShortDescription: "The Kana variation of the person's last name (Japan only)",
		},
		"person.last_name_kanji": {
			Type:             "string",
			ShortDescription: "The Kanji variation of the person's last name (Japan only)",
		},
		"person.maiden_name": {
			Type:             "string",
			ShortDescription: "The person's maiden name",
		},
		"person.nationality": {
			Type:             "string",
			ShortDescription: "The country where the person is a national",
		},
		"person.phone": {
			Type:             "string",
			ShortDescription: "The person's phone number",
		},
		"person.political_exposure": {
			Type:             "string",
			ShortDescription: "Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction",
			Enum: []resource.EnumSpec{
				{Value: "existing"},
				{Value: "none"},
			},
		},
		"person.registered_address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"person.registered_address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"person.registered_address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"person.registered_address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"person.registered_address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"person.registered_address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"person.relationship.authorizer": {
			Type:             "boolean",
			ShortDescription: "Whether the person is the authorizer of the account's representative",
		},
		"person.relationship.director": {
			Type:             "boolean",
			ShortDescription: "Whether the person is a director of the account's legal entity",
		},
		"person.relationship.executive": {
			Type:             "boolean",
			ShortDescription: "Whether the person has significant responsibility to control, manage, or direct the organization",
		},
		"person.relationship.legal_guardian": {
			Type:             "boolean",
			ShortDescription: "Whether the person is the legal guardian of the account's representative",
		},
		"person.relationship.owner": {
			Type:             "boolean",
			ShortDescription: "Whether the person is an owner of the account’s legal entity",
		},
		"person.relationship.percent_ownership": {
			Type:             "number",
			ShortDescription: "The percent owned by the person of the account's legal entity",
		},
		"person.relationship.representative": {
			Type:             "boolean",
			ShortDescription: "Whether the person is authorized as the primary representative of the account",
		},
		"person.relationship.title": {
			Type:             "string",
			ShortDescription: "The person's title (e.g., CEO, Support Engineer)",
		},
		"person.ssn_last_4": {
			Type:             "string",
			ShortDescription: "The last four digits of the person's Social Security number (U.S. only)",
		},
		"person.us_cfpb_data.ethnicity_details.ethnicity": {
			Type:             "array",
			ShortDescription: "The persons ethnicity",
		},
		"person.us_cfpb_data.ethnicity_details.ethnicity_other": {
			Type:             "string",
			ShortDescription: "Please specify your origin, when other is selected",
		},
		"person.us_cfpb_data.race_details.race": {
			Type:             "array",
			ShortDescription: "The persons race",
		},
		"person.us_cfpb_data.race_details.race_other": {
			Type:             "string",
			ShortDescription: "Please specify your race, when other is selected",
		},
		"person.us_cfpb_data.self_identified_gender": {
			Type:             "string",
			ShortDescription: "The persons self-identified gender",
		},
		"person.verification.additional_document.back": {
			Type:             "string",
			ShortDescription: "The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`",
		},
		"person.verification.additional_document.front": {
			Type:             "string",
			ShortDescription: "The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`",
		},
		"person.verification.document.back": {
			Type:             "string",
			ShortDescription: "The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`",
		},
		"person.verification.document.front": {
			Type:             "string",
			ShortDescription: "The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`",
		},
		"pii.id_number": {
			Type:             "string",
			ShortDescription: "The `id_number` for the PII, in string form",
		},
	},
}
View Source
var V1TokensRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/tokens/{token}",
	Method: "GET",
}
View Source
var V1TopupsCancel = resource.OperationSpec{
	Name:   "cancel",
	Path:   "/v1/topups/{topup}/cancel",
	Method: "POST",
}
View Source
var V1TopupsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/topups",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "A positive integer representing how much to transfer",
			Required:         true,
			MostCommon:       true,
		},
		"currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Required:         true,
			MostCommon:       true,
		},
		"description": {
			Type:             "string",
			ShortDescription: "An arbitrary string attached to the object",
			MostCommon:       true,
		},
		"source": {
			Type:             "string",
			ShortDescription: "The ID of a source to transfer funds from",
		},
		"statement_descriptor": {
			Type:             "string",
			ShortDescription: "Extra information about a top-up for the source's bank statement",
		},
		"transfer_group": {
			Type:             "string",
			ShortDescription: "A string that identifies this top-up as part of a group",
		},
	},
}
View Source
var V1TopupsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/topups",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "A positive integer representing how much to transfer",
		},
		"created": {
			Type:             "integer",
			ShortDescription: "A filter on the list, based on the object `created` field",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"status": {
			Type:             "string",
			ShortDescription: "Only return top-ups that have the given status",
			Enum: []resource.EnumSpec{
				{Value: "canceled"},
				{Value: "failed"},
				{Value: "pending"},
				{Value: "succeeded"},
			},
		},
	},
}
View Source
var V1TopupsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/topups/{topup}",
	Method: "GET",
}
View Source
var V1TopupsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/topups/{topup}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"description": {
			Type:             "string",
			ShortDescription: "An arbitrary string attached to the object",
			MostCommon:       true,
		},
	},
}
View Source
var V1TransferReversalsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/transfers/{id}/reversals",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "A positive integer in cents (or local equivalent) representing how much of this transfer to reverse",
			MostCommon:       true,
		},
		"description": {
			Type:             "string",
			ShortDescription: "An arbitrary string which you can attach to a reversal object",
			MostCommon:       true,
		},
		"refund_application_fee": {
			Type:             "boolean",
			ShortDescription: "Boolean indicating whether the application fee should be refunded when reversing this transfer",
		},
	},
}
View Source
var V1TransferReversalsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/transfers/{id}/reversals",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1TransferReversalsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/transfers/{transfer}/reversals/{id}",
	Method: "GET",
}
View Source
var V1TransferReversalsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/transfers/{transfer}/reversals/{id}",
	Method: "POST",
}
View Source
var V1TransfersCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/transfers",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "A positive integer in cents (or local equivalent) representing how much to transfer",
			MostCommon:       true,
		},
		"currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO code for currency](https://www.iso.org/iso-4217-currency-codes.html) in lowercase",
			Required:         true,
			MostCommon:       true,
			Format:           "currency",
		},
		"description": {
			Type:             "string",
			ShortDescription: "An arbitrary string attached to the object",
			MostCommon:       true,
		},
		"destination": {
			Type:             "string",
			ShortDescription: "The ID of a connected Stripe account. <a href=\"/docs/connect/separate-charges-and-transfers\">See the Connect documentation</a> for details",
			Required:         true,
			MostCommon:       true,
		},
		"source_transaction": {
			Type:             "string",
			ShortDescription: "You can use this parameter to transfer funds from a charge before they are added to your available balance",
		},
		"source_type": {
			Type:             "string",
			ShortDescription: "The source balance to use for this transfer",
			Enum: []resource.EnumSpec{
				{Value: "bank_account"},
				{Value: "card"},
				{Value: "fpx"},
			},
		},
		"transfer_group": {
			Type:             "string",
			ShortDescription: "A string that identifies this transaction as part of a group",
		},
	},
}
View Source
var V1TransfersList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/transfers",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type:             "integer",
			ShortDescription: "Only return transfers that were created during the given date interval",
		},
		"destination": {
			Type:             "string",
			ShortDescription: "Only return transfers for the destination specified by this account ID",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"transfer_group": {
			Type:             "string",
			ShortDescription: "Only return transfers with the specified transfer group",
		},
	},
}
View Source
var V1TransfersRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/transfers/{transfer}",
	Method: "GET",
}
View Source
var V1TransfersUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/transfers/{transfer}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"description": {
			Type:             "string",
			ShortDescription: "An arbitrary string attached to the object",
			MostCommon:       true,
		},
	},
}
View Source
var V1TreasuryCreditReversalsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/treasury/credit_reversals",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"received_credit": {
			Type:             "string",
			ShortDescription: "The ReceivedCredit to reverse",
			Required:         true,
			MostCommon:       true,
		},
	},
}
View Source
var V1TreasuryCreditReversalsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/treasury/credit_reversals",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"financial_account": {
			Type:             "string",
			ShortDescription: "Returns objects associated with this FinancialAccount",
			Required:         true,
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"received_credit": {
			Type:             "string",
			ShortDescription: "Only return CreditReversals for the ReceivedCredit ID",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"status": {
			Type:             "string",
			ShortDescription: "Only return CreditReversals for a given status",
			Enum: []resource.EnumSpec{
				{Value: "canceled"},
				{Value: "posted"},
				{Value: "processing"},
			},
		},
	},
}
View Source
var V1TreasuryCreditReversalsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/treasury/credit_reversals/{credit_reversal}",
	Method: "GET",
}
View Source
var V1TreasuryDebitReversalsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/treasury/debit_reversals",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"received_debit": {
			Type:             "string",
			ShortDescription: "The ReceivedDebit to reverse",
			Required:         true,
			MostCommon:       true,
		},
	},
}
View Source
var V1TreasuryDebitReversalsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/treasury/debit_reversals",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"financial_account": {
			Type:             "string",
			ShortDescription: "Returns objects associated with this FinancialAccount",
			Required:         true,
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"received_debit": {
			Type:             "string",
			ShortDescription: "Only return DebitReversals for the ReceivedDebit ID",
		},
		"resolution": {
			Type:             "string",
			ShortDescription: "Only return DebitReversals for a given resolution",
			Enum: []resource.EnumSpec{
				{Value: "lost"},
				{Value: "won"},
			},
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"status": {
			Type:             "string",
			ShortDescription: "Only return DebitReversals for a given status",
			Enum: []resource.EnumSpec{
				{Value: "canceled"},
				{Value: "completed"},
				{Value: "processing"},
			},
		},
	},
}
View Source
var V1TreasuryDebitReversalsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/treasury/debit_reversals/{debit_reversal}",
	Method: "GET",
}
View Source
var V1TreasuryFinancialAccountsClose = resource.OperationSpec{
	Name:   "close",
	Path:   "/v1/treasury/financial_accounts/{financial_account}/close",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"forwarding_settings.financial_account": {
			Type:             "string",
			ShortDescription: "The financial_account id",
		},
		"forwarding_settings.payment_method": {
			Type:             "string",
			ShortDescription: "The payment_method or bank account id",
		},
		"forwarding_settings.type": {
			Type:             "string",
			ShortDescription: "The type of the bank account provided",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "financial_account"},
				{Value: "payment_method"},
			},
		},
	},
}
View Source
var V1TreasuryFinancialAccountsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/treasury/financial_accounts",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"features.card_issuing.requested": {
			Type:             "boolean",
			ShortDescription: "Whether the FinancialAccount should have the Feature",
		},
		"features.deposit_insurance.requested": {
			Type:             "boolean",
			ShortDescription: "Whether the FinancialAccount should have the Feature",
		},
		"features.financial_addresses.aba.requested": {
			Type:             "boolean",
			ShortDescription: "Whether the FinancialAccount should have the Feature",
		},
		"features.inbound_transfers.ach.requested": {
			Type:             "boolean",
			ShortDescription: "Whether the FinancialAccount should have the Feature",
		},
		"features.intra_stripe_flows.requested": {
			Type:             "boolean",
			ShortDescription: "Whether the FinancialAccount should have the Feature",
		},
		"features.outbound_payments.ach.requested": {
			Type:             "boolean",
			ShortDescription: "Whether the FinancialAccount should have the Feature",
		},
		"features.outbound_payments.us_domestic_wire.requested": {
			Type:             "boolean",
			ShortDescription: "Whether the FinancialAccount should have the Feature",
		},
		"features.outbound_transfers.ach.requested": {
			Type:             "boolean",
			ShortDescription: "Whether the FinancialAccount should have the Feature",
		},
		"features.outbound_transfers.us_domestic_wire.requested": {
			Type:             "boolean",
			ShortDescription: "Whether the FinancialAccount should have the Feature",
		},
		"nickname": {
			Type:             "string",
			ShortDescription: "The nickname for the FinancialAccount",
			MostCommon:       true,
		},
		"platform_restrictions.inbound_flows": {
			Type:             "string",
			ShortDescription: "Restricts all inbound money movement",
			Enum: []resource.EnumSpec{
				{Value: "restricted"},
				{Value: "unrestricted"},
			},
		},
		"platform_restrictions.outbound_flows": {
			Type:             "string",
			ShortDescription: "Restricts all outbound money movement",
			Enum: []resource.EnumSpec{
				{Value: "restricted"},
				{Value: "unrestricted"},
			},
		},
		"supported_currencies": {
			Type:             "array",
			ShortDescription: "The currencies the FinancialAccount can hold a balance in",
			Required:         true,
			MostCommon:       true,
		},
	},
}
View Source
var V1TreasuryFinancialAccountsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/treasury/financial_accounts",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type:             "integer",
			ShortDescription: "Only return FinancialAccounts that were created during the given date interval",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "An object ID cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit ranging from 1 to 100 (defaults to 10)",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "An object ID cursor for use in pagination",
		},
		"status": {
			Type:             "string",
			ShortDescription: "Only return FinancialAccounts that have the given status: `open` or `closed`",
			Enum: []resource.EnumSpec{
				{Value: "closed"},
				{Value: "open"},
			},
		},
	},
}
View Source
var V1TreasuryFinancialAccountsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/treasury/financial_accounts/{financial_account}",
	Method: "GET",
}
View Source
var V1TreasuryFinancialAccountsRetrieveFeatures = resource.OperationSpec{
	Name:   "retrieve_features",
	Path:   "/v1/treasury/financial_accounts/{financial_account}/features",
	Method: "GET",
}
View Source
var V1TreasuryFinancialAccountsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/treasury/financial_accounts/{financial_account}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"features.card_issuing.requested": {
			Type:             "boolean",
			ShortDescription: "Whether the FinancialAccount should have the Feature",
		},
		"features.deposit_insurance.requested": {
			Type:             "boolean",
			ShortDescription: "Whether the FinancialAccount should have the Feature",
		},
		"features.financial_addresses.aba.requested": {
			Type:             "boolean",
			ShortDescription: "Whether the FinancialAccount should have the Feature",
		},
		"features.inbound_transfers.ach.requested": {
			Type:             "boolean",
			ShortDescription: "Whether the FinancialAccount should have the Feature",
		},
		"features.intra_stripe_flows.requested": {
			Type:             "boolean",
			ShortDescription: "Whether the FinancialAccount should have the Feature",
		},
		"features.outbound_payments.ach.requested": {
			Type:             "boolean",
			ShortDescription: "Whether the FinancialAccount should have the Feature",
		},
		"features.outbound_payments.us_domestic_wire.requested": {
			Type:             "boolean",
			ShortDescription: "Whether the FinancialAccount should have the Feature",
		},
		"features.outbound_transfers.ach.requested": {
			Type:             "boolean",
			ShortDescription: "Whether the FinancialAccount should have the Feature",
		},
		"features.outbound_transfers.us_domestic_wire.requested": {
			Type:             "boolean",
			ShortDescription: "Whether the FinancialAccount should have the Feature",
		},
		"forwarding_settings.financial_account": {
			Type:             "string",
			ShortDescription: "The financial_account id",
		},
		"forwarding_settings.payment_method": {
			Type:             "string",
			ShortDescription: "The payment_method or bank account id",
		},
		"forwarding_settings.type": {
			Type:             "string",
			ShortDescription: "The type of the bank account provided",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "financial_account"},
				{Value: "payment_method"},
			},
		},
		"nickname": {
			Type:             "string",
			ShortDescription: "The nickname for the FinancialAccount",
			MostCommon:       true,
		},
		"platform_restrictions.inbound_flows": {
			Type:             "string",
			ShortDescription: "Restricts all inbound money movement",
			Enum: []resource.EnumSpec{
				{Value: "restricted"},
				{Value: "unrestricted"},
			},
		},
		"platform_restrictions.outbound_flows": {
			Type:             "string",
			ShortDescription: "Restricts all outbound money movement",
			Enum: []resource.EnumSpec{
				{Value: "restricted"},
				{Value: "unrestricted"},
			},
		},
	},
}
View Source
var V1TreasuryFinancialAccountsUpdateFeatures = resource.OperationSpec{
	Name:   "update_features",
	Path:   "/v1/treasury/financial_accounts/{financial_account}/features",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"card_issuing.requested": {
			Type:             "boolean",
			ShortDescription: "Whether the FinancialAccount should have the Feature",
			MostCommon:       true,
		},
		"deposit_insurance.requested": {
			Type:             "boolean",
			ShortDescription: "Whether the FinancialAccount should have the Feature",
			MostCommon:       true,
		},
		"financial_addresses.aba.requested": {
			Type:             "boolean",
			ShortDescription: "Whether the FinancialAccount should have the Feature",
		},
		"inbound_transfers.ach.requested": {
			Type:             "boolean",
			ShortDescription: "Whether the FinancialAccount should have the Feature",
		},
		"intra_stripe_flows.requested": {
			Type:             "boolean",
			ShortDescription: "Whether the FinancialAccount should have the Feature",
			MostCommon:       true,
		},
		"outbound_payments.ach.requested": {
			Type:             "boolean",
			ShortDescription: "Whether the FinancialAccount should have the Feature",
		},
		"outbound_payments.us_domestic_wire.requested": {
			Type:             "boolean",
			ShortDescription: "Whether the FinancialAccount should have the Feature",
		},
		"outbound_transfers.ach.requested": {
			Type:             "boolean",
			ShortDescription: "Whether the FinancialAccount should have the Feature",
		},
		"outbound_transfers.us_domestic_wire.requested": {
			Type:             "boolean",
			ShortDescription: "Whether the FinancialAccount should have the Feature",
		},
	},
}
View Source
var V1TreasuryInboundTransfersCancel = resource.OperationSpec{
	Name:   "cancel",
	Path:   "/v1/treasury/inbound_transfers/{inbound_transfer}/cancel",
	Method: "POST",
}
View Source
var V1TreasuryInboundTransfersCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/treasury/inbound_transfers",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "Amount (in cents) to be transferred",
			Required:         true,
			MostCommon:       true,
		},
		"currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Required:         true,
			MostCommon:       true,
			Format:           "currency",
		},
		"description": {
			Type:             "string",
			ShortDescription: "An arbitrary string attached to the object",
			MostCommon:       true,
		},
		"financial_account": {
			Type:             "string",
			ShortDescription: "The FinancialAccount to send funds to",
			Required:         true,
			MostCommon:       true,
		},
		"origin_payment_method": {
			Type:             "string",
			ShortDescription: "The origin payment method to be debited for the InboundTransfer",
			Required:         true,
			MostCommon:       true,
		},
		"statement_descriptor": {
			Type:             "string",
			ShortDescription: "The complete description that appears on your customers' statements",
			MostCommon:       true,
		},
	},
}
View Source
var V1TreasuryInboundTransfersList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/treasury/inbound_transfers",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"financial_account": {
			Type:             "string",
			ShortDescription: "Returns objects associated with this FinancialAccount",
			Required:         true,
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"status": {
			Type:             "string",
			ShortDescription: "Only return InboundTransfers that have the given status: `processing`, `succeeded`, `failed` or `canceled`",
			Enum: []resource.EnumSpec{
				{Value: "canceled"},
				{Value: "failed"},
				{Value: "processing"},
				{Value: "succeeded"},
			},
		},
	},
}
View Source
var V1TreasuryInboundTransfersRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/treasury/inbound_transfers/{id}",
	Method: "GET",
}
View Source
var V1TreasuryInboundTransfersTestHelpersFail = resource.OperationSpec{
	Name:   "fail",
	Path:   "/v1/test_helpers/treasury/inbound_transfers/{id}/fail",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"failure_details.code": {
			Type:             "string",
			ShortDescription: "Reason for the failure",
			Enum: []resource.EnumSpec{
				{Value: "account_closed"},
				{Value: "account_frozen"},
				{Value: "bank_account_restricted"},
				{Value: "bank_ownership_changed"},
				{Value: "debit_not_authorized"},
				{Value: "incorrect_account_holder_address"},
				{Value: "incorrect_account_holder_name"},
				{Value: "incorrect_account_holder_tax_id"},
				{Value: "insufficient_funds"},
				{Value: "invalid_account_number"},
				{Value: "invalid_currency"},
				{Value: "no_account"},
				{Value: "other"},
			},
		},
	},
}
View Source
var V1TreasuryInboundTransfersTestHelpersReturnInboundTransfer = resource.OperationSpec{
	Name:   "return_inbound_transfer",
	Path:   "/v1/test_helpers/treasury/inbound_transfers/{id}/return",
	Method: "POST",
}
View Source
var V1TreasuryInboundTransfersTestHelpersSucceed = resource.OperationSpec{
	Name:   "succeed",
	Path:   "/v1/test_helpers/treasury/inbound_transfers/{id}/succeed",
	Method: "POST",
}
View Source
var V1TreasuryOutboundPaymentsCancel = resource.OperationSpec{
	Name:   "cancel",
	Path:   "/v1/treasury/outbound_payments/{id}/cancel",
	Method: "POST",
}
View Source
var V1TreasuryOutboundPaymentsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/treasury/outbound_payments",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "Amount (in cents) to be transferred",
			Required:         true,
			MostCommon:       true,
		},
		"currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Required:         true,
			MostCommon:       true,
			Format:           "currency",
		},
		"customer": {
			Type:             "string",
			ShortDescription: "ID of the customer to whom the OutboundPayment is sent",
			MostCommon:       true,
		},
		"description": {
			Type:             "string",
			ShortDescription: "An arbitrary string attached to the object",
			MostCommon:       true,
		},
		"destination_payment_method": {
			Type:             "string",
			ShortDescription: "The PaymentMethod to use as the payment instrument for the OutboundPayment",
			MostCommon:       true,
		},
		"destination_payment_method_data.billing_details.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"destination_payment_method_data.billing_details.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"destination_payment_method_data.billing_details.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1, such as the street, PO Box, or company name",
		},
		"destination_payment_method_data.billing_details.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2, such as the apartment, suite, unit, or building",
		},
		"destination_payment_method_data.billing_details.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"destination_payment_method_data.billing_details.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2))",
		},
		"destination_payment_method_data.billing_details.email": {
			Type:             "string",
			ShortDescription: "Email address",
		},
		"destination_payment_method_data.billing_details.name": {
			Type:             "string",
			ShortDescription: "Full name",
		},
		"destination_payment_method_data.billing_details.phone": {
			Type:             "string",
			ShortDescription: "Billing phone number (including extension)",
		},
		"destination_payment_method_data.financial_account": {
			Type:             "string",
			ShortDescription: "Required if type is set to `financial_account`",
		},
		"destination_payment_method_data.type": {
			Type:             "string",
			ShortDescription: "The type of the PaymentMethod",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "financial_account"},
				{Value: "us_bank_account"},
			},
		},
		"destination_payment_method_data.us_bank_account.account_holder_type": {
			Type:             "string",
			ShortDescription: "Account holder type: individual or company",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"destination_payment_method_data.us_bank_account.account_number": {
			Type:             "string",
			ShortDescription: "Account number of the bank account",
		},
		"destination_payment_method_data.us_bank_account.account_type": {
			Type:             "string",
			ShortDescription: "Account type: checkings or savings",
			Enum: []resource.EnumSpec{
				{Value: "checking"},
				{Value: "savings"},
			},
		},
		"destination_payment_method_data.us_bank_account.financial_connections_account": {
			Type:             "string",
			ShortDescription: "The ID of a Financial Connections Account to use as a payment method",
		},
		"destination_payment_method_data.us_bank_account.routing_number": {
			Type:             "string",
			ShortDescription: "Routing number of the bank account",
		},
		"destination_payment_method_options.us_bank_account.network": {
			Type:             "string",
			ShortDescription: "Specifies the network rails to be used",
			Enum: []resource.EnumSpec{
				{Value: "ach"},
				{Value: "us_domestic_wire"},
			},
		},
		"end_user_details.ip_address": {
			Type:             "string",
			ShortDescription: "IP address of the user initiating the OutboundPayment",
		},
		"end_user_details.present": {
			Type:             "boolean",
			ShortDescription: "`True` if the OutboundPayment creation request is being made on behalf of an end user by a platform",
			MostCommon:       true,
		},
		"financial_account": {
			Type:             "string",
			ShortDescription: "The FinancialAccount to pull funds from",
			Required:         true,
			MostCommon:       true,
		},
		"statement_descriptor": {
			Type:             "string",
			ShortDescription: "The description that appears on the receiving end for this OutboundPayment (for example, bank statement for external bank transfer)",
			MostCommon:       true,
		},
	},
}
View Source
var V1TreasuryOutboundPaymentsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/treasury/outbound_payments",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type:             "integer",
			ShortDescription: "Only return OutboundPayments that were created during the given date interval",
		},
		"customer": {
			Type:             "string",
			ShortDescription: "Only return OutboundPayments sent to this customer",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"financial_account": {
			Type:             "string",
			ShortDescription: "Returns objects associated with this FinancialAccount",
			Required:         true,
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"status": {
			Type:             "string",
			ShortDescription: "Only return OutboundPayments that have the given status: `processing`, `failed`, `posted`, `returned`, or `canceled`",
			Enum: []resource.EnumSpec{
				{Value: "canceled"},
				{Value: "failed"},
				{Value: "posted"},
				{Value: "processing"},
				{Value: "returned"},
			},
		},
	},
}
View Source
var V1TreasuryOutboundPaymentsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/treasury/outbound_payments/{id}",
	Method: "GET",
}
View Source
var V1TreasuryOutboundPaymentsTestHelpersFail = resource.OperationSpec{
	Name:   "fail",
	Path:   "/v1/test_helpers/treasury/outbound_payments/{id}/fail",
	Method: "POST",
}
View Source
var V1TreasuryOutboundPaymentsTestHelpersPost = resource.OperationSpec{
	Name:   "post",
	Path:   "/v1/test_helpers/treasury/outbound_payments/{id}/post",
	Method: "POST",
}
View Source
var V1TreasuryOutboundPaymentsTestHelpersReturnOutboundPayment = resource.OperationSpec{
	Name:   "return_outbound_payment",
	Path:   "/v1/test_helpers/treasury/outbound_payments/{id}/return",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"returned_details.code": {
			Type:             "string",
			ShortDescription: "The return code to be set on the OutboundPayment object",
			Enum: []resource.EnumSpec{
				{Value: "account_closed"},
				{Value: "account_frozen"},
				{Value: "bank_account_restricted"},
				{Value: "bank_ownership_changed"},
				{Value: "declined"},
				{Value: "incorrect_account_holder_name"},
				{Value: "invalid_account_number"},
				{Value: "invalid_currency"},
				{Value: "no_account"},
				{Value: "other"},
			},
		},
	},
}
View Source
var V1TreasuryOutboundPaymentsTestHelpersUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/test_helpers/treasury/outbound_payments/{id}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"tracking_details.ach.trace_id": {
			Type:             "string",
			ShortDescription: "ACH trace ID for funds sent over the `ach` network",
		},
		"tracking_details.type": {
			Type:             "string",
			ShortDescription: "The US bank account network used to send funds",
			Required:         true,
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "ach"},
				{Value: "us_domestic_wire"},
			},
		},
		"tracking_details.us_domestic_wire.chips": {
			Type:             "string",
			ShortDescription: "CHIPS System Sequence Number (SSN) for funds sent over the `us_domestic_wire` network",
		},
		"tracking_details.us_domestic_wire.imad": {
			Type:             "string",
			ShortDescription: "IMAD for funds sent over the `us_domestic_wire` network",
		},
		"tracking_details.us_domestic_wire.omad": {
			Type:             "string",
			ShortDescription: "OMAD for funds sent over the `us_domestic_wire` network",
		},
	},
}
View Source
var V1TreasuryOutboundTransfersCancel = resource.OperationSpec{
	Name:   "cancel",
	Path:   "/v1/treasury/outbound_transfers/{outbound_transfer}/cancel",
	Method: "POST",
}
View Source
var V1TreasuryOutboundTransfersCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/treasury/outbound_transfers",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "Amount (in cents) to be transferred",
			Required:         true,
			MostCommon:       true,
		},
		"currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Required:         true,
			MostCommon:       true,
			Format:           "currency",
		},
		"description": {
			Type:             "string",
			ShortDescription: "An arbitrary string attached to the object",
			MostCommon:       true,
		},
		"destination_payment_method": {
			Type:             "string",
			ShortDescription: "The PaymentMethod to use as the payment instrument for the OutboundTransfer",
			MostCommon:       true,
		},
		"destination_payment_method_data.financial_account": {
			Type:             "string",
			ShortDescription: "Required if type is set to `financial_account`",
		},
		"destination_payment_method_data.type": {
			Type:             "string",
			ShortDescription: "The type of the destination",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "financial_account"},
			},
		},
		"destination_payment_method_options.us_bank_account.network": {
			Type:             "string",
			ShortDescription: "Specifies the network rails to be used",
			Enum: []resource.EnumSpec{
				{Value: "ach"},
				{Value: "us_domestic_wire"},
			},
		},
		"financial_account": {
			Type:             "string",
			ShortDescription: "The FinancialAccount to pull funds from",
			Required:         true,
			MostCommon:       true,
		},
		"statement_descriptor": {
			Type:             "string",
			ShortDescription: "Statement descriptor to be shown on the receiving end of an OutboundTransfer",
			MostCommon:       true,
		},
	},
}
View Source
var V1TreasuryOutboundTransfersList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/treasury/outbound_transfers",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"financial_account": {
			Type:             "string",
			ShortDescription: "Returns objects associated with this FinancialAccount",
			Required:         true,
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"status": {
			Type:             "string",
			ShortDescription: "Only return OutboundTransfers that have the given status: `processing`, `canceled`, `failed`, `posted`, or `returned`",
			Enum: []resource.EnumSpec{
				{Value: "canceled"},
				{Value: "failed"},
				{Value: "posted"},
				{Value: "processing"},
				{Value: "returned"},
			},
		},
	},
}
View Source
var V1TreasuryOutboundTransfersRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/treasury/outbound_transfers/{outbound_transfer}",
	Method: "GET",
}
View Source
var V1TreasuryOutboundTransfersTestHelpersFail = resource.OperationSpec{
	Name:   "fail",
	Path:   "/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/fail",
	Method: "POST",
}
View Source
var V1TreasuryOutboundTransfersTestHelpersPost = resource.OperationSpec{
	Name:   "post",
	Path:   "/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/post",
	Method: "POST",
}
View Source
var V1TreasuryOutboundTransfersTestHelpersReturnOutboundTransfer = resource.OperationSpec{
	Name:   "return_outbound_transfer",
	Path:   "/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/return",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"returned_details.code": {
			Type:             "string",
			ShortDescription: "Reason for the return",
			Enum: []resource.EnumSpec{
				{Value: "account_closed"},
				{Value: "account_frozen"},
				{Value: "bank_account_restricted"},
				{Value: "bank_ownership_changed"},
				{Value: "declined"},
				{Value: "incorrect_account_holder_name"},
				{Value: "invalid_account_number"},
				{Value: "invalid_currency"},
				{Value: "no_account"},
				{Value: "other"},
			},
		},
	},
}
View Source
var V1TreasuryOutboundTransfersTestHelpersUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"tracking_details.ach.trace_id": {
			Type:             "string",
			ShortDescription: "ACH trace ID for funds sent over the `ach` network",
		},
		"tracking_details.type": {
			Type:             "string",
			ShortDescription: "The US bank account network used to send funds",
			Required:         true,
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "ach"},
				{Value: "us_domestic_wire"},
			},
		},
		"tracking_details.us_domestic_wire.chips": {
			Type:             "string",
			ShortDescription: "CHIPS System Sequence Number (SSN) for funds sent over the `us_domestic_wire` network",
		},
		"tracking_details.us_domestic_wire.imad": {
			Type:             "string",
			ShortDescription: "IMAD for funds sent over the `us_domestic_wire` network",
		},
		"tracking_details.us_domestic_wire.omad": {
			Type:             "string",
			ShortDescription: "OMAD for funds sent over the `us_domestic_wire` network",
		},
	},
}
View Source
var V1TreasuryReceivedCreditsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/treasury/received_credits",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"financial_account": {
			Type:             "string",
			ShortDescription: "The FinancialAccount that received the funds",
			Required:         true,
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"status": {
			Type:             "string",
			ShortDescription: "Only return ReceivedCredits that have the given status: `succeeded` or `failed`",
			Enum: []resource.EnumSpec{
				{Value: "failed"},
				{Value: "succeeded"},
			},
		},
	},
}
View Source
var V1TreasuryReceivedCreditsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/treasury/received_credits/{id}",
	Method: "GET",
}
View Source
var V1TreasuryReceivedCreditsTestHelpersCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/test_helpers/treasury/received_credits",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "Amount (in cents) to be transferred",
			Required:         true,
			MostCommon:       true,
		},
		"currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Required:         true,
			MostCommon:       true,
			Format:           "currency",
		},
		"description": {
			Type:             "string",
			ShortDescription: "An arbitrary string attached to the object",
			MostCommon:       true,
		},
		"financial_account": {
			Type:             "string",
			ShortDescription: "The FinancialAccount to send funds to",
			Required:         true,
			MostCommon:       true,
		},
		"initiating_payment_method_details.type": {
			Type:             "string",
			ShortDescription: "The source type",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "us_bank_account"},
			},
		},
		"initiating_payment_method_details.us_bank_account.account_holder_name": {
			Type:             "string",
			ShortDescription: "The bank account holder's name",
		},
		"initiating_payment_method_details.us_bank_account.account_number": {
			Type:             "string",
			ShortDescription: "The bank account number",
		},
		"initiating_payment_method_details.us_bank_account.routing_number": {
			Type:             "string",
			ShortDescription: "The bank account's routing number",
		},
		"network": {
			Type:             "string",
			ShortDescription: "Specifies the network rails to be used",
			Required:         true,
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "ach"},
				{Value: "us_domestic_wire"},
			},
		},
	},
}
View Source
var V1TreasuryReceivedDebitsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/treasury/received_debits",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"financial_account": {
			Type:             "string",
			ShortDescription: "The FinancialAccount that funds were pulled from",
			Required:         true,
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"status": {
			Type:             "string",
			ShortDescription: "Only return ReceivedDebits that have the given status: `succeeded` or `failed`",
			Enum: []resource.EnumSpec{
				{Value: "failed"},
				{Value: "succeeded"},
			},
		},
	},
}
View Source
var V1TreasuryReceivedDebitsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/treasury/received_debits/{id}",
	Method: "GET",
}
View Source
var V1TreasuryReceivedDebitsTestHelpersCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/test_helpers/treasury/received_debits",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:             "integer",
			ShortDescription: "Amount (in cents) to be transferred",
			Required:         true,
			MostCommon:       true,
		},
		"currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Required:         true,
			MostCommon:       true,
			Format:           "currency",
		},
		"description": {
			Type:             "string",
			ShortDescription: "An arbitrary string attached to the object",
			MostCommon:       true,
		},
		"financial_account": {
			Type:             "string",
			ShortDescription: "The FinancialAccount to pull funds from",
			Required:         true,
			MostCommon:       true,
		},
		"initiating_payment_method_details.type": {
			Type:             "string",
			ShortDescription: "The source type",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "us_bank_account"},
			},
		},
		"initiating_payment_method_details.us_bank_account.account_holder_name": {
			Type:             "string",
			ShortDescription: "The bank account holder's name",
		},
		"initiating_payment_method_details.us_bank_account.account_number": {
			Type:             "string",
			ShortDescription: "The bank account number",
		},
		"initiating_payment_method_details.us_bank_account.routing_number": {
			Type:             "string",
			ShortDescription: "The bank account's routing number",
		},
		"network": {
			Type:             "string",
			ShortDescription: "Specifies the network rails to be used",
			Required:         true,
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "ach"},
			},
		},
	},
}
View Source
var V1TreasuryTransactionEntrysList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/treasury/transaction_entries",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type:             "integer",
			ShortDescription: "Only return TransactionEntries that were created during the given date interval",
		},
		"effective_at": {
			Type: "integer",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"financial_account": {
			Type:             "string",
			ShortDescription: "Returns objects associated with this FinancialAccount",
			Required:         true,
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"order_by": {
			Type:             "string",
			ShortDescription: "The results are in reverse chronological order by `created` or `effective_at`",
			Enum: []resource.EnumSpec{
				{Value: "created"},
				{Value: "effective_at"},
			},
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"transaction": {
			Type:             "string",
			ShortDescription: "Only return TransactionEntries associated with this Transaction",
		},
	},
}
View Source
var V1TreasuryTransactionEntrysRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/treasury/transaction_entries/{id}",
	Method: "GET",
}
View Source
var V1TreasuryTransactionsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/treasury/transactions",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type:             "integer",
			ShortDescription: "Only return Transactions that were created during the given date interval",
		},
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"financial_account": {
			Type:             "string",
			ShortDescription: "Returns objects associated with this FinancialAccount",
			Required:         true,
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"order_by": {
			Type:             "string",
			ShortDescription: "The results are in reverse chronological order by `created` or `posted_at`",
			Enum: []resource.EnumSpec{
				{Value: "created"},
				{Value: "posted_at"},
			},
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"status": {
			Type:             "string",
			ShortDescription: "Only return Transactions that have the given status: `open`, `posted`, or `void`",
			Enum: []resource.EnumSpec{
				{Value: "open"},
				{Value: "posted"},
				{Value: "void"},
			},
		},
	},
}
View Source
var V1TreasuryTransactionsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/treasury/transactions/{id}",
	Method: "GET",
}
View Source
var V1WebhookEndpointsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/webhook_endpoints",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"api_version": {
			Type:             "string",
			ShortDescription: "Events sent to this endpoint will be generated with this Stripe Version instead of your account's default Stripe Version",
			MostCommon:       true,
			Enum: []resource.EnumSpec{
				{Value: "2011-01-01"},
				{Value: "2011-06-21"},
				{Value: "2011-06-28"},
				{Value: "2011-08-01"},
				{Value: "2011-09-15"},
				{Value: "2011-11-17"},
				{Value: "2012-02-23"},
				{Value: "2012-03-25"},
				{Value: "2012-06-18"},
				{Value: "2012-06-28"},
				{Value: "2012-07-09"},
				{Value: "2012-09-24"},
				{Value: "2012-10-26"},
				{Value: "2012-11-07"},
				{Value: "2013-02-11"},
				{Value: "2013-02-13"},
				{Value: "2013-07-05"},
				{Value: "2013-08-12"},
				{Value: "2013-08-13"},
				{Value: "2013-10-29"},
				{Value: "2013-12-03"},
				{Value: "2014-01-31"},
				{Value: "2014-03-13"},
				{Value: "2014-03-28"},
				{Value: "2014-05-19"},
				{Value: "2014-06-13"},
				{Value: "2014-06-17"},
				{Value: "2014-07-22"},
				{Value: "2014-07-26"},
				{Value: "2014-08-04"},
				{Value: "2014-08-20"},
				{Value: "2014-09-08"},
				{Value: "2014-10-07"},
				{Value: "2014-11-05"},
				{Value: "2014-11-20"},
				{Value: "2014-12-08"},
				{Value: "2014-12-17"},
				{Value: "2014-12-22"},
				{Value: "2015-01-11"},
				{Value: "2015-01-26"},
				{Value: "2015-02-10"},
				{Value: "2015-02-16"},
				{Value: "2015-02-18"},
				{Value: "2015-03-24"},
				{Value: "2015-04-07"},
				{Value: "2015-06-15"},
				{Value: "2015-07-07"},
				{Value: "2015-07-13"},
				{Value: "2015-07-28"},
				{Value: "2015-08-07"},
				{Value: "2015-08-19"},
				{Value: "2015-09-03"},
				{Value: "2015-09-08"},
				{Value: "2015-09-23"},
				{Value: "2015-10-01"},
				{Value: "2015-10-12"},
				{Value: "2015-10-16"},
				{Value: "2016-02-03"},
				{Value: "2016-02-19"},
				{Value: "2016-02-22"},
				{Value: "2016-02-23"},
				{Value: "2016-02-29"},
				{Value: "2016-03-07"},
				{Value: "2016-06-15"},
				{Value: "2016-07-06"},
				{Value: "2016-10-19"},
				{Value: "2017-01-27"},
				{Value: "2017-02-14"},
				{Value: "2017-04-06"},
				{Value: "2017-05-25"},
				{Value: "2017-06-05"},
				{Value: "2017-08-15"},
				{Value: "2017-12-14"},
				{Value: "2018-01-23"},
				{Value: "2018-02-05"},
				{Value: "2018-02-06"},
				{Value: "2018-02-28"},
				{Value: "2018-05-21"},
				{Value: "2018-07-27"},
				{Value: "2018-08-23"},
				{Value: "2018-09-06"},
				{Value: "2018-09-24"},
				{Value: "2018-10-31"},
				{Value: "2018-11-08"},
				{Value: "2019-02-11"},
				{Value: "2019-02-19"},
				{Value: "2019-03-14"},
				{Value: "2019-05-16"},
				{Value: "2019-08-14"},
				{Value: "2019-09-09"},
				{Value: "2019-10-08"},
				{Value: "2019-10-17"},
				{Value: "2019-11-05"},
				{Value: "2019-12-03"},
				{Value: "2020-03-02"},
				{Value: "2020-08-27"},
				{Value: "2022-08-01"},
				{Value: "2022-11-15"},
				{Value: "2023-08-16"},
				{Value: "2023-10-16"},
				{Value: "2024-04-10"},
				{Value: "2024-06-20"},
				{Value: "2024-09-30.acacia"},
				{Value: "2024-10-28.acacia"},
				{Value: "2024-11-20.acacia"},
				{Value: "2024-12-18.acacia"},
				{Value: "2025-01-27.acacia"},
				{Value: "2025-02-24.acacia"},
				{Value: "2025-03-01.dashboard"},
				{Value: "2025-03-31.basil"},
				{Value: "2025-04-30.basil"},
				{Value: "2025-05-28.basil"},
				{Value: "2025-06-30.basil"},
				{Value: "2025-07-30.basil"},
				{Value: "2025-08-27.basil"},
				{Value: "2025-09-30.clover"},
				{Value: "2025-10-29.clover"},
				{Value: "2025-11-17.clover"},
				{Value: "2025-12-15.clover"},
				{Value: "2026-01-28.clover"},
				{Value: "2026-02-25.clover"},
				{Value: "2026-03-25.dahlia"},
			},
		},
		"connect": {
			Type:             "boolean",
			ShortDescription: "Whether this endpoint should receive events from connected accounts (`true`), or from your account (`false`)",
		},
		"description": {
			Type:             "string",
			ShortDescription: "An optional description of what the webhook is used for",
			MostCommon:       true,
		},
		"enabled_events": {
			Type:             "array",
			ShortDescription: "The list of events to enable for this endpoint",
			Required:         true,
			MostCommon:       true,
		},
		"url": {
			Type:             "string",
			ShortDescription: "The URL of the webhook endpoint",
			Required:         true,
			MostCommon:       true,
		},
	},
}
View Source
var V1WebhookEndpointsDelete = resource.OperationSpec{
	Name:   "delete",
	Path:   "/v1/webhook_endpoints/{webhook_endpoint}",
	Method: "DELETE",
}
View Source
var V1WebhookEndpointsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/webhook_endpoints",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "A limit on the number of objects to be returned",
		},
		"starting_after": {
			Type:             "string",
			ShortDescription: "A cursor for use in pagination",
		},
	},
}
View Source
var V1WebhookEndpointsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/webhook_endpoints/{webhook_endpoint}",
	Method: "GET",
}
View Source
var V1WebhookEndpointsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/webhook_endpoints/{webhook_endpoint}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"description": {
			Type:             "string",
			ShortDescription: "An optional description of what the webhook is used for",
			MostCommon:       true,
		},
		"disabled": {
			Type:             "boolean",
			ShortDescription: "Disable the webhook endpoint if set to true",
		},
		"enabled_events": {
			Type:             "array",
			ShortDescription: "The list of events to enable for this endpoint",
			MostCommon:       true,
		},
		"url": {
			Type:             "string",
			ShortDescription: "The URL of the webhook endpoint",
			MostCommon:       true,
		},
	},
}
View Source
var V2BillingMeterEventAdjustmentsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v2/billing/meter_event_adjustments",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"cancel.identifier": {
			Type:             "string",
			ShortDescription: "Unique identifier for the event",
			Required:         true,
		},
		"event_name": {
			Type:             "string",
			ShortDescription: "The name of the meter event",
			Required:         true,
		},
		"type": {
			Type:             "string",
			ShortDescription: "Specifies whether to cancel a single event or a range of events for a time period",
			Required:         true,
			Enum: []resource.EnumSpec{
				{Value: "cancel"},
			},
		},
	},
}
View Source
var V2BillingMeterEventSessionsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v2/billing/meter_event_session",
	Method: "POST",
}
View Source
var V2BillingMeterEventsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v2/billing/meter_events",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"event_name": {
			Type:             "string",
			ShortDescription: "The name of the meter event",
			Required:         true,
		},
		"identifier": {
			Type:             "string",
			ShortDescription: "A unique identifier for the event",
		},
		"timestamp": {
			Type:             "string",
			ShortDescription: "The time of the event",
			Format:           "date-time",
		},
	},
}
View Source
var V2CoreAccountLinksCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v2/core/account_links",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"account": {
			Type:             "string",
			ShortDescription: "The ID of the Account to create link for",
			Required:         true,
		},
		"use_case.account_onboarding.collection_options.fields": {
			Type:             "string",
			ShortDescription: "Specifies whether the platform collects only currently_due requirements (`currently_due`) or both currently_due and eventually_due requirements (`eventually_due`)",
			Enum: []resource.EnumSpec{
				{Value: "currently_due"},
				{Value: "eventually_due"},
			},
		},
		"use_case.account_onboarding.collection_options.future_requirements": {
			Type:             "string",
			ShortDescription: "Specifies whether the platform collects future_requirements in addition to requirements in Connect Onboarding",
			Enum: []resource.EnumSpec{
				{Value: "include"},
				{Value: "omit"},
			},
		},
		"use_case.account_onboarding.configurations": {
			Type:             "array",
			ShortDescription: "Open Enum",
		},
		"use_case.account_onboarding.refresh_url": {
			Type:             "string",
			ShortDescription: "The URL the user will be redirected to if the AccountLink is expired, has been used, or is otherwise invalid",
		},
		"use_case.account_onboarding.return_url": {
			Type:             "string",
			ShortDescription: "The URL that the user will be redirected to upon completing the linked flow",
		},
		"use_case.account_update.collection_options.fields": {
			Type:             "string",
			ShortDescription: "Specifies whether the platform collects only currently_due requirements (`currently_due`) or both currently_due and eventually_due requirements (`eventually_due`)",
			Enum: []resource.EnumSpec{
				{Value: "currently_due"},
				{Value: "eventually_due"},
			},
		},
		"use_case.account_update.collection_options.future_requirements": {
			Type:             "string",
			ShortDescription: "Specifies whether the platform collects future_requirements in addition to requirements in Connect Onboarding",
			Enum: []resource.EnumSpec{
				{Value: "include"},
				{Value: "omit"},
			},
		},
		"use_case.account_update.configurations": {
			Type:             "array",
			ShortDescription: "Open Enum",
		},
		"use_case.account_update.refresh_url": {
			Type:             "string",
			ShortDescription: "The URL the user will be redirected to if the Account Link is expired, has been used, or is otherwise invalid",
		},
		"use_case.account_update.return_url": {
			Type:             "string",
			ShortDescription: "The URL that the user will be redirected to upon completing the linked flow",
		},
		"use_case.type": {
			Type:             "string",
			ShortDescription: "Open Enum",
			Required:         true,
			Enum: []resource.EnumSpec{
				{Value: "account_onboarding"},
				{Value: "account_update"},
			},
		},
	},
}
View Source
var V2CoreAccountPersonTokensCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v2/core/accounts/{account_id}/person_tokens",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"additional_terms_of_service.account.shown_and_accepted": {
			Type:             "boolean",
			ShortDescription: "The boolean value indicating if the terms of service have been accepted",
		},
		"address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"address.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"date_of_birth.day": {
			Type:             "integer",
			ShortDescription: "The day of the birth",
		},
		"date_of_birth.month": {
			Type:             "integer",
			ShortDescription: "The month of birth",
		},
		"date_of_birth.year": {
			Type:             "integer",
			ShortDescription: "The year of birth",
		},
		"documents.company_authorization.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"documents.company_authorization.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"documents.passport.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"documents.passport.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"documents.primary_verification.front_back.back": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document",
		},
		"documents.primary_verification.front_back.front": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document",
		},
		"documents.primary_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the verification document",
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"documents.secondary_verification.front_back.back": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document",
		},
		"documents.secondary_verification.front_back.front": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document",
		},
		"documents.secondary_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the verification document",
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"documents.visa.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"documents.visa.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"email": {
			Type:             "string",
			ShortDescription: "Email",
		},
		"given_name": {
			Type:             "string",
			ShortDescription: "The person's first name",
		},
		"legal_gender": {
			Type:             "string",
			ShortDescription: "The person's gender (International regulations require either \"male\" or \"female\")",
			Enum: []resource.EnumSpec{
				{Value: "female"},
				{Value: "male"},
			},
		},
		"nationalities": {
			Type:             "array",
			ShortDescription: "The nationalities (countries) this person is associated with",
		},
		"phone": {
			Type:             "string",
			ShortDescription: "The phone number for this person",
		},
		"political_exposure": {
			Type:             "string",
			ShortDescription: "The person's political exposure",
			Enum: []resource.EnumSpec{
				{Value: "existing"},
				{Value: "none"},
			},
		},
		"relationship.authorizer": {
			Type:             "boolean",
			ShortDescription: "Whether the individual is an authorizer of the Account's identity",
		},
		"relationship.director": {
			Type:             "boolean",
			ShortDescription: "Indicates whether the person is a director of the associated legal entity",
		},
		"relationship.executive": {
			Type:             "boolean",
			ShortDescription: "Indicates whether the person is an executive of the associated legal entity",
		},
		"relationship.legal_guardian": {
			Type:             "boolean",
			ShortDescription: "Indicates whether the person is a legal guardian of the associated legal entity",
		},
		"relationship.owner": {
			Type:             "boolean",
			ShortDescription: "Indicates whether the person is an owner of the associated legal entity",
		},
		"relationship.percent_ownership": {
			Type:             "string",
			ShortDescription: "The percentage of ownership the person has in the associated legal entity",
			Format:           "decimal",
		},
		"relationship.representative": {
			Type:             "boolean",
			ShortDescription: "Indicates whether the person is a representative of the associated legal entity",
		},
		"relationship.title": {
			Type:             "string",
			ShortDescription: "The title or position the person holds in the associated legal entity",
		},
		"script_addresses.kana.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"script_addresses.kana.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"script_addresses.kana.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"script_addresses.kana.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"script_addresses.kana.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"script_addresses.kana.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"script_addresses.kana.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"script_addresses.kanji.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"script_addresses.kanji.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"script_addresses.kanji.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"script_addresses.kanji.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"script_addresses.kanji.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"script_addresses.kanji.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"script_addresses.kanji.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"script_names.kana.given_name": {
			Type:             "string",
			ShortDescription: "The person's first or given name",
		},
		"script_names.kana.surname": {
			Type:             "string",
			ShortDescription: "The person's last or family name",
		},
		"script_names.kanji.given_name": {
			Type:             "string",
			ShortDescription: "The person's first or given name",
		},
		"script_names.kanji.surname": {
			Type:             "string",
			ShortDescription: "The person's last or family name",
		},
		"surname": {
			Type:             "string",
			ShortDescription: "The person's last name",
		},
	},
}
View Source
var V2CoreAccountPersonTokensRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v2/core/accounts/{account_id}/person_tokens/{id}",
	Method: "GET",
}
View Source
var V2CoreAccountPersonsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v2/core/accounts/{account_id}/persons",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"additional_terms_of_service.account.date": {
			Type:             "string",
			ShortDescription: "The time when the Account's representative accepted the terms of service",
			Format:           "date-time",
		},
		"additional_terms_of_service.account.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the Account's representative accepted the terms of service",
		},
		"additional_terms_of_service.account.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the Account's representative accepted the terms of service",
		},
		"address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"address.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"date_of_birth.day": {
			Type:             "integer",
			ShortDescription: "The day of birth",
		},
		"date_of_birth.month": {
			Type:             "integer",
			ShortDescription: "The month of birth",
		},
		"date_of_birth.year": {
			Type:             "integer",
			ShortDescription: "The year of birth",
		},
		"documents.company_authorization.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"documents.company_authorization.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"documents.passport.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"documents.passport.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"documents.primary_verification.front_back.back": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document",
		},
		"documents.primary_verification.front_back.front": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document",
		},
		"documents.primary_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the verification document",
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"documents.secondary_verification.front_back.back": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document",
		},
		"documents.secondary_verification.front_back.front": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document",
		},
		"documents.secondary_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the verification document",
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"documents.visa.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"documents.visa.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"email": {
			Type:             "string",
			ShortDescription: "Email",
		},
		"given_name": {
			Type:             "string",
			ShortDescription: "The person's first name",
		},
		"legal_gender": {
			Type:             "string",
			ShortDescription: "The person's gender (International regulations require either \"male\" or \"female\")",
			Enum: []resource.EnumSpec{
				{Value: "female"},
				{Value: "male"},
			},
		},
		"nationalities": {
			Type:             "array",
			ShortDescription: "The nationalities (countries) this person is associated with",
		},
		"person_token": {
			Type:             "string",
			ShortDescription: "The person token generated by the person token api",
		},
		"phone": {
			Type:             "string",
			ShortDescription: "The phone number for this person",
		},
		"political_exposure": {
			Type:             "string",
			ShortDescription: "The person's political exposure",
			Enum: []resource.EnumSpec{
				{Value: "existing"},
				{Value: "none"},
			},
		},
		"relationship.authorizer": {
			Type:             "boolean",
			ShortDescription: "Whether the individual is an authorizer of the Account's identity",
		},
		"relationship.director": {
			Type:             "boolean",
			ShortDescription: "Indicates whether the person is a director of the associated legal entity",
		},
		"relationship.executive": {
			Type:             "boolean",
			ShortDescription: "Indicates whether the person is an executive of the associated legal entity",
		},
		"relationship.legal_guardian": {
			Type:             "boolean",
			ShortDescription: "Indicates whether the person is a legal guardian of the associated legal entity",
		},
		"relationship.owner": {
			Type:             "boolean",
			ShortDescription: "Indicates whether the person is an owner of the associated legal entity",
		},
		"relationship.percent_ownership": {
			Type:             "string",
			ShortDescription: "The percentage of ownership the person has in the associated legal entity",
			Format:           "decimal",
		},
		"relationship.representative": {
			Type:             "boolean",
			ShortDescription: "Indicates whether the person is a representative of the associated legal entity",
		},
		"relationship.title": {
			Type:             "string",
			ShortDescription: "The title or position the person holds in the associated legal entity",
		},
		"script_addresses.kana.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"script_addresses.kana.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"script_addresses.kana.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"script_addresses.kana.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"script_addresses.kana.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"script_addresses.kana.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"script_addresses.kana.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"script_addresses.kanji.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"script_addresses.kanji.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"script_addresses.kanji.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"script_addresses.kanji.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"script_addresses.kanji.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"script_addresses.kanji.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"script_addresses.kanji.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"script_names.kana.given_name": {
			Type:             "string",
			ShortDescription: "The person's first or given name",
		},
		"script_names.kana.surname": {
			Type:             "string",
			ShortDescription: "The person's last or family name",
		},
		"script_names.kanji.given_name": {
			Type:             "string",
			ShortDescription: "The person's first or given name",
		},
		"script_names.kanji.surname": {
			Type:             "string",
			ShortDescription: "The person's last or family name",
		},
		"surname": {
			Type:             "string",
			ShortDescription: "The person's last name",
		},
	},
}
View Source
var V2CoreAccountPersonsDelete = resource.OperationSpec{
	Name:   "delete",
	Path:   "/v2/core/accounts/{account_id}/persons/{id}",
	Method: "DELETE",
}
View Source
var V2CoreAccountPersonsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v2/core/accounts/{account_id}/persons",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"limit": {
			Type:             "integer",
			ShortDescription: "The upper limit on the number of accounts returned by the List Account request",
		},
		"page": {
			Type:             "string",
			ShortDescription: "The page token to navigate to next or previous batch of accounts given by the list request",
		},
	},
}
View Source
var V2CoreAccountPersonsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v2/core/accounts/{account_id}/persons/{id}",
	Method: "GET",
}
View Source
var V2CoreAccountPersonsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v2/core/accounts/{account_id}/persons/{id}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"additional_terms_of_service.account.date": {
			Type:             "string",
			ShortDescription: "The time when the Account's representative accepted the terms of service",
			Format:           "date-time",
		},
		"additional_terms_of_service.account.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the Account's representative accepted the terms of service",
		},
		"additional_terms_of_service.account.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the Account's representative accepted the terms of service",
		},
		"address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"address.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"date_of_birth.day": {
			Type:             "integer",
			ShortDescription: "The day of the birth",
		},
		"date_of_birth.month": {
			Type:             "integer",
			ShortDescription: "The month of birth",
		},
		"date_of_birth.year": {
			Type:             "integer",
			ShortDescription: "The year of birth",
		},
		"documents.company_authorization.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"documents.company_authorization.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"documents.passport.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"documents.passport.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"documents.primary_verification.front_back.back": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document",
		},
		"documents.primary_verification.front_back.front": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document",
		},
		"documents.primary_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the verification document",
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"documents.secondary_verification.front_back.back": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document",
		},
		"documents.secondary_verification.front_back.front": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document",
		},
		"documents.secondary_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the verification document",
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"documents.visa.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"documents.visa.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"email": {
			Type:             "string",
			ShortDescription: "Email",
		},
		"given_name": {
			Type:             "string",
			ShortDescription: "The person's first name",
		},
		"legal_gender": {
			Type:             "string",
			ShortDescription: "The person's gender (International regulations require either \"male\" or \"female\")",
			Enum: []resource.EnumSpec{
				{Value: "female"},
				{Value: "male"},
			},
		},
		"nationalities": {
			Type:             "array",
			ShortDescription: "The nationalities (countries) this person is associated with",
		},
		"person_token": {
			Type:             "string",
			ShortDescription: "The person token generated by the person token api",
		},
		"phone": {
			Type:             "string",
			ShortDescription: "The phone number for this person",
		},
		"political_exposure": {
			Type:             "string",
			ShortDescription: "The person's political exposure",
			Enum: []resource.EnumSpec{
				{Value: "existing"},
				{Value: "none"},
			},
		},
		"relationship.authorizer": {
			Type:             "boolean",
			ShortDescription: "Whether the individual is an authorizer of the Account's identity",
		},
		"relationship.director": {
			Type:             "boolean",
			ShortDescription: "Indicates whether the person is a director of the associated legal entity",
		},
		"relationship.executive": {
			Type:             "boolean",
			ShortDescription: "Indicates whether the person is an executive of the associated legal entity",
		},
		"relationship.legal_guardian": {
			Type:             "boolean",
			ShortDescription: "Indicates whether the person is a legal guardian of the associated legal entity",
		},
		"relationship.owner": {
			Type:             "boolean",
			ShortDescription: "Indicates whether the person is an owner of the associated legal entity",
		},
		"relationship.percent_ownership": {
			Type:             "string",
			ShortDescription: "The percentage of ownership the person has in the associated legal entity",
			Format:           "decimal",
		},
		"relationship.representative": {
			Type:             "boolean",
			ShortDescription: "Indicates whether the person is a representative of the associated legal entity",
		},
		"relationship.title": {
			Type:             "string",
			ShortDescription: "The title or position the person holds in the associated legal entity",
		},
		"script_addresses.kana.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"script_addresses.kana.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"script_addresses.kana.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"script_addresses.kana.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"script_addresses.kana.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"script_addresses.kana.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"script_addresses.kana.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"script_addresses.kanji.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"script_addresses.kanji.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"script_addresses.kanji.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"script_addresses.kanji.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"script_addresses.kanji.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"script_addresses.kanji.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"script_addresses.kanji.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"script_names.kana.given_name": {
			Type:             "string",
			ShortDescription: "The person's first or given name",
		},
		"script_names.kana.surname": {
			Type:             "string",
			ShortDescription: "The person's last or family name",
		},
		"script_names.kanji.given_name": {
			Type:             "string",
			ShortDescription: "The person's first or given name",
		},
		"script_names.kanji.surname": {
			Type:             "string",
			ShortDescription: "The person's last or family name",
		},
		"surname": {
			Type:             "string",
			ShortDescription: "The person's last name",
		},
	},
}
View Source
var V2CoreAccountTokensCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v2/core/account_tokens",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"contact_email": {
			Type:             "string",
			ShortDescription: "The default contact email address for the Account",
		},
		"contact_phone": {
			Type:             "string",
			ShortDescription: "The default contact phone for the Account",
		},
		"display_name": {
			Type:             "string",
			ShortDescription: "A descriptive name for the Account",
		},
		"identity.attestations.directorship_declaration.attested": {
			Type:             "boolean",
			ShortDescription: "A boolean indicating if the directors information has been attested",
		},
		"identity.attestations.ownership_declaration.attested": {
			Type:             "boolean",
			ShortDescription: "A boolean indicating if the beneficial owner information has been attested",
		},
		"identity.attestations.persons_provided.directors": {
			Type:             "boolean",
			ShortDescription: "Whether the company’s directors have been provided",
		},
		"identity.attestations.persons_provided.executives": {
			Type:             "boolean",
			ShortDescription: "Whether the company’s executives have been provided",
		},
		"identity.attestations.persons_provided.owners": {
			Type:             "boolean",
			ShortDescription: "Whether the company’s owners have been provided",
		},
		"identity.attestations.persons_provided.ownership_exemption_reason": {
			Type:             "string",
			ShortDescription: "Reason for why the company is exempt from providing ownership information",
			Enum: []resource.EnumSpec{
				{Value: "qualified_entity_exceeds_ownership_threshold"},
				{Value: "qualifies_as_financial_institution"},
			},
		},
		"identity.attestations.representative_declaration.attested": {
			Type:             "boolean",
			ShortDescription: "A boolean indicating if the representative is authorized to act as the representative of their legal entity",
		},
		"identity.attestations.terms_of_service.account.shown_and_accepted": {
			Type:             "boolean",
			ShortDescription: "The boolean value indicating if the terms of service have been accepted",
		},
		"identity.business_details.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"identity.business_details.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"identity.business_details.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"identity.business_details.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"identity.business_details.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"identity.business_details.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"identity.business_details.address.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"identity.business_details.annual_revenue.amount.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
		},
		"identity.business_details.annual_revenue.amount.value": {
			Type:             "integer",
			ShortDescription: "A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units)",
		},
		"identity.business_details.annual_revenue.fiscal_year_end": {
			Type:             "string",
			ShortDescription: "The close-out date of the preceding fiscal year in ISO 8601 format",
		},
		"identity.business_details.documents.bank_account_ownership_verification.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.bank_account_ownership_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_license.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.company_license.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_memorandum_of_association.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.company_memorandum_of_association.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_ministerial_decree.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.company_ministerial_decree.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_registration_verification.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.company_registration_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_tax_id_verification.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.company_tax_id_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.primary_verification.front_back.back": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document",
		},
		"identity.business_details.documents.primary_verification.front_back.front": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document",
		},
		"identity.business_details.documents.primary_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the verification document",
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"identity.business_details.documents.proof_of_address.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.proof_of_address.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.proof_of_registration.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.proof_of_registration.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.proof_of_ultimate_beneficial_ownership.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.proof_of_ultimate_beneficial_ownership.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.estimated_worker_count": {
			Type:             "integer",
			ShortDescription: "Estimated maximum number of workers currently engaged by the business (including employees, contractors, and vendors)",
		},
		"identity.business_details.monthly_estimated_revenue.amount.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
		},
		"identity.business_details.monthly_estimated_revenue.amount.value": {
			Type:             "integer",
			ShortDescription: "A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units)",
		},
		"identity.business_details.phone": {
			Type:             "string",
			ShortDescription: "The phone number of the Business Entity",
		},
		"identity.business_details.registered_name": {
			Type:             "string",
			ShortDescription: "The business legal name",
		},
		"identity.business_details.registration_date.day": {
			Type:             "integer",
			ShortDescription: "The day of registration, between 1 and 31",
		},
		"identity.business_details.registration_date.month": {
			Type:             "integer",
			ShortDescription: "The month of registration, between 1 and 12",
		},
		"identity.business_details.registration_date.year": {
			Type:             "integer",
			ShortDescription: "The four-digit year of registration",
		},
		"identity.business_details.script_addresses.kana.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"identity.business_details.script_addresses.kana.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"identity.business_details.script_addresses.kana.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"identity.business_details.script_addresses.kana.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"identity.business_details.script_addresses.kana.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"identity.business_details.script_addresses.kana.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"identity.business_details.script_addresses.kana.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"identity.business_details.script_addresses.kanji.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"identity.business_details.script_addresses.kanji.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"identity.business_details.script_addresses.kanji.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"identity.business_details.script_addresses.kanji.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"identity.business_details.script_addresses.kanji.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"identity.business_details.script_addresses.kanji.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"identity.business_details.script_addresses.kanji.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"identity.business_details.script_names.kana.registered_name": {
			Type:             "string",
			ShortDescription: "Registered name of the business",
		},
		"identity.business_details.script_names.kanji.registered_name": {
			Type:             "string",
			ShortDescription: "Registered name of the business",
		},
		"identity.business_details.structure": {
			Type:             "string",
			ShortDescription: "The category identifying the legal structure of the business",
			Enum: []resource.EnumSpec{
				{Value: "cooperative"},
				{Value: "free_zone_establishment"},
				{Value: "free_zone_llc"},
				{Value: "governmental_unit"},
				{Value: "government_instrumentality"},
				{Value: "incorporated_association"},
				{Value: "incorporated_non_profit"},
				{Value: "incorporated_partnership"},
				{Value: "limited_liability_partnership"},
				{Value: "llc"},
				{Value: "multi_member_llc"},
				{Value: "private_company"},
				{Value: "private_corporation"},
				{Value: "private_partnership"},
				{Value: "public_company"},
				{Value: "public_corporation"},
				{Value: "public_listed_corporation"},
				{Value: "public_partnership"},
				{Value: "registered_charity"},
				{Value: "single_member_llc"},
				{Value: "sole_establishment"},
				{Value: "sole_proprietorship"},
				{Value: "tax_exempt_government_instrumentality"},
				{Value: "trust"},
				{Value: "unincorporated_association"},
				{Value: "unincorporated_non_profit"},
				{Value: "unincorporated_partnership"},
			},
		},
		"identity.entity_type": {
			Type:             "string",
			ShortDescription: "The entity type",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "government_entity"},
				{Value: "individual"},
				{Value: "non_profit"},
			},
		},
		"identity.individual.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"identity.individual.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"identity.individual.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"identity.individual.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"identity.individual.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"identity.individual.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"identity.individual.address.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"identity.individual.date_of_birth.day": {
			Type:             "integer",
			ShortDescription: "The day of the birth",
		},
		"identity.individual.date_of_birth.month": {
			Type:             "integer",
			ShortDescription: "The month of birth",
		},
		"identity.individual.date_of_birth.year": {
			Type:             "integer",
			ShortDescription: "The year of birth",
		},
		"identity.individual.documents.company_authorization.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.individual.documents.company_authorization.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.individual.documents.passport.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.individual.documents.passport.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.individual.documents.primary_verification.front_back.back": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document",
		},
		"identity.individual.documents.primary_verification.front_back.front": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document",
		},
		"identity.individual.documents.primary_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the verification document",
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"identity.individual.documents.secondary_verification.front_back.back": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document",
		},
		"identity.individual.documents.secondary_verification.front_back.front": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document",
		},
		"identity.individual.documents.secondary_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the verification document",
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"identity.individual.documents.visa.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.individual.documents.visa.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.individual.email": {
			Type:             "string",
			ShortDescription: "The individual's email address",
		},
		"identity.individual.given_name": {
			Type:             "string",
			ShortDescription: "The individual's first name",
		},
		"identity.individual.legal_gender": {
			Type:             "string",
			ShortDescription: "The individual's gender (International regulations require either \"male\" or \"female\")",
			Enum: []resource.EnumSpec{
				{Value: "female"},
				{Value: "male"},
			},
		},
		"identity.individual.nationalities": {
			Type:             "array",
			ShortDescription: "The countries where the individual is a national",
		},
		"identity.individual.phone": {
			Type:             "string",
			ShortDescription: "The individual's phone number",
		},
		"identity.individual.political_exposure": {
			Type:             "string",
			ShortDescription: "The individual's political exposure",
			Enum: []resource.EnumSpec{
				{Value: "existing"},
				{Value: "none"},
			},
		},
		"identity.individual.relationship.director": {
			Type:             "boolean",
			ShortDescription: "Whether the person is a director of the account's identity",
		},
		"identity.individual.relationship.executive": {
			Type:             "boolean",
			ShortDescription: "Whether the person has significant responsibility to control, manage, or direct the organization",
		},
		"identity.individual.relationship.owner": {
			Type:             "boolean",
			ShortDescription: "Whether the person is an owner of the account’s identity",
		},
		"identity.individual.relationship.percent_ownership": {
			Type:             "string",
			ShortDescription: "The percent owned by the person of the account's legal entity",
			Format:           "decimal",
		},
		"identity.individual.relationship.title": {
			Type:             "string",
			ShortDescription: "The person's title (e.g., CEO, Support Engineer)",
		},
		"identity.individual.script_addresses.kana.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"identity.individual.script_addresses.kana.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"identity.individual.script_addresses.kana.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"identity.individual.script_addresses.kana.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"identity.individual.script_addresses.kana.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"identity.individual.script_addresses.kana.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"identity.individual.script_addresses.kana.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"identity.individual.script_addresses.kanji.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"identity.individual.script_addresses.kanji.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"identity.individual.script_addresses.kanji.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"identity.individual.script_addresses.kanji.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"identity.individual.script_addresses.kanji.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"identity.individual.script_addresses.kanji.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"identity.individual.script_addresses.kanji.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"identity.individual.script_names.kana.given_name": {
			Type:             "string",
			ShortDescription: "The person's first or given name",
		},
		"identity.individual.script_names.kana.surname": {
			Type:             "string",
			ShortDescription: "The person's last or family name",
		},
		"identity.individual.script_names.kanji.given_name": {
			Type:             "string",
			ShortDescription: "The person's first or given name",
		},
		"identity.individual.script_names.kanji.surname": {
			Type:             "string",
			ShortDescription: "The person's last or family name",
		},
		"identity.individual.surname": {
			Type:             "string",
			ShortDescription: "The individual's last name",
		},
	},
}
View Source
var V2CoreAccountTokensRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v2/core/account_tokens/{id}",
	Method: "GET",
}
View Source
var V2CoreAccountsClose = resource.OperationSpec{
	Name:   "close",
	Path:   "/v2/core/accounts/{id}/close",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"applied_configurations": {
			Type:             "array",
			ShortDescription: "Configurations on the Account to be closed",
		},
	},
}
View Source
var V2CoreAccountsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v2/core/accounts",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"account_token": {
			Type:             "string",
			ShortDescription: "The account token generated by the account token api",
		},
		"configuration.customer.automatic_indirect_tax.exempt": {
			Type:             "string",
			ShortDescription: "Describes the customer's tax exemption status, which is `none`, `exempt`, or `reverse`",
			Enum: []resource.EnumSpec{
				{Value: "exempt"},
				{Value: "none"},
				{Value: "reverse"},
			},
		},
		"configuration.customer.automatic_indirect_tax.ip_address": {
			Type:             "string",
			ShortDescription: "A recent IP address of the customer used for tax reporting and tax location inference",
		},
		"configuration.customer.billing.invoice.footer": {
			Type:             "string",
			ShortDescription: "Default invoice footer",
		},
		"configuration.customer.billing.invoice.next_sequence": {
			Type:             "integer",
			ShortDescription: "Sequence number to use on the customer account's next invoice",
		},
		"configuration.customer.billing.invoice.prefix": {
			Type:             "string",
			ShortDescription: "Prefix used to generate unique invoice numbers",
		},
		"configuration.customer.billing.invoice.rendering.amount_tax_display": {
			Type:             "string",
			ShortDescription: "Indicates whether displayed line item prices and amounts on invoice PDFs include inclusive tax amounts",
			Enum: []resource.EnumSpec{
				{Value: "exclude_tax"},
				{Value: "include_inclusive_tax"},
			},
		},
		"configuration.customer.billing.invoice.rendering.template": {
			Type:             "string",
			ShortDescription: "ID of the invoice rendering template to use for future invoices",
		},
		"configuration.customer.capabilities.automatic_indirect_tax.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.customer.shipping.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"configuration.customer.shipping.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"configuration.customer.shipping.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"configuration.customer.shipping.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"configuration.customer.shipping.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"configuration.customer.shipping.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"configuration.customer.shipping.name": {
			Type:             "string",
			ShortDescription: "Customer name",
		},
		"configuration.customer.shipping.phone": {
			Type:             "string",
			ShortDescription: "Customer phone (including extension)",
		},
		"configuration.customer.test_clock": {
			Type:             "string",
			ShortDescription: "ID of the test clock to attach to the customer",
		},
		"configuration.merchant.bacs_debit_payments.display_name": {
			Type:             "string",
			ShortDescription: "Display name for Bacs Direct Debit payments",
		},
		"configuration.merchant.branding.icon": {
			Type:             "string",
			ShortDescription: "ID of a [file upload](https://docs.stripe.com/api/persons/update#create_file): An icon for the merchant",
		},
		"configuration.merchant.branding.logo": {
			Type:             "string",
			ShortDescription: "ID of a [file upload](https://docs.stripe.com/api/persons/update#create_file): A logo for the merchant that will be used in Checkout instead of the icon and without the merchant's name next to it if provided",
		},
		"configuration.merchant.branding.primary_color": {
			Type:             "string",
			ShortDescription: "A CSS hex color value representing the primary branding color for the merchant",
		},
		"configuration.merchant.branding.secondary_color": {
			Type:             "string",
			ShortDescription: "A CSS hex color value representing the secondary branding color for the merchant",
		},
		"configuration.merchant.capabilities.ach_debit_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.acss_debit_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.affirm_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.afterpay_clearpay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.alma_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.amazon_pay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.au_becs_debit_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.bacs_debit_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.bancontact_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.blik_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.boleto_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.card_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.cartes_bancaires_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.cashapp_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.eps_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.fpx_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.gb_bank_transfer_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.grabpay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.ideal_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.jcb_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.jp_bank_transfer_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.kakao_pay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.klarna_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.konbini_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.kr_card_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.link_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.mobilepay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.multibanco_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.mx_bank_transfer_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.naver_pay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.oxxo_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.p24_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.pay_by_bank_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.payco_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.paynow_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.promptpay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.revolut_pay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.samsung_pay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.sepa_bank_transfer_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.sepa_debit_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.swish_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.twint_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.us_bank_transfer_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.zip_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.card_payments.decline_on.avs_failure": {
			Type:             "boolean",
			ShortDescription: "Whether Stripe automatically declines charges with an incorrect ZIP or postal code",
		},
		"configuration.merchant.card_payments.decline_on.cvc_failure": {
			Type:             "boolean",
			ShortDescription: "Whether Stripe automatically declines charges with an incorrect CVC",
		},
		"configuration.merchant.konbini_payments.support.email": {
			Type:             "string",
			ShortDescription: "Support email address for Konbini payments",
		},
		"configuration.merchant.konbini_payments.support.hours.end_time": {
			Type:             "string",
			ShortDescription: "Support hours end time (JST time of day) for in `HH:MM` format",
		},
		"configuration.merchant.konbini_payments.support.hours.start_time": {
			Type:             "string",
			ShortDescription: "Support hours start time (JST time of day) for in `HH:MM` format",
		},
		"configuration.merchant.konbini_payments.support.phone": {
			Type:             "string",
			ShortDescription: "Support phone number for Konbini payments",
		},
		"configuration.merchant.mcc": {
			Type:             "string",
			ShortDescription: "The Merchant Category Code (MCC) for the Merchant Configuration",
		},
		"configuration.merchant.script_statement_descriptor.kana.descriptor": {
			Type:             "string",
			ShortDescription: "The default text that appears on statements for non-card charges outside of Japan",
		},
		"configuration.merchant.script_statement_descriptor.kana.prefix": {
			Type:             "string",
			ShortDescription: "Default text that appears on statements for card charges outside of Japan, prefixing any dynamic statement_descriptor_suffix specified on the charge",
		},
		"configuration.merchant.script_statement_descriptor.kanji.descriptor": {
			Type:             "string",
			ShortDescription: "The default text that appears on statements for non-card charges outside of Japan",
		},
		"configuration.merchant.script_statement_descriptor.kanji.prefix": {
			Type:             "string",
			ShortDescription: "Default text that appears on statements for card charges outside of Japan, prefixing any dynamic statement_descriptor_suffix specified on the charge",
		},
		"configuration.merchant.statement_descriptor.descriptor": {
			Type:             "string",
			ShortDescription: "The default text that appears on statements for non-card charges outside of Japan",
		},
		"configuration.merchant.statement_descriptor.prefix": {
			Type:             "string",
			ShortDescription: "Default text that appears on statements for card charges outside of Japan, prefixing any dynamic statement_descriptor_suffix specified on the charge",
		},
		"configuration.merchant.support.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"configuration.merchant.support.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"configuration.merchant.support.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"configuration.merchant.support.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"configuration.merchant.support.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"configuration.merchant.support.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"configuration.merchant.support.address.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"configuration.merchant.support.email": {
			Type:             "string",
			ShortDescription: "A publicly available email address for sending support issues to",
		},
		"configuration.merchant.support.phone": {
			Type:             "string",
			ShortDescription: "A publicly available phone number to call with support issues",
		},
		"configuration.merchant.support.url": {
			Type:             "string",
			ShortDescription: "A publicly available website for handling support issues",
		},
		"configuration.recipient.capabilities.stripe_balance.stripe_transfers.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"contact_email": {
			Type:             "string",
			ShortDescription: "The default contact email address for the Account",
		},
		"contact_phone": {
			Type:             "string",
			ShortDescription: "The default contact phone for the Account",
		},
		"dashboard": {
			Type:             "string",
			ShortDescription: "A value indicating the Stripe dashboard this Account has access to",
			Enum: []resource.EnumSpec{
				{Value: "express"},
				{Value: "full"},
				{Value: "none"},
			},
		},
		"defaults.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
		},
		"defaults.locales": {
			Type:             "array",
			ShortDescription: "The Account's preferred locales (languages), ordered by preference",
		},
		"defaults.profile.business_url": {
			Type:             "string",
			ShortDescription: "The business's publicly-available website",
		},
		"defaults.profile.doing_business_as": {
			Type:             "string",
			ShortDescription: "The name which is used by the business",
		},
		"defaults.profile.product_description": {
			Type:             "string",
			ShortDescription: "Internal-only description of the product sold or service provided by the business",
		},
		"defaults.responsibilities.fees_collector": {
			Type:             "string",
			ShortDescription: "A value indicating the party responsible for collecting fees from this account",
			Enum: []resource.EnumSpec{
				{Value: "application"},
				{Value: "application_custom"},
				{Value: "application_express"},
				{Value: "stripe"},
			},
		},
		"defaults.responsibilities.losses_collector": {
			Type:             "string",
			ShortDescription: "A value indicating who is responsible for losses when this Account can’t pay back negative balances from payments",
			Enum: []resource.EnumSpec{
				{Value: "application"},
				{Value: "stripe"},
			},
		},
		"display_name": {
			Type:             "string",
			ShortDescription: "A descriptive name for the Account",
		},
		"identity.attestations.directorship_declaration.date": {
			Type:             "string",
			ShortDescription: "The time marking when the director attestation was made",
			Format:           "date-time",
		},
		"identity.attestations.directorship_declaration.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the director attestation was made",
		},
		"identity.attestations.directorship_declaration.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the director attestation was made",
		},
		"identity.attestations.ownership_declaration.date": {
			Type:             "string",
			ShortDescription: "The time marking when the beneficial owner attestation was made",
			Format:           "date-time",
		},
		"identity.attestations.ownership_declaration.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the beneficial owner attestation was made",
		},
		"identity.attestations.ownership_declaration.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the beneficial owner attestation was made",
		},
		"identity.attestations.persons_provided.directors": {
			Type:             "boolean",
			ShortDescription: "Whether the company’s directors have been provided",
		},
		"identity.attestations.persons_provided.executives": {
			Type:             "boolean",
			ShortDescription: "Whether the company’s executives have been provided",
		},
		"identity.attestations.persons_provided.owners": {
			Type:             "boolean",
			ShortDescription: "Whether the company’s owners have been provided",
		},
		"identity.attestations.persons_provided.ownership_exemption_reason": {
			Type:             "string",
			ShortDescription: "Reason for why the company is exempt from providing ownership information",
			Enum: []resource.EnumSpec{
				{Value: "qualified_entity_exceeds_ownership_threshold"},
				{Value: "qualifies_as_financial_institution"},
			},
		},
		"identity.attestations.representative_declaration.date": {
			Type:             "string",
			ShortDescription: "The time marking when the representative attestation was made",
			Format:           "date-time",
		},
		"identity.attestations.representative_declaration.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the representative attestation was made",
		},
		"identity.attestations.representative_declaration.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the representative attestation was made",
		},
		"identity.attestations.terms_of_service.account.date": {
			Type:             "string",
			ShortDescription: "The time when the Account's representative accepted the terms of service",
			Format:           "date-time",
		},
		"identity.attestations.terms_of_service.account.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the Account's representative accepted the terms of service",
		},
		"identity.attestations.terms_of_service.account.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the Account's representative accepted the terms of service",
		},
		"identity.business_details.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"identity.business_details.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"identity.business_details.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"identity.business_details.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"identity.business_details.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"identity.business_details.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"identity.business_details.address.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"identity.business_details.annual_revenue.amount.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
		},
		"identity.business_details.annual_revenue.amount.value": {
			Type:             "integer",
			ShortDescription: "A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units)",
		},
		"identity.business_details.annual_revenue.fiscal_year_end": {
			Type:             "string",
			ShortDescription: "The close-out date of the preceding fiscal year in ISO 8601 format",
		},
		"identity.business_details.documents.bank_account_ownership_verification.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.bank_account_ownership_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_license.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.company_license.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_memorandum_of_association.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.company_memorandum_of_association.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_ministerial_decree.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.company_ministerial_decree.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_registration_verification.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.company_registration_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_tax_id_verification.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.company_tax_id_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.primary_verification.front_back.back": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document",
		},
		"identity.business_details.documents.primary_verification.front_back.front": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document",
		},
		"identity.business_details.documents.primary_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the verification document",
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"identity.business_details.documents.proof_of_address.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.proof_of_address.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.proof_of_registration.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.proof_of_registration.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.proof_of_ultimate_beneficial_ownership.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.proof_of_ultimate_beneficial_ownership.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.estimated_worker_count": {
			Type:             "integer",
			ShortDescription: "Estimated maximum number of workers currently engaged by the business (including employees, contractors, and vendors)",
		},
		"identity.business_details.monthly_estimated_revenue.amount.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
		},
		"identity.business_details.monthly_estimated_revenue.amount.value": {
			Type:             "integer",
			ShortDescription: "A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units)",
		},
		"identity.business_details.phone": {
			Type:             "string",
			ShortDescription: "The phone number of the Business Entity",
		},
		"identity.business_details.registered_name": {
			Type:             "string",
			ShortDescription: "The business legal name",
		},
		"identity.business_details.registration_date.day": {
			Type:             "integer",
			ShortDescription: "The day of registration, between 1 and 31",
		},
		"identity.business_details.registration_date.month": {
			Type:             "integer",
			ShortDescription: "The month of registration, between 1 and 12",
		},
		"identity.business_details.registration_date.year": {
			Type:             "integer",
			ShortDescription: "The four-digit year of registration",
		},
		"identity.business_details.script_addresses.kana.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"identity.business_details.script_addresses.kana.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"identity.business_details.script_addresses.kana.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"identity.business_details.script_addresses.kana.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"identity.business_details.script_addresses.kana.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"identity.business_details.script_addresses.kana.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"identity.business_details.script_addresses.kana.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"identity.business_details.script_addresses.kanji.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"identity.business_details.script_addresses.kanji.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"identity.business_details.script_addresses.kanji.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"identity.business_details.script_addresses.kanji.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"identity.business_details.script_addresses.kanji.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"identity.business_details.script_addresses.kanji.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"identity.business_details.script_addresses.kanji.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"identity.business_details.script_names.kana.registered_name": {
			Type:             "string",
			ShortDescription: "Registered name of the business",
		},
		"identity.business_details.script_names.kanji.registered_name": {
			Type:             "string",
			ShortDescription: "Registered name of the business",
		},
		"identity.business_details.structure": {
			Type:             "string",
			ShortDescription: "The category identifying the legal structure of the business",
			Enum: []resource.EnumSpec{
				{Value: "cooperative"},
				{Value: "free_zone_establishment"},
				{Value: "free_zone_llc"},
				{Value: "governmental_unit"},
				{Value: "government_instrumentality"},
				{Value: "incorporated_association"},
				{Value: "incorporated_non_profit"},
				{Value: "incorporated_partnership"},
				{Value: "limited_liability_partnership"},
				{Value: "llc"},
				{Value: "multi_member_llc"},
				{Value: "private_company"},
				{Value: "private_corporation"},
				{Value: "private_partnership"},
				{Value: "public_company"},
				{Value: "public_corporation"},
				{Value: "public_listed_corporation"},
				{Value: "public_partnership"},
				{Value: "registered_charity"},
				{Value: "single_member_llc"},
				{Value: "sole_establishment"},
				{Value: "sole_proprietorship"},
				{Value: "tax_exempt_government_instrumentality"},
				{Value: "trust"},
				{Value: "unincorporated_association"},
				{Value: "unincorporated_non_profit"},
				{Value: "unincorporated_partnership"},
			},
		},
		"identity.country": {
			Type:             "string",
			ShortDescription: "The country in which the account holder resides, or in which the business is legally established",
		},
		"identity.entity_type": {
			Type:             "string",
			ShortDescription: "The entity type",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "government_entity"},
				{Value: "individual"},
				{Value: "non_profit"},
			},
		},
		"identity.individual.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"identity.individual.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"identity.individual.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"identity.individual.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"identity.individual.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"identity.individual.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"identity.individual.address.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"identity.individual.date_of_birth.day": {
			Type:             "integer",
			ShortDescription: "The day of birth",
		},
		"identity.individual.date_of_birth.month": {
			Type:             "integer",
			ShortDescription: "The month of birth",
		},
		"identity.individual.date_of_birth.year": {
			Type:             "integer",
			ShortDescription: "The year of birth",
		},
		"identity.individual.documents.company_authorization.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.individual.documents.company_authorization.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.individual.documents.passport.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.individual.documents.passport.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.individual.documents.primary_verification.front_back.back": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document",
		},
		"identity.individual.documents.primary_verification.front_back.front": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document",
		},
		"identity.individual.documents.primary_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the verification document",
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"identity.individual.documents.secondary_verification.front_back.back": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document",
		},
		"identity.individual.documents.secondary_verification.front_back.front": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document",
		},
		"identity.individual.documents.secondary_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the verification document",
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"identity.individual.documents.visa.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.individual.documents.visa.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.individual.email": {
			Type:             "string",
			ShortDescription: "The individual's email address",
		},
		"identity.individual.given_name": {
			Type:             "string",
			ShortDescription: "The individual's first name",
		},
		"identity.individual.legal_gender": {
			Type:             "string",
			ShortDescription: "The individual's gender (International regulations require either \"male\" or \"female\")",
			Enum: []resource.EnumSpec{
				{Value: "female"},
				{Value: "male"},
			},
		},
		"identity.individual.nationalities": {
			Type:             "array",
			ShortDescription: "The countries where the individual is a national",
		},
		"identity.individual.phone": {
			Type:             "string",
			ShortDescription: "The individual's phone number",
		},
		"identity.individual.political_exposure": {
			Type:             "string",
			ShortDescription: "The individual's political exposure",
			Enum: []resource.EnumSpec{
				{Value: "existing"},
				{Value: "none"},
			},
		},
		"identity.individual.relationship.director": {
			Type:             "boolean",
			ShortDescription: "Whether the person is a director of the account's identity",
		},
		"identity.individual.relationship.executive": {
			Type:             "boolean",
			ShortDescription: "Whether the person has significant responsibility to control, manage, or direct the organization",
		},
		"identity.individual.relationship.owner": {
			Type:             "boolean",
			ShortDescription: "Whether the person is an owner of the account’s identity",
		},
		"identity.individual.relationship.percent_ownership": {
			Type:             "string",
			ShortDescription: "The percent owned by the person of the account's legal entity",
			Format:           "decimal",
		},
		"identity.individual.relationship.title": {
			Type:             "string",
			ShortDescription: "The person's title (e.g., CEO, Support Engineer)",
		},
		"identity.individual.script_addresses.kana.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"identity.individual.script_addresses.kana.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"identity.individual.script_addresses.kana.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"identity.individual.script_addresses.kana.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"identity.individual.script_addresses.kana.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"identity.individual.script_addresses.kana.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"identity.individual.script_addresses.kana.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"identity.individual.script_addresses.kanji.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"identity.individual.script_addresses.kanji.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"identity.individual.script_addresses.kanji.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"identity.individual.script_addresses.kanji.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"identity.individual.script_addresses.kanji.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"identity.individual.script_addresses.kanji.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"identity.individual.script_addresses.kanji.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"identity.individual.script_names.kana.given_name": {
			Type:             "string",
			ShortDescription: "The person's first or given name",
		},
		"identity.individual.script_names.kana.surname": {
			Type:             "string",
			ShortDescription: "The person's last or family name",
		},
		"identity.individual.script_names.kanji.given_name": {
			Type:             "string",
			ShortDescription: "The person's first or given name",
		},
		"identity.individual.script_names.kanji.surname": {
			Type:             "string",
			ShortDescription: "The person's last or family name",
		},
		"identity.individual.surname": {
			Type:             "string",
			ShortDescription: "The individual's last name",
		},
		"include": {
			Type:             "array",
			ShortDescription: "Additional fields to include in the response",
		},
	},
}
View Source
var V2CoreAccountsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v2/core/accounts",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"applied_configurations": {
			Type:             "array",
			ShortDescription: "Filter only accounts that have all of the configurations specified",
		},
		"closed": {
			Type:             "boolean",
			ShortDescription: "Filter by whether the account is closed",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "The upper limit on the number of accounts returned by the List Account request",
		},
		"page": {
			Type:             "string",
			ShortDescription: "The page token to navigate to next or previous batch of accounts given by the list request",
		},
	},
}
View Source
var V2CoreAccountsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v2/core/accounts/{id}",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"include": {
			Type:             "array",
			ShortDescription: "Additional fields to include in the response",
		},
	},
}
View Source
var V2CoreAccountsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v2/core/accounts/{id}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"account_token": {
			Type:             "string",
			ShortDescription: "The account token generated by the account token api",
		},
		"configuration.customer.applied": {
			Type:             "boolean",
			ShortDescription: "Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration",
		},
		"configuration.customer.automatic_indirect_tax.exempt": {
			Type:             "string",
			ShortDescription: "The customer account's tax exemption status: `none`, `exempt`, or `reverse`",
			Enum: []resource.EnumSpec{
				{Value: "exempt"},
				{Value: "none"},
				{Value: "reverse"},
			},
		},
		"configuration.customer.automatic_indirect_tax.ip_address": {
			Type:             "string",
			ShortDescription: "A recent IP address of the customer used for tax reporting and tax location inference",
		},
		"configuration.customer.automatic_indirect_tax.validate_location": {
			Type:             "string",
			ShortDescription: "A per-request flag that indicates when Stripe should validate the customer tax location - defaults to `auto`",
			Enum: []resource.EnumSpec{
				{Value: "auto"},
				{Value: "deferred"},
				{Value: "immediately"},
			},
		},
		"configuration.customer.billing.default_payment_method": {
			Type:             "string",
			ShortDescription: "ID of a PaymentMethod attached to the customer account to use as the default for invoices and subscriptions",
		},
		"configuration.customer.billing.invoice.footer": {
			Type:             "string",
			ShortDescription: "Default invoice footer",
		},
		"configuration.customer.billing.invoice.next_sequence": {
			Type:             "integer",
			ShortDescription: "Sequence number to use on the customer account's next invoice",
		},
		"configuration.customer.billing.invoice.prefix": {
			Type:             "string",
			ShortDescription: "Prefix used to generate unique invoice numbers",
		},
		"configuration.customer.billing.invoice.rendering.amount_tax_display": {
			Type:             "string",
			ShortDescription: "Indicates whether displayed line item prices and amounts on invoice PDFs include inclusive tax amounts",
			Enum: []resource.EnumSpec{
				{Value: "exclude_tax"},
				{Value: "include_inclusive_tax"},
			},
		},
		"configuration.customer.billing.invoice.rendering.template": {
			Type:             "string",
			ShortDescription: "ID of the invoice rendering template to use for future invoices",
		},
		"configuration.customer.capabilities.automatic_indirect_tax.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.customer.shipping.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"configuration.customer.shipping.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"configuration.customer.shipping.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"configuration.customer.shipping.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"configuration.customer.shipping.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"configuration.customer.shipping.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"configuration.customer.shipping.name": {
			Type:             "string",
			ShortDescription: "Customer name",
		},
		"configuration.customer.shipping.phone": {
			Type:             "string",
			ShortDescription: "Customer phone (including extension)",
		},
		"configuration.customer.test_clock": {
			Type:             "string",
			ShortDescription: "ID of the test clock to attach to the customer",
		},
		"configuration.merchant.applied": {
			Type:             "boolean",
			ShortDescription: "Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration",
		},
		"configuration.merchant.bacs_debit_payments.display_name": {
			Type:             "string",
			ShortDescription: "Display name for Bacs Direct Debit payments",
		},
		"configuration.merchant.branding.icon": {
			Type:             "string",
			ShortDescription: "ID of a [file upload](https://docs.stripe.com/api/persons/update#create_file): An icon for the merchant",
		},
		"configuration.merchant.branding.logo": {
			Type:             "string",
			ShortDescription: "ID of a [file upload](https://docs.stripe.com/api/persons/update#create_file): A logo for the merchant that will be used in Checkout instead of the icon and without the merchant's name next to it if provided",
		},
		"configuration.merchant.branding.primary_color": {
			Type:             "string",
			ShortDescription: "A CSS hex color value representing the primary branding color for the merchant",
		},
		"configuration.merchant.branding.secondary_color": {
			Type:             "string",
			ShortDescription: "A CSS hex color value representing the secondary branding color for the merchant",
		},
		"configuration.merchant.capabilities.ach_debit_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.acss_debit_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.affirm_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.afterpay_clearpay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.alma_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.amazon_pay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.au_becs_debit_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.bacs_debit_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.bancontact_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.blik_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.boleto_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.card_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.cartes_bancaires_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.cashapp_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.eps_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.fpx_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.gb_bank_transfer_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.grabpay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.ideal_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.jcb_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.jp_bank_transfer_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.kakao_pay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.klarna_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.konbini_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.kr_card_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.link_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.mobilepay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.multibanco_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.mx_bank_transfer_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.naver_pay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.oxxo_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.p24_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.pay_by_bank_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.payco_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.paynow_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.promptpay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.revolut_pay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.samsung_pay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.sepa_bank_transfer_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.sepa_debit_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.swish_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.twint_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.us_bank_transfer_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.zip_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.card_payments.decline_on.avs_failure": {
			Type:             "boolean",
			ShortDescription: "Whether Stripe automatically declines charges with an incorrect ZIP or postal code",
		},
		"configuration.merchant.card_payments.decline_on.cvc_failure": {
			Type:             "boolean",
			ShortDescription: "Whether Stripe automatically declines charges with an incorrect CVC",
		},
		"configuration.merchant.konbini_payments.support.email": {
			Type:             "string",
			ShortDescription: "Support email address for Konbini payments",
		},
		"configuration.merchant.konbini_payments.support.hours.end_time": {
			Type:             "string",
			ShortDescription: "Support hours end time (JST time of day) for in `HH:MM` format",
		},
		"configuration.merchant.konbini_payments.support.hours.start_time": {
			Type:             "string",
			ShortDescription: "Support hours start time (JST time of day) for in `HH:MM` format",
		},
		"configuration.merchant.konbini_payments.support.phone": {
			Type:             "string",
			ShortDescription: "Support phone number for Konbini payments",
		},
		"configuration.merchant.mcc": {
			Type:             "string",
			ShortDescription: "The Merchant Category Code (MCC) for the merchant",
		},
		"configuration.merchant.script_statement_descriptor.kana.descriptor": {
			Type:             "string",
			ShortDescription: "The default text that appears on statements for non-card charges outside of Japan",
		},
		"configuration.merchant.script_statement_descriptor.kana.prefix": {
			Type:             "string",
			ShortDescription: "Default text that appears on statements for card charges outside of Japan, prefixing any dynamic statement_descriptor_suffix specified on the charge",
		},
		"configuration.merchant.script_statement_descriptor.kanji.descriptor": {
			Type:             "string",
			ShortDescription: "The default text that appears on statements for non-card charges outside of Japan",
		},
		"configuration.merchant.script_statement_descriptor.kanji.prefix": {
			Type:             "string",
			ShortDescription: "Default text that appears on statements for card charges outside of Japan, prefixing any dynamic statement_descriptor_suffix specified on the charge",
		},
		"configuration.merchant.statement_descriptor.descriptor": {
			Type:             "string",
			ShortDescription: "The default text that appears on statements for non-card charges outside of Japan",
		},
		"configuration.merchant.statement_descriptor.prefix": {
			Type:             "string",
			ShortDescription: "Default text that appears on statements for card charges outside of Japan, prefixing any dynamic statement_descriptor_suffix specified on the charge",
		},
		"configuration.merchant.support.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"configuration.merchant.support.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"configuration.merchant.support.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"configuration.merchant.support.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"configuration.merchant.support.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"configuration.merchant.support.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"configuration.merchant.support.address.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"configuration.merchant.support.email": {
			Type:             "string",
			ShortDescription: "A publicly available email address for sending support issues to",
		},
		"configuration.merchant.support.phone": {
			Type:             "string",
			ShortDescription: "A publicly available phone number to call with support issues",
		},
		"configuration.merchant.support.url": {
			Type:             "string",
			ShortDescription: "A publicly available website for handling support issues",
		},
		"configuration.recipient.applied": {
			Type:             "boolean",
			ShortDescription: "Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration",
		},
		"configuration.recipient.capabilities.stripe_balance.stripe_transfers.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"contact_email": {
			Type:             "string",
			ShortDescription: "The default contact email address for the Account",
		},
		"contact_phone": {
			Type:             "string",
			ShortDescription: "The default contact phone for the Account",
		},
		"dashboard": {
			Type:             "string",
			ShortDescription: "A value indicating the Stripe dashboard this Account has access to",
			Enum: []resource.EnumSpec{
				{Value: "express"},
				{Value: "full"},
				{Value: "none"},
			},
		},
		"defaults.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
		},
		"defaults.locales": {
			Type:             "array",
			ShortDescription: "The Account's preferred locales (languages), ordered by preference",
		},
		"defaults.profile.business_url": {
			Type:             "string",
			ShortDescription: "The business's publicly-available website",
		},
		"defaults.profile.doing_business_as": {
			Type:             "string",
			ShortDescription: "The name which is used by the business",
		},
		"defaults.profile.product_description": {
			Type:             "string",
			ShortDescription: "Internal-only description of the product sold or service provided by the business",
		},
		"defaults.responsibilities.fees_collector": {
			Type:             "string",
			ShortDescription: "A value indicating the party responsible for collecting fees from this account",
			Enum: []resource.EnumSpec{
				{Value: "application"},
				{Value: "application_custom"},
				{Value: "application_express"},
				{Value: "stripe"},
			},
		},
		"defaults.responsibilities.losses_collector": {
			Type:             "string",
			ShortDescription: "A value indicating who is responsible for losses when this Account can’t pay back negative balances from payments",
			Enum: []resource.EnumSpec{
				{Value: "application"},
				{Value: "stripe"},
			},
		},
		"display_name": {
			Type:             "string",
			ShortDescription: "A descriptive name for the Account",
		},
		"identity.attestations.directorship_declaration.date": {
			Type:             "string",
			ShortDescription: "The time marking when the director attestation was made",
			Format:           "date-time",
		},
		"identity.attestations.directorship_declaration.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the director attestation was made",
		},
		"identity.attestations.directorship_declaration.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the director attestation was made",
		},
		"identity.attestations.ownership_declaration.date": {
			Type:             "string",
			ShortDescription: "The time marking when the beneficial owner attestation was made",
			Format:           "date-time",
		},
		"identity.attestations.ownership_declaration.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the beneficial owner attestation was made",
		},
		"identity.attestations.ownership_declaration.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the beneficial owner attestation was made",
		},
		"identity.attestations.persons_provided.directors": {
			Type:             "boolean",
			ShortDescription: "Whether the company’s directors have been provided",
		},
		"identity.attestations.persons_provided.executives": {
			Type:             "boolean",
			ShortDescription: "Whether the company’s executives have been provided",
		},
		"identity.attestations.persons_provided.owners": {
			Type:             "boolean",
			ShortDescription: "Whether the company’s owners have been provided",
		},
		"identity.attestations.persons_provided.ownership_exemption_reason": {
			Type:             "string",
			ShortDescription: "Reason for why the company is exempt from providing ownership information",
			Enum: []resource.EnumSpec{
				{Value: "qualified_entity_exceeds_ownership_threshold"},
				{Value: "qualifies_as_financial_institution"},
			},
		},
		"identity.attestations.representative_declaration.date": {
			Type:             "string",
			ShortDescription: "The time marking when the representative attestation was made",
			Format:           "date-time",
		},
		"identity.attestations.representative_declaration.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the representative attestation was made",
		},
		"identity.attestations.representative_declaration.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the representative attestation was made",
		},
		"identity.attestations.terms_of_service.account.date": {
			Type:             "string",
			ShortDescription: "The time when the Account's representative accepted the terms of service",
			Format:           "date-time",
		},
		"identity.attestations.terms_of_service.account.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the Account's representative accepted the terms of service",
		},
		"identity.attestations.terms_of_service.account.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the Account's representative accepted the terms of service",
		},
		"identity.attestations.terms_of_service.crypto_storer.date": {
			Type:             "string",
			ShortDescription: "The time when the Account's representative accepted the terms of service",
			Format:           "date-time",
		},
		"identity.attestations.terms_of_service.crypto_storer.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the Account's representative accepted the terms of service",
		},
		"identity.attestations.terms_of_service.crypto_storer.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the Account's representative accepted the terms of service",
		},
		"identity.attestations.terms_of_service.storer.date": {
			Type:             "string",
			ShortDescription: "The time when the Account's representative accepted the terms of service",
			Format:           "date-time",
		},
		"identity.attestations.terms_of_service.storer.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the Account's representative accepted the terms of service",
		},
		"identity.attestations.terms_of_service.storer.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the Account's representative accepted the terms of service",
		},
		"identity.business_details.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"identity.business_details.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"identity.business_details.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"identity.business_details.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"identity.business_details.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"identity.business_details.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"identity.business_details.address.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"identity.business_details.annual_revenue.amount.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
		},
		"identity.business_details.annual_revenue.amount.value": {
			Type:             "integer",
			ShortDescription: "A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units)",
		},
		"identity.business_details.annual_revenue.fiscal_year_end": {
			Type:             "string",
			ShortDescription: "The close-out date of the preceding fiscal year in ISO 8601 format",
		},
		"identity.business_details.documents.bank_account_ownership_verification.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.bank_account_ownership_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_license.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.company_license.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_memorandum_of_association.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.company_memorandum_of_association.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_ministerial_decree.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.company_ministerial_decree.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_registration_verification.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.company_registration_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_tax_id_verification.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.company_tax_id_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.primary_verification.front_back.back": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document",
		},
		"identity.business_details.documents.primary_verification.front_back.front": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document",
		},
		"identity.business_details.documents.primary_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the verification document",
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"identity.business_details.documents.proof_of_address.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.proof_of_address.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.proof_of_registration.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.proof_of_registration.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.proof_of_ultimate_beneficial_ownership.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.proof_of_ultimate_beneficial_ownership.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.estimated_worker_count": {
			Type:             "integer",
			ShortDescription: "Estimated maximum number of workers currently engaged by the business (including employees, contractors, and vendors)",
		},
		"identity.business_details.monthly_estimated_revenue.amount.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
		},
		"identity.business_details.monthly_estimated_revenue.amount.value": {
			Type:             "integer",
			ShortDescription: "A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units)",
		},
		"identity.business_details.phone": {
			Type:             "string",
			ShortDescription: "The phone number of the Business Entity",
		},
		"identity.business_details.registered_name": {
			Type:             "string",
			ShortDescription: "The business legal name",
		},
		"identity.business_details.registration_date.day": {
			Type:             "integer",
			ShortDescription: "The day of registration, between 1 and 31",
		},
		"identity.business_details.registration_date.month": {
			Type:             "integer",
			ShortDescription: "The month of registration, between 1 and 12",
		},
		"identity.business_details.registration_date.year": {
			Type:             "integer",
			ShortDescription: "The four-digit year of registration",
		},
		"identity.business_details.script_addresses.kana.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"identity.business_details.script_addresses.kana.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"identity.business_details.script_addresses.kana.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"identity.business_details.script_addresses.kana.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"identity.business_details.script_addresses.kana.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"identity.business_details.script_addresses.kana.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"identity.business_details.script_addresses.kana.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"identity.business_details.script_addresses.kanji.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"identity.business_details.script_addresses.kanji.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"identity.business_details.script_addresses.kanji.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"identity.business_details.script_addresses.kanji.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"identity.business_details.script_addresses.kanji.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"identity.business_details.script_addresses.kanji.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"identity.business_details.script_addresses.kanji.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"identity.business_details.script_names.kana.registered_name": {
			Type:             "string",
			ShortDescription: "Registered name of the business",
		},
		"identity.business_details.script_names.kanji.registered_name": {
			Type:             "string",
			ShortDescription: "Registered name of the business",
		},
		"identity.business_details.structure": {
			Type:             "string",
			ShortDescription: "The category identifying the legal structure of the business",
			Enum: []resource.EnumSpec{
				{Value: "cooperative"},
				{Value: "free_zone_establishment"},
				{Value: "free_zone_llc"},
				{Value: "governmental_unit"},
				{Value: "government_instrumentality"},
				{Value: "incorporated_association"},
				{Value: "incorporated_non_profit"},
				{Value: "incorporated_partnership"},
				{Value: "limited_liability_partnership"},
				{Value: "llc"},
				{Value: "multi_member_llc"},
				{Value: "private_company"},
				{Value: "private_corporation"},
				{Value: "private_partnership"},
				{Value: "public_company"},
				{Value: "public_corporation"},
				{Value: "public_listed_corporation"},
				{Value: "public_partnership"},
				{Value: "registered_charity"},
				{Value: "single_member_llc"},
				{Value: "sole_establishment"},
				{Value: "sole_proprietorship"},
				{Value: "tax_exempt_government_instrumentality"},
				{Value: "trust"},
				{Value: "unincorporated_association"},
				{Value: "unincorporated_non_profit"},
				{Value: "unincorporated_partnership"},
			},
		},
		"identity.country": {
			Type:             "string",
			ShortDescription: "The country in which the account holder resides, or in which the business is legally established",
		},
		"identity.entity_type": {
			Type:             "string",
			ShortDescription: "The entity type",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "government_entity"},
				{Value: "individual"},
				{Value: "non_profit"},
			},
		},
		"identity.individual.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"identity.individual.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"identity.individual.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"identity.individual.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"identity.individual.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"identity.individual.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"identity.individual.address.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"identity.individual.date_of_birth.day": {
			Type:             "integer",
			ShortDescription: "The day of the birth",
		},
		"identity.individual.date_of_birth.month": {
			Type:             "integer",
			ShortDescription: "The month of birth",
		},
		"identity.individual.date_of_birth.year": {
			Type:             "integer",
			ShortDescription: "The year of birth",
		},
		"identity.individual.documents.company_authorization.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.individual.documents.company_authorization.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.individual.documents.passport.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.individual.documents.passport.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.individual.documents.primary_verification.front_back.back": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document",
		},
		"identity.individual.documents.primary_verification.front_back.front": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document",
		},
		"identity.individual.documents.primary_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the verification document",
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"identity.individual.documents.secondary_verification.front_back.back": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document",
		},
		"identity.individual.documents.secondary_verification.front_back.front": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document",
		},
		"identity.individual.documents.secondary_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the verification document",
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"identity.individual.documents.visa.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.individual.documents.visa.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.individual.email": {
			Type:             "string",
			ShortDescription: "The individual's email address",
		},
		"identity.individual.given_name": {
			Type:             "string",
			ShortDescription: "The individual's first name",
		},
		"identity.individual.legal_gender": {
			Type:             "string",
			ShortDescription: "The individual's gender (International regulations require either \"male\" or \"female\")",
			Enum: []resource.EnumSpec{
				{Value: "female"},
				{Value: "male"},
			},
		},
		"identity.individual.nationalities": {
			Type:             "array",
			ShortDescription: "The countries where the individual is a national",
		},
		"identity.individual.phone": {
			Type:             "string",
			ShortDescription: "The individual's phone number",
		},
		"identity.individual.political_exposure": {
			Type:             "string",
			ShortDescription: "The individual's political exposure",
			Enum: []resource.EnumSpec{
				{Value: "existing"},
				{Value: "none"},
			},
		},
		"identity.individual.relationship.director": {
			Type:             "boolean",
			ShortDescription: "Whether the person is a director of the account's identity",
		},
		"identity.individual.relationship.executive": {
			Type:             "boolean",
			ShortDescription: "Whether the person has significant responsibility to control, manage, or direct the organization",
		},
		"identity.individual.relationship.owner": {
			Type:             "boolean",
			ShortDescription: "Whether the person is an owner of the account’s identity",
		},
		"identity.individual.relationship.percent_ownership": {
			Type:             "string",
			ShortDescription: "The percent owned by the person of the account's legal entity",
			Format:           "decimal",
		},
		"identity.individual.relationship.title": {
			Type:             "string",
			ShortDescription: "The person's title (e.g., CEO, Support Engineer)",
		},
		"identity.individual.script_addresses.kana.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"identity.individual.script_addresses.kana.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"identity.individual.script_addresses.kana.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"identity.individual.script_addresses.kana.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"identity.individual.script_addresses.kana.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"identity.individual.script_addresses.kana.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"identity.individual.script_addresses.kana.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"identity.individual.script_addresses.kanji.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"identity.individual.script_addresses.kanji.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"identity.individual.script_addresses.kanji.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"identity.individual.script_addresses.kanji.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"identity.individual.script_addresses.kanji.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"identity.individual.script_addresses.kanji.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"identity.individual.script_addresses.kanji.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"identity.individual.script_names.kana.given_name": {
			Type:             "string",
			ShortDescription: "The person's first or given name",
		},
		"identity.individual.script_names.kana.surname": {
			Type:             "string",
			ShortDescription: "The person's last or family name",
		},
		"identity.individual.script_names.kanji.given_name": {
			Type:             "string",
			ShortDescription: "The person's first or given name",
		},
		"identity.individual.script_names.kanji.surname": {
			Type:             "string",
			ShortDescription: "The person's last or family name",
		},
		"identity.individual.surname": {
			Type:             "string",
			ShortDescription: "The individual's last name",
		},
		"include": {
			Type:             "array",
			ShortDescription: "Additional fields to include in the response",
		},
	},
}
View Source
var V2CoreEventDestinationsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v2/core/event_destinations",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amazon_eventbridge.aws_account_id": {
			Type:             "string",
			ShortDescription: "The AWS account ID",
		},
		"amazon_eventbridge.aws_region": {
			Type:             "string",
			ShortDescription: "The region of the AWS event source",
		},
		"description": {
			Type:             "string",
			ShortDescription: "An optional description of what the event destination is used for",
		},
		"enabled_events": {
			Type:             "array",
			ShortDescription: "The list of events to enable for this endpoint",
			Required:         true,
		},
		"event_payload": {
			Type:             "string",
			ShortDescription: "Payload type of events being subscribed to",
			Required:         true,
			Enum: []resource.EnumSpec{
				{Value: "snapshot"},
				{Value: "thin"},
			},
		},
		"events_from": {
			Type:             "array",
			ShortDescription: "Specifies which accounts' events route to this destination",
		},
		"include": {
			Type:             "array",
			ShortDescription: "Additional fields to include in the response",
		},
		"name": {
			Type:             "string",
			ShortDescription: "Event destination name",
			Required:         true,
		},
		"snapshot_api_version": {
			Type:             "string",
			ShortDescription: "If using the snapshot event payload, the API version events are rendered as",
		},
		"type": {
			Type:             "string",
			ShortDescription: "Event destination type",
			Required:         true,
			Enum: []resource.EnumSpec{
				{Value: "amazon_eventbridge"},
				{Value: "webhook_endpoint"},
			},
		},
		"webhook_endpoint.url": {
			Type:             "string",
			ShortDescription: "The URL of the webhook endpoint",
		},
	},
}
View Source
var V2CoreEventDestinationsDelete = resource.OperationSpec{
	Name:   "delete",
	Path:   "/v2/core/event_destinations/{id}",
	Method: "DELETE",
}
View Source
var V2CoreEventDestinationsDisable = resource.OperationSpec{
	Name:   "disable",
	Path:   "/v2/core/event_destinations/{id}/disable",
	Method: "POST",
}
View Source
var V2CoreEventDestinationsEnable = resource.OperationSpec{
	Name:   "enable",
	Path:   "/v2/core/event_destinations/{id}/enable",
	Method: "POST",
}
View Source
var V2CoreEventDestinationsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v2/core/event_destinations",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"include": {
			Type:             "array",
			ShortDescription: "Additional fields to include in the response",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "The page size",
		},
		"page": {
			Type:             "string",
			ShortDescription: "The requested page",
		},
	},
}
View Source
var V2CoreEventDestinationsPing = resource.OperationSpec{
	Name:   "ping",
	Path:   "/v2/core/event_destinations/{id}/ping",
	Method: "POST",
}
View Source
var V2CoreEventDestinationsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v2/core/event_destinations/{id}",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"include": {
			Type:             "array",
			ShortDescription: "Additional fields to include in the response",
		},
	},
}
View Source
var V2CoreEventDestinationsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v2/core/event_destinations/{id}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"description": {
			Type:             "string",
			ShortDescription: "An optional description of what the event destination is used for",
		},
		"enabled_events": {
			Type:             "array",
			ShortDescription: "The list of events to enable for this endpoint",
		},
		"include": {
			Type:             "array",
			ShortDescription: "Additional fields to include in the response",
		},
		"name": {
			Type:             "string",
			ShortDescription: "Event destination name",
		},
		"webhook_endpoint.url": {
			Type:             "string",
			ShortDescription: "The URL of the webhook endpoint",
		},
	},
}
View Source
var V2CoreEventsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v2/core/events",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"limit": {
			Type:             "integer",
			ShortDescription: "The page size",
		},
		"object_id": {
			Type:             "string",
			ShortDescription: "Primary object ID used to retrieve related events",
		},
		"page": {
			Type:             "string",
			ShortDescription: "The requested page",
		},
		"types": {
			Type:             "array",
			ShortDescription: "An array of up to 20 strings containing specific event names",
		},
	},
}
View Source
var V2CoreEventsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v2/core/events/{id}",
	Method: "GET",
}
View Source
var V2PreviewBillingBillSettingVersionsList = resource.OperationSpec{
	Name:      "list",
	Path:      "/v2/billing/bill_settings/{bill_setting_id}/versions",
	Method:    "GET",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"limit": {
			Type:             "integer",
			ShortDescription: "Optionally set the maximum number of results per page",
		},
		"page": {
			Type:             "string",
			ShortDescription: "Opaque page token",
		},
	},
}
View Source
var V2PreviewBillingBillSettingVersionsRetrieve = resource.OperationSpec{
	Name:      "retrieve",
	Path:      "/v2/billing/bill_settings/{bill_setting_id}/versions/{id}",
	Method:    "GET",
	IsPreview: true,
}
View Source
var V2PreviewBillingBillSettingsCreate = resource.OperationSpec{
	Name:      "create",
	Path:      "/v2/billing/bill_settings",
	Method:    "POST",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"calculation.tax.type": {
			Type:             "string",
			ShortDescription: "Determines if tax will be calculated automatically based on a PTC or manually based on rules defined by the merchant",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "manual"},
			},
		},
		"display_name": {
			Type:             "string",
			ShortDescription: "An optional customer-facing display name for the CollectionSetting object",
		},
		"invoice.time_until_due.interval": {
			Type:             "string",
			ShortDescription: "The interval unit for the time until due",
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "month"},
				{Value: "week"},
				{Value: "year"},
			},
		},
		"invoice.time_until_due.interval_count": {
			Type:             "integer",
			ShortDescription: "The number of interval units",
		},
		"invoice_rendering_template": {
			Type:             "string",
			ShortDescription: "The ID of the invoice rendering template to be used when generating invoices",
		},
		"lookup_key": {
			Type:             "string",
			ShortDescription: "A lookup key used to retrieve settings dynamically from a static string",
		},
	},
}
View Source
var V2PreviewBillingBillSettingsList = resource.OperationSpec{
	Name:      "list",
	Path:      "/v2/billing/bill_settings",
	Method:    "GET",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"limit": {
			Type:             "integer",
			ShortDescription: "Optionally set the maximum number of results per page",
		},
		"lookup_keys": {
			Type:             "array",
			ShortDescription: "Only return the settings with these lookup_keys, if any exist",
		},
		"page": {
			Type:             "string",
			ShortDescription: "Opaque page token",
		},
	},
}
View Source
var V2PreviewBillingBillSettingsRetrieve = resource.OperationSpec{
	Name:      "retrieve",
	Path:      "/v2/billing/bill_settings/{id}",
	Method:    "GET",
	IsPreview: true,
}
View Source
var V2PreviewBillingBillSettingsUpdate = resource.OperationSpec{
	Name:      "update",
	Path:      "/v2/billing/bill_settings/{id}",
	Method:    "POST",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"calculation.tax.type": {
			Type:             "string",
			ShortDescription: "Determines if tax will be calculated automatically based on a PTC or manually based on rules defined by the merchant",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "manual"},
			},
		},
		"display_name": {
			Type:             "string",
			ShortDescription: "An optional customer-facing display name for the BillSetting object",
		},
		"invoice.time_until_due.interval": {
			Type:             "string",
			ShortDescription: "The interval unit for the time until due",
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "month"},
				{Value: "week"},
				{Value: "year"},
			},
		},
		"invoice.time_until_due.interval_count": {
			Type:             "integer",
			ShortDescription: "The number of interval units",
		},
		"invoice_rendering_template": {
			Type:             "string",
			ShortDescription: "The ID of the invoice rendering template to be used when generating invoices",
		},
		"live_version": {
			Type:             "string",
			ShortDescription: "Optionally change the live version of the BillSetting",
		},
		"lookup_key": {
			Type:             "string",
			ShortDescription: "A lookup key used to retrieve settings dynamically from a static string",
		},
	},
}
View Source
var V2PreviewBillingCadencesCancel = resource.OperationSpec{
	Name:      "cancel",
	Path:      "/v2/billing/cadences/{id}/cancel",
	Method:    "POST",
	IsPreview: true,
}
View Source
var V2PreviewBillingCadencesCreate = resource.OperationSpec{
	Name:      "create",
	Path:      "/v2/billing/cadences",
	Method:    "POST",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"billing_cycle.day.time.hour": {
			Type:             "integer",
			ShortDescription: "The hour at which the billing cycle ends",
		},
		"billing_cycle.day.time.minute": {
			Type:             "integer",
			ShortDescription: "The minute at which the billing cycle ends",
		},
		"billing_cycle.day.time.second": {
			Type:             "integer",
			ShortDescription: "The second at which the billing cycle ends",
		},
		"billing_cycle.interval_count": {
			Type:             "integer",
			ShortDescription: "The number of intervals (specified in the interval attribute) between\ncadence billings",
		},
		"billing_cycle.month.day_of_month": {
			Type:             "integer",
			ShortDescription: "The day to anchor the billing on for a type=\"month\" billing cycle from\n1-31",
		},
		"billing_cycle.month.month_of_year": {
			Type:             "integer",
			ShortDescription: "The month to anchor the billing on for a type=\"month\" billing cycle from\n1-12",
		},
		"billing_cycle.month.time.hour": {
			Type:             "integer",
			ShortDescription: "The hour at which the billing cycle ends",
		},
		"billing_cycle.month.time.minute": {
			Type:             "integer",
			ShortDescription: "The minute at which the billing cycle ends",
		},
		"billing_cycle.month.time.second": {
			Type:             "integer",
			ShortDescription: "The second at which the billing cycle ends",
		},
		"billing_cycle.type": {
			Type:             "string",
			ShortDescription: "The frequency at which a cadence bills",
			Required:         true,
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "month"},
				{Value: "week"},
				{Value: "year"},
			},
		},
		"billing_cycle.week.day_of_week": {
			Type:             "integer",
			ShortDescription: "The day of the week to bill the type=week billing cycle on",
		},
		"billing_cycle.week.time.hour": {
			Type:             "integer",
			ShortDescription: "The hour at which the billing cycle ends",
		},
		"billing_cycle.week.time.minute": {
			Type:             "integer",
			ShortDescription: "The minute at which the billing cycle ends",
		},
		"billing_cycle.week.time.second": {
			Type:             "integer",
			ShortDescription: "The second at which the billing cycle ends",
		},
		"billing_cycle.year.day_of_month": {
			Type:             "integer",
			ShortDescription: "The day to anchor the billing on for a type=\"month\" billing cycle from\n1-31",
		},
		"billing_cycle.year.month_of_year": {
			Type:             "integer",
			ShortDescription: "The month to bill on from 1-12",
		},
		"billing_cycle.year.time.hour": {
			Type:             "integer",
			ShortDescription: "The hour at which the billing cycle ends",
		},
		"billing_cycle.year.time.minute": {
			Type:             "integer",
			ShortDescription: "The minute at which the billing cycle ends",
		},
		"billing_cycle.year.time.second": {
			Type:             "integer",
			ShortDescription: "The second at which the billing cycle ends",
		},
		"lookup_key": {
			Type:             "string",
			ShortDescription: "A lookup key used to retrieve cadences dynamically from a static string",
		},
		"payer.billing_profile": {
			Type:             "string",
			ShortDescription: "The ID of the Billing Profile object which determines how a bill will be paid",
			Required:         true,
		},
	},
}
View Source
var V2PreviewBillingCadencesList = resource.OperationSpec{
	Name:      "list",
	Path:      "/v2/billing/cadences",
	Method:    "GET",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"include": {
			Type:             "array",
			ShortDescription: "Additional resource to include in the response",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "Optionally set the maximum number of results per page",
		},
		"lookup_keys": {
			Type:             "array",
			ShortDescription: "Only return the cadences with these lookup_keys, if any exist",
		},
		"page": {
			Type:             "string",
			ShortDescription: "Opaque page token",
		},
		"test_clock": {
			Type:             "string",
			ShortDescription: "If provided, only cadences that specifically reference the provided test clock ID (via the\ncustomer's test clock) will be returned",
		},
	},
}
View Source
var V2PreviewBillingCadencesRetrieve = resource.OperationSpec{
	Name:      "retrieve",
	Path:      "/v2/billing/cadences/{id}",
	Method:    "GET",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"include": {
			Type:             "array",
			ShortDescription: "Additional resource to include in the response",
		},
	},
}
View Source
var V2PreviewBillingCadencesUpdate = resource.OperationSpec{
	Name:      "update",
	Path:      "/v2/billing/cadences/{id}",
	Method:    "POST",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"lookup_key": {
			Type:             "string",
			ShortDescription: "A lookup key used to retrieve cadences dynamically from a static string",
		},
	},
}
View Source
var V2PreviewBillingCollectionSettingVersionsList = resource.OperationSpec{
	Name:      "list",
	Path:      "/v2/billing/collection_settings/{collection_setting_id}/versions",
	Method:    "GET",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"limit": {
			Type:             "integer",
			ShortDescription: "Optionally set the maximum number of results per page",
		},
		"page": {
			Type:             "string",
			ShortDescription: "Opaque page token",
		},
	},
}
View Source
var V2PreviewBillingCollectionSettingVersionsRetrieve = resource.OperationSpec{
	Name:      "retrieve",
	Path:      "/v2/billing/collection_settings/{collection_setting_id}/versions/{id}",
	Method:    "GET",
	IsPreview: true,
}
View Source
var V2PreviewBillingCollectionSettingsCreate = resource.OperationSpec{
	Name:      "create",
	Path:      "/v2/billing/collection_settings",
	Method:    "POST",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"collection_method": {
			Type:             "string",
			ShortDescription: "Either automatic, or send_invoice",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "send_invoice"},
			},
		},
		"display_name": {
			Type:             "string",
			ShortDescription: "An optional customer-facing display name for the CollectionSetting object",
		},
		"email_delivery.payment_due.enabled": {
			Type:             "boolean",
			ShortDescription: "If true an email for the invoice would be generated and sent out",
		},
		"email_delivery.payment_due.include_payment_link": {
			Type:             "boolean",
			ShortDescription: "If true the payment link to hosted invoice page would be included in email and PDF of the invoice",
		},
		"lookup_key": {
			Type:             "string",
			ShortDescription: "A lookup key used to retrieve settings dynamically from a static string",
		},
		"payment_method_configuration": {
			Type:             "string",
			ShortDescription: "The ID of the PaymentMethodConfiguration object, which controls which payment methods are displayed to your customers",
		},
		"payment_method_options.acss_debit.mandate_options.transaction_type": {
			Type:             "string",
			ShortDescription: "Transaction type of the mandate",
			Enum: []resource.EnumSpec{
				{Value: "business"},
				{Value: "personal"},
			},
		},
		"payment_method_options.acss_debit.verification_method": {
			Type:             "string",
			ShortDescription: "Verification method",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "instant"},
				{Value: "microdeposits"},
			},
		},
		"payment_method_options.bancontact.preferred_language": {
			Type:             "string",
			ShortDescription: "Preferred language of the Bancontact authorization page that the customer is redirected to",
			Enum: []resource.EnumSpec{
				{Value: "de"},
				{Value: "en"},
				{Value: "fr"},
				{Value: "nl"},
			},
		},
		"payment_method_options.card.mandate_options.amount": {
			Type:             "string",
			ShortDescription: "Amount to be charged for future payments",
			Format:           "int64",
		},
		"payment_method_options.card.mandate_options.amount_type": {
			Type:             "string",
			ShortDescription: "The AmountType for the mandate",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_options.card.mandate_options.description": {
			Type:             "string",
			ShortDescription: "A description of the mandate that is meant to be displayed to the customer",
		},
		"payment_method_options.card.network": {
			Type:             "string",
			ShortDescription: "Selected network to process the payment on",
		},
		"payment_method_options.card.request_three_d_secure": {
			Type:             "string",
			ShortDescription: "An advanced option 3D Secure",
			Enum: []resource.EnumSpec{
				{Value: "any"},
				{Value: "automatic"},
				{Value: "challenge"},
			},
		},
		"payment_method_options.customer_balance.bank_transfer.eu_bank_transfer.country": {
			Type:             "string",
			ShortDescription: "The desired country code of the bank account information",
			Enum: []resource.EnumSpec{
				{Value: "BE"},
				{Value: "DE"},
				{Value: "ES"},
				{Value: "FR"},
				{Value: "IE"},
				{Value: "NL"},
			},
		},
		"payment_method_options.customer_balance.bank_transfer.type": {
			Type:             "string",
			ShortDescription: "The bank transfer type that can be used for funding",
			Enum: []resource.EnumSpec{
				{Value: "eu_bank_transfer"},
				{Value: "gb_bank_transfer"},
				{Value: "jp_bank_transfer"},
				{Value: "mx_bank_transfer"},
				{Value: "us_bank_transfer"},
			},
		},
		"payment_method_options.customer_balance.funding_type": {
			Type:             "string",
			ShortDescription: "The funding method type to be used when there are not enough funds in the customer balance",
			Enum: []resource.EnumSpec{
				{Value: "bank_transfer"},
			},
		},
		"payment_method_options.us_bank_account.financial_connections.filters.account_subcategories": {
			Type:             "array",
			ShortDescription: "The account subcategories to use to filter for selectable accounts",
		},
		"payment_method_options.us_bank_account.financial_connections.permissions": {
			Type:             "array",
			ShortDescription: "The list of permissions to request",
		},
		"payment_method_options.us_bank_account.financial_connections.prefetch": {
			Type:             "array",
			ShortDescription: "List of data features that you would like to retrieve upon account creation",
		},
		"payment_method_options.us_bank_account.verification_method": {
			Type:             "string",
			ShortDescription: "Verification method",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "instant"},
				{Value: "microdeposits"},
			},
		},
	},
}
View Source
var V2PreviewBillingCollectionSettingsList = resource.OperationSpec{
	Name:      "list",
	Path:      "/v2/billing/collection_settings",
	Method:    "GET",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"limit": {
			Type:             "integer",
			ShortDescription: "Optionally set the maximum number of results per page",
		},
		"lookup_keys": {
			Type:             "array",
			ShortDescription: "Only return the settings with these lookup_keys, if any exist",
		},
		"page": {
			Type:             "string",
			ShortDescription: "Opaque page token",
		},
	},
}
View Source
var V2PreviewBillingCollectionSettingsRetrieve = resource.OperationSpec{
	Name:      "retrieve",
	Path:      "/v2/billing/collection_settings/{id}",
	Method:    "GET",
	IsPreview: true,
}
View Source
var V2PreviewBillingCollectionSettingsUpdate = resource.OperationSpec{
	Name:      "update",
	Path:      "/v2/billing/collection_settings/{id}",
	Method:    "POST",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"collection_method": {
			Type:             "string",
			ShortDescription: "Either automatic, or send_invoice",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "send_invoice"},
			},
		},
		"display_name": {
			Type:             "string",
			ShortDescription: "An optional customer-facing display name for the CollectionSetting object",
		},
		"email_delivery.payment_due.enabled": {
			Type:             "boolean",
			ShortDescription: "If true an email for the invoice would be generated and sent out",
		},
		"email_delivery.payment_due.include_payment_link": {
			Type:             "boolean",
			ShortDescription: "If true the payment link to hosted invoice page would be included in email and PDF of the invoice",
		},
		"live_version": {
			Type:             "string",
			ShortDescription: "Optionally change the live version of the CollectionSetting",
		},
		"lookup_key": {
			Type:             "string",
			ShortDescription: "A lookup key used to retrieve settings dynamically from a static string",
		},
		"payment_method_configuration": {
			Type:             "string",
			ShortDescription: "The ID of the PaymentMethodConfiguration object, which controls which payment methods are displayed to your customers",
		},
		"payment_method_options.acss_debit.mandate_options.transaction_type": {
			Type:             "string",
			ShortDescription: "Transaction type of the mandate",
			Enum: []resource.EnumSpec{
				{Value: "business"},
				{Value: "personal"},
			},
		},
		"payment_method_options.acss_debit.verification_method": {
			Type:             "string",
			ShortDescription: "Verification method",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "instant"},
				{Value: "microdeposits"},
			},
		},
		"payment_method_options.bancontact.preferred_language": {
			Type:             "string",
			ShortDescription: "Preferred language of the Bancontact authorization page that the customer is redirected to",
			Enum: []resource.EnumSpec{
				{Value: "de"},
				{Value: "en"},
				{Value: "fr"},
				{Value: "nl"},
			},
		},
		"payment_method_options.card.mandate_options.amount": {
			Type:             "string",
			ShortDescription: "Amount to be charged for future payments",
			Format:           "int64",
		},
		"payment_method_options.card.mandate_options.amount_type": {
			Type:             "string",
			ShortDescription: "The AmountType for the mandate",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_options.card.mandate_options.description": {
			Type:             "string",
			ShortDescription: "A description of the mandate that is meant to be displayed to the customer",
		},
		"payment_method_options.card.network": {
			Type:             "string",
			ShortDescription: "Selected network to process the payment on",
		},
		"payment_method_options.card.request_three_d_secure": {
			Type:             "string",
			ShortDescription: "An advanced option 3D Secure",
			Enum: []resource.EnumSpec{
				{Value: "any"},
				{Value: "automatic"},
				{Value: "challenge"},
			},
		},
		"payment_method_options.customer_balance.bank_transfer.eu_bank_transfer.country": {
			Type:             "string",
			ShortDescription: "The desired country code of the bank account information",
			Enum: []resource.EnumSpec{
				{Value: "BE"},
				{Value: "DE"},
				{Value: "ES"},
				{Value: "FR"},
				{Value: "IE"},
				{Value: "NL"},
			},
		},
		"payment_method_options.customer_balance.bank_transfer.type": {
			Type:             "string",
			ShortDescription: "The bank transfer type that can be used for funding",
			Enum: []resource.EnumSpec{
				{Value: "eu_bank_transfer"},
				{Value: "gb_bank_transfer"},
				{Value: "jp_bank_transfer"},
				{Value: "mx_bank_transfer"},
				{Value: "us_bank_transfer"},
			},
		},
		"payment_method_options.customer_balance.funding_type": {
			Type:             "string",
			ShortDescription: "The funding method type to be used when there are not enough funds in the customer balance",
			Enum: []resource.EnumSpec{
				{Value: "bank_transfer"},
			},
		},
		"payment_method_options.us_bank_account.financial_connections.filters.account_subcategories": {
			Type:             "array",
			ShortDescription: "The account subcategories to use to filter for selectable accounts",
		},
		"payment_method_options.us_bank_account.financial_connections.permissions": {
			Type:             "array",
			ShortDescription: "The list of permissions to request",
		},
		"payment_method_options.us_bank_account.financial_connections.prefetch": {
			Type:             "array",
			ShortDescription: "List of data features that you would like to retrieve upon account creation",
		},
		"payment_method_options.us_bank_account.verification_method": {
			Type:             "string",
			ShortDescription: "Verification method",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "instant"},
				{Value: "microdeposits"},
			},
		},
	},
}
View Source
var V2PreviewBillingMeterEventAdjustmentsCreate = resource.OperationSpec{
	Name:      "create",
	Path:      "/v2/billing/meter_event_adjustments",
	Method:    "POST",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"cancel.identifier": {
			Type:             "string",
			ShortDescription: "Unique identifier for the event",
			Required:         true,
		},
		"event_name": {
			Type:             "string",
			ShortDescription: "The name of the meter event",
			Required:         true,
		},
		"type": {
			Type:             "string",
			ShortDescription: "Specifies whether to cancel a single event or a range of events for a time period",
			Required:         true,
			Enum: []resource.EnumSpec{
				{Value: "cancel"},
			},
		},
	},
}
View Source
var V2PreviewBillingMeterEventSessionsCreate = resource.OperationSpec{
	Name:      "create",
	Path:      "/v2/billing/meter_event_session",
	Method:    "POST",
	IsPreview: true,
}
View Source
var V2PreviewBillingMeterEventsCreate = resource.OperationSpec{
	Name:      "create",
	Path:      "/v2/billing/meter_events",
	Method:    "POST",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"event_name": {
			Type:             "string",
			ShortDescription: "The name of the meter event",
			Required:         true,
		},
		"identifier": {
			Type:             "string",
			ShortDescription: "A unique identifier for the event",
		},
		"timestamp": {
			Type:             "string",
			ShortDescription: "The time of the event",
			Format:           "date-time",
		},
	},
}
View Source
var V2PreviewBillingProfilesCreate = resource.OperationSpec{
	Name:      "create",
	Path:      "/v2/billing/profiles",
	Method:    "POST",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"customer": {
			Type:             "string",
			ShortDescription: "The ID of the customer object",
			Required:         true,
		},
		"default_payment_method": {
			Type:             "string",
			ShortDescription: "The ID of the payment method object",
		},
		"display_name": {
			Type:             "string",
			ShortDescription: "A customer-facing name for the billing profile",
		},
		"lookup_key": {
			Type:             "string",
			ShortDescription: "An internal key you can use to search for a particular billing profile",
		},
	},
}
View Source
var V2PreviewBillingProfilesList = resource.OperationSpec{
	Name:      "list",
	Path:      "/v2/billing/profiles",
	Method:    "GET",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"customer": {
			Type:             "string",
			ShortDescription: "Filter billing profiles by a customer",
		},
		"default_payment_method": {
			Type:             "string",
			ShortDescription: "Filter billing profiles by a default payment method",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "Optionally set the maximum number of results per page",
		},
		"lookup_keys": {
			Type:             "array",
			ShortDescription: "Filter billing profiles by lookup keys",
			Required:         true,
		},
		"page": {
			Type:             "string",
			ShortDescription: "Opaque page token",
		},
		"status": {
			Type:             "string",
			ShortDescription: "Filter billing profiles by status",
			Enum: []resource.EnumSpec{
				{Value: "active"},
				{Value: "inactive"},
			},
		},
	},
}
View Source
var V2PreviewBillingProfilesRetrieve = resource.OperationSpec{
	Name:      "retrieve",
	Path:      "/v2/billing/profiles/{id}",
	Method:    "GET",
	IsPreview: true,
}
View Source
var V2PreviewBillingProfilesUpdate = resource.OperationSpec{
	Name:      "update",
	Path:      "/v2/billing/profiles/{id}",
	Method:    "POST",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"default_payment_method": {
			Type:             "string",
			ShortDescription: "The ID of the payment method object",
		},
		"display_name": {
			Type:             "string",
			ShortDescription: "A customer-facing name for the billing profile",
		},
		"lookup_key": {
			Type:             "string",
			ShortDescription: "An internal key you can use to search for a particular billing profile",
		},
	},
}
View Source
var V2PreviewCoreAccountLinksCreate = resource.OperationSpec{
	Name:      "create",
	Path:      "/v2/core/account_links",
	Method:    "POST",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"account": {
			Type:             "string",
			ShortDescription: "The ID of the Account to create link for",
			Required:         true,
		},
		"use_case.account_onboarding.collection_options.fields": {
			Type:             "string",
			ShortDescription: "Specifies whether the platform collects only currently_due requirements (`currently_due`) or both currently_due and eventually_due requirements (`eventually_due`)",
			Enum: []resource.EnumSpec{
				{Value: "currently_due"},
				{Value: "eventually_due"},
			},
		},
		"use_case.account_onboarding.collection_options.future_requirements": {
			Type:             "string",
			ShortDescription: "Specifies whether the platform collects future_requirements in addition to requirements in Connect Onboarding",
			Enum: []resource.EnumSpec{
				{Value: "include"},
				{Value: "omit"},
			},
		},
		"use_case.account_onboarding.configurations": {
			Type:             "array",
			ShortDescription: "Open Enum",
		},
		"use_case.account_onboarding.refresh_url": {
			Type:             "string",
			ShortDescription: "The URL the user will be redirected to if the AccountLink is expired, has been used, or is otherwise invalid",
		},
		"use_case.account_onboarding.return_url": {
			Type:             "string",
			ShortDescription: "The URL that the user will be redirected to upon completing the linked flow",
		},
		"use_case.account_update.collection_options.fields": {
			Type:             "string",
			ShortDescription: "Specifies whether the platform collects only currently_due requirements (`currently_due`) or both currently_due and eventually_due requirements (`eventually_due`)",
			Enum: []resource.EnumSpec{
				{Value: "currently_due"},
				{Value: "eventually_due"},
			},
		},
		"use_case.account_update.collection_options.future_requirements": {
			Type:             "string",
			ShortDescription: "Specifies whether the platform collects future_requirements in addition to requirements in Connect Onboarding",
			Enum: []resource.EnumSpec{
				{Value: "include"},
				{Value: "omit"},
			},
		},
		"use_case.account_update.configurations": {
			Type:             "array",
			ShortDescription: "Open Enum",
		},
		"use_case.account_update.refresh_url": {
			Type:             "string",
			ShortDescription: "The URL the user will be redirected to if the Account Link is expired, has been used, or is otherwise invalid",
		},
		"use_case.account_update.return_url": {
			Type:             "string",
			ShortDescription: "The URL that the user will be redirected to upon completing the linked flow",
		},
		"use_case.type": {
			Type:             "string",
			ShortDescription: "Open Enum",
			Required:         true,
			Enum: []resource.EnumSpec{
				{Value: "account_onboarding"},
				{Value: "account_update"},
			},
		},
	},
}
View Source
var V2PreviewCoreAccountPersonTokensCreate = resource.OperationSpec{
	Name:      "create",
	Path:      "/v2/core/accounts/{account_id}/person_tokens",
	Method:    "POST",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"additional_terms_of_service.account.shown_and_accepted": {
			Type:             "boolean",
			ShortDescription: "The boolean value indicating if the terms of service have been accepted",
		},
		"address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"address.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"date_of_birth.day": {
			Type:             "integer",
			ShortDescription: "The day of the birth",
		},
		"date_of_birth.month": {
			Type:             "integer",
			ShortDescription: "The month of birth",
		},
		"date_of_birth.year": {
			Type:             "integer",
			ShortDescription: "The year of birth",
		},
		"documents.company_authorization.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"documents.company_authorization.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"documents.passport.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"documents.passport.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"documents.primary_verification.front_back.back": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document",
		},
		"documents.primary_verification.front_back.front": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document",
		},
		"documents.primary_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the verification document",
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"documents.secondary_verification.front_back.back": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document",
		},
		"documents.secondary_verification.front_back.front": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document",
		},
		"documents.secondary_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the verification document",
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"documents.visa.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"documents.visa.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"email": {
			Type:             "string",
			ShortDescription: "Email",
		},
		"given_name": {
			Type:             "string",
			ShortDescription: "The person's first name",
		},
		"legal_gender": {
			Type:             "string",
			ShortDescription: "The person's gender (International regulations require either \"male\" or \"female\")",
			Enum: []resource.EnumSpec{
				{Value: "female"},
				{Value: "male"},
			},
		},
		"nationalities": {
			Type:             "array",
			ShortDescription: "The nationalities (countries) this person is associated with",
		},
		"phone": {
			Type:             "string",
			ShortDescription: "The phone number for this person",
		},
		"political_exposure": {
			Type:             "string",
			ShortDescription: "The person's political exposure",
			Enum: []resource.EnumSpec{
				{Value: "existing"},
				{Value: "none"},
			},
		},
		"relationship.authorizer": {
			Type:             "boolean",
			ShortDescription: "Whether the individual is an authorizer of the Account's identity",
		},
		"relationship.director": {
			Type:             "boolean",
			ShortDescription: "Indicates whether the person is a director of the associated legal entity",
		},
		"relationship.executive": {
			Type:             "boolean",
			ShortDescription: "Indicates whether the person is an executive of the associated legal entity",
		},
		"relationship.legal_guardian": {
			Type:             "boolean",
			ShortDescription: "Indicates whether the person is a legal guardian of the associated legal entity",
		},
		"relationship.owner": {
			Type:             "boolean",
			ShortDescription: "Indicates whether the person is an owner of the associated legal entity",
		},
		"relationship.percent_ownership": {
			Type:             "string",
			ShortDescription: "The percentage of ownership the person has in the associated legal entity",
			Format:           "decimal",
		},
		"relationship.representative": {
			Type:             "boolean",
			ShortDescription: "Indicates whether the person is a representative of the associated legal entity",
		},
		"relationship.title": {
			Type:             "string",
			ShortDescription: "The title or position the person holds in the associated legal entity",
		},
		"script_addresses.kana.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"script_addresses.kana.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"script_addresses.kana.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"script_addresses.kana.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"script_addresses.kana.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"script_addresses.kana.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"script_addresses.kana.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"script_addresses.kanji.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"script_addresses.kanji.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"script_addresses.kanji.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"script_addresses.kanji.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"script_addresses.kanji.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"script_addresses.kanji.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"script_addresses.kanji.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"script_names.kana.given_name": {
			Type:             "string",
			ShortDescription: "The person's first or given name",
		},
		"script_names.kana.surname": {
			Type:             "string",
			ShortDescription: "The person's last or family name",
		},
		"script_names.kanji.given_name": {
			Type:             "string",
			ShortDescription: "The person's first or given name",
		},
		"script_names.kanji.surname": {
			Type:             "string",
			ShortDescription: "The person's last or family name",
		},
		"surname": {
			Type:             "string",
			ShortDescription: "The person's last name",
		},
	},
}
View Source
var V2PreviewCoreAccountPersonTokensRetrieve = resource.OperationSpec{
	Name:      "retrieve",
	Path:      "/v2/core/accounts/{account_id}/person_tokens/{id}",
	Method:    "GET",
	IsPreview: true,
}
View Source
var V2PreviewCoreAccountPersonsCreate = resource.OperationSpec{
	Name:      "create",
	Path:      "/v2/core/accounts/{account_id}/persons",
	Method:    "POST",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"additional_terms_of_service.account.date": {
			Type:             "string",
			ShortDescription: "The time when the Account's representative accepted the terms of service",
			Format:           "date-time",
		},
		"additional_terms_of_service.account.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the Account's representative accepted the terms of service",
		},
		"additional_terms_of_service.account.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the Account's representative accepted the terms of service",
		},
		"address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"address.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"date_of_birth.day": {
			Type:             "integer",
			ShortDescription: "The day of birth",
		},
		"date_of_birth.month": {
			Type:             "integer",
			ShortDescription: "The month of birth",
		},
		"date_of_birth.year": {
			Type:             "integer",
			ShortDescription: "The year of birth",
		},
		"documents.company_authorization.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"documents.company_authorization.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"documents.passport.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"documents.passport.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"documents.primary_verification.front_back.back": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document",
		},
		"documents.primary_verification.front_back.front": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document",
		},
		"documents.primary_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the verification document",
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"documents.secondary_verification.front_back.back": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document",
		},
		"documents.secondary_verification.front_back.front": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document",
		},
		"documents.secondary_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the verification document",
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"documents.visa.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"documents.visa.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"email": {
			Type:             "string",
			ShortDescription: "Email",
		},
		"given_name": {
			Type:             "string",
			ShortDescription: "The person's first name",
		},
		"legal_gender": {
			Type:             "string",
			ShortDescription: "The person's gender (International regulations require either \"male\" or \"female\")",
			Enum: []resource.EnumSpec{
				{Value: "female"},
				{Value: "male"},
			},
		},
		"nationalities": {
			Type:             "array",
			ShortDescription: "The nationalities (countries) this person is associated with",
		},
		"person_token": {
			Type:             "string",
			ShortDescription: "The person token generated by the person token api",
		},
		"phone": {
			Type:             "string",
			ShortDescription: "The phone number for this person",
		},
		"political_exposure": {
			Type:             "string",
			ShortDescription: "The person's political exposure",
			Enum: []resource.EnumSpec{
				{Value: "existing"},
				{Value: "none"},
			},
		},
		"relationship.authorizer": {
			Type:             "boolean",
			ShortDescription: "Whether the individual is an authorizer of the Account's identity",
		},
		"relationship.director": {
			Type:             "boolean",
			ShortDescription: "Indicates whether the person is a director of the associated legal entity",
		},
		"relationship.executive": {
			Type:             "boolean",
			ShortDescription: "Indicates whether the person is an executive of the associated legal entity",
		},
		"relationship.legal_guardian": {
			Type:             "boolean",
			ShortDescription: "Indicates whether the person is a legal guardian of the associated legal entity",
		},
		"relationship.owner": {
			Type:             "boolean",
			ShortDescription: "Indicates whether the person is an owner of the associated legal entity",
		},
		"relationship.percent_ownership": {
			Type:             "string",
			ShortDescription: "The percentage of ownership the person has in the associated legal entity",
			Format:           "decimal",
		},
		"relationship.representative": {
			Type:             "boolean",
			ShortDescription: "Indicates whether the person is a representative of the associated legal entity",
		},
		"relationship.title": {
			Type:             "string",
			ShortDescription: "The title or position the person holds in the associated legal entity",
		},
		"script_addresses.kana.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"script_addresses.kana.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"script_addresses.kana.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"script_addresses.kana.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"script_addresses.kana.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"script_addresses.kana.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"script_addresses.kana.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"script_addresses.kanji.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"script_addresses.kanji.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"script_addresses.kanji.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"script_addresses.kanji.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"script_addresses.kanji.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"script_addresses.kanji.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"script_addresses.kanji.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"script_names.kana.given_name": {
			Type:             "string",
			ShortDescription: "The person's first or given name",
		},
		"script_names.kana.surname": {
			Type:             "string",
			ShortDescription: "The person's last or family name",
		},
		"script_names.kanji.given_name": {
			Type:             "string",
			ShortDescription: "The person's first or given name",
		},
		"script_names.kanji.surname": {
			Type:             "string",
			ShortDescription: "The person's last or family name",
		},
		"surname": {
			Type:             "string",
			ShortDescription: "The person's last name",
		},
	},
}
View Source
var V2PreviewCoreAccountPersonsDelete = resource.OperationSpec{
	Name:      "delete",
	Path:      "/v2/core/accounts/{account_id}/persons/{id}",
	Method:    "DELETE",
	IsPreview: true,
}
View Source
var V2PreviewCoreAccountPersonsList = resource.OperationSpec{
	Name:      "list",
	Path:      "/v2/core/accounts/{account_id}/persons",
	Method:    "GET",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"limit": {
			Type:             "integer",
			ShortDescription: "The upper limit on the number of accounts returned by the List Account request",
		},
		"page": {
			Type:             "string",
			ShortDescription: "The page token to navigate to next or previous batch of accounts given by the list request",
		},
	},
}
View Source
var V2PreviewCoreAccountPersonsRetrieve = resource.OperationSpec{
	Name:      "retrieve",
	Path:      "/v2/core/accounts/{account_id}/persons/{id}",
	Method:    "GET",
	IsPreview: true,
}
View Source
var V2PreviewCoreAccountPersonsUpdate = resource.OperationSpec{
	Name:      "update",
	Path:      "/v2/core/accounts/{account_id}/persons/{id}",
	Method:    "POST",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"additional_terms_of_service.account.date": {
			Type:             "string",
			ShortDescription: "The time when the Account's representative accepted the terms of service",
			Format:           "date-time",
		},
		"additional_terms_of_service.account.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the Account's representative accepted the terms of service",
		},
		"additional_terms_of_service.account.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the Account's representative accepted the terms of service",
		},
		"address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"address.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"date_of_birth.day": {
			Type:             "integer",
			ShortDescription: "The day of the birth",
		},
		"date_of_birth.month": {
			Type:             "integer",
			ShortDescription: "The month of birth",
		},
		"date_of_birth.year": {
			Type:             "integer",
			ShortDescription: "The year of birth",
		},
		"documents.company_authorization.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"documents.company_authorization.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"documents.passport.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"documents.passport.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"documents.primary_verification.front_back.back": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document",
		},
		"documents.primary_verification.front_back.front": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document",
		},
		"documents.primary_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the verification document",
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"documents.secondary_verification.front_back.back": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document",
		},
		"documents.secondary_verification.front_back.front": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document",
		},
		"documents.secondary_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the verification document",
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"documents.visa.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"documents.visa.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"email": {
			Type:             "string",
			ShortDescription: "Email",
		},
		"given_name": {
			Type:             "string",
			ShortDescription: "The person's first name",
		},
		"legal_gender": {
			Type:             "string",
			ShortDescription: "The person's gender (International regulations require either \"male\" or \"female\")",
			Enum: []resource.EnumSpec{
				{Value: "female"},
				{Value: "male"},
			},
		},
		"nationalities": {
			Type:             "array",
			ShortDescription: "The nationalities (countries) this person is associated with",
		},
		"person_token": {
			Type:             "string",
			ShortDescription: "The person token generated by the person token api",
		},
		"phone": {
			Type:             "string",
			ShortDescription: "The phone number for this person",
		},
		"political_exposure": {
			Type:             "string",
			ShortDescription: "The person's political exposure",
			Enum: []resource.EnumSpec{
				{Value: "existing"},
				{Value: "none"},
			},
		},
		"relationship.authorizer": {
			Type:             "boolean",
			ShortDescription: "Whether the individual is an authorizer of the Account's identity",
		},
		"relationship.director": {
			Type:             "boolean",
			ShortDescription: "Indicates whether the person is a director of the associated legal entity",
		},
		"relationship.executive": {
			Type:             "boolean",
			ShortDescription: "Indicates whether the person is an executive of the associated legal entity",
		},
		"relationship.legal_guardian": {
			Type:             "boolean",
			ShortDescription: "Indicates whether the person is a legal guardian of the associated legal entity",
		},
		"relationship.owner": {
			Type:             "boolean",
			ShortDescription: "Indicates whether the person is an owner of the associated legal entity",
		},
		"relationship.percent_ownership": {
			Type:             "string",
			ShortDescription: "The percentage of ownership the person has in the associated legal entity",
			Format:           "decimal",
		},
		"relationship.representative": {
			Type:             "boolean",
			ShortDescription: "Indicates whether the person is a representative of the associated legal entity",
		},
		"relationship.title": {
			Type:             "string",
			ShortDescription: "The title or position the person holds in the associated legal entity",
		},
		"script_addresses.kana.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"script_addresses.kana.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"script_addresses.kana.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"script_addresses.kana.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"script_addresses.kana.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"script_addresses.kana.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"script_addresses.kana.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"script_addresses.kanji.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"script_addresses.kanji.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"script_addresses.kanji.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"script_addresses.kanji.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"script_addresses.kanji.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"script_addresses.kanji.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"script_addresses.kanji.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"script_names.kana.given_name": {
			Type:             "string",
			ShortDescription: "The person's first or given name",
		},
		"script_names.kana.surname": {
			Type:             "string",
			ShortDescription: "The person's last or family name",
		},
		"script_names.kanji.given_name": {
			Type:             "string",
			ShortDescription: "The person's first or given name",
		},
		"script_names.kanji.surname": {
			Type:             "string",
			ShortDescription: "The person's last or family name",
		},
		"surname": {
			Type:             "string",
			ShortDescription: "The person's last name",
		},
	},
}
View Source
var V2PreviewCoreAccountTokensCreate = resource.OperationSpec{
	Name:      "create",
	Path:      "/v2/core/account_tokens",
	Method:    "POST",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"contact_email": {
			Type:             "string",
			ShortDescription: "The default contact email address for the Account",
		},
		"contact_phone": {
			Type:             "string",
			ShortDescription: "The default contact phone for the Account",
		},
		"display_name": {
			Type:             "string",
			ShortDescription: "A descriptive name for the Account",
		},
		"identity.attestations.directorship_declaration.attested": {
			Type:             "boolean",
			ShortDescription: "A boolean indicating if the directors information has been attested",
		},
		"identity.attestations.ownership_declaration.attested": {
			Type:             "boolean",
			ShortDescription: "A boolean indicating if the beneficial owner information has been attested",
		},
		"identity.attestations.persons_provided.directors": {
			Type:             "boolean",
			ShortDescription: "Whether the company’s directors have been provided",
		},
		"identity.attestations.persons_provided.executives": {
			Type:             "boolean",
			ShortDescription: "Whether the company’s executives have been provided",
		},
		"identity.attestations.persons_provided.owners": {
			Type:             "boolean",
			ShortDescription: "Whether the company’s owners have been provided",
		},
		"identity.attestations.persons_provided.ownership_exemption_reason": {
			Type:             "string",
			ShortDescription: "Reason for why the company is exempt from providing ownership information",
			Enum: []resource.EnumSpec{
				{Value: "qualified_entity_exceeds_ownership_threshold"},
				{Value: "qualifies_as_financial_institution"},
			},
		},
		"identity.attestations.representative_declaration.attested": {
			Type:             "boolean",
			ShortDescription: "A boolean indicating if the representative is authorized to act as the representative of their legal entity",
		},
		"identity.attestations.terms_of_service.account.shown_and_accepted": {
			Type:             "boolean",
			ShortDescription: "The boolean value indicating if the terms of service have been accepted",
		},
		"identity.attestations.terms_of_service.storer.shown_and_accepted": {
			Type:             "boolean",
			ShortDescription: "The boolean value indicating if the terms of service have been accepted",
		},
		"identity.business_details.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"identity.business_details.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"identity.business_details.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"identity.business_details.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"identity.business_details.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"identity.business_details.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"identity.business_details.address.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"identity.business_details.annual_revenue.amount.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
		},
		"identity.business_details.annual_revenue.amount.value": {
			Type:             "integer",
			ShortDescription: "A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units)",
		},
		"identity.business_details.annual_revenue.fiscal_year_end": {
			Type:             "string",
			ShortDescription: "The close-out date of the preceding fiscal year in ISO 8601 format",
		},
		"identity.business_details.documents.bank_account_ownership_verification.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.bank_account_ownership_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_license.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.company_license.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_memorandum_of_association.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.company_memorandum_of_association.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_ministerial_decree.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.company_ministerial_decree.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_registration_verification.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.company_registration_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_tax_id_verification.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.company_tax_id_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.primary_verification.front_back.back": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document",
		},
		"identity.business_details.documents.primary_verification.front_back.front": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document",
		},
		"identity.business_details.documents.primary_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the verification document",
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"identity.business_details.documents.proof_of_address.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.proof_of_address.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.proof_of_registration.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.proof_of_registration.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.proof_of_ultimate_beneficial_ownership.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.proof_of_ultimate_beneficial_ownership.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.estimated_worker_count": {
			Type:             "integer",
			ShortDescription: "Estimated maximum number of workers currently engaged by the business (including employees, contractors, and vendors)",
		},
		"identity.business_details.monthly_estimated_revenue.amount.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
		},
		"identity.business_details.monthly_estimated_revenue.amount.value": {
			Type:             "integer",
			ShortDescription: "A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units)",
		},
		"identity.business_details.phone": {
			Type:             "string",
			ShortDescription: "The phone number of the Business Entity",
		},
		"identity.business_details.registered_name": {
			Type:             "string",
			ShortDescription: "The business legal name",
		},
		"identity.business_details.registration_date.day": {
			Type:             "integer",
			ShortDescription: "The day of registration, between 1 and 31",
		},
		"identity.business_details.registration_date.month": {
			Type:             "integer",
			ShortDescription: "The month of registration, between 1 and 12",
		},
		"identity.business_details.registration_date.year": {
			Type:             "integer",
			ShortDescription: "The four-digit year of registration",
		},
		"identity.business_details.script_addresses.kana.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"identity.business_details.script_addresses.kana.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"identity.business_details.script_addresses.kana.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"identity.business_details.script_addresses.kana.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"identity.business_details.script_addresses.kana.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"identity.business_details.script_addresses.kana.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"identity.business_details.script_addresses.kana.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"identity.business_details.script_addresses.kanji.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"identity.business_details.script_addresses.kanji.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"identity.business_details.script_addresses.kanji.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"identity.business_details.script_addresses.kanji.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"identity.business_details.script_addresses.kanji.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"identity.business_details.script_addresses.kanji.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"identity.business_details.script_addresses.kanji.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"identity.business_details.script_names.kana.registered_name": {
			Type:             "string",
			ShortDescription: "Registered name of the business",
		},
		"identity.business_details.script_names.kanji.registered_name": {
			Type:             "string",
			ShortDescription: "Registered name of the business",
		},
		"identity.business_details.structure": {
			Type:             "string",
			ShortDescription: "The category identifying the legal structure of the business",
			Enum: []resource.EnumSpec{
				{Value: "cooperative"},
				{Value: "free_zone_establishment"},
				{Value: "free_zone_llc"},
				{Value: "governmental_unit"},
				{Value: "government_instrumentality"},
				{Value: "incorporated_association"},
				{Value: "incorporated_non_profit"},
				{Value: "incorporated_partnership"},
				{Value: "limited_liability_partnership"},
				{Value: "llc"},
				{Value: "multi_member_llc"},
				{Value: "private_company"},
				{Value: "private_corporation"},
				{Value: "private_partnership"},
				{Value: "public_company"},
				{Value: "public_corporation"},
				{Value: "public_listed_corporation"},
				{Value: "public_partnership"},
				{Value: "registered_charity"},
				{Value: "single_member_llc"},
				{Value: "sole_establishment"},
				{Value: "sole_proprietorship"},
				{Value: "tax_exempt_government_instrumentality"},
				{Value: "trust"},
				{Value: "unincorporated_association"},
				{Value: "unincorporated_non_profit"},
				{Value: "unincorporated_partnership"},
			},
		},
		"identity.entity_type": {
			Type:             "string",
			ShortDescription: "The entity type",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "government_entity"},
				{Value: "individual"},
				{Value: "non_profit"},
			},
		},
		"identity.individual.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"identity.individual.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"identity.individual.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"identity.individual.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"identity.individual.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"identity.individual.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"identity.individual.address.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"identity.individual.date_of_birth.day": {
			Type:             "integer",
			ShortDescription: "The day of the birth",
		},
		"identity.individual.date_of_birth.month": {
			Type:             "integer",
			ShortDescription: "The month of birth",
		},
		"identity.individual.date_of_birth.year": {
			Type:             "integer",
			ShortDescription: "The year of birth",
		},
		"identity.individual.documents.company_authorization.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.individual.documents.company_authorization.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.individual.documents.passport.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.individual.documents.passport.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.individual.documents.primary_verification.front_back.back": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document",
		},
		"identity.individual.documents.primary_verification.front_back.front": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document",
		},
		"identity.individual.documents.primary_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the verification document",
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"identity.individual.documents.secondary_verification.front_back.back": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document",
		},
		"identity.individual.documents.secondary_verification.front_back.front": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document",
		},
		"identity.individual.documents.secondary_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the verification document",
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"identity.individual.documents.visa.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.individual.documents.visa.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.individual.email": {
			Type:             "string",
			ShortDescription: "The individual's email address",
		},
		"identity.individual.given_name": {
			Type:             "string",
			ShortDescription: "The individual's first name",
		},
		"identity.individual.legal_gender": {
			Type:             "string",
			ShortDescription: "The individual's gender (International regulations require either \"male\" or \"female\")",
			Enum: []resource.EnumSpec{
				{Value: "female"},
				{Value: "male"},
			},
		},
		"identity.individual.nationalities": {
			Type:             "array",
			ShortDescription: "The countries where the individual is a national",
		},
		"identity.individual.phone": {
			Type:             "string",
			ShortDescription: "The individual's phone number",
		},
		"identity.individual.political_exposure": {
			Type:             "string",
			ShortDescription: "The individual's political exposure",
			Enum: []resource.EnumSpec{
				{Value: "existing"},
				{Value: "none"},
			},
		},
		"identity.individual.relationship.director": {
			Type:             "boolean",
			ShortDescription: "Whether the person is a director of the account's identity",
		},
		"identity.individual.relationship.executive": {
			Type:             "boolean",
			ShortDescription: "Whether the person has significant responsibility to control, manage, or direct the organization",
		},
		"identity.individual.relationship.owner": {
			Type:             "boolean",
			ShortDescription: "Whether the person is an owner of the account’s identity",
		},
		"identity.individual.relationship.percent_ownership": {
			Type:             "string",
			ShortDescription: "The percent owned by the person of the account's legal entity",
			Format:           "decimal",
		},
		"identity.individual.relationship.title": {
			Type:             "string",
			ShortDescription: "The person's title (e.g., CEO, Support Engineer)",
		},
		"identity.individual.script_addresses.kana.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"identity.individual.script_addresses.kana.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"identity.individual.script_addresses.kana.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"identity.individual.script_addresses.kana.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"identity.individual.script_addresses.kana.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"identity.individual.script_addresses.kana.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"identity.individual.script_addresses.kana.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"identity.individual.script_addresses.kanji.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"identity.individual.script_addresses.kanji.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"identity.individual.script_addresses.kanji.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"identity.individual.script_addresses.kanji.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"identity.individual.script_addresses.kanji.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"identity.individual.script_addresses.kanji.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"identity.individual.script_addresses.kanji.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"identity.individual.script_names.kana.given_name": {
			Type:             "string",
			ShortDescription: "The person's first or given name",
		},
		"identity.individual.script_names.kana.surname": {
			Type:             "string",
			ShortDescription: "The person's last or family name",
		},
		"identity.individual.script_names.kanji.given_name": {
			Type:             "string",
			ShortDescription: "The person's first or given name",
		},
		"identity.individual.script_names.kanji.surname": {
			Type:             "string",
			ShortDescription: "The person's last or family name",
		},
		"identity.individual.surname": {
			Type:             "string",
			ShortDescription: "The individual's last name",
		},
	},
}
View Source
var V2PreviewCoreAccountTokensRetrieve = resource.OperationSpec{
	Name:      "retrieve",
	Path:      "/v2/core/account_tokens/{id}",
	Method:    "GET",
	IsPreview: true,
}
View Source
var V2PreviewCoreAccountsClose = resource.OperationSpec{
	Name:      "close",
	Path:      "/v2/core/accounts/{id}/close",
	Method:    "POST",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"applied_configurations": {
			Type:             "array",
			ShortDescription: "Configurations on the Account to be closed",
		},
	},
}
View Source
var V2PreviewCoreAccountsCreate = resource.OperationSpec{
	Name:      "create",
	Path:      "/v2/core/accounts",
	Method:    "POST",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"account_token": {
			Type:             "string",
			ShortDescription: "The account token generated by the account token api",
		},
		"configuration.customer.automatic_indirect_tax.exempt": {
			Type:             "string",
			ShortDescription: "Describes the customer's tax exemption status, which is `none`, `exempt`, or `reverse`",
			Enum: []resource.EnumSpec{
				{Value: "exempt"},
				{Value: "none"},
				{Value: "reverse"},
			},
		},
		"configuration.customer.automatic_indirect_tax.ip_address": {
			Type:             "string",
			ShortDescription: "A recent IP address of the customer used for tax reporting and tax location inference",
		},
		"configuration.customer.automatic_indirect_tax.location_source": {
			Type:             "string",
			ShortDescription: "The data source used to identify the customer's tax location - defaults to `identity_address`",
			Enum: []resource.EnumSpec{
				{Value: "identity_address"},
				{Value: "ip_address"},
				{Value: "payment_method"},
				{Value: "shipping_address"},
			},
		},
		"configuration.customer.billing.invoice.footer": {
			Type:             "string",
			ShortDescription: "Default invoice footer",
		},
		"configuration.customer.billing.invoice.next_sequence": {
			Type:             "integer",
			ShortDescription: "Sequence number to use on the customer account's next invoice",
		},
		"configuration.customer.billing.invoice.prefix": {
			Type:             "string",
			ShortDescription: "Prefix used to generate unique invoice numbers",
		},
		"configuration.customer.billing.invoice.rendering.amount_tax_display": {
			Type:             "string",
			ShortDescription: "Indicates whether displayed line item prices and amounts on invoice PDFs include inclusive tax amounts",
			Enum: []resource.EnumSpec{
				{Value: "exclude_tax"},
				{Value: "include_inclusive_tax"},
			},
		},
		"configuration.customer.billing.invoice.rendering.template": {
			Type:             "string",
			ShortDescription: "ID of the invoice rendering template to use for future invoices",
		},
		"configuration.customer.capabilities.automatic_indirect_tax.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.customer.shipping.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"configuration.customer.shipping.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"configuration.customer.shipping.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"configuration.customer.shipping.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"configuration.customer.shipping.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"configuration.customer.shipping.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"configuration.customer.shipping.name": {
			Type:             "string",
			ShortDescription: "Customer name",
		},
		"configuration.customer.shipping.phone": {
			Type:             "string",
			ShortDescription: "Customer phone (including extension)",
		},
		"configuration.customer.test_clock": {
			Type:             "string",
			ShortDescription: "ID of the test clock to attach to the customer",
		},
		"configuration.merchant.bacs_debit_payments.display_name": {
			Type:             "string",
			ShortDescription: "Display name for Bacs Direct Debit payments",
		},
		"configuration.merchant.branding.icon": {
			Type:             "string",
			ShortDescription: "ID of a [file upload](https://docs.stripe.com/api/persons/update#create_file): An icon for the merchant",
		},
		"configuration.merchant.branding.logo": {
			Type:             "string",
			ShortDescription: "ID of a [file upload](https://docs.stripe.com/api/persons/update#create_file): A logo for the merchant that will be used in Checkout instead of the icon and without the merchant's name next to it if provided",
		},
		"configuration.merchant.branding.primary_color": {
			Type:             "string",
			ShortDescription: "A CSS hex color value representing the primary branding color for the merchant",
		},
		"configuration.merchant.branding.secondary_color": {
			Type:             "string",
			ShortDescription: "A CSS hex color value representing the secondary branding color for the merchant",
		},
		"configuration.merchant.capabilities.ach_debit_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.acss_debit_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.affirm_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.afterpay_clearpay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.alma_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.amazon_pay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.au_becs_debit_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.bacs_debit_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.bancontact_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.blik_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.boleto_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.card_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.cartes_bancaires_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.cashapp_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.eps_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.fpx_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.gb_bank_transfer_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.grabpay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.ideal_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.jcb_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.jp_bank_transfer_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.kakao_pay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.klarna_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.konbini_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.kr_card_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.link_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.mobilepay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.multibanco_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.mx_bank_transfer_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.naver_pay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.oxxo_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.p24_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.pay_by_bank_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.payco_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.paynow_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.promptpay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.revolut_pay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.samsung_pay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.sepa_bank_transfer_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.sepa_debit_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.swish_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.twint_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.us_bank_transfer_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.zip_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.card_payments.decline_on.avs_failure": {
			Type:             "boolean",
			ShortDescription: "Whether Stripe automatically declines charges with an incorrect ZIP or postal code",
		},
		"configuration.merchant.card_payments.decline_on.cvc_failure": {
			Type:             "boolean",
			ShortDescription: "Whether Stripe automatically declines charges with an incorrect CVC",
		},
		"configuration.merchant.konbini_payments.support.email": {
			Type:             "string",
			ShortDescription: "Support email address for Konbini payments",
		},
		"configuration.merchant.konbini_payments.support.hours.end_time": {
			Type:             "string",
			ShortDescription: "Support hours end time (JST time of day) for in `HH:MM` format",
		},
		"configuration.merchant.konbini_payments.support.hours.start_time": {
			Type:             "string",
			ShortDescription: "Support hours start time (JST time of day) for in `HH:MM` format",
		},
		"configuration.merchant.konbini_payments.support.phone": {
			Type:             "string",
			ShortDescription: "Support phone number for Konbini payments",
		},
		"configuration.merchant.mcc": {
			Type:             "string",
			ShortDescription: "The Merchant Category Code (MCC) for the Merchant Configuration",
		},
		"configuration.merchant.script_statement_descriptor.kana.descriptor": {
			Type:             "string",
			ShortDescription: "The default text that appears on statements for non-card charges outside of Japan",
		},
		"configuration.merchant.script_statement_descriptor.kana.prefix": {
			Type:             "string",
			ShortDescription: "Default text that appears on statements for card charges outside of Japan, prefixing any dynamic statement_descriptor_suffix specified on the charge",
		},
		"configuration.merchant.script_statement_descriptor.kanji.descriptor": {
			Type:             "string",
			ShortDescription: "The default text that appears on statements for non-card charges outside of Japan",
		},
		"configuration.merchant.script_statement_descriptor.kanji.prefix": {
			Type:             "string",
			ShortDescription: "Default text that appears on statements for card charges outside of Japan, prefixing any dynamic statement_descriptor_suffix specified on the charge",
		},
		"configuration.merchant.smart_disputes.auto_respond.preference": {
			Type:             "string",
			ShortDescription: "The preference for Smart Disputes auto-respond",
			Enum: []resource.EnumSpec{
				{Value: "inherit"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"configuration.merchant.statement_descriptor.descriptor": {
			Type:             "string",
			ShortDescription: "The default text that appears on statements for non-card charges outside of Japan",
		},
		"configuration.merchant.statement_descriptor.prefix": {
			Type:             "string",
			ShortDescription: "Default text that appears on statements for card charges outside of Japan, prefixing any dynamic statement_descriptor_suffix specified on the charge",
		},
		"configuration.merchant.support.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"configuration.merchant.support.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"configuration.merchant.support.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"configuration.merchant.support.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"configuration.merchant.support.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"configuration.merchant.support.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"configuration.merchant.support.address.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"configuration.merchant.support.email": {
			Type:             "string",
			ShortDescription: "A publicly available email address for sending support issues to",
		},
		"configuration.merchant.support.phone": {
			Type:             "string",
			ShortDescription: "A publicly available phone number to call with support issues",
		},
		"configuration.merchant.support.url": {
			Type:             "string",
			ShortDescription: "A publicly available website for handling support issues",
		},
		"configuration.recipient.capabilities.bank_accounts.local.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.recipient.capabilities.bank_accounts.wire.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.recipient.capabilities.cards.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.recipient.capabilities.stripe_balance.stripe_transfers.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.storer.capabilities.financial_addresses.bank_accounts.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.storer.capabilities.holds_currencies.eur.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.storer.capabilities.holds_currencies.gbp.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.storer.capabilities.holds_currencies.usd.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.storer.capabilities.inbound_transfers.bank_accounts.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.storer.capabilities.outbound_payments.bank_accounts.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.storer.capabilities.outbound_payments.cards.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.storer.capabilities.outbound_payments.financial_accounts.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.storer.capabilities.outbound_transfers.bank_accounts.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.storer.capabilities.outbound_transfers.financial_accounts.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"contact_email": {
			Type:             "string",
			ShortDescription: "The default contact email address for the Account",
		},
		"contact_phone": {
			Type:             "string",
			ShortDescription: "The default contact phone for the Account",
		},
		"dashboard": {
			Type:             "string",
			ShortDescription: "A value indicating the Stripe dashboard this Account has access to",
			Enum: []resource.EnumSpec{
				{Value: "express"},
				{Value: "full"},
				{Value: "none"},
			},
		},
		"defaults.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
		},
		"defaults.locales": {
			Type:             "array",
			ShortDescription: "The Account's preferred locales (languages), ordered by preference",
		},
		"defaults.profile.business_url": {
			Type:             "string",
			ShortDescription: "The business's publicly-available website",
		},
		"defaults.profile.doing_business_as": {
			Type:             "string",
			ShortDescription: "The name which is used by the business",
		},
		"defaults.profile.product_description": {
			Type:             "string",
			ShortDescription: "Internal-only description of the product sold or service provided by the business",
		},
		"defaults.responsibilities.fees_collector": {
			Type:             "string",
			ShortDescription: "A value indicating the party responsible for collecting fees from this account",
			Enum: []resource.EnumSpec{
				{Value: "application"},
				{Value: "application_custom"},
				{Value: "application_express"},
				{Value: "stripe"},
			},
		},
		"defaults.responsibilities.losses_collector": {
			Type:             "string",
			ShortDescription: "A value indicating who is responsible for losses when this Account can’t pay back negative balances from payments",
			Enum: []resource.EnumSpec{
				{Value: "application"},
				{Value: "stripe"},
			},
		},
		"defaults.timezone": {
			Type:             "string",
			ShortDescription: "The Account's local timezone",
		},
		"display_name": {
			Type:             "string",
			ShortDescription: "A descriptive name for the Account",
		},
		"identity.attestations.directorship_declaration.date": {
			Type:             "string",
			ShortDescription: "The time marking when the director attestation was made",
			Format:           "date-time",
		},
		"identity.attestations.directorship_declaration.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the director attestation was made",
		},
		"identity.attestations.directorship_declaration.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the director attestation was made",
		},
		"identity.attestations.ownership_declaration.date": {
			Type:             "string",
			ShortDescription: "The time marking when the beneficial owner attestation was made",
			Format:           "date-time",
		},
		"identity.attestations.ownership_declaration.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the beneficial owner attestation was made",
		},
		"identity.attestations.ownership_declaration.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the beneficial owner attestation was made",
		},
		"identity.attestations.persons_provided.directors": {
			Type:             "boolean",
			ShortDescription: "Whether the company’s directors have been provided",
		},
		"identity.attestations.persons_provided.executives": {
			Type:             "boolean",
			ShortDescription: "Whether the company’s executives have been provided",
		},
		"identity.attestations.persons_provided.owners": {
			Type:             "boolean",
			ShortDescription: "Whether the company’s owners have been provided",
		},
		"identity.attestations.persons_provided.ownership_exemption_reason": {
			Type:             "string",
			ShortDescription: "Reason for why the company is exempt from providing ownership information",
			Enum: []resource.EnumSpec{
				{Value: "qualified_entity_exceeds_ownership_threshold"},
				{Value: "qualifies_as_financial_institution"},
			},
		},
		"identity.attestations.representative_declaration.date": {
			Type:             "string",
			ShortDescription: "The time marking when the representative attestation was made",
			Format:           "date-time",
		},
		"identity.attestations.representative_declaration.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the representative attestation was made",
		},
		"identity.attestations.representative_declaration.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the representative attestation was made",
		},
		"identity.attestations.terms_of_service.account.date": {
			Type:             "string",
			ShortDescription: "The time when the Account's representative accepted the terms of service",
			Format:           "date-time",
		},
		"identity.attestations.terms_of_service.account.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the Account's representative accepted the terms of service",
		},
		"identity.attestations.terms_of_service.account.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the Account's representative accepted the terms of service",
		},
		"identity.attestations.terms_of_service.storer.date": {
			Type:             "string",
			ShortDescription: "The time when the Account's representative accepted the terms of service",
			Format:           "date-time",
		},
		"identity.attestations.terms_of_service.storer.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the Account's representative accepted the terms of service",
		},
		"identity.attestations.terms_of_service.storer.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the Account's representative accepted the terms of service",
		},
		"identity.business_details.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"identity.business_details.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"identity.business_details.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"identity.business_details.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"identity.business_details.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"identity.business_details.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"identity.business_details.address.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"identity.business_details.annual_revenue.amount.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
		},
		"identity.business_details.annual_revenue.amount.value": {
			Type:             "integer",
			ShortDescription: "A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units)",
		},
		"identity.business_details.annual_revenue.fiscal_year_end": {
			Type:             "string",
			ShortDescription: "The close-out date of the preceding fiscal year in ISO 8601 format",
		},
		"identity.business_details.documents.bank_account_ownership_verification.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.bank_account_ownership_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_license.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.company_license.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_memorandum_of_association.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.company_memorandum_of_association.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_ministerial_decree.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.company_ministerial_decree.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_registration_verification.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.company_registration_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_tax_id_verification.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.company_tax_id_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.primary_verification.front_back.back": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document",
		},
		"identity.business_details.documents.primary_verification.front_back.front": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document",
		},
		"identity.business_details.documents.primary_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the verification document",
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"identity.business_details.documents.proof_of_address.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.proof_of_address.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.proof_of_registration.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.proof_of_registration.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.proof_of_ultimate_beneficial_ownership.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.proof_of_ultimate_beneficial_ownership.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.estimated_worker_count": {
			Type:             "integer",
			ShortDescription: "Estimated maximum number of workers currently engaged by the business (including employees, contractors, and vendors)",
		},
		"identity.business_details.monthly_estimated_revenue.amount.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
		},
		"identity.business_details.monthly_estimated_revenue.amount.value": {
			Type:             "integer",
			ShortDescription: "A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units)",
		},
		"identity.business_details.phone": {
			Type:             "string",
			ShortDescription: "The phone number of the Business Entity",
		},
		"identity.business_details.registered_name": {
			Type:             "string",
			ShortDescription: "The business legal name",
		},
		"identity.business_details.registration_date.day": {
			Type:             "integer",
			ShortDescription: "The day of registration, between 1 and 31",
		},
		"identity.business_details.registration_date.month": {
			Type:             "integer",
			ShortDescription: "The month of registration, between 1 and 12",
		},
		"identity.business_details.registration_date.year": {
			Type:             "integer",
			ShortDescription: "The four-digit year of registration",
		},
		"identity.business_details.script_addresses.kana.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"identity.business_details.script_addresses.kana.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"identity.business_details.script_addresses.kana.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"identity.business_details.script_addresses.kana.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"identity.business_details.script_addresses.kana.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"identity.business_details.script_addresses.kana.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"identity.business_details.script_addresses.kana.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"identity.business_details.script_addresses.kanji.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"identity.business_details.script_addresses.kanji.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"identity.business_details.script_addresses.kanji.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"identity.business_details.script_addresses.kanji.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"identity.business_details.script_addresses.kanji.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"identity.business_details.script_addresses.kanji.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"identity.business_details.script_addresses.kanji.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"identity.business_details.script_names.kana.registered_name": {
			Type:             "string",
			ShortDescription: "Registered name of the business",
		},
		"identity.business_details.script_names.kanji.registered_name": {
			Type:             "string",
			ShortDescription: "Registered name of the business",
		},
		"identity.business_details.structure": {
			Type:             "string",
			ShortDescription: "The category identifying the legal structure of the business",
			Enum: []resource.EnumSpec{
				{Value: "cooperative"},
				{Value: "free_zone_establishment"},
				{Value: "free_zone_llc"},
				{Value: "governmental_unit"},
				{Value: "government_instrumentality"},
				{Value: "incorporated_association"},
				{Value: "incorporated_non_profit"},
				{Value: "incorporated_partnership"},
				{Value: "limited_liability_partnership"},
				{Value: "llc"},
				{Value: "multi_member_llc"},
				{Value: "private_company"},
				{Value: "private_corporation"},
				{Value: "private_partnership"},
				{Value: "public_company"},
				{Value: "public_corporation"},
				{Value: "public_listed_corporation"},
				{Value: "public_partnership"},
				{Value: "registered_charity"},
				{Value: "single_member_llc"},
				{Value: "sole_establishment"},
				{Value: "sole_proprietorship"},
				{Value: "tax_exempt_government_instrumentality"},
				{Value: "trust"},
				{Value: "unincorporated_association"},
				{Value: "unincorporated_non_profit"},
				{Value: "unincorporated_partnership"},
			},
		},
		"identity.country": {
			Type:             "string",
			ShortDescription: "The country in which the account holder resides, or in which the business is legally established",
		},
		"identity.entity_type": {
			Type:             "string",
			ShortDescription: "The entity type",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "government_entity"},
				{Value: "individual"},
				{Value: "non_profit"},
			},
		},
		"identity.individual.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"identity.individual.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"identity.individual.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"identity.individual.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"identity.individual.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"identity.individual.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"identity.individual.address.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"identity.individual.date_of_birth.day": {
			Type:             "integer",
			ShortDescription: "The day of birth",
		},
		"identity.individual.date_of_birth.month": {
			Type:             "integer",
			ShortDescription: "The month of birth",
		},
		"identity.individual.date_of_birth.year": {
			Type:             "integer",
			ShortDescription: "The year of birth",
		},
		"identity.individual.documents.company_authorization.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.individual.documents.company_authorization.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.individual.documents.passport.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.individual.documents.passport.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.individual.documents.primary_verification.front_back.back": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document",
		},
		"identity.individual.documents.primary_verification.front_back.front": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document",
		},
		"identity.individual.documents.primary_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the verification document",
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"identity.individual.documents.secondary_verification.front_back.back": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document",
		},
		"identity.individual.documents.secondary_verification.front_back.front": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document",
		},
		"identity.individual.documents.secondary_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the verification document",
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"identity.individual.documents.visa.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.individual.documents.visa.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.individual.email": {
			Type:             "string",
			ShortDescription: "The individual's email address",
		},
		"identity.individual.given_name": {
			Type:             "string",
			ShortDescription: "The individual's first name",
		},
		"identity.individual.legal_gender": {
			Type:             "string",
			ShortDescription: "The individual's gender (International regulations require either \"male\" or \"female\")",
			Enum: []resource.EnumSpec{
				{Value: "female"},
				{Value: "male"},
			},
		},
		"identity.individual.nationalities": {
			Type:             "array",
			ShortDescription: "The countries where the individual is a national",
		},
		"identity.individual.phone": {
			Type:             "string",
			ShortDescription: "The individual's phone number",
		},
		"identity.individual.political_exposure": {
			Type:             "string",
			ShortDescription: "The individual's political exposure",
			Enum: []resource.EnumSpec{
				{Value: "existing"},
				{Value: "none"},
			},
		},
		"identity.individual.relationship.director": {
			Type:             "boolean",
			ShortDescription: "Whether the person is a director of the account's identity",
		},
		"identity.individual.relationship.executive": {
			Type:             "boolean",
			ShortDescription: "Whether the person has significant responsibility to control, manage, or direct the organization",
		},
		"identity.individual.relationship.owner": {
			Type:             "boolean",
			ShortDescription: "Whether the person is an owner of the account’s identity",
		},
		"identity.individual.relationship.percent_ownership": {
			Type:             "string",
			ShortDescription: "The percent owned by the person of the account's legal entity",
			Format:           "decimal",
		},
		"identity.individual.relationship.title": {
			Type:             "string",
			ShortDescription: "The person's title (e.g., CEO, Support Engineer)",
		},
		"identity.individual.script_addresses.kana.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"identity.individual.script_addresses.kana.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"identity.individual.script_addresses.kana.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"identity.individual.script_addresses.kana.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"identity.individual.script_addresses.kana.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"identity.individual.script_addresses.kana.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"identity.individual.script_addresses.kana.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"identity.individual.script_addresses.kanji.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"identity.individual.script_addresses.kanji.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"identity.individual.script_addresses.kanji.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"identity.individual.script_addresses.kanji.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"identity.individual.script_addresses.kanji.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"identity.individual.script_addresses.kanji.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"identity.individual.script_addresses.kanji.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"identity.individual.script_names.kana.given_name": {
			Type:             "string",
			ShortDescription: "The person's first or given name",
		},
		"identity.individual.script_names.kana.surname": {
			Type:             "string",
			ShortDescription: "The person's last or family name",
		},
		"identity.individual.script_names.kanji.given_name": {
			Type:             "string",
			ShortDescription: "The person's first or given name",
		},
		"identity.individual.script_names.kanji.surname": {
			Type:             "string",
			ShortDescription: "The person's last or family name",
		},
		"identity.individual.surname": {
			Type:             "string",
			ShortDescription: "The individual's last name",
		},
		"include": {
			Type:             "array",
			ShortDescription: "Additional fields to include in the response",
		},
	},
}
View Source
var V2PreviewCoreAccountsList = resource.OperationSpec{
	Name:      "list",
	Path:      "/v2/core/accounts",
	Method:    "GET",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"applied_configurations": {
			Type:             "array",
			ShortDescription: "Filter only accounts that have all of the configurations specified",
		},
		"closed": {
			Type:             "boolean",
			ShortDescription: "Filter by whether the account is closed",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "The upper limit on the number of accounts returned by the List Account request",
		},
		"page": {
			Type:             "string",
			ShortDescription: "The page token to navigate to next or previous batch of accounts given by the list request",
		},
	},
}
View Source
var V2PreviewCoreAccountsRetrieve = resource.OperationSpec{
	Name:      "retrieve",
	Path:      "/v2/core/accounts/{id}",
	Method:    "GET",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"include": {
			Type:             "array",
			ShortDescription: "Additional fields to include in the response",
		},
	},
}
View Source
var V2PreviewCoreAccountsUpdate = resource.OperationSpec{
	Name:      "update",
	Path:      "/v2/core/accounts/{id}",
	Method:    "POST",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"account_token": {
			Type:             "string",
			ShortDescription: "The account token generated by the account token api",
		},
		"configuration.customer.applied": {
			Type:             "boolean",
			ShortDescription: "Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration",
		},
		"configuration.customer.automatic_indirect_tax.exempt": {
			Type:             "string",
			ShortDescription: "The customer account's tax exemption status: `none`, `exempt`, or `reverse`",
			Enum: []resource.EnumSpec{
				{Value: "exempt"},
				{Value: "none"},
				{Value: "reverse"},
			},
		},
		"configuration.customer.automatic_indirect_tax.ip_address": {
			Type:             "string",
			ShortDescription: "A recent IP address of the customer used for tax reporting and tax location inference",
		},
		"configuration.customer.automatic_indirect_tax.location_source": {
			Type:             "string",
			ShortDescription: "Data source used to identify the customer account's tax location",
			Enum: []resource.EnumSpec{
				{Value: "identity_address"},
				{Value: "ip_address"},
				{Value: "payment_method"},
				{Value: "shipping_address"},
			},
		},
		"configuration.customer.automatic_indirect_tax.validate_location": {
			Type:             "string",
			ShortDescription: "A per-request flag that indicates when Stripe should validate the customer tax location - defaults to `auto`",
			Enum: []resource.EnumSpec{
				{Value: "auto"},
				{Value: "deferred"},
				{Value: "immediately"},
			},
		},
		"configuration.customer.billing.default_payment_method": {
			Type:             "string",
			ShortDescription: "ID of a PaymentMethod attached to the customer account to use as the default for invoices and subscriptions",
		},
		"configuration.customer.billing.invoice.footer": {
			Type:             "string",
			ShortDescription: "Default invoice footer",
		},
		"configuration.customer.billing.invoice.next_sequence": {
			Type:             "integer",
			ShortDescription: "Sequence number to use on the customer account's next invoice",
		},
		"configuration.customer.billing.invoice.prefix": {
			Type:             "string",
			ShortDescription: "Prefix used to generate unique invoice numbers",
		},
		"configuration.customer.billing.invoice.rendering.amount_tax_display": {
			Type:             "string",
			ShortDescription: "Indicates whether displayed line item prices and amounts on invoice PDFs include inclusive tax amounts",
			Enum: []resource.EnumSpec{
				{Value: "exclude_tax"},
				{Value: "include_inclusive_tax"},
			},
		},
		"configuration.customer.billing.invoice.rendering.template": {
			Type:             "string",
			ShortDescription: "ID of the invoice rendering template to use for future invoices",
		},
		"configuration.customer.capabilities.automatic_indirect_tax.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.customer.shipping.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"configuration.customer.shipping.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"configuration.customer.shipping.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"configuration.customer.shipping.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"configuration.customer.shipping.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"configuration.customer.shipping.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"configuration.customer.shipping.name": {
			Type:             "string",
			ShortDescription: "Customer name",
		},
		"configuration.customer.shipping.phone": {
			Type:             "string",
			ShortDescription: "Customer phone (including extension)",
		},
		"configuration.customer.test_clock": {
			Type:             "string",
			ShortDescription: "ID of the test clock to attach to the customer",
		},
		"configuration.merchant.applied": {
			Type:             "boolean",
			ShortDescription: "Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration",
		},
		"configuration.merchant.bacs_debit_payments.display_name": {
			Type:             "string",
			ShortDescription: "Display name for Bacs Direct Debit payments",
		},
		"configuration.merchant.branding.icon": {
			Type:             "string",
			ShortDescription: "ID of a [file upload](https://docs.stripe.com/api/persons/update#create_file): An icon for the merchant",
		},
		"configuration.merchant.branding.logo": {
			Type:             "string",
			ShortDescription: "ID of a [file upload](https://docs.stripe.com/api/persons/update#create_file): A logo for the merchant that will be used in Checkout instead of the icon and without the merchant's name next to it if provided",
		},
		"configuration.merchant.branding.primary_color": {
			Type:             "string",
			ShortDescription: "A CSS hex color value representing the primary branding color for the merchant",
		},
		"configuration.merchant.branding.secondary_color": {
			Type:             "string",
			ShortDescription: "A CSS hex color value representing the secondary branding color for the merchant",
		},
		"configuration.merchant.capabilities.ach_debit_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.acss_debit_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.affirm_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.afterpay_clearpay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.alma_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.amazon_pay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.au_becs_debit_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.bacs_debit_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.bancontact_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.blik_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.boleto_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.card_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.cartes_bancaires_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.cashapp_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.eps_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.fpx_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.gb_bank_transfer_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.grabpay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.ideal_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.jcb_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.jp_bank_transfer_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.kakao_pay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.klarna_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.konbini_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.kr_card_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.link_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.mobilepay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.multibanco_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.mx_bank_transfer_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.naver_pay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.oxxo_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.p24_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.pay_by_bank_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.payco_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.paynow_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.promptpay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.revolut_pay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.samsung_pay_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.sepa_bank_transfer_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.sepa_debit_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.swish_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.twint_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.us_bank_transfer_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.capabilities.zip_payments.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.merchant.card_payments.decline_on.avs_failure": {
			Type:             "boolean",
			ShortDescription: "Whether Stripe automatically declines charges with an incorrect ZIP or postal code",
		},
		"configuration.merchant.card_payments.decline_on.cvc_failure": {
			Type:             "boolean",
			ShortDescription: "Whether Stripe automatically declines charges with an incorrect CVC",
		},
		"configuration.merchant.konbini_payments.support.email": {
			Type:             "string",
			ShortDescription: "Support email address for Konbini payments",
		},
		"configuration.merchant.konbini_payments.support.hours.end_time": {
			Type:             "string",
			ShortDescription: "Support hours end time (JST time of day) for in `HH:MM` format",
		},
		"configuration.merchant.konbini_payments.support.hours.start_time": {
			Type:             "string",
			ShortDescription: "Support hours start time (JST time of day) for in `HH:MM` format",
		},
		"configuration.merchant.konbini_payments.support.phone": {
			Type:             "string",
			ShortDescription: "Support phone number for Konbini payments",
		},
		"configuration.merchant.mcc": {
			Type:             "string",
			ShortDescription: "The Merchant Category Code (MCC) for the merchant",
		},
		"configuration.merchant.script_statement_descriptor.kana.descriptor": {
			Type:             "string",
			ShortDescription: "The default text that appears on statements for non-card charges outside of Japan",
		},
		"configuration.merchant.script_statement_descriptor.kana.prefix": {
			Type:             "string",
			ShortDescription: "Default text that appears on statements for card charges outside of Japan, prefixing any dynamic statement_descriptor_suffix specified on the charge",
		},
		"configuration.merchant.script_statement_descriptor.kanji.descriptor": {
			Type:             "string",
			ShortDescription: "The default text that appears on statements for non-card charges outside of Japan",
		},
		"configuration.merchant.script_statement_descriptor.kanji.prefix": {
			Type:             "string",
			ShortDescription: "Default text that appears on statements for card charges outside of Japan, prefixing any dynamic statement_descriptor_suffix specified on the charge",
		},
		"configuration.merchant.smart_disputes.auto_respond.preference": {
			Type:             "string",
			ShortDescription: "The preference for automatic dispute responses",
			Enum: []resource.EnumSpec{
				{Value: "inherit"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"configuration.merchant.statement_descriptor.descriptor": {
			Type:             "string",
			ShortDescription: "The default text that appears on statements for non-card charges outside of Japan",
		},
		"configuration.merchant.statement_descriptor.prefix": {
			Type:             "string",
			ShortDescription: "Default text that appears on statements for card charges outside of Japan, prefixing any dynamic statement_descriptor_suffix specified on the charge",
		},
		"configuration.merchant.support.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"configuration.merchant.support.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"configuration.merchant.support.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"configuration.merchant.support.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"configuration.merchant.support.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"configuration.merchant.support.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"configuration.merchant.support.address.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"configuration.merchant.support.email": {
			Type:             "string",
			ShortDescription: "A publicly available email address for sending support issues to",
		},
		"configuration.merchant.support.phone": {
			Type:             "string",
			ShortDescription: "A publicly available phone number to call with support issues",
		},
		"configuration.merchant.support.url": {
			Type:             "string",
			ShortDescription: "A publicly available website for handling support issues",
		},
		"configuration.recipient.applied": {
			Type:             "boolean",
			ShortDescription: "Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration",
		},
		"configuration.recipient.capabilities.bank_accounts.local.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.recipient.capabilities.bank_accounts.wire.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.recipient.capabilities.cards.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.recipient.capabilities.stripe_balance.stripe_transfers.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.recipient.default_outbound_destination": {
			Type:             "string",
			ShortDescription: "The payout method id to be used as a default outbound destination",
		},
		"configuration.storer.applied": {
			Type:             "boolean",
			ShortDescription: "Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration",
		},
		"configuration.storer.capabilities.financial_addresses.bank_accounts.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.storer.capabilities.holds_currencies.eur.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.storer.capabilities.holds_currencies.gbp.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.storer.capabilities.holds_currencies.usd.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.storer.capabilities.inbound_transfers.bank_accounts.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.storer.capabilities.outbound_payments.bank_accounts.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.storer.capabilities.outbound_payments.cards.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.storer.capabilities.outbound_payments.financial_accounts.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.storer.capabilities.outbound_transfers.bank_accounts.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"configuration.storer.capabilities.outbound_transfers.financial_accounts.requested": {
			Type:             "boolean",
			ShortDescription: "To request a new Capability for an account, pass true",
		},
		"contact_email": {
			Type:             "string",
			ShortDescription: "The default contact email address for the Account",
		},
		"contact_phone": {
			Type:             "string",
			ShortDescription: "The default contact phone for the Account",
		},
		"dashboard": {
			Type:             "string",
			ShortDescription: "A value indicating the Stripe dashboard this Account has access to",
			Enum: []resource.EnumSpec{
				{Value: "express"},
				{Value: "full"},
				{Value: "none"},
			},
		},
		"defaults.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
		},
		"defaults.locales": {
			Type:             "array",
			ShortDescription: "The Account's preferred locales (languages), ordered by preference",
		},
		"defaults.profile.business_url": {
			Type:             "string",
			ShortDescription: "The business's publicly-available website",
		},
		"defaults.profile.doing_business_as": {
			Type:             "string",
			ShortDescription: "The name which is used by the business",
		},
		"defaults.profile.product_description": {
			Type:             "string",
			ShortDescription: "Internal-only description of the product sold or service provided by the business",
		},
		"defaults.responsibilities.fees_collector": {
			Type:             "string",
			ShortDescription: "A value indicating the party responsible for collecting fees from this account",
			Enum: []resource.EnumSpec{
				{Value: "application"},
				{Value: "application_custom"},
				{Value: "application_express"},
				{Value: "stripe"},
			},
		},
		"defaults.responsibilities.losses_collector": {
			Type:             "string",
			ShortDescription: "A value indicating who is responsible for losses when this Account can’t pay back negative balances from payments",
			Enum: []resource.EnumSpec{
				{Value: "application"},
				{Value: "stripe"},
			},
		},
		"defaults.timezone": {
			Type:             "string",
			ShortDescription: "The Account's local timezone",
		},
		"display_name": {
			Type:             "string",
			ShortDescription: "A descriptive name for the Account",
		},
		"identity.attestations.directorship_declaration.date": {
			Type:             "string",
			ShortDescription: "The time marking when the director attestation was made",
			Format:           "date-time",
		},
		"identity.attestations.directorship_declaration.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the director attestation was made",
		},
		"identity.attestations.directorship_declaration.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the director attestation was made",
		},
		"identity.attestations.ownership_declaration.date": {
			Type:             "string",
			ShortDescription: "The time marking when the beneficial owner attestation was made",
			Format:           "date-time",
		},
		"identity.attestations.ownership_declaration.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the beneficial owner attestation was made",
		},
		"identity.attestations.ownership_declaration.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the beneficial owner attestation was made",
		},
		"identity.attestations.persons_provided.directors": {
			Type:             "boolean",
			ShortDescription: "Whether the company’s directors have been provided",
		},
		"identity.attestations.persons_provided.executives": {
			Type:             "boolean",
			ShortDescription: "Whether the company’s executives have been provided",
		},
		"identity.attestations.persons_provided.owners": {
			Type:             "boolean",
			ShortDescription: "Whether the company’s owners have been provided",
		},
		"identity.attestations.persons_provided.ownership_exemption_reason": {
			Type:             "string",
			ShortDescription: "Reason for why the company is exempt from providing ownership information",
			Enum: []resource.EnumSpec{
				{Value: "qualified_entity_exceeds_ownership_threshold"},
				{Value: "qualifies_as_financial_institution"},
			},
		},
		"identity.attestations.representative_declaration.date": {
			Type:             "string",
			ShortDescription: "The time marking when the representative attestation was made",
			Format:           "date-time",
		},
		"identity.attestations.representative_declaration.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the representative attestation was made",
		},
		"identity.attestations.representative_declaration.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the representative attestation was made",
		},
		"identity.attestations.terms_of_service.account.date": {
			Type:             "string",
			ShortDescription: "The time when the Account's representative accepted the terms of service",
			Format:           "date-time",
		},
		"identity.attestations.terms_of_service.account.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the Account's representative accepted the terms of service",
		},
		"identity.attestations.terms_of_service.account.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the Account's representative accepted the terms of service",
		},
		"identity.attestations.terms_of_service.crypto_storer.date": {
			Type:             "string",
			ShortDescription: "The time when the Account's representative accepted the terms of service",
			Format:           "date-time",
		},
		"identity.attestations.terms_of_service.crypto_storer.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the Account's representative accepted the terms of service",
		},
		"identity.attestations.terms_of_service.crypto_storer.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the Account's representative accepted the terms of service",
		},
		"identity.attestations.terms_of_service.storer.date": {
			Type:             "string",
			ShortDescription: "The time when the Account's representative accepted the terms of service",
			Format:           "date-time",
		},
		"identity.attestations.terms_of_service.storer.ip": {
			Type:             "string",
			ShortDescription: "The IP address from which the Account's representative accepted the terms of service",
		},
		"identity.attestations.terms_of_service.storer.user_agent": {
			Type:             "string",
			ShortDescription: "The user agent of the browser from which the Account's representative accepted the terms of service",
		},
		"identity.business_details.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"identity.business_details.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"identity.business_details.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"identity.business_details.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"identity.business_details.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"identity.business_details.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"identity.business_details.address.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"identity.business_details.annual_revenue.amount.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
		},
		"identity.business_details.annual_revenue.amount.value": {
			Type:             "integer",
			ShortDescription: "A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units)",
		},
		"identity.business_details.annual_revenue.fiscal_year_end": {
			Type:             "string",
			ShortDescription: "The close-out date of the preceding fiscal year in ISO 8601 format",
		},
		"identity.business_details.documents.bank_account_ownership_verification.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.bank_account_ownership_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_license.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.company_license.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_memorandum_of_association.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.company_memorandum_of_association.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_ministerial_decree.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.company_ministerial_decree.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_registration_verification.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.company_registration_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_tax_id_verification.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.company_tax_id_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.primary_verification.front_back.back": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document",
		},
		"identity.business_details.documents.primary_verification.front_back.front": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document",
		},
		"identity.business_details.documents.primary_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the verification document",
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"identity.business_details.documents.proof_of_address.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.proof_of_address.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.proof_of_registration.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.proof_of_registration.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.proof_of_ultimate_beneficial_ownership.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.business_details.documents.proof_of_ultimate_beneficial_ownership.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.estimated_worker_count": {
			Type:             "integer",
			ShortDescription: "Estimated maximum number of workers currently engaged by the business (including employees, contractors, and vendors)",
		},
		"identity.business_details.monthly_estimated_revenue.amount.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
		},
		"identity.business_details.monthly_estimated_revenue.amount.value": {
			Type:             "integer",
			ShortDescription: "A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units)",
		},
		"identity.business_details.phone": {
			Type:             "string",
			ShortDescription: "The phone number of the Business Entity",
		},
		"identity.business_details.registered_name": {
			Type:             "string",
			ShortDescription: "The business legal name",
		},
		"identity.business_details.registration_date.day": {
			Type:             "integer",
			ShortDescription: "The day of registration, between 1 and 31",
		},
		"identity.business_details.registration_date.month": {
			Type:             "integer",
			ShortDescription: "The month of registration, between 1 and 12",
		},
		"identity.business_details.registration_date.year": {
			Type:             "integer",
			ShortDescription: "The four-digit year of registration",
		},
		"identity.business_details.script_addresses.kana.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"identity.business_details.script_addresses.kana.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"identity.business_details.script_addresses.kana.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"identity.business_details.script_addresses.kana.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"identity.business_details.script_addresses.kana.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"identity.business_details.script_addresses.kana.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"identity.business_details.script_addresses.kana.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"identity.business_details.script_addresses.kanji.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"identity.business_details.script_addresses.kanji.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"identity.business_details.script_addresses.kanji.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"identity.business_details.script_addresses.kanji.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"identity.business_details.script_addresses.kanji.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"identity.business_details.script_addresses.kanji.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"identity.business_details.script_addresses.kanji.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"identity.business_details.script_names.kana.registered_name": {
			Type:             "string",
			ShortDescription: "Registered name of the business",
		},
		"identity.business_details.script_names.kanji.registered_name": {
			Type:             "string",
			ShortDescription: "Registered name of the business",
		},
		"identity.business_details.structure": {
			Type:             "string",
			ShortDescription: "The category identifying the legal structure of the business",
			Enum: []resource.EnumSpec{
				{Value: "cooperative"},
				{Value: "free_zone_establishment"},
				{Value: "free_zone_llc"},
				{Value: "governmental_unit"},
				{Value: "government_instrumentality"},
				{Value: "incorporated_association"},
				{Value: "incorporated_non_profit"},
				{Value: "incorporated_partnership"},
				{Value: "limited_liability_partnership"},
				{Value: "llc"},
				{Value: "multi_member_llc"},
				{Value: "private_company"},
				{Value: "private_corporation"},
				{Value: "private_partnership"},
				{Value: "public_company"},
				{Value: "public_corporation"},
				{Value: "public_listed_corporation"},
				{Value: "public_partnership"},
				{Value: "registered_charity"},
				{Value: "single_member_llc"},
				{Value: "sole_establishment"},
				{Value: "sole_proprietorship"},
				{Value: "tax_exempt_government_instrumentality"},
				{Value: "trust"},
				{Value: "unincorporated_association"},
				{Value: "unincorporated_non_profit"},
				{Value: "unincorporated_partnership"},
			},
		},
		"identity.country": {
			Type:             "string",
			ShortDescription: "The country in which the account holder resides, or in which the business is legally established",
		},
		"identity.entity_type": {
			Type:             "string",
			ShortDescription: "The entity type",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "government_entity"},
				{Value: "individual"},
				{Value: "non_profit"},
			},
		},
		"identity.individual.address.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"identity.individual.address.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"identity.individual.address.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"identity.individual.address.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"identity.individual.address.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"identity.individual.address.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"identity.individual.address.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"identity.individual.date_of_birth.day": {
			Type:             "integer",
			ShortDescription: "The day of the birth",
		},
		"identity.individual.date_of_birth.month": {
			Type:             "integer",
			ShortDescription: "The month of birth",
		},
		"identity.individual.date_of_birth.year": {
			Type:             "integer",
			ShortDescription: "The year of birth",
		},
		"identity.individual.documents.company_authorization.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.individual.documents.company_authorization.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.individual.documents.passport.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.individual.documents.passport.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.individual.documents.primary_verification.front_back.back": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document",
		},
		"identity.individual.documents.primary_verification.front_back.front": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document",
		},
		"identity.individual.documents.primary_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the verification document",
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"identity.individual.documents.secondary_verification.front_back.back": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document",
		},
		"identity.individual.documents.secondary_verification.front_back.front": {
			Type:             "string",
			ShortDescription: "A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document",
		},
		"identity.individual.documents.secondary_verification.type": {
			Type:             "string",
			ShortDescription: "The format of the verification document",
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"identity.individual.documents.visa.files": {
			Type:             "array",
			ShortDescription: "One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`",
		},
		"identity.individual.documents.visa.type": {
			Type:             "string",
			ShortDescription: "The format of the document",
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.individual.email": {
			Type:             "string",
			ShortDescription: "The individual's email address",
		},
		"identity.individual.given_name": {
			Type:             "string",
			ShortDescription: "The individual's first name",
		},
		"identity.individual.legal_gender": {
			Type:             "string",
			ShortDescription: "The individual's gender (International regulations require either \"male\" or \"female\")",
			Enum: []resource.EnumSpec{
				{Value: "female"},
				{Value: "male"},
			},
		},
		"identity.individual.nationalities": {
			Type:             "array",
			ShortDescription: "The countries where the individual is a national",
		},
		"identity.individual.phone": {
			Type:             "string",
			ShortDescription: "The individual's phone number",
		},
		"identity.individual.political_exposure": {
			Type:             "string",
			ShortDescription: "The individual's political exposure",
			Enum: []resource.EnumSpec{
				{Value: "existing"},
				{Value: "none"},
			},
		},
		"identity.individual.relationship.director": {
			Type:             "boolean",
			ShortDescription: "Whether the person is a director of the account's identity",
		},
		"identity.individual.relationship.executive": {
			Type:             "boolean",
			ShortDescription: "Whether the person has significant responsibility to control, manage, or direct the organization",
		},
		"identity.individual.relationship.owner": {
			Type:             "boolean",
			ShortDescription: "Whether the person is an owner of the account’s identity",
		},
		"identity.individual.relationship.percent_ownership": {
			Type:             "string",
			ShortDescription: "The percent owned by the person of the account's legal entity",
			Format:           "decimal",
		},
		"identity.individual.relationship.title": {
			Type:             "string",
			ShortDescription: "The person's title (e.g., CEO, Support Engineer)",
		},
		"identity.individual.script_addresses.kana.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"identity.individual.script_addresses.kana.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"identity.individual.script_addresses.kana.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"identity.individual.script_addresses.kana.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"identity.individual.script_addresses.kana.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"identity.individual.script_addresses.kana.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"identity.individual.script_addresses.kana.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"identity.individual.script_addresses.kanji.city": {
			Type:             "string",
			ShortDescription: "City, district, suburb, town, or village",
		},
		"identity.individual.script_addresses.kanji.country": {
			Type:             "string",
			ShortDescription: "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))",
		},
		"identity.individual.script_addresses.kanji.line1": {
			Type:             "string",
			ShortDescription: "Address line 1 (e.g., street, PO Box, or company name)",
		},
		"identity.individual.script_addresses.kanji.line2": {
			Type:             "string",
			ShortDescription: "Address line 2 (e.g., apartment, suite, unit, or building)",
		},
		"identity.individual.script_addresses.kanji.postal_code": {
			Type:             "string",
			ShortDescription: "ZIP or postal code",
		},
		"identity.individual.script_addresses.kanji.state": {
			Type:             "string",
			ShortDescription: "State, county, province, or region",
		},
		"identity.individual.script_addresses.kanji.town": {
			Type:             "string",
			ShortDescription: "Town or district",
		},
		"identity.individual.script_names.kana.given_name": {
			Type:             "string",
			ShortDescription: "The person's first or given name",
		},
		"identity.individual.script_names.kana.surname": {
			Type:             "string",
			ShortDescription: "The person's last or family name",
		},
		"identity.individual.script_names.kanji.given_name": {
			Type:             "string",
			ShortDescription: "The person's first or given name",
		},
		"identity.individual.script_names.kanji.surname": {
			Type:             "string",
			ShortDescription: "The person's last or family name",
		},
		"identity.individual.surname": {
			Type:             "string",
			ShortDescription: "The individual's last name",
		},
		"include": {
			Type:             "array",
			ShortDescription: "Additional fields to include in the response",
		},
	},
}
View Source
var V2PreviewCoreBatchJobsCancel = resource.OperationSpec{
	Name:      "cancel",
	Path:      "/v2/core/batch_jobs/{id}/cancel",
	Method:    "POST",
	IsPreview: true,
}
View Source
var V2PreviewCoreBatchJobsCreate = resource.OperationSpec{
	Name:      "create",
	Path:      "/v2/core/batch_jobs",
	Method:    "POST",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"endpoint.http_method": {
			Type:             "string",
			ShortDescription: "The HTTP method to use when calling the endpoint",
			Required:         true,
			Enum: []resource.EnumSpec{
				{Value: "post"},
			},
		},
		"endpoint.path": {
			Type:             "string",
			ShortDescription: "The path of the endpoint to run this batch job against",
			Required:         true,
		},
		"maximum_rps": {
			Type:             "integer",
			ShortDescription: "Optional field that allows the user to control how fast they want this batch job to run",
		},
		"notification_suppression.scope": {
			Type:             "string",
			ShortDescription: "The scope of notification suppression",
			Enum: []resource.EnumSpec{
				{Value: "all"},
				{Value: "none"},
			},
		},
		"skip_validation": {
			Type:             "boolean",
			ShortDescription: "Allows the user to skip validation",
			Required:         true,
		},
	},
}
View Source
var V2PreviewCoreBatchJobsRetrieve = resource.OperationSpec{
	Name:      "retrieve",
	Path:      "/v2/core/batch_jobs/{id}",
	Method:    "GET",
	IsPreview: true,
}
View Source
var V2PreviewCoreEventDestinationsCreate = resource.OperationSpec{
	Name:      "create",
	Path:      "/v2/core/event_destinations",
	Method:    "POST",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"amazon_eventbridge.aws_account_id": {
			Type:             "string",
			ShortDescription: "The AWS account ID",
		},
		"amazon_eventbridge.aws_region": {
			Type:             "string",
			ShortDescription: "The region of the AWS event source",
		},
		"description": {
			Type:             "string",
			ShortDescription: "An optional description of what the event destination is used for",
		},
		"enabled_events": {
			Type:             "array",
			ShortDescription: "The list of events to enable for this endpoint",
			Required:         true,
		},
		"event_payload": {
			Type:             "string",
			ShortDescription: "Payload type of events being subscribed to",
			Required:         true,
			Enum: []resource.EnumSpec{
				{Value: "snapshot"},
				{Value: "thin"},
			},
		},
		"events_from": {
			Type:             "array",
			ShortDescription: "Specifies which accounts' events route to this destination",
		},
		"include": {
			Type:             "array",
			ShortDescription: "Additional fields to include in the response",
		},
		"name": {
			Type:             "string",
			ShortDescription: "Event destination name",
			Required:         true,
		},
		"snapshot_api_version": {
			Type:             "string",
			ShortDescription: "If using the snapshot event payload, the API version events are rendered as",
		},
		"type": {
			Type:             "string",
			ShortDescription: "Event destination type",
			Required:         true,
			Enum: []resource.EnumSpec{
				{Value: "amazon_eventbridge"},
				{Value: "azure_event_grid"},
				{Value: "webhook_endpoint"},
			},
		},
		"webhook_endpoint.url": {
			Type:             "string",
			ShortDescription: "The URL of the webhook endpoint",
		},
	},
}
View Source
var V2PreviewCoreEventDestinationsDelete = resource.OperationSpec{
	Name:      "delete",
	Path:      "/v2/core/event_destinations/{id}",
	Method:    "DELETE",
	IsPreview: true,
}
View Source
var V2PreviewCoreEventDestinationsDisable = resource.OperationSpec{
	Name:      "disable",
	Path:      "/v2/core/event_destinations/{id}/disable",
	Method:    "POST",
	IsPreview: true,
}
View Source
var V2PreviewCoreEventDestinationsEnable = resource.OperationSpec{
	Name:      "enable",
	Path:      "/v2/core/event_destinations/{id}/enable",
	Method:    "POST",
	IsPreview: true,
}
View Source
var V2PreviewCoreEventDestinationsList = resource.OperationSpec{
	Name:      "list",
	Path:      "/v2/core/event_destinations",
	Method:    "GET",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"include": {
			Type:             "array",
			ShortDescription: "Additional fields to include in the response",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "The page size",
		},
		"page": {
			Type:             "string",
			ShortDescription: "The requested page",
		},
	},
}
View Source
var V2PreviewCoreEventDestinationsPing = resource.OperationSpec{
	Name:      "ping",
	Path:      "/v2/core/event_destinations/{id}/ping",
	Method:    "POST",
	IsPreview: true,
}
View Source
var V2PreviewCoreEventDestinationsRetrieve = resource.OperationSpec{
	Name:      "retrieve",
	Path:      "/v2/core/event_destinations/{id}",
	Method:    "GET",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"include": {
			Type:             "array",
			ShortDescription: "Additional fields to include in the response",
		},
	},
}
View Source
var V2PreviewCoreEventDestinationsUpdate = resource.OperationSpec{
	Name:      "update",
	Path:      "/v2/core/event_destinations/{id}",
	Method:    "POST",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"description": {
			Type:             "string",
			ShortDescription: "An optional description of what the event destination is used for",
		},
		"enabled_events": {
			Type:             "array",
			ShortDescription: "The list of events to enable for this endpoint",
		},
		"include": {
			Type:             "array",
			ShortDescription: "Additional fields to include in the response",
		},
		"name": {
			Type:             "string",
			ShortDescription: "Event destination name",
		},
		"webhook_endpoint.url": {
			Type:             "string",
			ShortDescription: "The URL of the webhook endpoint",
		},
	},
}
View Source
var V2PreviewCoreEventsList = resource.OperationSpec{
	Name:      "list",
	Path:      "/v2/core/events",
	Method:    "GET",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"limit": {
			Type:             "integer",
			ShortDescription: "The page size",
		},
		"object_id": {
			Type:             "string",
			ShortDescription: "Primary object ID used to retrieve related events",
		},
		"page": {
			Type:             "string",
			ShortDescription: "The requested page",
		},
		"types": {
			Type:             "array",
			ShortDescription: "An array of up to 20 strings containing specific event names",
		},
	},
}
View Source
var V2PreviewCoreEventsRetrieve = resource.OperationSpec{
	Name:      "retrieve",
	Path:      "/v2/core/events/{id}",
	Method:    "GET",
	IsPreview: true,
}
View Source
var V2PreviewCoreVaultsGbBankAccountsAcknowledgeConfirmationOfPayee = resource.OperationSpec{
	Name:      "acknowledge_confirmation_of_payee",
	Path:      "/v2/core/vault/gb_bank_accounts/{id}/acknowledge_confirmation_of_payee",
	Method:    "POST",
	IsPreview: true,
}
View Source
var V2PreviewCoreVaultsGbBankAccountsArchive = resource.OperationSpec{
	Name:      "archive",
	Path:      "/v2/core/vault/gb_bank_accounts/{id}/archive",
	Method:    "POST",
	IsPreview: true,
}
View Source
var V2PreviewCoreVaultsGbBankAccountsCreate = resource.OperationSpec{
	Name:      "create",
	Path:      "/v2/core/vault/gb_bank_accounts",
	Method:    "POST",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"account_number": {
			Type:             "string",
			ShortDescription: "The Account Number of the bank account",
		},
		"bank_account_type": {
			Type:             "string",
			ShortDescription: "Closed Enum",
			Enum: []resource.EnumSpec{
				{Value: "checking"},
				{Value: "savings"},
			},
		},
		"confirmation_of_payee.business_type": {
			Type:             "string",
			ShortDescription: "The business type to be checked against",
			Enum: []resource.EnumSpec{
				{Value: "business"},
				{Value: "personal"},
			},
		},
		"confirmation_of_payee.initiate": {
			Type:             "boolean",
			ShortDescription: "User specifies whether Confirmation of Payee is automatically initiated when creating the bank account",
		},
		"confirmation_of_payee.name": {
			Type:             "string",
			ShortDescription: "The name to be checked against",
		},
		"currency": {
			Type:             "string",
			ShortDescription: "The currency of the bank account",
			Required:         true,
		},
		"iban": {
			Type:             "string",
			ShortDescription: "The IBAN of the bank account",
		},
		"sort_code": {
			Type:             "string",
			ShortDescription: "The Sort Code of the bank account",
		},
	},
}
View Source
var V2PreviewCoreVaultsGbBankAccountsInitiateConfirmationOfPayee = resource.OperationSpec{
	Name:      "initiate_confirmation_of_payee",
	Path:      "/v2/core/vault/gb_bank_accounts/{id}/initiate_confirmation_of_payee",
	Method:    "POST",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"business_type": {
			Type:             "string",
			ShortDescription: "The business type to be checked against",
			Enum: []resource.EnumSpec{
				{Value: "business"},
				{Value: "personal"},
			},
		},
		"name": {
			Type:             "string",
			ShortDescription: "The name of the user to be checked against",
		},
	},
}
View Source
var V2PreviewCoreVaultsGbBankAccountsList = resource.OperationSpec{
	Name:      "list",
	Path:      "/v2/core/vault/gb_bank_accounts",
	Method:    "GET",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"limit": {
			Type:             "integer",
			ShortDescription: "Optionally set the maximum number of results per page",
		},
		"page": {
			Type:             "string",
			ShortDescription: "The pagination token",
		},
	},
}
View Source
var V2PreviewCoreVaultsGbBankAccountsRetrieve = resource.OperationSpec{
	Name:      "retrieve",
	Path:      "/v2/core/vault/gb_bank_accounts/{id}",
	Method:    "GET",
	IsPreview: true,
}
View Source
var V2PreviewCoreVaultsUsBankAccountsArchive = resource.OperationSpec{
	Name:      "archive",
	Path:      "/v2/core/vault/us_bank_accounts/{id}/archive",
	Method:    "POST",
	IsPreview: true,
}
View Source
var V2PreviewCoreVaultsUsBankAccountsConfirmMicrodeposits = resource.OperationSpec{
	Name:      "confirm_microdeposits",
	Path:      "/v2/core/vault/us_bank_accounts/{id}/confirm_microdeposits",
	Method:    "POST",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"amounts": {
			Type:             "array",
			ShortDescription: "Two amounts received through Send Microdeposits must match the input to Confirm Microdeposits to verify US Bank Account",
		},
		"descriptor_code": {
			Type:             "string",
			ShortDescription: "Descriptor code received through Send Microdeposits must match the input to Confirm Microdeposits to verify US Bank Account",
		},
	},
}
View Source
var V2PreviewCoreVaultsUsBankAccountsCreate = resource.OperationSpec{
	Name:      "create",
	Path:      "/v2/core/vault/us_bank_accounts",
	Method:    "POST",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"account_number": {
			Type:             "string",
			ShortDescription: "The account number of the bank account",
			Required:         true,
		},
		"bank_account_type": {
			Type:             "string",
			ShortDescription: "Closed Enum",
			Enum: []resource.EnumSpec{
				{Value: "checking"},
				{Value: "savings"},
			},
		},
		"currency": {
			Type:             "string",
			ShortDescription: "The currency of the bank account",
			Required:         true,
		},
		"fedwire_routing_number": {
			Type:             "string",
			ShortDescription: "The fedwire routing number of the bank account",
		},
		"routing_number": {
			Type:             "string",
			ShortDescription: "The ACH routing number of the bank account",
		},
	},
}
View Source
var V2PreviewCoreVaultsUsBankAccountsList = resource.OperationSpec{
	Name:      "list",
	Path:      "/v2/core/vault/us_bank_accounts",
	Method:    "GET",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"limit": {
			Type:             "integer",
			ShortDescription: "Optionally set the maximum number of results per page",
		},
		"page": {
			Type:             "string",
			ShortDescription: "The pagination token",
		},
		"verification_status": {
			Type:             "string",
			ShortDescription: "Optionally filter by verification status",
		},
	},
}
View Source
var V2PreviewCoreVaultsUsBankAccountsRetrieve = resource.OperationSpec{
	Name:      "retrieve",
	Path:      "/v2/core/vault/us_bank_accounts/{id}",
	Method:    "GET",
	IsPreview: true,
}
View Source
var V2PreviewCoreVaultsUsBankAccountsSendMicrodeposits = resource.OperationSpec{
	Name:      "send_microdeposits",
	Path:      "/v2/core/vault/us_bank_accounts/{id}/send_microdeposits",
	Method:    "POST",
	IsPreview: true,
}
View Source
var V2PreviewCoreVaultsUsBankAccountsUpdate = resource.OperationSpec{
	Name:      "update",
	Path:      "/v2/core/vault/us_bank_accounts/{id}",
	Method:    "POST",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"fedwire_routing_number": {
			Type:             "string",
			ShortDescription: "The bank account's Fedwire routing number can be provided for update if it was empty previously",
		},
		"routing_number": {
			Type:             "string",
			ShortDescription: "The bank account's ACH routing number can be provided for update if it was empty previously",
		},
	},
}
View Source
var V2PreviewFinancialAddressCreditSimulationsTestHelpersCredit = resource.OperationSpec{
	Name:      "credit",
	Path:      "/v2/test_helpers/financial_addresses/{id}/credit",
	Method:    "POST",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"amount.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Required:         true,
		},
		"amount.value": {
			Type:             "integer",
			ShortDescription: "A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units)",
			Required:         true,
		},
		"network": {
			Type:             "string",
			ShortDescription: "Open Enum",
			Required:         true,
			Enum: []resource.EnumSpec{
				{Value: "ach"},
				{Value: "fps"},
				{Value: "rtp"},
				{Value: "wire"},
			},
		},
		"statement_descriptor": {
			Type:             "string",
			ShortDescription: "String explaining funds flow",
		},
	},
}
View Source
var V2PreviewFinancialAddressGeneratedMicrodepositssTestHelpersGenerateMicrodeposits = resource.OperationSpec{
	Name:      "generate_microdeposits",
	Path:      "/v2/test_helpers/financial_addresses/{id}/generate_microdeposits",
	Method:    "POST",
	IsPreview: true,
}
View Source
var V2PreviewMoneyManagementAdjustmentsList = resource.OperationSpec{
	Name:      "list",
	Path:      "/v2/money_management/adjustments",
	Method:    "GET",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"adjusted_flow": {
			Type:             "string",
			ShortDescription: "Filter for Adjustments linked to a Flow",
		},
		"created": {
			Type:             "string",
			ShortDescription: "Filter for objects created at the specified timestamp",
			Format:           "date-time",
		},
		"created_gt": {
			Type:             "string",
			ShortDescription: "Filter for objects created after the specified timestamp",
			Format:           "date-time",
		},
		"created_gte": {
			Type:             "string",
			ShortDescription: "Filter for objects created on or after the specified timestamp",
			Format:           "date-time",
		},
		"created_lt": {
			Type:             "string",
			ShortDescription: "Filter for objects created before the specified timestamp",
			Format:           "date-time",
		},
		"created_lte": {
			Type:             "string",
			ShortDescription: "Filter for objects created on or before the specified timestamp",
			Format:           "date-time",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "The page limit",
		},
		"page": {
			Type:             "string",
			ShortDescription: "The page token",
		},
	},
}
View Source
var V2PreviewMoneyManagementAdjustmentsRetrieve = resource.OperationSpec{
	Name:      "retrieve",
	Path:      "/v2/money_management/adjustments/{id}",
	Method:    "GET",
	IsPreview: true,
}
View Source
var V2PreviewMoneyManagementFinancialAccountsClose = resource.OperationSpec{
	Name:      "close",
	Path:      "/v2/money_management/financial_accounts/{id}/close",
	Method:    "POST",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"forwarding_settings.payment_method": {
			Type:             "string",
			ShortDescription: "The address to send forwarded payments to",
		},
		"forwarding_settings.payout_method": {
			Type:             "string",
			ShortDescription: "The address to send forwarded payouts to",
		},
	},
}
View Source
var V2PreviewMoneyManagementFinancialAccountsCreate = resource.OperationSpec{
	Name:      "create",
	Path:      "/v2/money_management/financial_accounts",
	Method:    "POST",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"display_name": {
			Type:             "string",
			ShortDescription: "A descriptive name for the FinancialAccount, up to 50 characters long",
		},
		"storage.holds_currencies": {
			Type:             "array",
			ShortDescription: "The currencies that this FinancialAccount can hold",
		},
		"type": {
			Type:             "string",
			ShortDescription: "The type of FinancialAccount to create",
			Required:         true,
			Enum: []resource.EnumSpec{
				{Value: "storage"},
			},
		},
	},
}
View Source
var V2PreviewMoneyManagementFinancialAccountsList = resource.OperationSpec{
	Name:      "list",
	Path:      "/v2/money_management/financial_accounts",
	Method:    "GET",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"limit": {
			Type:             "integer",
			ShortDescription: "The page limit",
		},
		"page": {
			Type:             "string",
			ShortDescription: "The page token",
		},
		"status": {
			Type:             "string",
			ShortDescription: "The status of the FinancialAccount to filter by",
			Enum: []resource.EnumSpec{
				{Value: "closed"},
				{Value: "open"},
				{Value: "pending"},
			},
		},
	},
}
View Source
var V2PreviewMoneyManagementFinancialAccountsRetrieve = resource.OperationSpec{
	Name:      "retrieve",
	Path:      "/v2/money_management/financial_accounts/{id}",
	Method:    "GET",
	IsPreview: true,
}
View Source
var V2PreviewMoneyManagementFinancialAccountsUpdate = resource.OperationSpec{
	Name:      "update",
	Path:      "/v2/money_management/financial_accounts/{id}",
	Method:    "POST",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"display_name": {
			Type:             "string",
			ShortDescription: "A descriptive name for the FinancialAccount, up to 50 characters long",
		},
	},
}
View Source
var V2PreviewMoneyManagementFinancialAddresssCreate = resource.OperationSpec{
	Name:      "create",
	Path:      "/v2/money_management/financial_addresses",
	Method:    "POST",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"financial_account": {
			Type:             "string",
			ShortDescription: "The ID of the FinancialAccount the new FinancialAddress should be associated with",
			Required:         true,
		},
		"type": {
			Type:             "string",
			ShortDescription: "The type of FinancialAddress details to provision",
			Required:         true,
			Enum: []resource.EnumSpec{
				{Value: "gb_bank_account"},
				{Value: "us_bank_account"},
			},
		},
	},
}
View Source
var V2PreviewMoneyManagementFinancialAddresssList = resource.OperationSpec{
	Name:      "list",
	Path:      "/v2/money_management/financial_addresses",
	Method:    "GET",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"financial_account": {
			Type:             "string",
			ShortDescription: "The ID of the FinancialAccount for which FinancialAddresses are to be returned",
		},
		"include": {
			Type:             "array",
			ShortDescription: "Open Enum",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "The page limit",
		},
		"page": {
			Type:             "string",
			ShortDescription: "The page token",
		},
	},
}
View Source
var V2PreviewMoneyManagementFinancialAddresssRetrieve = resource.OperationSpec{
	Name:      "retrieve",
	Path:      "/v2/money_management/financial_addresses/{id}",
	Method:    "GET",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"include": {
			Type:             "array",
			ShortDescription: "Open Enum",
		},
	},
}
View Source
var V2PreviewMoneyManagementInboundTransfersCreate = resource.OperationSpec{
	Name:      "create",
	Path:      "/v2/money_management/inbound_transfers",
	Method:    "POST",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"amount.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Required:         true,
		},
		"amount.value": {
			Type:             "integer",
			ShortDescription: "A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units)",
			Required:         true,
		},
		"description": {
			Type:             "string",
			ShortDescription: "An optional, freeform description field intended to store metadata",
		},
		"from.currency": {
			Type:             "string",
			ShortDescription: "An optional currency field used to specify which currency is debited from the Payment Method",
		},
		"from.payment_method": {
			Type:             "string",
			ShortDescription: "ID of the Payment Method using which IBT will be made",
			Required:         true,
		},
		"to.currency": {
			Type:             "string",
			ShortDescription: "The currency in which funds will land in",
			Required:         true,
		},
		"to.financial_account": {
			Type:             "string",
			ShortDescription: "The FinancialAccount that funds will land in",
			Required:         true,
		},
	},
}
View Source
var V2PreviewMoneyManagementInboundTransfersList = resource.OperationSpec{
	Name:      "list",
	Path:      "/v2/money_management/inbound_transfers",
	Method:    "GET",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type:             "string",
			ShortDescription: "Filter for objects created at the specified timestamp",
			Format:           "date-time",
		},
		"created_gt": {
			Type:             "string",
			ShortDescription: "Filter for objects created after the specified timestamp",
			Format:           "date-time",
		},
		"created_gte": {
			Type:             "string",
			ShortDescription: "Filter for objects created on or after the specified timestamp",
			Format:           "date-time",
		},
		"created_lt": {
			Type:             "string",
			ShortDescription: "Filter for objects created before the specified timestamp",
			Format:           "date-time",
		},
		"created_lte": {
			Type:             "string",
			ShortDescription: "Filter for objects created on or before the specified timestamp",
			Format:           "date-time",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "The page limit",
		},
		"page": {
			Type:             "string",
			ShortDescription: "The page token",
		},
	},
}
View Source
var V2PreviewMoneyManagementInboundTransfersRetrieve = resource.OperationSpec{
	Name:      "retrieve",
	Path:      "/v2/money_management/inbound_transfers/{id}",
	Method:    "GET",
	IsPreview: true,
}
View Source
var V2PreviewMoneyManagementOutboundPaymentQuotesCreate = resource.OperationSpec{
	Name:      "create",
	Path:      "/v2/money_management/outbound_payment_quotes",
	Method:    "POST",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"amount.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Required:         true,
		},
		"amount.value": {
			Type:             "integer",
			ShortDescription: "A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units)",
			Required:         true,
		},
		"delivery_options.bank_account": {
			Type:             "string",
			ShortDescription: "Open Enum",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "local"},
				{Value: "wire"},
			},
		},
		"from.currency": {
			Type:             "string",
			ShortDescription: "Describes the FinancialAccount's currency drawn from",
			Required:         true,
		},
		"from.financial_account": {
			Type:             "string",
			ShortDescription: "The FinancialAccount that funds were pulled from",
			Required:         true,
		},
		"to.currency": {
			Type:             "string",
			ShortDescription: "Describes the currency to send to the recipient",
		},
		"to.payout_method": {
			Type:             "string",
			ShortDescription: "The payout method which the OutboundPayment uses to send payout",
		},
		"to.recipient": {
			Type:             "string",
			ShortDescription: "To which account the OutboundPayment is sent",
			Required:         true,
		},
	},
}
View Source
var V2PreviewMoneyManagementOutboundPaymentQuotesRetrieve = resource.OperationSpec{
	Name:      "retrieve",
	Path:      "/v2/money_management/outbound_payment_quotes/{id}",
	Method:    "GET",
	IsPreview: true,
}
View Source
var V2PreviewMoneyManagementOutboundPaymentsCancel = resource.OperationSpec{
	Name:      "cancel",
	Path:      "/v2/money_management/outbound_payments/{id}/cancel",
	Method:    "POST",
	IsPreview: true,
}
View Source
var V2PreviewMoneyManagementOutboundPaymentsCreate = resource.OperationSpec{
	Name:      "create",
	Path:      "/v2/money_management/outbound_payments",
	Method:    "POST",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"amount.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Required:         true,
		},
		"amount.value": {
			Type:             "integer",
			ShortDescription: "A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units)",
			Required:         true,
		},
		"delivery_options.bank_account": {
			Type:             "string",
			ShortDescription: "Open Enum",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "local"},
				{Value: "wire"},
			},
		},
		"description": {
			Type:             "string",
			ShortDescription: "An arbitrary string attached to the OutboundPayment",
		},
		"from.currency": {
			Type:             "string",
			ShortDescription: "Describes the FinancialAmount's currency drawn from",
			Required:         true,
		},
		"from.financial_account": {
			Type:             "string",
			ShortDescription: "The FinancialAccount that funds were pulled from",
			Required:         true,
		},
		"recipient_notification.setting": {
			Type:             "string",
			ShortDescription: "Closed Enum",
			Enum: []resource.EnumSpec{
				{Value: "configured"},
				{Value: "none"},
			},
		},
		"to.currency": {
			Type:             "string",
			ShortDescription: "Describes the currency to send to the recipient",
		},
		"to.payout_method": {
			Type:             "string",
			ShortDescription: "The payout method which the OutboundPayment uses to send payout",
		},
		"to.recipient": {
			Type:             "string",
			ShortDescription: "To which account the OutboundPayment is sent",
			Required:         true,
		},
	},
}
View Source
var V2PreviewMoneyManagementOutboundPaymentsList = resource.OperationSpec{
	Name:      "list",
	Path:      "/v2/money_management/outbound_payments",
	Method:    "GET",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type:             "string",
			ShortDescription: "Filter for objects created at the specified timestamp",
			Format:           "date-time",
		},
		"created_gt": {
			Type:             "string",
			ShortDescription: "Filter for objects created after the specified timestamp",
			Format:           "date-time",
		},
		"created_gte": {
			Type:             "string",
			ShortDescription: "Filter for objects created on or after the specified timestamp",
			Format:           "date-time",
		},
		"created_lt": {
			Type:             "string",
			ShortDescription: "Filter for objects created before the specified timestamp",
			Format:           "date-time",
		},
		"created_lte": {
			Type:             "string",
			ShortDescription: "Filter for objects created on or before the specified timestamp",
			Format:           "date-time",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "The maximum number of results to return",
		},
		"page": {
			Type:             "string",
			ShortDescription: "The page token to use to retrieve the page being requested",
		},
		"recipient": {
			Type:             "string",
			ShortDescription: "Only return OutboundPayments sent to this recipient",
		},
		"status": {
			Type:             "array",
			ShortDescription: "Closed Enum",
		},
	},
}
View Source
var V2PreviewMoneyManagementOutboundPaymentsRetrieve = resource.OperationSpec{
	Name:      "retrieve",
	Path:      "/v2/money_management/outbound_payments/{id}",
	Method:    "GET",
	IsPreview: true,
}
View Source
var V2PreviewMoneyManagementOutboundSetupIntentsCancel = resource.OperationSpec{
	Name:      "cancel",
	Path:      "/v2/money_management/outbound_setup_intents/{id}/cancel",
	Method:    "POST",
	IsPreview: true,
}
View Source
var V2PreviewMoneyManagementOutboundSetupIntentsCreate = resource.OperationSpec{
	Name:      "create",
	Path:      "/v2/money_management/outbound_setup_intents",
	Method:    "POST",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"payout_method": {
			Type:             "string",
			ShortDescription: "If provided, the existing payout method resource to link to this setup intent",
		},
		"payout_method_data.bank_account.account_number": {
			Type:             "string",
			ShortDescription: "The account number or IBAN of the bank account",
		},
		"payout_method_data.bank_account.bank_account_type": {
			Type:             "string",
			ShortDescription: "Closed Enum",
			Enum: []resource.EnumSpec{
				{Value: "checking"},
				{Value: "savings"},
			},
		},
		"payout_method_data.bank_account.branch_number": {
			Type:             "string",
			ShortDescription: "The branch number of the bank account, if present",
		},
		"payout_method_data.bank_account.country": {
			Type:             "string",
			ShortDescription: "The country code of the bank account",
		},
		"payout_method_data.bank_account.currency": {
			Type:             "string",
			ShortDescription: "The currency of the bank account",
		},
		"payout_method_data.bank_account.routing_number": {
			Type:             "string",
			ShortDescription: "The routing number of the bank account, if present",
		},
		"payout_method_data.bank_account.swift_code": {
			Type:             "string",
			ShortDescription: "The swift code of the bank account, if present",
		},
		"payout_method_data.card.currency": {
			Type:             "string",
			ShortDescription: "The currency of the card",
		},
		"payout_method_data.card.exp_month": {
			Type:             "string",
			ShortDescription: "The expiration month of the card",
		},
		"payout_method_data.card.exp_year": {
			Type:             "string",
			ShortDescription: "The expiration year of the card",
		},
		"payout_method_data.card.number": {
			Type:             "string",
			ShortDescription: "The card number",
		},
		"payout_method_data.type": {
			Type:             "string",
			ShortDescription: "Closed Enum",
			Enum: []resource.EnumSpec{
				{Value: "bank_account"},
				{Value: "card"},
				{Value: "crypto_wallet"},
			},
		},
		"usage_intent": {
			Type:             "string",
			ShortDescription: "Specify which type of outbound money movement this credential should be set up for (payment | transfer)",
			Enum: []resource.EnumSpec{
				{Value: "payment"},
				{Value: "transfer"},
			},
		},
	},
}
View Source
var V2PreviewMoneyManagementOutboundSetupIntentsList = resource.OperationSpec{
	Name:      "list",
	Path:      "/v2/money_management/outbound_setup_intents",
	Method:    "GET",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"limit": {
			Type:             "integer",
			ShortDescription: "The page size",
		},
		"page": {
			Type:             "string",
			ShortDescription: "The requested page",
		},
	},
}
View Source
var V2PreviewMoneyManagementOutboundSetupIntentsRetrieve = resource.OperationSpec{
	Name:      "retrieve",
	Path:      "/v2/money_management/outbound_setup_intents/{id}",
	Method:    "GET",
	IsPreview: true,
}
View Source
var V2PreviewMoneyManagementOutboundSetupIntentsUpdate = resource.OperationSpec{
	Name:      "update",
	Path:      "/v2/money_management/outbound_setup_intents/{id}",
	Method:    "POST",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"payout_method": {
			Type:             "string",
			ShortDescription: "If provided, the existing payout method resource to link to this outbound setup intent",
		},
		"payout_method_data.bank_account.account_number": {
			Type:             "string",
			ShortDescription: "The account number or IBAN of the bank account",
		},
		"payout_method_data.bank_account.bank_account_type": {
			Type:             "string",
			ShortDescription: "Closed Enum",
			Enum: []resource.EnumSpec{
				{Value: "checking"},
				{Value: "savings"},
			},
		},
		"payout_method_data.bank_account.branch_number": {
			Type:             "string",
			ShortDescription: "The branch number of the bank account, if present",
		},
		"payout_method_data.bank_account.country": {
			Type:             "string",
			ShortDescription: "The country code of the bank account",
		},
		"payout_method_data.bank_account.currency": {
			Type:             "string",
			ShortDescription: "The currency of the bank account",
		},
		"payout_method_data.bank_account.routing_number": {
			Type:             "string",
			ShortDescription: "The routing number of the bank account, if present",
		},
		"payout_method_data.bank_account.swift_code": {
			Type:             "string",
			ShortDescription: "The swift code of the bank account, if present",
		},
		"payout_method_data.card.currency": {
			Type:             "string",
			ShortDescription: "The currency of the card",
		},
		"payout_method_data.card.exp_month": {
			Type:             "string",
			ShortDescription: "The expiration month of the card",
		},
		"payout_method_data.card.exp_year": {
			Type:             "string",
			ShortDescription: "The expiration year of the card",
		},
		"payout_method_data.card.number": {
			Type:             "string",
			ShortDescription: "The card number",
		},
		"payout_method_data.type": {
			Type:             "string",
			ShortDescription: "Closed Enum",
			Enum: []resource.EnumSpec{
				{Value: "bank_account"},
				{Value: "card"},
				{Value: "crypto_wallet"},
			},
		},
	},
}
View Source
var V2PreviewMoneyManagementOutboundTransfersCancel = resource.OperationSpec{
	Name:      "cancel",
	Path:      "/v2/money_management/outbound_transfers/{id}/cancel",
	Method:    "POST",
	IsPreview: true,
}
View Source
var V2PreviewMoneyManagementOutboundTransfersCreate = resource.OperationSpec{
	Name:      "create",
	Path:      "/v2/money_management/outbound_transfers",
	Method:    "POST",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"amount.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Required:         true,
		},
		"amount.value": {
			Type:             "integer",
			ShortDescription: "A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units)",
			Required:         true,
		},
		"delivery_options.bank_account": {
			Type:             "string",
			ShortDescription: "Open Enum",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "local"},
				{Value: "wire"},
			},
		},
		"description": {
			Type:             "string",
			ShortDescription: "An arbitrary string attached to the OutboundTransfer",
		},
		"from.currency": {
			Type:             "string",
			ShortDescription: "Describes the FinancialAmount's currency drawn from",
			Required:         true,
		},
		"from.financial_account": {
			Type:             "string",
			ShortDescription: "The FinancialAccount that funds were pulled from",
			Required:         true,
		},
		"to.currency": {
			Type:             "string",
			ShortDescription: "Describes the currency to send to the recipient",
		},
		"to.payout_method": {
			Type:             "string",
			ShortDescription: "The payout method which the OutboundTransfer uses to send payout",
			Required:         true,
		},
	},
}
View Source
var V2PreviewMoneyManagementOutboundTransfersList = resource.OperationSpec{
	Name:      "list",
	Path:      "/v2/money_management/outbound_transfers",
	Method:    "GET",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type:             "string",
			ShortDescription: "Filter for objects created at the specified timestamp",
			Format:           "date-time",
		},
		"created_gt": {
			Type:             "string",
			ShortDescription: "Filter for objects created after the specified timestamp",
			Format:           "date-time",
		},
		"created_gte": {
			Type:             "string",
			ShortDescription: "Filter for objects created on or after the specified timestamp",
			Format:           "date-time",
		},
		"created_lt": {
			Type:             "string",
			ShortDescription: "Filter for objects created before the specified timestamp",
			Format:           "date-time",
		},
		"created_lte": {
			Type:             "string",
			ShortDescription: "Filter for objects created on or before the specified timestamp",
			Format:           "date-time",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "The maximum number of results to return",
		},
		"page": {
			Type:             "string",
			ShortDescription: "The page token to use to retrieve the page being requested",
		},
		"status": {
			Type:             "array",
			ShortDescription: "Closed Enum",
		},
	},
}
View Source
var V2PreviewMoneyManagementOutboundTransfersRetrieve = resource.OperationSpec{
	Name:      "retrieve",
	Path:      "/v2/money_management/outbound_transfers/{id}",
	Method:    "GET",
	IsPreview: true,
}
View Source
var V2PreviewMoneyManagementPayoutMethodsArchive = resource.OperationSpec{
	Name:      "archive",
	Path:      "/v2/money_management/payout_methods/{id}/archive",
	Method:    "POST",
	IsPreview: true,
}
View Source
var V2PreviewMoneyManagementPayoutMethodsBankAccountSpecsRetrieve = resource.OperationSpec{
	Name:      "retrieve",
	Path:      "/v2/money_management/payout_methods_bank_account_spec",
	Method:    "GET",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"countries": {
			Type:             "array",
			ShortDescription: "The countries to fetch the bank account spec for",
		},
	},
}
View Source
var V2PreviewMoneyManagementPayoutMethodsList = resource.OperationSpec{
	Name:      "list",
	Path:      "/v2/money_management/payout_methods",
	Method:    "GET",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"limit": {
			Type:             "integer",
			ShortDescription: "The page size",
		},
		"page": {
			Type:             "string",
			ShortDescription: "The requested page",
		},
	},
}
View Source
var V2PreviewMoneyManagementPayoutMethodsRetrieve = resource.OperationSpec{
	Name:      "retrieve",
	Path:      "/v2/money_management/payout_methods/{id}",
	Method:    "GET",
	IsPreview: true,
}
View Source
var V2PreviewMoneyManagementPayoutMethodsUnarchive = resource.OperationSpec{
	Name:      "unarchive",
	Path:      "/v2/money_management/payout_methods/{id}/unarchive",
	Method:    "POST",
	IsPreview: true,
}
View Source
var V2PreviewMoneyManagementReceivedCreditsList = resource.OperationSpec{
	Name:      "list",
	Path:      "/v2/money_management/received_credits",
	Method:    "GET",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type:             "string",
			ShortDescription: "Filter for objects created at the specified timestamp",
			Format:           "date-time",
		},
		"created_gt": {
			Type:             "string",
			ShortDescription: "Filter for objects created after the specified timestamp",
			Format:           "date-time",
		},
		"created_gte": {
			Type:             "string",
			ShortDescription: "Filter for objects created on or after the specified timestamp",
			Format:           "date-time",
		},
		"created_lt": {
			Type:             "string",
			ShortDescription: "Filter for objects created before the specified timestamp",
			Format:           "date-time",
		},
		"created_lte": {
			Type:             "string",
			ShortDescription: "Filter for objects created on or before the specified timestamp",
			Format:           "date-time",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "The page limit",
		},
		"page": {
			Type:             "string",
			ShortDescription: "The page token",
		},
	},
}
View Source
var V2PreviewMoneyManagementReceivedCreditsRetrieve = resource.OperationSpec{
	Name:      "retrieve",
	Path:      "/v2/money_management/received_credits/{id}",
	Method:    "GET",
	IsPreview: true,
}
View Source
var V2PreviewMoneyManagementReceivedDebitsList = resource.OperationSpec{
	Name:      "list",
	Path:      "/v2/money_management/received_debits",
	Method:    "GET",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"limit": {
			Type:             "integer",
			ShortDescription: "The page limit",
		},
		"page": {
			Type:             "string",
			ShortDescription: "The page token",
		},
	},
}
View Source
var V2PreviewMoneyManagementReceivedDebitsRetrieve = resource.OperationSpec{
	Name:      "retrieve",
	Path:      "/v2/money_management/received_debits/{id}",
	Method:    "GET",
	IsPreview: true,
}
View Source
var V2PreviewMoneyManagementTransactionEntrysList = resource.OperationSpec{
	Name:      "list",
	Path:      "/v2/money_management/transaction_entries",
	Method:    "GET",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type:             "string",
			ShortDescription: "Filter for Transactions created at an exact time",
			Format:           "date-time",
		},
		"created_gt": {
			Type:             "string",
			ShortDescription: "Filter for Transactions created after the specified timestamp",
			Format:           "date-time",
		},
		"created_gte": {
			Type:             "string",
			ShortDescription: "Filter for Transactions created at or after the specified timestamp",
			Format:           "date-time",
		},
		"created_lt": {
			Type:             "string",
			ShortDescription: "Filter for Transactions created before the specified timestamp",
			Format:           "date-time",
		},
		"created_lte": {
			Type:             "string",
			ShortDescription: "Filter for Transactions created at or before the specified timestamp",
			Format:           "date-time",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "The page limit",
		},
		"page": {
			Type:             "string",
			ShortDescription: "The page token",
		},
		"transaction": {
			Type:             "string",
			ShortDescription: "Filter for TransactionEntries belonging to a Transaction",
		},
	},
}
View Source
var V2PreviewMoneyManagementTransactionEntrysRetrieve = resource.OperationSpec{
	Name:      "retrieve",
	Path:      "/v2/money_management/transaction_entries/{id}",
	Method:    "GET",
	IsPreview: true,
}
View Source
var V2PreviewMoneyManagementTransactionsList = resource.OperationSpec{
	Name:      "list",
	Path:      "/v2/money_management/transactions",
	Method:    "GET",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type:             "string",
			ShortDescription: "Filter for Transactions created at an exact time",
			Format:           "date-time",
		},
		"created_gt": {
			Type:             "string",
			ShortDescription: "Filter for Transactions created after the specified timestamp",
			Format:           "date-time",
		},
		"created_gte": {
			Type:             "string",
			ShortDescription: "Filter for Transactions created at or after the specified timestamp",
			Format:           "date-time",
		},
		"created_lt": {
			Type:             "string",
			ShortDescription: "Filter for Transactions created before the specified timestamp",
			Format:           "date-time",
		},
		"created_lte": {
			Type:             "string",
			ShortDescription: "Filter for Transactions created at or before the specified timestamp",
			Format:           "date-time",
		},
		"financial_account": {
			Type:             "string",
			ShortDescription: "Filter for Transactions belonging to a FinancialAccount",
		},
		"flow": {
			Type:             "string",
			ShortDescription: "Filter for Transactions corresponding to a Flow",
		},
		"limit": {
			Type:             "integer",
			ShortDescription: "The page limit",
		},
		"page": {
			Type:             "string",
			ShortDescription: "The page token",
		},
	},
}
View Source
var V2PreviewMoneyManagementTransactionsRetrieve = resource.OperationSpec{
	Name:      "retrieve",
	Path:      "/v2/money_management/transactions/{id}",
	Method:    "GET",
	IsPreview: true,
}
View Source
var V2PreviewTestHelpersFinancialAddressCreditSimulationsCredit = resource.OperationSpec{
	Name:      "credit",
	Path:      "/v2/test_helpers/financial_addresses/{id}/credit",
	Method:    "POST",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"amount.currency": {
			Type:             "string",
			ShortDescription: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase",
			Required:         true,
		},
		"amount.value": {
			Type:             "integer",
			ShortDescription: "A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units)",
			Required:         true,
		},
		"network": {
			Type:             "string",
			ShortDescription: "Open Enum",
			Required:         true,
			Enum: []resource.EnumSpec{
				{Value: "ach"},
				{Value: "fps"},
				{Value: "rtp"},
				{Value: "wire"},
			},
		},
		"statement_descriptor": {
			Type:             "string",
			ShortDescription: "String explaining funds flow",
		},
	},
}
View Source
var V2PreviewTestHelpersFinancialAddressGeneratedMicrodepositssGenerateMicrodeposits = resource.OperationSpec{
	Name:      "generate_microdeposits",
	Path:      "/v2/test_helpers/financial_addresses/{id}/generate_microdeposits",
	Method:    "POST",
	IsPreview: true,
}

Functions

func AddAllResourcesCmds

func AddAllResourcesCmds(rootCmd *cobra.Command, cfg *config.Config)

AddAllResourcesCmds registers all Stripe API resource commands on rootCmd.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL