resources

package
v1.40.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 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",
			Required: true,
		},
		"collect": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "currently_due"},
				{Value: "eventually_due"},
			},
		},
		"collection_options.fields": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "currently_due"},
				{Value: "eventually_due"},
			},
		},
		"collection_options.future_requirements": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "include"},
				{Value: "omit"},
			},
		},
		"refresh_url": {
			Type: "string",
		},
		"return_url": {
			Type: "string",
		},
		"type": {
			Type:     "string",
			Required: 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",
			Required: true,
		},
		"components.account_management.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"components.account_management.features.disable_stripe_user_authentication": {
			Type: "boolean",
		},
		"components.account_management.features.external_account_collection": {
			Type: "boolean",
		},
		"components.account_onboarding.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"components.account_onboarding.features.disable_stripe_user_authentication": {
			Type: "boolean",
		},
		"components.account_onboarding.features.external_account_collection": {
			Type: "boolean",
		},
		"components.balances.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"components.balances.features.disable_stripe_user_authentication": {
			Type: "boolean",
		},
		"components.balances.features.edit_payout_schedule": {
			Type: "boolean",
		},
		"components.balances.features.external_account_collection": {
			Type: "boolean",
		},
		"components.balances.features.instant_payouts": {
			Type: "boolean",
		},
		"components.balances.features.standard_payouts": {
			Type: "boolean",
		},
		"components.disputes_list.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"components.disputes_list.features.capture_payments": {
			Type: "boolean",
		},
		"components.disputes_list.features.destination_on_behalf_of_charge_management": {
			Type: "boolean",
		},
		"components.disputes_list.features.dispute_management": {
			Type: "boolean",
		},
		"components.disputes_list.features.refund_management": {
			Type: "boolean",
		},
		"components.documents.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"components.financial_account.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"components.financial_account.features.disable_stripe_user_authentication": {
			Type: "boolean",
		},
		"components.financial_account.features.external_account_collection": {
			Type: "boolean",
		},
		"components.financial_account.features.send_money": {
			Type: "boolean",
		},
		"components.financial_account.features.transfer_balance": {
			Type: "boolean",
		},
		"components.financial_account_transactions.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"components.financial_account_transactions.features.card_spend_dispute_management": {
			Type: "boolean",
		},
		"components.instant_payouts_promotion.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"components.instant_payouts_promotion.features.disable_stripe_user_authentication": {
			Type: "boolean",
		},
		"components.instant_payouts_promotion.features.external_account_collection": {
			Type: "boolean",
		},
		"components.instant_payouts_promotion.features.instant_payouts": {
			Type: "boolean",
		},
		"components.issuing_card.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"components.issuing_card.features.card_management": {
			Type: "boolean",
		},
		"components.issuing_card.features.card_spend_dispute_management": {
			Type: "boolean",
		},
		"components.issuing_card.features.cardholder_management": {
			Type: "boolean",
		},
		"components.issuing_card.features.spend_control_management": {
			Type: "boolean",
		},
		"components.issuing_cards_list.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"components.issuing_cards_list.features.card_management": {
			Type: "boolean",
		},
		"components.issuing_cards_list.features.card_spend_dispute_management": {
			Type: "boolean",
		},
		"components.issuing_cards_list.features.cardholder_management": {
			Type: "boolean",
		},
		"components.issuing_cards_list.features.disable_stripe_user_authentication": {
			Type: "boolean",
		},
		"components.issuing_cards_list.features.spend_control_management": {
			Type: "boolean",
		},
		"components.notification_banner.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"components.notification_banner.features.disable_stripe_user_authentication": {
			Type: "boolean",
		},
		"components.notification_banner.features.external_account_collection": {
			Type: "boolean",
		},
		"components.payment_details.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"components.payment_details.features.capture_payments": {
			Type: "boolean",
		},
		"components.payment_details.features.destination_on_behalf_of_charge_management": {
			Type: "boolean",
		},
		"components.payment_details.features.dispute_management": {
			Type: "boolean",
		},
		"components.payment_details.features.refund_management": {
			Type: "boolean",
		},
		"components.payment_disputes.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"components.payment_disputes.features.destination_on_behalf_of_charge_management": {
			Type: "boolean",
		},
		"components.payment_disputes.features.dispute_management": {
			Type: "boolean",
		},
		"components.payment_disputes.features.refund_management": {
			Type: "boolean",
		},
		"components.payments.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"components.payments.features.capture_payments": {
			Type: "boolean",
		},
		"components.payments.features.destination_on_behalf_of_charge_management": {
			Type: "boolean",
		},
		"components.payments.features.dispute_management": {
			Type: "boolean",
		},
		"components.payments.features.refund_management": {
			Type: "boolean",
		},
		"components.payout_details.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"components.payouts.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"components.payouts.features.disable_stripe_user_authentication": {
			Type: "boolean",
		},
		"components.payouts.features.edit_payout_schedule": {
			Type: "boolean",
		},
		"components.payouts.features.external_account_collection": {
			Type: "boolean",
		},
		"components.payouts.features.instant_payouts": {
			Type: "boolean",
		},
		"components.payouts.features.standard_payouts": {
			Type: "boolean",
		},
		"components.payouts_list.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"components.tax_registrations.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"components.tax_settings.enabled": {
			Type:     "boolean",
			Required: true,
		},
	},
}
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",
		},
		"business_profile.annual_revenue.amount": {
			Type:     "integer",
			Required: true,
		},
		"business_profile.annual_revenue.currency": {
			Type:     "string",
			Required: true,
			Format:   "currency",
		},
		"business_profile.annual_revenue.fiscal_year_end": {
			Type:     "string",
			Required: true,
		},
		"business_profile.estimated_worker_count": {
			Type: "integer",
		},
		"business_profile.mcc": {
			Type: "string",
		},
		"business_profile.minority_owned_business_designation": {
			Type: "array",
		},
		"business_profile.monthly_estimated_revenue.amount": {
			Type:     "integer",
			Required: true,
		},
		"business_profile.monthly_estimated_revenue.currency": {
			Type:     "string",
			Required: true,
			Format:   "currency",
		},
		"business_profile.name": {
			Type: "string",
		},
		"business_profile.product_description": {
			Type: "string",
		},
		"business_profile.support_address.city": {
			Type: "string",
		},
		"business_profile.support_address.country": {
			Type: "string",
		},
		"business_profile.support_address.line1": {
			Type: "string",
		},
		"business_profile.support_address.line2": {
			Type: "string",
		},
		"business_profile.support_address.postal_code": {
			Type: "string",
		},
		"business_profile.support_address.state": {
			Type: "string",
		},
		"business_profile.support_email": {
			Type: "string",
		},
		"business_profile.support_phone": {
			Type: "string",
		},
		"business_profile.support_url": {
			Type: "string",
		},
		"business_profile.url": {
			Type: "string",
		},
		"business_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "government_entity"},
				{Value: "individual"},
				{Value: "non_profit"},
			},
		},
		"capabilities.acss_debit_payments.requested": {
			Type: "boolean",
		},
		"capabilities.affirm_payments.requested": {
			Type: "boolean",
		},
		"capabilities.afterpay_clearpay_payments.requested": {
			Type: "boolean",
		},
		"capabilities.alma_payments.requested": {
			Type: "boolean",
		},
		"capabilities.amazon_pay_payments.requested": {
			Type: "boolean",
		},
		"capabilities.au_becs_debit_payments.requested": {
			Type: "boolean",
		},
		"capabilities.bacs_debit_payments.requested": {
			Type: "boolean",
		},
		"capabilities.bancontact_payments.requested": {
			Type: "boolean",
		},
		"capabilities.bank_transfer_payments.requested": {
			Type: "boolean",
		},
		"capabilities.billie_payments.requested": {
			Type: "boolean",
		},
		"capabilities.blik_payments.requested": {
			Type: "boolean",
		},
		"capabilities.boleto_payments.requested": {
			Type: "boolean",
		},
		"capabilities.card_issuing.requested": {
			Type: "boolean",
		},
		"capabilities.card_payments.requested": {
			Type: "boolean",
		},
		"capabilities.cartes_bancaires_payments.requested": {
			Type: "boolean",
		},
		"capabilities.cashapp_payments.requested": {
			Type: "boolean",
		},
		"capabilities.crypto_payments.requested": {
			Type: "boolean",
		},
		"capabilities.eps_payments.requested": {
			Type: "boolean",
		},
		"capabilities.fpx_payments.requested": {
			Type: "boolean",
		},
		"capabilities.gb_bank_transfer_payments.requested": {
			Type: "boolean",
		},
		"capabilities.giropay_payments.requested": {
			Type: "boolean",
		},
		"capabilities.grabpay_payments.requested": {
			Type: "boolean",
		},
		"capabilities.ideal_payments.requested": {
			Type: "boolean",
		},
		"capabilities.india_international_payments.requested": {
			Type: "boolean",
		},
		"capabilities.jcb_payments.requested": {
			Type: "boolean",
		},
		"capabilities.jp_bank_transfer_payments.requested": {
			Type: "boolean",
		},
		"capabilities.kakao_pay_payments.requested": {
			Type: "boolean",
		},
		"capabilities.klarna_payments.requested": {
			Type: "boolean",
		},
		"capabilities.konbini_payments.requested": {
			Type: "boolean",
		},
		"capabilities.kr_card_payments.requested": {
			Type: "boolean",
		},
		"capabilities.legacy_payments.requested": {
			Type: "boolean",
		},
		"capabilities.link_payments.requested": {
			Type: "boolean",
		},
		"capabilities.mb_way_payments.requested": {
			Type: "boolean",
		},
		"capabilities.mobilepay_payments.requested": {
			Type: "boolean",
		},
		"capabilities.multibanco_payments.requested": {
			Type: "boolean",
		},
		"capabilities.mx_bank_transfer_payments.requested": {
			Type: "boolean",
		},
		"capabilities.naver_pay_payments.requested": {
			Type: "boolean",
		},
		"capabilities.nz_bank_account_becs_debit_payments.requested": {
			Type: "boolean",
		},
		"capabilities.oxxo_payments.requested": {
			Type: "boolean",
		},
		"capabilities.p24_payments.requested": {
			Type: "boolean",
		},
		"capabilities.pay_by_bank_payments.requested": {
			Type: "boolean",
		},
		"capabilities.payco_payments.requested": {
			Type: "boolean",
		},
		"capabilities.paynow_payments.requested": {
			Type: "boolean",
		},
		"capabilities.payto_payments.requested": {
			Type: "boolean",
		},
		"capabilities.pix_payments.requested": {
			Type: "boolean",
		},
		"capabilities.promptpay_payments.requested": {
			Type: "boolean",
		},
		"capabilities.revolut_pay_payments.requested": {
			Type: "boolean",
		},
		"capabilities.samsung_pay_payments.requested": {
			Type: "boolean",
		},
		"capabilities.satispay_payments.requested": {
			Type: "boolean",
		},
		"capabilities.sepa_bank_transfer_payments.requested": {
			Type: "boolean",
		},
		"capabilities.sepa_debit_payments.requested": {
			Type: "boolean",
		},
		"capabilities.sofort_payments.requested": {
			Type: "boolean",
		},
		"capabilities.swish_payments.requested": {
			Type: "boolean",
		},
		"capabilities.tax_reporting_us_1099_k.requested": {
			Type: "boolean",
		},
		"capabilities.tax_reporting_us_1099_misc.requested": {
			Type: "boolean",
		},
		"capabilities.transfers.requested": {
			Type: "boolean",
		},
		"capabilities.treasury.requested": {
			Type: "boolean",
		},
		"capabilities.twint_payments.requested": {
			Type: "boolean",
		},
		"capabilities.upi_payments.requested": {
			Type: "boolean",
		},
		"capabilities.us_bank_account_ach_payments.requested": {
			Type: "boolean",
		},
		"capabilities.us_bank_transfer_payments.requested": {
			Type: "boolean",
		},
		"capabilities.zip_payments.requested": {
			Type: "boolean",
		},
		"company.address.city": {
			Type: "string",
		},
		"company.address.country": {
			Type: "string",
		},
		"company.address.line1": {
			Type: "string",
		},
		"company.address.line2": {
			Type: "string",
		},
		"company.address.postal_code": {
			Type: "string",
		},
		"company.address.state": {
			Type: "string",
		},
		"company.address_kana.city": {
			Type: "string",
		},
		"company.address_kana.country": {
			Type: "string",
		},
		"company.address_kana.line1": {
			Type: "string",
		},
		"company.address_kana.line2": {
			Type: "string",
		},
		"company.address_kana.postal_code": {
			Type: "string",
		},
		"company.address_kana.state": {
			Type: "string",
		},
		"company.address_kana.town": {
			Type: "string",
		},
		"company.address_kanji.city": {
			Type: "string",
		},
		"company.address_kanji.country": {
			Type: "string",
		},
		"company.address_kanji.line1": {
			Type: "string",
		},
		"company.address_kanji.line2": {
			Type: "string",
		},
		"company.address_kanji.postal_code": {
			Type: "string",
		},
		"company.address_kanji.state": {
			Type: "string",
		},
		"company.address_kanji.town": {
			Type: "string",
		},
		"company.directors_provided": {
			Type: "boolean",
		},
		"company.directorship_declaration.date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"company.directorship_declaration.ip": {
			Type: "string",
		},
		"company.directorship_declaration.user_agent": {
			Type: "string",
		},
		"company.executives_provided": {
			Type: "boolean",
		},
		"company.export_license_id": {
			Type: "string",
		},
		"company.export_purpose_code": {
			Type: "string",
		},
		"company.name": {
			Type: "string",
		},
		"company.name_kana": {
			Type: "string",
		},
		"company.name_kanji": {
			Type: "string",
		},
		"company.owners_provided": {
			Type: "boolean",
		},
		"company.ownership_declaration.date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"company.ownership_declaration.ip": {
			Type: "string",
		},
		"company.ownership_declaration.user_agent": {
			Type: "string",
		},
		"company.ownership_exemption_reason": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "qualified_entity_exceeds_ownership_threshold"},
				{Value: "qualifies_as_financial_institution"},
			},
		},
		"company.phone": {
			Type: "string",
		},
		"company.registration_number": {
			Type: "string",
		},
		"company.representative_declaration.date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"company.representative_declaration.ip": {
			Type: "string",
		},
		"company.representative_declaration.user_agent": {
			Type: "string",
		},
		"company.structure": {
			Type: "string",
			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",
		},
		"company.tax_id_registrar": {
			Type: "string",
		},
		"company.vat_id": {
			Type: "string",
		},
		"company.verification.document.back": {
			Type: "string",
		},
		"company.verification.document.front": {
			Type: "string",
		},
		"controller.fees.payer": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "application"},
			},
		},
		"controller.losses.payments": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "application"},
				{Value: "stripe"},
			},
		},
		"controller.requirement_collection": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "application"},
				{Value: "stripe"},
			},
		},
		"controller.stripe_dashboard.type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "express"},
				{Value: "full"},
				{Value: "none"},
			},
		},
		"country": {
			Type: "string",
		},
		"default_currency": {
			Type:   "string",
			Format: "currency",
		},
		"documents.bank_account_ownership_verification.files": {
			Type: "array",
		},
		"documents.company_license.files": {
			Type: "array",
		},
		"documents.company_memorandum_of_association.files": {
			Type: "array",
		},
		"documents.company_ministerial_decree.files": {
			Type: "array",
		},
		"documents.company_registration_verification.files": {
			Type: "array",
		},
		"documents.company_tax_id_verification.files": {
			Type: "array",
		},
		"documents.proof_of_address.files": {
			Type: "array",
		},
		"documents.proof_of_registration.files": {
			Type: "array",
		},
		"documents.proof_of_registration.signer.person": {
			Type: "string",
		},
		"documents.proof_of_ultimate_beneficial_ownership.files": {
			Type: "array",
		},
		"documents.proof_of_ultimate_beneficial_ownership.signer.person": {
			Type: "string",
		},
		"email": {
			Type: "string",
		},
		"external_account": {
			Type: "string",
		},
		"groups.payments_pricing": {
			Type: "string",
		},
		"individual.address.city": {
			Type: "string",
		},
		"individual.address.country": {
			Type: "string",
		},
		"individual.address.line1": {
			Type: "string",
		},
		"individual.address.line2": {
			Type: "string",
		},
		"individual.address.postal_code": {
			Type: "string",
		},
		"individual.address.state": {
			Type: "string",
		},
		"individual.address_kana.city": {
			Type: "string",
		},
		"individual.address_kana.country": {
			Type: "string",
		},
		"individual.address_kana.line1": {
			Type: "string",
		},
		"individual.address_kana.line2": {
			Type: "string",
		},
		"individual.address_kana.postal_code": {
			Type: "string",
		},
		"individual.address_kana.state": {
			Type: "string",
		},
		"individual.address_kana.town": {
			Type: "string",
		},
		"individual.address_kanji.city": {
			Type: "string",
		},
		"individual.address_kanji.country": {
			Type: "string",
		},
		"individual.address_kanji.line1": {
			Type: "string",
		},
		"individual.address_kanji.line2": {
			Type: "string",
		},
		"individual.address_kanji.postal_code": {
			Type: "string",
		},
		"individual.address_kanji.state": {
			Type: "string",
		},
		"individual.address_kanji.town": {
			Type: "string",
		},
		"individual.email": {
			Type: "string",
		},
		"individual.first_name": {
			Type: "string",
		},
		"individual.first_name_kana": {
			Type: "string",
		},
		"individual.first_name_kanji": {
			Type: "string",
		},
		"individual.full_name_aliases": {
			Type: "array",
		},
		"individual.gender": {
			Type: "string",
		},
		"individual.id_number": {
			Type: "string",
		},
		"individual.id_number_secondary": {
			Type: "string",
		},
		"individual.last_name": {
			Type: "string",
		},
		"individual.last_name_kana": {
			Type: "string",
		},
		"individual.last_name_kanji": {
			Type: "string",
		},
		"individual.maiden_name": {
			Type: "string",
		},
		"individual.phone": {
			Type: "string",
		},
		"individual.political_exposure": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "existing"},
				{Value: "none"},
			},
		},
		"individual.registered_address.city": {
			Type: "string",
		},
		"individual.registered_address.country": {
			Type: "string",
		},
		"individual.registered_address.line1": {
			Type: "string",
		},
		"individual.registered_address.line2": {
			Type: "string",
		},
		"individual.registered_address.postal_code": {
			Type: "string",
		},
		"individual.registered_address.state": {
			Type: "string",
		},
		"individual.relationship.director": {
			Type: "boolean",
		},
		"individual.relationship.executive": {
			Type: "boolean",
		},
		"individual.relationship.owner": {
			Type: "boolean",
		},
		"individual.relationship.percent_ownership": {
			Type: "number",
		},
		"individual.relationship.title": {
			Type: "string",
		},
		"individual.ssn_last_4": {
			Type: "string",
		},
		"individual.verification.additional_document.back": {
			Type: "string",
		},
		"individual.verification.additional_document.front": {
			Type: "string",
		},
		"individual.verification.document.back": {
			Type: "string",
		},
		"individual.verification.document.front": {
			Type: "string",
		},
		"settings.bacs_debit_payments.display_name": {
			Type: "string",
		},
		"settings.branding.icon": {
			Type: "string",
		},
		"settings.branding.logo": {
			Type: "string",
		},
		"settings.branding.primary_color": {
			Type: "string",
		},
		"settings.branding.secondary_color": {
			Type: "string",
		},
		"settings.card_issuing.tos_acceptance.date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"settings.card_issuing.tos_acceptance.ip": {
			Type: "string",
		},
		"settings.card_issuing.tos_acceptance.user_agent": {
			Type: "string",
		},
		"settings.card_payments.decline_on.avs_failure": {
			Type: "boolean",
		},
		"settings.card_payments.decline_on.cvc_failure": {
			Type: "boolean",
		},
		"settings.card_payments.statement_descriptor_prefix": {
			Type: "string",
		},
		"settings.card_payments.statement_descriptor_prefix_kana": {
			Type: "string",
		},
		"settings.card_payments.statement_descriptor_prefix_kanji": {
			Type: "string",
		},
		"settings.invoices.hosted_payment_method_save": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "never"},
				{Value: "offer"},
			},
		},
		"settings.payments.statement_descriptor": {
			Type: "string",
		},
		"settings.payments.statement_descriptor_kana": {
			Type: "string",
		},
		"settings.payments.statement_descriptor_kanji": {
			Type: "string",
		},
		"settings.payouts.debit_negative_balances": {
			Type: "boolean",
		},
		"settings.payouts.schedule.delay_days": {
			Type: "string",
		},
		"settings.payouts.schedule.interval": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "daily"},
				{Value: "manual"},
				{Value: "monthly"},
				{Value: "weekly"},
			},
		},
		"settings.payouts.schedule.monthly_anchor": {
			Type: "integer",
		},
		"settings.payouts.schedule.monthly_payout_days": {
			Type: "array",
		},
		"settings.payouts.schedule.weekly_anchor": {
			Type: "string",
			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",
		},
		"settings.payouts.statement_descriptor": {
			Type: "string",
		},
		"settings.treasury.tos_acceptance.date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"settings.treasury.tos_acceptance.ip": {
			Type: "string",
		},
		"settings.treasury.tos_acceptance.user_agent": {
			Type: "string",
		},
		"tos_acceptance.date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"tos_acceptance.ip": {
			Type: "string",
		},
		"tos_acceptance.service_agreement": {
			Type: "string",
		},
		"tos_acceptance.user_agent": {
			Type: "string",
		},
		"type": {
			Type: "string",
			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",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
View Source
var V1AccountsPersons = resource.OperationSpec{
	Name:   "persons",
	Path:   "/v1/accounts/{account}/persons",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
View Source
var V1AccountsReject = resource.OperationSpec{
	Name:   "reject",
	Path:   "/v1/accounts/{account}/reject",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"reason": {
			Type:     "string",
			Required: 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",
		},
		"business_profile.annual_revenue.amount": {
			Type:     "integer",
			Required: true,
		},
		"business_profile.annual_revenue.currency": {
			Type:     "string",
			Required: true,
			Format:   "currency",
		},
		"business_profile.annual_revenue.fiscal_year_end": {
			Type:     "string",
			Required: true,
		},
		"business_profile.estimated_worker_count": {
			Type: "integer",
		},
		"business_profile.mcc": {
			Type: "string",
		},
		"business_profile.minority_owned_business_designation": {
			Type: "array",
		},
		"business_profile.monthly_estimated_revenue.amount": {
			Type:     "integer",
			Required: true,
		},
		"business_profile.monthly_estimated_revenue.currency": {
			Type:     "string",
			Required: true,
			Format:   "currency",
		},
		"business_profile.name": {
			Type: "string",
		},
		"business_profile.product_description": {
			Type: "string",
		},
		"business_profile.support_address.city": {
			Type: "string",
		},
		"business_profile.support_address.country": {
			Type: "string",
		},
		"business_profile.support_address.line1": {
			Type: "string",
		},
		"business_profile.support_address.line2": {
			Type: "string",
		},
		"business_profile.support_address.postal_code": {
			Type: "string",
		},
		"business_profile.support_address.state": {
			Type: "string",
		},
		"business_profile.support_email": {
			Type: "string",
		},
		"business_profile.support_phone": {
			Type: "string",
		},
		"business_profile.support_url": {
			Type: "string",
		},
		"business_profile.url": {
			Type: "string",
		},
		"business_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "government_entity"},
				{Value: "individual"},
				{Value: "non_profit"},
			},
		},
		"capabilities.acss_debit_payments.requested": {
			Type: "boolean",
		},
		"capabilities.affirm_payments.requested": {
			Type: "boolean",
		},
		"capabilities.afterpay_clearpay_payments.requested": {
			Type: "boolean",
		},
		"capabilities.alma_payments.requested": {
			Type: "boolean",
		},
		"capabilities.amazon_pay_payments.requested": {
			Type: "boolean",
		},
		"capabilities.au_becs_debit_payments.requested": {
			Type: "boolean",
		},
		"capabilities.bacs_debit_payments.requested": {
			Type: "boolean",
		},
		"capabilities.bancontact_payments.requested": {
			Type: "boolean",
		},
		"capabilities.bank_transfer_payments.requested": {
			Type: "boolean",
		},
		"capabilities.billie_payments.requested": {
			Type: "boolean",
		},
		"capabilities.blik_payments.requested": {
			Type: "boolean",
		},
		"capabilities.boleto_payments.requested": {
			Type: "boolean",
		},
		"capabilities.card_issuing.requested": {
			Type: "boolean",
		},
		"capabilities.card_payments.requested": {
			Type: "boolean",
		},
		"capabilities.cartes_bancaires_payments.requested": {
			Type: "boolean",
		},
		"capabilities.cashapp_payments.requested": {
			Type: "boolean",
		},
		"capabilities.crypto_payments.requested": {
			Type: "boolean",
		},
		"capabilities.eps_payments.requested": {
			Type: "boolean",
		},
		"capabilities.fpx_payments.requested": {
			Type: "boolean",
		},
		"capabilities.gb_bank_transfer_payments.requested": {
			Type: "boolean",
		},
		"capabilities.giropay_payments.requested": {
			Type: "boolean",
		},
		"capabilities.grabpay_payments.requested": {
			Type: "boolean",
		},
		"capabilities.ideal_payments.requested": {
			Type: "boolean",
		},
		"capabilities.india_international_payments.requested": {
			Type: "boolean",
		},
		"capabilities.jcb_payments.requested": {
			Type: "boolean",
		},
		"capabilities.jp_bank_transfer_payments.requested": {
			Type: "boolean",
		},
		"capabilities.kakao_pay_payments.requested": {
			Type: "boolean",
		},
		"capabilities.klarna_payments.requested": {
			Type: "boolean",
		},
		"capabilities.konbini_payments.requested": {
			Type: "boolean",
		},
		"capabilities.kr_card_payments.requested": {
			Type: "boolean",
		},
		"capabilities.legacy_payments.requested": {
			Type: "boolean",
		},
		"capabilities.link_payments.requested": {
			Type: "boolean",
		},
		"capabilities.mb_way_payments.requested": {
			Type: "boolean",
		},
		"capabilities.mobilepay_payments.requested": {
			Type: "boolean",
		},
		"capabilities.multibanco_payments.requested": {
			Type: "boolean",
		},
		"capabilities.mx_bank_transfer_payments.requested": {
			Type: "boolean",
		},
		"capabilities.naver_pay_payments.requested": {
			Type: "boolean",
		},
		"capabilities.nz_bank_account_becs_debit_payments.requested": {
			Type: "boolean",
		},
		"capabilities.oxxo_payments.requested": {
			Type: "boolean",
		},
		"capabilities.p24_payments.requested": {
			Type: "boolean",
		},
		"capabilities.pay_by_bank_payments.requested": {
			Type: "boolean",
		},
		"capabilities.payco_payments.requested": {
			Type: "boolean",
		},
		"capabilities.paynow_payments.requested": {
			Type: "boolean",
		},
		"capabilities.payto_payments.requested": {
			Type: "boolean",
		},
		"capabilities.pix_payments.requested": {
			Type: "boolean",
		},
		"capabilities.promptpay_payments.requested": {
			Type: "boolean",
		},
		"capabilities.revolut_pay_payments.requested": {
			Type: "boolean",
		},
		"capabilities.samsung_pay_payments.requested": {
			Type: "boolean",
		},
		"capabilities.satispay_payments.requested": {
			Type: "boolean",
		},
		"capabilities.sepa_bank_transfer_payments.requested": {
			Type: "boolean",
		},
		"capabilities.sepa_debit_payments.requested": {
			Type: "boolean",
		},
		"capabilities.sofort_payments.requested": {
			Type: "boolean",
		},
		"capabilities.swish_payments.requested": {
			Type: "boolean",
		},
		"capabilities.tax_reporting_us_1099_k.requested": {
			Type: "boolean",
		},
		"capabilities.tax_reporting_us_1099_misc.requested": {
			Type: "boolean",
		},
		"capabilities.transfers.requested": {
			Type: "boolean",
		},
		"capabilities.treasury.requested": {
			Type: "boolean",
		},
		"capabilities.twint_payments.requested": {
			Type: "boolean",
		},
		"capabilities.upi_payments.requested": {
			Type: "boolean",
		},
		"capabilities.us_bank_account_ach_payments.requested": {
			Type: "boolean",
		},
		"capabilities.us_bank_transfer_payments.requested": {
			Type: "boolean",
		},
		"capabilities.zip_payments.requested": {
			Type: "boolean",
		},
		"company.address.city": {
			Type: "string",
		},
		"company.address.country": {
			Type: "string",
		},
		"company.address.line1": {
			Type: "string",
		},
		"company.address.line2": {
			Type: "string",
		},
		"company.address.postal_code": {
			Type: "string",
		},
		"company.address.state": {
			Type: "string",
		},
		"company.address_kana.city": {
			Type: "string",
		},
		"company.address_kana.country": {
			Type: "string",
		},
		"company.address_kana.line1": {
			Type: "string",
		},
		"company.address_kana.line2": {
			Type: "string",
		},
		"company.address_kana.postal_code": {
			Type: "string",
		},
		"company.address_kana.state": {
			Type: "string",
		},
		"company.address_kana.town": {
			Type: "string",
		},
		"company.address_kanji.city": {
			Type: "string",
		},
		"company.address_kanji.country": {
			Type: "string",
		},
		"company.address_kanji.line1": {
			Type: "string",
		},
		"company.address_kanji.line2": {
			Type: "string",
		},
		"company.address_kanji.postal_code": {
			Type: "string",
		},
		"company.address_kanji.state": {
			Type: "string",
		},
		"company.address_kanji.town": {
			Type: "string",
		},
		"company.directors_provided": {
			Type: "boolean",
		},
		"company.directorship_declaration.date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"company.directorship_declaration.ip": {
			Type: "string",
		},
		"company.directorship_declaration.user_agent": {
			Type: "string",
		},
		"company.executives_provided": {
			Type: "boolean",
		},
		"company.export_license_id": {
			Type: "string",
		},
		"company.export_purpose_code": {
			Type: "string",
		},
		"company.name": {
			Type: "string",
		},
		"company.name_kana": {
			Type: "string",
		},
		"company.name_kanji": {
			Type: "string",
		},
		"company.owners_provided": {
			Type: "boolean",
		},
		"company.ownership_declaration.date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"company.ownership_declaration.ip": {
			Type: "string",
		},
		"company.ownership_declaration.user_agent": {
			Type: "string",
		},
		"company.ownership_exemption_reason": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "qualified_entity_exceeds_ownership_threshold"},
				{Value: "qualifies_as_financial_institution"},
			},
		},
		"company.phone": {
			Type: "string",
		},
		"company.registration_number": {
			Type: "string",
		},
		"company.representative_declaration.date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"company.representative_declaration.ip": {
			Type: "string",
		},
		"company.representative_declaration.user_agent": {
			Type: "string",
		},
		"company.structure": {
			Type: "string",
			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",
		},
		"company.tax_id_registrar": {
			Type: "string",
		},
		"company.vat_id": {
			Type: "string",
		},
		"company.verification.document.back": {
			Type: "string",
		},
		"company.verification.document.front": {
			Type: "string",
		},
		"default_currency": {
			Type:   "string",
			Format: "currency",
		},
		"documents.bank_account_ownership_verification.files": {
			Type: "array",
		},
		"documents.company_license.files": {
			Type: "array",
		},
		"documents.company_memorandum_of_association.files": {
			Type: "array",
		},
		"documents.company_ministerial_decree.files": {
			Type: "array",
		},
		"documents.company_registration_verification.files": {
			Type: "array",
		},
		"documents.company_tax_id_verification.files": {
			Type: "array",
		},
		"documents.proof_of_address.files": {
			Type: "array",
		},
		"documents.proof_of_registration.files": {
			Type: "array",
		},
		"documents.proof_of_registration.signer.person": {
			Type: "string",
		},
		"documents.proof_of_ultimate_beneficial_ownership.files": {
			Type: "array",
		},
		"documents.proof_of_ultimate_beneficial_ownership.signer.person": {
			Type: "string",
		},
		"email": {
			Type: "string",
		},
		"external_account": {
			Type: "string",
		},
		"groups.payments_pricing": {
			Type: "string",
		},
		"individual.address.city": {
			Type: "string",
		},
		"individual.address.country": {
			Type: "string",
		},
		"individual.address.line1": {
			Type: "string",
		},
		"individual.address.line2": {
			Type: "string",
		},
		"individual.address.postal_code": {
			Type: "string",
		},
		"individual.address.state": {
			Type: "string",
		},
		"individual.address_kana.city": {
			Type: "string",
		},
		"individual.address_kana.country": {
			Type: "string",
		},
		"individual.address_kana.line1": {
			Type: "string",
		},
		"individual.address_kana.line2": {
			Type: "string",
		},
		"individual.address_kana.postal_code": {
			Type: "string",
		},
		"individual.address_kana.state": {
			Type: "string",
		},
		"individual.address_kana.town": {
			Type: "string",
		},
		"individual.address_kanji.city": {
			Type: "string",
		},
		"individual.address_kanji.country": {
			Type: "string",
		},
		"individual.address_kanji.line1": {
			Type: "string",
		},
		"individual.address_kanji.line2": {
			Type: "string",
		},
		"individual.address_kanji.postal_code": {
			Type: "string",
		},
		"individual.address_kanji.state": {
			Type: "string",
		},
		"individual.address_kanji.town": {
			Type: "string",
		},
		"individual.email": {
			Type: "string",
		},
		"individual.first_name": {
			Type: "string",
		},
		"individual.first_name_kana": {
			Type: "string",
		},
		"individual.first_name_kanji": {
			Type: "string",
		},
		"individual.full_name_aliases": {
			Type: "array",
		},
		"individual.gender": {
			Type: "string",
		},
		"individual.id_number": {
			Type: "string",
		},
		"individual.id_number_secondary": {
			Type: "string",
		},
		"individual.last_name": {
			Type: "string",
		},
		"individual.last_name_kana": {
			Type: "string",
		},
		"individual.last_name_kanji": {
			Type: "string",
		},
		"individual.maiden_name": {
			Type: "string",
		},
		"individual.phone": {
			Type: "string",
		},
		"individual.political_exposure": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "existing"},
				{Value: "none"},
			},
		},
		"individual.registered_address.city": {
			Type: "string",
		},
		"individual.registered_address.country": {
			Type: "string",
		},
		"individual.registered_address.line1": {
			Type: "string",
		},
		"individual.registered_address.line2": {
			Type: "string",
		},
		"individual.registered_address.postal_code": {
			Type: "string",
		},
		"individual.registered_address.state": {
			Type: "string",
		},
		"individual.relationship.director": {
			Type: "boolean",
		},
		"individual.relationship.executive": {
			Type: "boolean",
		},
		"individual.relationship.owner": {
			Type: "boolean",
		},
		"individual.relationship.percent_ownership": {
			Type: "number",
		},
		"individual.relationship.title": {
			Type: "string",
		},
		"individual.ssn_last_4": {
			Type: "string",
		},
		"individual.verification.additional_document.back": {
			Type: "string",
		},
		"individual.verification.additional_document.front": {
			Type: "string",
		},
		"individual.verification.document.back": {
			Type: "string",
		},
		"individual.verification.document.front": {
			Type: "string",
		},
		"settings.bacs_debit_payments.display_name": {
			Type: "string",
		},
		"settings.branding.icon": {
			Type: "string",
		},
		"settings.branding.logo": {
			Type: "string",
		},
		"settings.branding.primary_color": {
			Type: "string",
		},
		"settings.branding.secondary_color": {
			Type: "string",
		},
		"settings.card_issuing.tos_acceptance.date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"settings.card_issuing.tos_acceptance.ip": {
			Type: "string",
		},
		"settings.card_issuing.tos_acceptance.user_agent": {
			Type: "string",
		},
		"settings.card_payments.decline_on.avs_failure": {
			Type: "boolean",
		},
		"settings.card_payments.decline_on.cvc_failure": {
			Type: "boolean",
		},
		"settings.card_payments.statement_descriptor_prefix": {
			Type: "string",
		},
		"settings.card_payments.statement_descriptor_prefix_kana": {
			Type: "string",
		},
		"settings.card_payments.statement_descriptor_prefix_kanji": {
			Type: "string",
		},
		"settings.invoices.default_account_tax_ids": {
			Type: "array",
		},
		"settings.invoices.hosted_payment_method_save": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "never"},
				{Value: "offer"},
			},
		},
		"settings.payments.statement_descriptor": {
			Type: "string",
		},
		"settings.payments.statement_descriptor_kana": {
			Type: "string",
		},
		"settings.payments.statement_descriptor_kanji": {
			Type: "string",
		},
		"settings.payouts.debit_negative_balances": {
			Type: "boolean",
		},
		"settings.payouts.schedule.delay_days": {
			Type: "string",
		},
		"settings.payouts.schedule.interval": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "daily"},
				{Value: "manual"},
				{Value: "monthly"},
				{Value: "weekly"},
			},
		},
		"settings.payouts.schedule.monthly_anchor": {
			Type: "integer",
		},
		"settings.payouts.schedule.monthly_payout_days": {
			Type: "array",
		},
		"settings.payouts.schedule.weekly_anchor": {
			Type: "string",
			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",
		},
		"settings.payouts.statement_descriptor": {
			Type: "string",
		},
		"settings.treasury.tos_acceptance.date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"settings.treasury.tos_acceptance.ip": {
			Type: "string",
		},
		"settings.treasury.tos_acceptance.user_agent": {
			Type: "string",
		},
		"tos_acceptance.date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"tos_acceptance.ip": {
			Type: "string",
		},
		"tos_acceptance.service_agreement": {
			Type: "string",
		},
		"tos_acceptance.user_agent": {
			Type: "string",
		},
	},
}
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,
		},
	},
}
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",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
		"created": {
			Type: "integer",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
			Format: "unix-time",
		},
		"name": {
			Type:     "string",
			Required: true,
		},
		"payload": {
			Type:     "string",
			Required: true,
		},
		"scope.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "user"},
			},
		},
		"scope.user": {
			Type: "string",
		},
	},
}
View Source
var V1AppsSecretsDeleteWhere = resource.OperationSpec{
	Name:   "delete_where",
	Path:   "/v1/apps/secrets/delete",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"name": {
			Type:     "string",
			Required: true,
		},
		"scope.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "user"},
			},
		},
		"scope.user": {
			Type: "string",
		},
	},
}
View Source
var V1AppsSecretsFind = resource.OperationSpec{
	Name:   "find",
	Path:   "/v1/apps/secrets/find",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"name": {
			Type:     "string",
			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",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
		"payments.payouts.schedule.interval": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "daily"},
				{Value: "manual"},
				{Value: "monthly"},
				{Value: "weekly"},
			},
		},
		"payments.payouts.schedule.monthly_payout_days": {
			Type: "array",
		},
		"payments.payouts.schedule.weekly_payout_days": {
			Type: "array",
		},
		"payments.payouts.statement_descriptor": {
			Type: "string",
		},
		"payments.settlement_timing.delay_days_override": {
			Type: "integer",
		},
	},
}
View Source
var V1BalanceTransactionsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/balance_transactions",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type: "integer",
		},
		"currency": {
			Type:   "string",
			Format: "currency",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"payout": {
			Type: "string",
		},
		"source": {
			Type: "string",
		},
		"starting_after": {
			Type: "string",
		},
		"type": {
			Type: "string",
		},
	},
}
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",
		},
		"account_holder_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"account_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "checking"},
				{Value: "futsu"},
				{Value: "savings"},
				{Value: "toza"},
			},
		},
		"address_city": {
			Type: "string",
		},
		"address_country": {
			Type: "string",
		},
		"address_line1": {
			Type: "string",
		},
		"address_line2": {
			Type: "string",
		},
		"address_state": {
			Type: "string",
		},
		"address_zip": {
			Type: "string",
		},
		"default_for_currency": {
			Type: "boolean",
		},
		"documents.bank_account_ownership_verification.files": {
			Type: "array",
		},
		"exp_month": {
			Type: "string",
		},
		"exp_year": {
			Type: "string",
		},
		"name": {
			Type: "string",
		},
	},
}
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",
		},
	},
}
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",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "usage_threshold"},
			},
		},
		"title": {
			Type:     "string",
			Required: true,
		},
		"usage_threshold.gte": {
			Type:     "integer",
			Required: true,
		},
		"usage_threshold.meter": {
			Type:     "string",
			Required: true,
		},
		"usage_threshold.recurrence": {
			Type:     "string",
			Required: 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",
			Enum: []resource.EnumSpec{
				{Value: "usage_threshold"},
			},
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"meter": {
			Type: "string",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
		"customer_account": {
			Type: "string",
		},
	},
}
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",
		},
		"customer": {
			Type: "string",
		},
		"customer_account": {
			Type: "string",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
			Required: true,
			Format:   "currency",
		},
		"amount.monetary.value": {
			Type:     "integer",
			Required: true,
		},
		"amount.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "monetary"},
			},
		},
		"applicability_config.scope.price_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "metered"},
			},
		},
		"category": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "paid"},
				{Value: "promotional"},
			},
		},
		"customer": {
			Type: "string",
		},
		"customer_account": {
			Type: "string",
		},
		"effective_at": {
			Type:   "integer",
			Format: "unix-time",
		},
		"expires_at": {
			Type:   "integer",
			Format: "unix-time",
		},
		"name": {
			Type: "string",
		},
		"priority": {
			Type: "integer",
		},
	},
}
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",
		},
		"customer_account": {
			Type: "string",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
	},
}
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",
		},
		"event_name": {
			Type:     "string",
			Required: true,
		},
		"type": {
			Type:     "string",
			Required: 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",
			Required: true,
		},
		"end_time": {
			Type:     "integer",
			Required: true,
			Format:   "unix-time",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"start_time": {
			Type:     "integer",
			Required: true,
			Format:   "unix-time",
		},
		"starting_after": {
			Type: "string",
		},
		"value_grouping_window": {
			Type: "string",
			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",
			Required: true,
		},
		"identifier": {
			Type: "string",
		},
		"timestamp": {
			Type:   "integer",
			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",
			Required: true,
		},
		"customer_mapping.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "by_id"},
			},
		},
		"default_aggregation.formula": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "count"},
				{Value: "last"},
				{Value: "sum"},
			},
		},
		"display_name": {
			Type:     "string",
			Required: true,
		},
		"event_name": {
			Type:     "string",
			Required: true,
		},
		"event_time_window": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "hour"},
			},
		},
		"value_settings.event_payload_key": {
			Type:     "string",
			Required: 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",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
		"status": {
			Type: "string",
			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",
		},
	},
}
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",
		},
		"business_profile.privacy_policy_url": {
			Type: "string",
		},
		"business_profile.terms_of_service_url": {
			Type: "string",
		},
		"default_return_url": {
			Type: "string",
		},
		"features.customer_update.allowed_updates": {
			Type: "array",
		},
		"features.customer_update.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"features.invoice_history.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"features.payment_method_update.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"features.payment_method_update.payment_method_configuration": {
			Type: "string",
		},
		"features.subscription_cancel.cancellation_reason.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"features.subscription_cancel.cancellation_reason.options": {
			Type:     "array",
			Required: true,
		},
		"features.subscription_cancel.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"features.subscription_cancel.mode": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "at_period_end"},
				{Value: "immediately"},
			},
		},
		"features.subscription_cancel.proration_behavior": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "always_invoice"},
				{Value: "create_prorations"},
				{Value: "none"},
			},
		},
		"features.subscription_update.billing_cycle_anchor": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "now"},
				{Value: "unchanged"},
			},
		},
		"features.subscription_update.default_allowed_updates": {
			Type: "array",
		},
		"features.subscription_update.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"features.subscription_update.proration_behavior": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "always_invoice"},
				{Value: "create_prorations"},
				{Value: "none"},
			},
		},
		"features.subscription_update.trial_update_behavior": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "continue_trial"},
				{Value: "end_trial"},
			},
		},
		"login_page.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"name": {
			Type: "string",
		},
	},
}
View Source
var V1BillingPortalConfigurationsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/billing_portal/configurations",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"active": {
			Type: "boolean",
		},
		"ending_before": {
			Type: "string",
		},
		"is_default": {
			Type: "boolean",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
		"business_profile.headline": {
			Type: "string",
		},
		"business_profile.privacy_policy_url": {
			Type: "string",
		},
		"business_profile.terms_of_service_url": {
			Type: "string",
		},
		"default_return_url": {
			Type: "string",
		},
		"features.customer_update.allowed_updates": {
			Type: "array",
		},
		"features.customer_update.enabled": {
			Type: "boolean",
		},
		"features.invoice_history.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"features.payment_method_update.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"features.payment_method_update.payment_method_configuration": {
			Type: "string",
		},
		"features.subscription_cancel.cancellation_reason.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"features.subscription_cancel.cancellation_reason.options": {
			Type: "array",
		},
		"features.subscription_cancel.enabled": {
			Type: "boolean",
		},
		"features.subscription_cancel.mode": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "at_period_end"},
				{Value: "immediately"},
			},
		},
		"features.subscription_cancel.proration_behavior": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "always_invoice"},
				{Value: "create_prorations"},
				{Value: "none"},
			},
		},
		"features.subscription_update.billing_cycle_anchor": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "now"},
				{Value: "unchanged"},
			},
		},
		"features.subscription_update.default_allowed_updates": {
			Type: "array",
		},
		"features.subscription_update.enabled": {
			Type: "boolean",
		},
		"features.subscription_update.proration_behavior": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "always_invoice"},
				{Value: "create_prorations"},
				{Value: "none"},
			},
		},
		"features.subscription_update.trial_update_behavior": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "continue_trial"},
				{Value: "end_trial"},
			},
		},
		"login_page.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"name": {
			Type: "string",
		},
	},
}
View Source
var V1BillingPortalSessionsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/billing_portal/sessions",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"configuration": {
			Type: "string",
		},
		"customer": {
			Type: "string",
		},
		"customer_account": {
			Type: "string",
		},
		"flow_data.after_completion.hosted_confirmation.custom_message": {
			Type: "string",
		},
		"flow_data.after_completion.redirect.return_url": {
			Type:     "string",
			Required: true,
		},
		"flow_data.after_completion.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "hosted_confirmation"},
				{Value: "portal_homepage"},
				{Value: "redirect"},
			},
		},
		"flow_data.subscription_cancel.retention.coupon_offer.coupon": {
			Type:     "string",
			Required: true,
		},
		"flow_data.subscription_cancel.retention.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "coupon_offer"},
			},
		},
		"flow_data.subscription_cancel.subscription": {
			Type:     "string",
			Required: true,
		},
		"flow_data.subscription_update.subscription": {
			Type:     "string",
			Required: true,
		},
		"flow_data.subscription_update_confirm.subscription": {
			Type:     "string",
			Required: true,
		},
		"flow_data.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "payment_method_update"},
				{Value: "subscription_cancel"},
				{Value: "subscription_update"},
				{Value: "subscription_update_confirm"},
			},
		},
		"locale": {
			Type: "string",
			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",
		},
		"return_url": {
			Type: "string",
		},
	},
}
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",
		},
	},
}
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",
		},
		"account_holder_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"account_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "checking"},
				{Value: "futsu"},
				{Value: "savings"},
				{Value: "toza"},
			},
		},
		"address_city": {
			Type: "string",
		},
		"address_country": {
			Type: "string",
		},
		"address_line1": {
			Type: "string",
		},
		"address_line2": {
			Type: "string",
		},
		"address_state": {
			Type: "string",
		},
		"address_zip": {
			Type: "string",
		},
		"default_for_currency": {
			Type: "boolean",
		},
		"documents.bank_account_ownership_verification.files": {
			Type: "array",
		},
		"exp_month": {
			Type: "string",
		},
		"exp_year": {
			Type: "string",
		},
		"name": {
			Type: "string",
		},
	},
}
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",
			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",
		},
		"application_fee": {
			Type: "integer",
		},
		"application_fee_amount": {
			Type: "integer",
		},
		"receipt_email": {
			Type: "string",
		},
		"statement_descriptor": {
			Type: "string",
		},
		"statement_descriptor_suffix": {
			Type: "string",
		},
		"transfer_data.amount": {
			Type: "integer",
		},
		"transfer_group": {
			Type: "string",
		},
	},
}
View Source
var V1ChargesCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/charges",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type: "integer",
		},
		"application_fee": {
			Type: "integer",
		},
		"application_fee_amount": {
			Type: "integer",
		},
		"capture": {
			Type: "boolean",
		},
		"currency": {
			Type:   "string",
			Format: "currency",
		},
		"customer": {
			Type: "string",
		},
		"description": {
			Type: "string",
		},
		"destination.account": {
			Type:     "string",
			Required: true,
		},
		"destination.amount": {
			Type: "integer",
		},
		"on_behalf_of": {
			Type: "string",
		},
		"radar_options.session": {
			Type: "string",
		},
		"receipt_email": {
			Type: "string",
		},
		"shipping.address.city": {
			Type: "string",
		},
		"shipping.address.country": {
			Type: "string",
		},
		"shipping.address.line1": {
			Type: "string",
		},
		"shipping.address.line2": {
			Type: "string",
		},
		"shipping.address.postal_code": {
			Type: "string",
		},
		"shipping.address.state": {
			Type: "string",
		},
		"shipping.carrier": {
			Type: "string",
		},
		"shipping.name": {
			Type:     "string",
			Required: true,
		},
		"shipping.phone": {
			Type: "string",
		},
		"shipping.tracking_number": {
			Type: "string",
		},
		"source": {
			Type: "string",
		},
		"statement_descriptor": {
			Type: "string",
		},
		"statement_descriptor_suffix": {
			Type: "string",
		},
		"transfer_data.amount": {
			Type: "integer",
		},
		"transfer_data.destination": {
			Type:     "string",
			Required: true,
		},
		"transfer_group": {
			Type: "string",
		},
	},
}
View Source
var V1ChargesList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/charges",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type: "integer",
		},
		"customer": {
			Type: "string",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"payment_intent": {
			Type: "string",
		},
		"starting_after": {
			Type: "string",
		},
		"transfer_group": {
			Type: "string",
		},
	},
}
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",
		},
		"page": {
			Type: "string",
		},
		"query": {
			Type:     "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",
		},
		"description": {
			Type: "string",
		},
		"fraud_details.user_report": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "fraudulent"},
				{Value: "safe"},
			},
		},
		"receipt_email": {
			Type: "string",
		},
		"shipping.address.city": {
			Type: "string",
		},
		"shipping.address.country": {
			Type: "string",
		},
		"shipping.address.line1": {
			Type: "string",
		},
		"shipping.address.line2": {
			Type: "string",
		},
		"shipping.address.postal_code": {
			Type: "string",
		},
		"shipping.address.state": {
			Type: "string",
		},
		"shipping.carrier": {
			Type: "string",
		},
		"shipping.name": {
			Type:     "string",
			Required: true,
		},
		"shipping.phone": {
			Type: "string",
		},
		"shipping.tracking_number": {
			Type: "string",
		},
		"transfer_group": {
			Type: "string",
		},
	},
}
View Source
var V1CheckoutSessionsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/checkout/sessions",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"adaptive_pricing.enabled": {
			Type: "boolean",
		},
		"after_expiration.recovery.allow_promotion_codes": {
			Type: "boolean",
		},
		"after_expiration.recovery.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"allow_promotion_codes": {
			Type: "boolean",
		},
		"automatic_tax.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"automatic_tax.liability.account": {
			Type: "string",
		},
		"automatic_tax.liability.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"billing_address_collection": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "auto"},
				{Value: "required"},
			},
		},
		"branding_settings.background_color": {
			Type: "string",
		},
		"branding_settings.border_style": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "pill"},
				{Value: "rectangular"},
				{Value: "rounded"},
			},
		},
		"branding_settings.button_color": {
			Type: "string",
		},
		"branding_settings.display_name": {
			Type: "string",
		},
		"branding_settings.font_family": {
			Type: "string",
			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",
		},
		"branding_settings.icon.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "file"},
				{Value: "url"},
			},
		},
		"branding_settings.icon.url": {
			Type: "string",
		},
		"branding_settings.logo.file": {
			Type: "string",
		},
		"branding_settings.logo.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "file"},
				{Value: "url"},
			},
		},
		"branding_settings.logo.url": {
			Type: "string",
		},
		"cancel_url": {
			Type: "string",
		},
		"client_reference_id": {
			Type: "string",
		},
		"consent_collection.payment_method_reuse_agreement.position": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "auto"},
				{Value: "hidden"},
			},
		},
		"consent_collection.promotions": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "auto"},
				{Value: "none"},
			},
		},
		"consent_collection.terms_of_service": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "required"},
			},
		},
		"currency": {
			Type:   "string",
			Format: "currency",
		},
		"customer": {
			Type: "string",
		},
		"customer_account": {
			Type: "string",
		},
		"customer_creation": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "if_required"},
			},
		},
		"customer_email": {
			Type: "string",
		},
		"customer_update.address": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "auto"},
				{Value: "never"},
			},
		},
		"customer_update.name": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "auto"},
				{Value: "never"},
			},
		},
		"customer_update.shipping": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "auto"},
				{Value: "never"},
			},
		},
		"excluded_payment_method_types": {
			Type: "array",
		},
		"expires_at": {
			Type:   "integer",
			Format: "unix-time",
		},
		"integration_identifier": {
			Type: "string",
		},
		"invoice_creation.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"invoice_creation.invoice_data.account_tax_ids": {
			Type: "array",
		},
		"invoice_creation.invoice_data.description": {
			Type: "string",
		},
		"invoice_creation.invoice_data.footer": {
			Type: "string",
		},
		"invoice_creation.invoice_data.issuer.account": {
			Type: "string",
		},
		"invoice_creation.invoice_data.issuer.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"locale": {
			Type: "string",
			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",
			Enum: []resource.EnumSpec{
				{Value: "payment"},
				{Value: "setup"},
				{Value: "subscription"},
			},
		},
		"name_collection.business.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"name_collection.business.optional": {
			Type: "boolean",
		},
		"name_collection.individual.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"name_collection.individual.optional": {
			Type: "boolean",
		},
		"origin_context": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "mobile_app"},
				{Value: "web"},
			},
		},
		"payment_intent_data.application_fee_amount": {
			Type: "integer",
		},
		"payment_intent_data.capture_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "automatic_async"},
				{Value: "manual"},
			},
		},
		"payment_intent_data.description": {
			Type: "string",
		},
		"payment_intent_data.on_behalf_of": {
			Type: "string",
		},
		"payment_intent_data.receipt_email": {
			Type: "string",
		},
		"payment_intent_data.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_intent_data.shipping.address.city": {
			Type: "string",
		},
		"payment_intent_data.shipping.address.country": {
			Type: "string",
		},
		"payment_intent_data.shipping.address.line1": {
			Type:     "string",
			Required: true,
		},
		"payment_intent_data.shipping.address.line2": {
			Type: "string",
		},
		"payment_intent_data.shipping.address.postal_code": {
			Type: "string",
		},
		"payment_intent_data.shipping.address.state": {
			Type: "string",
		},
		"payment_intent_data.shipping.carrier": {
			Type: "string",
		},
		"payment_intent_data.shipping.name": {
			Type:     "string",
			Required: true,
		},
		"payment_intent_data.shipping.phone": {
			Type: "string",
		},
		"payment_intent_data.shipping.tracking_number": {
			Type: "string",
		},
		"payment_intent_data.statement_descriptor": {
			Type: "string",
		},
		"payment_intent_data.statement_descriptor_suffix": {
			Type: "string",
		},
		"payment_intent_data.transfer_data.amount": {
			Type: "integer",
		},
		"payment_intent_data.transfer_data.destination": {
			Type:     "string",
			Required: true,
		},
		"payment_intent_data.transfer_group": {
			Type: "string",
		},
		"payment_method_collection": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "if_required"},
			},
		},
		"payment_method_configuration": {
			Type: "string",
		},
		"payment_method_data.allow_redisplay": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "limited"},
				{Value: "unspecified"},
			},
		},
		"payment_method_options.acss_debit.currency": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "cad"},
				{Value: "usd"},
			},
		},
		"payment_method_options.acss_debit.mandate_options.custom_mandate_url": {
			Type: "string",
		},
		"payment_method_options.acss_debit.mandate_options.default_for": {
			Type: "array",
		},
		"payment_method_options.acss_debit.mandate_options.interval_description": {
			Type: "string",
		},
		"payment_method_options.acss_debit.mandate_options.payment_schedule": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "combined"},
				{Value: "interval"},
				{Value: "sporadic"},
			},
		},
		"payment_method_options.acss_debit.mandate_options.transaction_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "business"},
				{Value: "personal"},
			},
		},
		"payment_method_options.acss_debit.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.acss_debit.target_date": {
			Type: "string",
		},
		"payment_method_options.acss_debit.verification_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "instant"},
				{Value: "microdeposits"},
			},
		},
		"payment_method_options.affirm.capture_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.affirm.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.afterpay_clearpay.capture_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.afterpay_clearpay.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.alipay.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.alma.capture_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.amazon_pay.capture_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.amazon_pay.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.au_becs_debit.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.au_becs_debit.target_date": {
			Type: "string",
		},
		"payment_method_options.bacs_debit.mandate_options.reference_prefix": {
			Type: "string",
		},
		"payment_method_options.bacs_debit.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.bacs_debit.target_date": {
			Type: "string",
		},
		"payment_method_options.bancontact.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.billie.capture_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.boleto.expires_after_days": {
			Type: "integer",
		},
		"payment_method_options.boleto.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.card.capture_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.card.installments.enabled": {
			Type: "boolean",
		},
		"payment_method_options.card.request_extended_authorization": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "if_available"},
				{Value: "never"},
			},
		},
		"payment_method_options.card.request_incremental_authorization": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "if_available"},
				{Value: "never"},
			},
		},
		"payment_method_options.card.request_multicapture": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "if_available"},
				{Value: "never"},
			},
		},
		"payment_method_options.card.request_overcapture": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "if_available"},
				{Value: "never"},
			},
		},
		"payment_method_options.card.request_three_d_secure": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "any"},
				{Value: "automatic"},
				{Value: "challenge"},
			},
		},
		"payment_method_options.card.restrictions.brands_blocked": {
			Type: "array",
		},
		"payment_method_options.card.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.card.statement_descriptor_suffix_kana": {
			Type: "string",
		},
		"payment_method_options.card.statement_descriptor_suffix_kanji": {
			Type: "string",
		},
		"payment_method_options.cashapp.capture_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.cashapp.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.crypto.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.customer_balance.bank_transfer.eu_bank_transfer.country": {
			Type:     "string",
			Required: true,
		},
		"payment_method_options.customer_balance.bank_transfer.requested_address_types": {
			Type: "array",
		},
		"payment_method_options.customer_balance.bank_transfer.type": {
			Type:     "string",
			Required: true,
			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",
			Enum: []resource.EnumSpec{
				{Value: "bank_transfer"},
			},
		},
		"payment_method_options.customer_balance.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.demo_pay.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.eps.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.fpx.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.giropay.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.grabpay.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.ideal.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.kakao_pay.capture_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.kakao_pay.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.klarna.capture_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.klarna.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.konbini.expires_after_days": {
			Type: "integer",
		},
		"payment_method_options.konbini.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.kr_card.capture_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.kr_card.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.link.capture_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.link.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.mobilepay.capture_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.mobilepay.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.multibanco.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.naver_pay.capture_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.naver_pay.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.oxxo.expires_after_days": {
			Type: "integer",
		},
		"payment_method_options.oxxo.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.p24.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.p24.tos_shown_and_accepted": {
			Type: "boolean",
		},
		"payment_method_options.payco.capture_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.paynow.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.paypal.capture_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.paypal.preferred_locale": {
			Type: "string",
			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",
		},
		"payment_method_options.paypal.risk_correlation_id": {
			Type: "string",
		},
		"payment_method_options.paypal.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.payto.mandate_options.amount": {
			Type: "integer",
		},
		"payment_method_options.payto.mandate_options.amount_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_options.payto.mandate_options.end_date": {
			Type: "string",
		},
		"payment_method_options.payto.mandate_options.payment_schedule": {
			Type: "string",
			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",
		},
		"payment_method_options.payto.mandate_options.purpose": {
			Type: "string",
			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",
		},
		"payment_method_options.payto.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.pix.amount_includes_iof": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "never"},
			},
		},
		"payment_method_options.pix.expires_after_seconds": {
			Type: "integer",
		},
		"payment_method_options.pix.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.revolut_pay.capture_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.revolut_pay.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
			},
		},
		"payment_method_options.samsung_pay.capture_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.satispay.capture_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "manual"},
			},
		},
		"payment_method_options.sepa_debit.mandate_options.reference_prefix": {
			Type: "string",
		},
		"payment_method_options.sepa_debit.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.sepa_debit.target_date": {
			Type: "string",
		},
		"payment_method_options.sofort.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.swish.reference": {
			Type: "string",
		},
		"payment_method_options.twint.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_options.upi.mandate_options.amount": {
			Type: "integer",
		},
		"payment_method_options.upi.mandate_options.amount_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_options.upi.mandate_options.description": {
			Type: "string",
		},
		"payment_method_options.upi.mandate_options.end_date": {
			Type:   "integer",
			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",
		},
		"payment_method_options.us_bank_account.financial_connections.prefetch": {
			Type: "array",
		},
		"payment_method_options.us_bank_account.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_method_options.us_bank_account.target_date": {
			Type: "string",
		},
		"payment_method_options.us_bank_account.verification_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "instant"},
			},
		},
		"payment_method_options.wechat_pay.app_id": {
			Type: "string",
		},
		"payment_method_options.wechat_pay.client": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "android"},
				{Value: "ios"},
				{Value: "web"},
			},
		},
		"payment_method_options.wechat_pay.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
			},
		},
		"payment_method_types": {
			Type: "array",
		},
		"permissions.update_shipping_details": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "client_only"},
				{Value: "server_only"},
			},
		},
		"phone_number_collection.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"redirect_on_completion": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "if_required"},
				{Value: "never"},
			},
		},
		"return_url": {
			Type: "string",
		},
		"saved_payment_method_options.allow_redisplay_filters": {
			Type: "array",
		},
		"saved_payment_method_options.payment_method_remove": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "disabled"},
				{Value: "enabled"},
			},
		},
		"saved_payment_method_options.payment_method_save": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "disabled"},
				{Value: "enabled"},
			},
		},
		"setup_intent_data.description": {
			Type: "string",
		},
		"setup_intent_data.on_behalf_of": {
			Type: "string",
		},
		"shipping_address_collection.allowed_countries": {
			Type:     "array",
			Required: true,
		},
		"submit_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "auto"},
				{Value: "book"},
				{Value: "donate"},
				{Value: "pay"},
				{Value: "subscribe"},
			},
		},
		"subscription_data.application_fee_percent": {
			Type: "number",
		},
		"subscription_data.billing_cycle_anchor": {
			Type:   "integer",
			Format: "unix-time",
		},
		"subscription_data.billing_mode.flexible.proration_discounts": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "included"},
				{Value: "itemized"},
			},
		},
		"subscription_data.billing_mode.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "classic"},
				{Value: "flexible"},
			},
		},
		"subscription_data.default_tax_rates": {
			Type: "array",
		},
		"subscription_data.description": {
			Type: "string",
		},
		"subscription_data.invoice_settings.issuer.account": {
			Type: "string",
		},
		"subscription_data.invoice_settings.issuer.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"subscription_data.on_behalf_of": {
			Type: "string",
		},
		"subscription_data.pending_invoice_item_interval.interval": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "month"},
				{Value: "week"},
				{Value: "year"},
			},
		},
		"subscription_data.pending_invoice_item_interval.interval_count": {
			Type: "integer",
		},
		"subscription_data.proration_behavior": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "create_prorations"},
				{Value: "none"},
			},
		},
		"subscription_data.transfer_data.amount_percent": {
			Type: "number",
		},
		"subscription_data.transfer_data.destination": {
			Type:     "string",
			Required: true,
		},
		"subscription_data.trial_end": {
			Type:   "integer",
			Format: "unix-time",
		},
		"subscription_data.trial_period_days": {
			Type: "integer",
		},
		"subscription_data.trial_settings.end_behavior.missing_payment_method": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "cancel"},
				{Value: "create_invoice"},
				{Value: "pause"},
			},
		},
		"success_url": {
			Type: "string",
		},
		"tax_id_collection.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"tax_id_collection.required": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "if_supported"},
				{Value: "never"},
			},
		},
		"ui_mode": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "elements"},
				{Value: "embedded_page"},
				{Value: "form"},
				{Value: "hosted_page"},
			},
		},
		"wallet_options.link.display": {
			Type: "string",
			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",
		},
		"customer": {
			Type: "string",
		},
		"customer_account": {
			Type: "string",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"payment_intent": {
			Type: "string",
		},
		"payment_link": {
			Type: "string",
		},
		"starting_after": {
			Type: "string",
		},
		"status": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "complete"},
				{Value: "expired"},
				{Value: "open"},
			},
		},
		"subscription": {
			Type: "string",
		},
	},
}
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",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
		"collected_information.shipping_details.address.country": {
			Type:     "string",
			Required: true,
		},
		"collected_information.shipping_details.address.line1": {
			Type:     "string",
			Required: true,
		},
		"collected_information.shipping_details.address.line2": {
			Type: "string",
		},
		"collected_information.shipping_details.address.postal_code": {
			Type: "string",
		},
		"collected_information.shipping_details.address.state": {
			Type: "string",
		},
		"collected_information.shipping_details.name": {
			Type:     "string",
			Required: true,
		},
	},
}
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",
		},
		"beneficiary.public_name": {
			Type:     "string",
			Required: true,
		},
		"currency": {
			Type: "string",
		},
		"metric_tons": {
			Type:   "string",
			Format: "decimal",
		},
		"product": {
			Type:     "string",
			Required: true,
		},
	},
}
View Source
var V1ClimateOrdersList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/climate/orders",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
}
View Source
var V1ClimateProductsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/climate/products",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
		"payment_method_data.acss_debit.account_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.acss_debit.institution_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.acss_debit.transit_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.allow_redisplay": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "limited"},
				{Value: "unspecified"},
			},
		},
		"payment_method_data.au_becs_debit.account_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.au_becs_debit.bsb_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.bacs_debit.account_number": {
			Type: "string",
		},
		"payment_method_data.bacs_debit.sort_code": {
			Type: "string",
		},
		"payment_method_data.billing_details.email": {
			Type: "string",
		},
		"payment_method_data.billing_details.name": {
			Type: "string",
		},
		"payment_method_data.billing_details.phone": {
			Type: "string",
		},
		"payment_method_data.billing_details.tax_id": {
			Type: "string",
		},
		"payment_method_data.boleto.tax_id": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.eps.bank": {
			Type: "string",
			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",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"payment_method_data.fpx.bank": {
			Type:     "string",
			Required: true,
			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",
			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",
			Required: true,
		},
		"payment_method_data.klarna.dob.month": {
			Type:     "integer",
			Required: true,
		},
		"payment_method_data.klarna.dob.year": {
			Type:     "integer",
			Required: true,
		},
		"payment_method_data.naver_pay.funding": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "card"},
				{Value: "points"},
			},
		},
		"payment_method_data.nz_bank_account.account_holder_name": {
			Type: "string",
		},
		"payment_method_data.nz_bank_account.account_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.nz_bank_account.bank_code": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.nz_bank_account.branch_code": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.nz_bank_account.reference": {
			Type: "string",
		},
		"payment_method_data.nz_bank_account.suffix": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.p24.bank": {
			Type: "string",
			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",
		},
		"payment_method_data.payto.bsb_number": {
			Type: "string",
		},
		"payment_method_data.payto.pay_id": {
			Type: "string",
		},
		"payment_method_data.radar_options.session": {
			Type: "string",
		},
		"payment_method_data.sepa_debit.iban": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.sofort.country": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "AT"},
				{Value: "BE"},
				{Value: "DE"},
				{Value: "ES"},
				{Value: "IT"},
				{Value: "NL"},
			},
		},
		"payment_method_data.type": {
			Type:     "string",
			Required: 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",
		},
		"payment_method_data.upi.mandate_options.amount_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_data.upi.mandate_options.description": {
			Type: "string",
		},
		"payment_method_data.upi.mandate_options.end_date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"payment_method_data.us_bank_account.account_holder_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"payment_method_data.us_bank_account.account_number": {
			Type: "string",
		},
		"payment_method_data.us_bank_account.account_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "checking"},
				{Value: "savings"},
			},
		},
		"payment_method_data.us_bank_account.financial_connections_account": {
			Type: "string",
		},
		"payment_method_data.us_bank_account.routing_number": {
			Type: "string",
		},
		"payment_method_options.card.installments.plan.count": {
			Type: "integer",
		},
		"payment_method_options.card.installments.plan.interval": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "month"},
			},
		},
		"payment_method_options.card.installments.plan.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "bonus"},
				{Value: "fixed_count"},
				{Value: "revolving"},
			},
		},
		"return_url": {
			Type: "string",
		},
		"setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"shipping.address.city": {
			Type: "string",
		},
		"shipping.address.country": {
			Type: "string",
		},
		"shipping.address.line1": {
			Type: "string",
		},
		"shipping.address.line2": {
			Type: "string",
		},
		"shipping.address.postal_code": {
			Type: "string",
		},
		"shipping.address.state": {
			Type: "string",
		},
		"shipping.name": {
			Type:     "string",
			Required: true,
		},
		"shipping.phone": {
			Type: "string",
		},
	},
}
View Source
var V1CountrySpecsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/country_specs",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
		"applies_to.products": {
			Type: "array",
		},
		"currency": {
			Type:   "string",
			Format: "currency",
		},
		"duration": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "forever"},
				{Value: "once"},
				{Value: "repeating"},
			},
		},
		"duration_in_months": {
			Type: "integer",
		},
		"id": {
			Type: "string",
		},
		"max_redemptions": {
			Type: "integer",
		},
		"name": {
			Type: "string",
		},
		"percent_off": {
			Type: "number",
		},
		"redeem_by": {
			Type:   "integer",
			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",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
	},
}
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",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
View Source
var V1CreditNotesCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/credit_notes",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type: "integer",
		},
		"credit_amount": {
			Type: "integer",
		},
		"effective_at": {
			Type:   "integer",
			Format: "unix-time",
		},
		"email_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "credit_note"},
				{Value: "none"},
			},
		},
		"invoice": {
			Type:     "string",
			Required: true,
		},
		"memo": {
			Type: "string",
		},
		"out_of_band_amount": {
			Type: "integer",
		},
		"reason": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "duplicate"},
				{Value: "fraudulent"},
				{Value: "order_change"},
				{Value: "product_unsatisfactory"},
			},
		},
		"refund_amount": {
			Type: "integer",
		},
		"shipping_cost.shipping_rate": {
			Type: "string",
		},
	},
}
View Source
var V1CreditNotesList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/credit_notes",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type: "integer",
		},
		"customer": {
			Type: "string",
		},
		"customer_account": {
			Type: "string",
		},
		"ending_before": {
			Type: "string",
		},
		"invoice": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
View Source
var V1CreditNotesPreview = resource.OperationSpec{
	Name:   "preview",
	Path:   "/v1/credit_notes/preview",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type: "integer",
		},
		"credit_amount": {
			Type: "integer",
		},
		"effective_at": {
			Type:   "integer",
			Format: "unix-time",
		},
		"email_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "credit_note"},
				{Value: "none"},
			},
		},
		"invoice": {
			Type:     "string",
			Required: true,
		},
		"memo": {
			Type: "string",
		},
		"out_of_band_amount": {
			Type: "integer",
		},
		"reason": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "duplicate"},
				{Value: "fraudulent"},
				{Value: "order_change"},
				{Value: "product_unsatisfactory"},
			},
		},
		"refund_amount": {
			Type: "integer",
		},
	},
}
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",
		},
		"credit_amount": {
			Type: "integer",
		},
		"effective_at": {
			Type:   "integer",
			Format: "unix-time",
		},
		"email_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "credit_note"},
				{Value: "none"},
			},
		},
		"ending_before": {
			Type: "string",
		},
		"invoice": {
			Type:     "string",
			Required: true,
		},
		"limit": {
			Type: "integer",
		},
		"memo": {
			Type: "string",
		},
		"out_of_band_amount": {
			Type: "integer",
		},
		"reason": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "duplicate"},
				{Value: "fraudulent"},
				{Value: "order_change"},
				{Value: "product_unsatisfactory"},
			},
		},
		"refund_amount": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
	},
}
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",
			Required: true,
		},
		"currency": {
			Type:     "string",
			Required: true,
			Format:   "currency",
		},
		"description": {
			Type: "string",
		},
	},
}
View Source
var V1CustomerBalanceTransactionsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/customers/{customer}/balance_transactions",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type: "integer",
		},
		"ending_before": {
			Type: "string",
		},
		"invoice": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
	},
}
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",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
			Required: true,
		},
		"components.customer_sheet.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"components.customer_sheet.features.payment_method_allow_redisplay_filters": {
			Type: "array",
		},
		"components.customer_sheet.features.payment_method_remove": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "disabled"},
				{Value: "enabled"},
			},
		},
		"components.mobile_payment_element.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"components.mobile_payment_element.features.payment_method_allow_redisplay_filters": {
			Type: "array",
		},
		"components.mobile_payment_element.features.payment_method_redisplay": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "disabled"},
				{Value: "enabled"},
			},
		},
		"components.mobile_payment_element.features.payment_method_remove": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "disabled"},
				{Value: "enabled"},
			},
		},
		"components.mobile_payment_element.features.payment_method_save": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "disabled"},
				{Value: "enabled"},
			},
		},
		"components.mobile_payment_element.features.payment_method_save_allow_redisplay_override": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "limited"},
				{Value: "unspecified"},
			},
		},
		"components.payment_element.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"components.payment_element.features.payment_method_allow_redisplay_filters": {
			Type: "array",
		},
		"components.payment_element.features.payment_method_redisplay": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "disabled"},
				{Value: "enabled"},
			},
		},
		"components.payment_element.features.payment_method_redisplay_limit": {
			Type: "integer",
		},
		"components.payment_element.features.payment_method_remove": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "disabled"},
				{Value: "enabled"},
			},
		},
		"components.payment_element.features.payment_method_save": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "disabled"},
				{Value: "enabled"},
			},
		},
		"components.payment_element.features.payment_method_save_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"components.pricing_table.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"customer": {
			Type: "string",
		},
		"customer_account": {
			Type: "string",
		},
	},
}
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",
		},
		"ending_before": {
			Type: "string",
		},
		"invoice": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
View Source
var V1CustomersCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/customers",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"balance": {
			Type: "integer",
		},
		"business_name": {
			Type: "string",
		},
		"cash_balance.settings.reconciliation_mode": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "manual"},
				{Value: "merchant_default"},
			},
		},
		"description": {
			Type: "string",
		},
		"email": {
			Type: "string",
		},
		"individual_name": {
			Type: "string",
		},
		"invoice_prefix": {
			Type: "string",
		},
		"invoice_settings.default_payment_method": {
			Type: "string",
		},
		"invoice_settings.footer": {
			Type: "string",
		},
		"name": {
			Type: "string",
		},
		"next_invoice_sequence": {
			Type: "integer",
		},
		"payment_method": {
			Type: "string",
		},
		"phone": {
			Type: "string",
		},
		"preferred_locales": {
			Type: "array",
		},
		"source": {
			Type: "string",
		},
		"tax.ip_address": {
			Type: "string",
		},
		"tax.validate_location": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "deferred"},
				{Value: "immediately"},
			},
		},
		"tax_exempt": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "exempt"},
				{Value: "none"},
				{Value: "reverse"},
			},
		},
		"test_clock": {
			Type: "string",
		},
		"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",
			Required: true,
		},
		"bank_transfer.requested_address_types": {
			Type: "array",
		},
		"bank_transfer.type": {
			Type:     "string",
			Required: 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",
			Required: true,
			Format:   "currency",
		},
		"funding_type": {
			Type:     "string",
			Required: 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",
		},
		"email": {
			Type: "string",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
		"test_clock": {
			Type: "string",
		},
	},
}
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",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "limited"},
				{Value: "unspecified"},
			},
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
		"type": {
			Type: "string",
			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",
		},
		"page": {
			Type: "string",
		},
		"query": {
			Type:     "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",
			Required: true,
		},
		"currency": {
			Type:     "string",
			Required: true,
			Format:   "currency",
		},
		"reference": {
			Type: "string",
		},
	},
}
View Source
var V1CustomersUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/customers/{customer}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"balance": {
			Type: "integer",
		},
		"business_name": {
			Type: "string",
		},
		"cash_balance.settings.reconciliation_mode": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "manual"},
				{Value: "merchant_default"},
			},
		},
		"default_source": {
			Type: "string",
		},
		"description": {
			Type: "string",
		},
		"email": {
			Type: "string",
		},
		"individual_name": {
			Type: "string",
		},
		"invoice_prefix": {
			Type: "string",
		},
		"invoice_settings.default_payment_method": {
			Type: "string",
		},
		"invoice_settings.footer": {
			Type: "string",
		},
		"name": {
			Type: "string",
		},
		"next_invoice_sequence": {
			Type: "integer",
		},
		"phone": {
			Type: "string",
		},
		"preferred_locales": {
			Type: "array",
		},
		"source": {
			Type: "string",
		},
		"tax.ip_address": {
			Type: "string",
		},
		"tax.validate_location": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "auto"},
				{Value: "deferred"},
				{Value: "immediately"},
			},
		},
		"tax_exempt": {
			Type: "string",
			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",
		},
		"created": {
			Type: "integer",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"payment_intent": {
			Type: "string",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
		"evidence.billing_address": {
			Type: "string",
		},
		"evidence.cancellation_policy": {
			Type: "string",
		},
		"evidence.cancellation_policy_disclosure": {
			Type: "string",
		},
		"evidence.cancellation_rebuttal": {
			Type: "string",
		},
		"evidence.customer_communication": {
			Type: "string",
		},
		"evidence.customer_email_address": {
			Type: "string",
		},
		"evidence.customer_name": {
			Type: "string",
		},
		"evidence.customer_purchase_ip": {
			Type: "string",
		},
		"evidence.customer_signature": {
			Type: "string",
		},
		"evidence.duplicate_charge_documentation": {
			Type: "string",
		},
		"evidence.duplicate_charge_explanation": {
			Type: "string",
		},
		"evidence.duplicate_charge_id": {
			Type: "string",
		},
		"evidence.product_description": {
			Type: "string",
		},
		"evidence.receipt": {
			Type: "string",
		},
		"evidence.refund_policy": {
			Type: "string",
		},
		"evidence.refund_policy_disclosure": {
			Type: "string",
		},
		"evidence.refund_refusal_explanation": {
			Type: "string",
		},
		"evidence.service_date": {
			Type: "string",
		},
		"evidence.service_documentation": {
			Type: "string",
		},
		"evidence.shipping_address": {
			Type: "string",
		},
		"evidence.shipping_carrier": {
			Type: "string",
		},
		"evidence.shipping_date": {
			Type: "string",
		},
		"evidence.shipping_documentation": {
			Type: "string",
		},
		"evidence.shipping_tracking_number": {
			Type: "string",
		},
		"evidence.uncategorized_file": {
			Type: "string",
		},
		"evidence.uncategorized_text": {
			Type: "string",
		},
		"submit": {
			Type: "boolean",
		},
	},
}
View Source
var V1EntitlementsActiveEntitlementsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/entitlements/active_entitlements",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"customer": {
			Type:     "string",
			Required: true,
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
			Required: true,
		},
		"name": {
			Type:     "string",
			Required: true,
		},
	},
}
View Source
var V1EntitlementsFeaturesList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/entitlements/features",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"archived": {
			Type: "boolean",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"lookup_key": {
			Type: "string",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
		"name": {
			Type: "string",
		},
	},
}
View Source
var V1EphemeralKeysCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/ephemeral_keys",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"customer": {
			Type: "string",
		},
		"issuing_card": {
			Type: "string",
		},
		"nonce": {
			Type: "string",
		},
		"verification_session": {
			Type: "string",
		},
	},
}
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",
		},
		"delivery_success": {
			Type: "boolean",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
		"type": {
			Type: "string",
		},
		"types": {
			Type: "array",
		},
	},
}
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",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
		"external_account": {
			Type:     "string",
			Required: 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",
		},
		"limit": {
			Type: "integer",
		},
		"object": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "bank_account"},
				{Value: "card"},
			},
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
		"account_holder_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"account_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "checking"},
				{Value: "futsu"},
				{Value: "savings"},
				{Value: "toza"},
			},
		},
		"address_city": {
			Type: "string",
		},
		"address_country": {
			Type: "string",
		},
		"address_line1": {
			Type: "string",
		},
		"address_line2": {
			Type: "string",
		},
		"address_state": {
			Type: "string",
		},
		"address_zip": {
			Type: "string",
		},
		"default_for_currency": {
			Type: "boolean",
		},
		"documents.bank_account_ownership_verification.files": {
			Type: "array",
		},
		"exp_month": {
			Type: "string",
		},
		"exp_year": {
			Type: "string",
		},
		"name": {
			Type: "string",
		},
	},
}
View Source
var V1FeeRefundsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/application_fees/{id}/refunds",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type: "integer",
		},
	},
}
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",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
			Format: "unix-time",
		},
		"file": {
			Type:     "string",
			Required: true,
		},
	},
}
View Source
var V1FileLinksList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/file_links",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type: "integer",
		},
		"ending_before": {
			Type: "string",
		},
		"expired": {
			Type: "boolean",
		},
		"file": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
	},
}
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",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"purpose": {
			Type: "string",
			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",
		},
	},
}
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",
		},
		"limit": {
			Type: "integer",
		},
		"session": {
			Type: "string",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
		"limit": {
			Type: "integer",
		},
		"ownership": {
			Type:     "string",
			Required: true,
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
			Required: 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",
			Required: 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",
			Required: 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",
		},
		"account_holder.customer": {
			Type: "string",
		},
		"account_holder.customer_account": {
			Type: "string",
		},
		"account_holder.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "customer"},
			},
		},
		"filters.account_subcategories": {
			Type: "array",
		},
		"filters.countries": {
			Type: "array",
		},
		"permissions": {
			Type:     "array",
			Required: true,
		},
		"prefetch": {
			Type: "array",
		},
		"return_url": {
			Type: "string",
		},
	},
}
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",
			Required: true,
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
		"transacted_at": {
			Type: "integer",
		},
	},
}
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",
			Required: true,
		},
		"replacements": {
			Type:     "array",
			Required: true,
		},
		"request.body": {
			Type: "string",
		},
		"url": {
			Type:     "string",
			Required: true,
		},
	},
}
View Source
var V1ForwardingRequestsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/forwarding/requests",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
		"created": {
			Type: "integer",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
		"type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "document"},
				{Value: "id_number"},
			},
		},
		"verification_session": {
			Type: "string",
		},
	},
}
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",
		},
		"provided_details.email": {
			Type: "string",
		},
		"provided_details.phone": {
			Type: "string",
		},
		"related_customer": {
			Type: "string",
		},
		"related_customer_account": {
			Type: "string",
		},
		"related_person.account": {
			Type:     "string",
			Required: true,
		},
		"related_person.person": {
			Type:     "string",
			Required: true,
		},
		"return_url": {
			Type: "string",
		},
		"type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "document"},
				{Value: "id_number"},
			},
		},
		"verification_flow": {
			Type: "string",
		},
	},
}
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",
		},
		"created": {
			Type: "integer",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"related_customer": {
			Type: "string",
		},
		"related_customer_account": {
			Type: "string",
		},
		"starting_after": {
			Type: "string",
		},
		"status": {
			Type: "string",
			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{
		"provided_details.email": {
			Type: "string",
		},
		"provided_details.phone": {
			Type: "string",
		},
		"type": {
			Type: "string",
			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",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
		"description": {
			Type: "string",
		},
		"discountable": {
			Type: "boolean",
		},
		"period.end": {
			Type:     "integer",
			Required: true,
			Format:   "unix-time",
		},
		"period.start": {
			Type:     "integer",
			Required: true,
			Format:   "unix-time",
		},
		"price_data.currency": {
			Type:     "string",
			Required: true,
			Format:   "currency",
		},
		"price_data.product": {
			Type: "string",
		},
		"price_data.product_data.description": {
			Type: "string",
		},
		"price_data.product_data.images": {
			Type: "array",
		},
		"price_data.product_data.name": {
			Type:     "string",
			Required: true,
		},
		"price_data.product_data.tax_code": {
			Type: "string",
		},
		"price_data.product_data.unit_label": {
			Type: "string",
		},
		"price_data.tax_behavior": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "exclusive"},
				{Value: "inclusive"},
				{Value: "unspecified"},
			},
		},
		"price_data.unit_amount": {
			Type: "integer",
		},
		"price_data.unit_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"pricing.price": {
			Type: "string",
		},
		"quantity": {
			Type: "integer",
		},
		"quantity_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"tax_rates": {
			Type: "array",
		},
	},
}
View Source
var V1InvoicePaymentsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/invoice_payments",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type: "integer",
		},
		"ending_before": {
			Type: "string",
		},
		"invoice": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
		"status": {
			Type: "string",
			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",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
		"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",
		},
		"currency": {
			Type:   "string",
			Format: "currency",
		},
		"customer": {
			Type: "string",
		},
		"customer_account": {
			Type: "string",
		},
		"description": {
			Type: "string",
		},
		"discountable": {
			Type: "boolean",
		},
		"invoice": {
			Type: "string",
		},
		"period.end": {
			Type:     "integer",
			Required: true,
			Format:   "unix-time",
		},
		"period.start": {
			Type:     "integer",
			Required: true,
			Format:   "unix-time",
		},
		"price_data.currency": {
			Type:     "string",
			Required: true,
			Format:   "currency",
		},
		"price_data.product": {
			Type:     "string",
			Required: true,
		},
		"price_data.tax_behavior": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "exclusive"},
				{Value: "inclusive"},
				{Value: "unspecified"},
			},
		},
		"price_data.unit_amount": {
			Type: "integer",
		},
		"price_data.unit_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"pricing.price": {
			Type: "string",
		},
		"quantity": {
			Type: "integer",
		},
		"quantity_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"subscription": {
			Type: "string",
		},
		"tax_behavior": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "exclusive"},
				{Value: "inclusive"},
				{Value: "unspecified"},
			},
		},
		"tax_code": {
			Type: "string",
		},
		"tax_rates": {
			Type: "array",
		},
		"unit_amount_decimal": {
			Type:   "string",
			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",
		},
		"customer": {
			Type: "string",
		},
		"customer_account": {
			Type: "string",
		},
		"ending_before": {
			Type: "string",
		},
		"invoice": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"pending": {
			Type: "boolean",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
		"description": {
			Type: "string",
		},
		"discountable": {
			Type: "boolean",
		},
		"period.end": {
			Type:     "integer",
			Required: true,
			Format:   "unix-time",
		},
		"period.start": {
			Type:     "integer",
			Required: true,
			Format:   "unix-time",
		},
		"price_data.currency": {
			Type:     "string",
			Required: true,
			Format:   "currency",
		},
		"price_data.product": {
			Type:     "string",
			Required: true,
		},
		"price_data.tax_behavior": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "exclusive"},
				{Value: "inclusive"},
				{Value: "unspecified"},
			},
		},
		"price_data.unit_amount": {
			Type: "integer",
		},
		"price_data.unit_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"pricing.price": {
			Type: "string",
		},
		"quantity": {
			Type: "integer",
		},
		"quantity_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"tax_behavior": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "exclusive"},
				{Value: "inclusive"},
				{Value: "unspecified"},
			},
		},
		"tax_code": {
			Type: "string",
		},
		"tax_rates": {
			Type: "array",
		},
		"unit_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
	},
}
View Source
var V1InvoicesAddLines = resource.OperationSpec{
	Name:   "add_lines",
	Path:   "/v1/invoices/{invoice}/add_lines",
	Method: "POST",
}
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",
		},
		"payment_record": {
			Type: "string",
		},
	},
}
View Source
var V1InvoicesCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/invoices",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"account_tax_ids": {
			Type: "array",
		},
		"application_fee_amount": {
			Type: "integer",
		},
		"auto_advance": {
			Type: "boolean",
		},
		"automatic_tax.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"automatic_tax.liability.account": {
			Type: "string",
		},
		"automatic_tax.liability.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"automatically_finalizes_at": {
			Type:   "integer",
			Format: "unix-time",
		},
		"collection_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "charge_automatically"},
				{Value: "send_invoice"},
			},
		},
		"currency": {
			Type:   "string",
			Format: "currency",
		},
		"customer": {
			Type: "string",
		},
		"customer_account": {
			Type: "string",
		},
		"days_until_due": {
			Type: "integer",
		},
		"default_payment_method": {
			Type: "string",
		},
		"default_source": {
			Type: "string",
		},
		"default_tax_rates": {
			Type: "array",
		},
		"description": {
			Type: "string",
		},
		"due_date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"effective_at": {
			Type:   "integer",
			Format: "unix-time",
		},
		"footer": {
			Type: "string",
		},
		"from_invoice.action": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "revision"},
			},
		},
		"from_invoice.invoice": {
			Type:     "string",
			Required: true,
		},
		"issuer.account": {
			Type: "string",
		},
		"issuer.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"number": {
			Type: "string",
		},
		"on_behalf_of": {
			Type: "string",
		},
		"payment_settings.default_mandate": {
			Type: "string",
		},
		"payment_settings.payment_method_types": {
			Type: "array",
		},
		"pending_invoice_items_behavior": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "exclude"},
				{Value: "include"},
			},
		},
		"rendering.amount_tax_display": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "exclude_tax"},
				{Value: "include_inclusive_tax"},
			},
		},
		"rendering.pdf.page_size": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "a4"},
				{Value: "auto"},
				{Value: "letter"},
			},
		},
		"rendering.template": {
			Type: "string",
		},
		"rendering.template_version": {
			Type: "integer",
		},
		"shipping_cost.shipping_rate": {
			Type: "string",
		},
		"shipping_cost.shipping_rate_data.delivery_estimate.maximum.unit": {
			Type:     "string",
			Required: true,
			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",
			Required: true,
		},
		"shipping_cost.shipping_rate_data.delivery_estimate.minimum.unit": {
			Type:     "string",
			Required: true,
			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",
			Required: true,
		},
		"shipping_cost.shipping_rate_data.display_name": {
			Type:     "string",
			Required: true,
		},
		"shipping_cost.shipping_rate_data.fixed_amount.amount": {
			Type:     "integer",
			Required: true,
		},
		"shipping_cost.shipping_rate_data.fixed_amount.currency": {
			Type:     "string",
			Required: true,
			Format:   "currency",
		},
		"shipping_cost.shipping_rate_data.tax_behavior": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "exclusive"},
				{Value: "inclusive"},
				{Value: "unspecified"},
			},
		},
		"shipping_cost.shipping_rate_data.tax_code": {
			Type: "string",
		},
		"shipping_cost.shipping_rate_data.type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "fixed_amount"},
			},
		},
		"shipping_details.address.city": {
			Type: "string",
		},
		"shipping_details.address.country": {
			Type: "string",
		},
		"shipping_details.address.line1": {
			Type: "string",
		},
		"shipping_details.address.line2": {
			Type: "string",
		},
		"shipping_details.address.postal_code": {
			Type: "string",
		},
		"shipping_details.address.state": {
			Type: "string",
		},
		"shipping_details.name": {
			Type:     "string",
			Required: true,
		},
		"shipping_details.phone": {
			Type: "string",
		},
		"statement_descriptor": {
			Type: "string",
		},
		"subscription": {
			Type: "string",
		},
		"transfer_data.amount": {
			Type: "integer",
		},
		"transfer_data.destination": {
			Type:     "string",
			Required: true,
		},
	},
}
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",
			Required: true,
		},
		"automatic_tax.liability.account": {
			Type: "string",
		},
		"automatic_tax.liability.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"currency": {
			Type:   "string",
			Format: "currency",
		},
		"customer": {
			Type: "string",
		},
		"customer_account": {
			Type: "string",
		},
		"customer_details.tax.ip_address": {
			Type: "string",
		},
		"customer_details.tax_exempt": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "exempt"},
				{Value: "none"},
				{Value: "reverse"},
			},
		},
		"issuer.account": {
			Type: "string",
		},
		"issuer.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"on_behalf_of": {
			Type: "string",
		},
		"preview_mode": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "next"},
				{Value: "recurring"},
			},
		},
		"schedule": {
			Type: "string",
		},
		"schedule_details.billing_mode.flexible.proration_discounts": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "included"},
				{Value: "itemized"},
			},
		},
		"schedule_details.billing_mode.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "classic"},
				{Value: "flexible"},
			},
		},
		"schedule_details.end_behavior": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "cancel"},
				{Value: "release"},
			},
		},
		"schedule_details.proration_behavior": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "always_invoice"},
				{Value: "create_prorations"},
				{Value: "none"},
			},
		},
		"subscription": {
			Type: "string",
		},
		"subscription_details.billing_cycle_anchor": {
			Type: "string",
		},
		"subscription_details.billing_mode.flexible.proration_discounts": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "included"},
				{Value: "itemized"},
			},
		},
		"subscription_details.billing_mode.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "classic"},
				{Value: "flexible"},
			},
		},
		"subscription_details.cancel_at": {
			Type: "integer",
		},
		"subscription_details.cancel_at_period_end": {
			Type: "boolean",
		},
		"subscription_details.cancel_now": {
			Type: "boolean",
		},
		"subscription_details.default_tax_rates": {
			Type: "array",
		},
		"subscription_details.proration_behavior": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "always_invoice"},
				{Value: "create_prorations"},
				{Value: "none"},
			},
		},
		"subscription_details.proration_date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"subscription_details.resume_at": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "now"},
			},
		},
		"subscription_details.start_date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"subscription_details.trial_end": {
			Type: "string",
		},
	},
}
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",
		},
	},
}
View Source
var V1InvoicesList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/invoices",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"collection_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "charge_automatically"},
				{Value: "send_invoice"},
			},
		},
		"created": {
			Type: "integer",
		},
		"customer": {
			Type: "string",
		},
		"customer_account": {
			Type: "string",
		},
		"due_date": {
			Type: "integer",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
		"status": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "draft"},
				{Value: "open"},
				{Value: "paid"},
				{Value: "uncollectible"},
				{Value: "void"},
			},
		},
		"subscription": {
			Type: "string",
		},
	},
}
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",
		},
		"mandate": {
			Type: "string",
		},
		"off_session": {
			Type: "boolean",
		},
		"paid_out_of_band": {
			Type: "boolean",
		},
		"payment_method": {
			Type: "string",
		},
		"source": {
			Type: "string",
		},
	},
}
View Source
var V1InvoicesRemoveLines = resource.OperationSpec{
	Name:   "remove_lines",
	Path:   "/v1/invoices/{invoice}/remove_lines",
	Method: "POST",
}
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",
		},
		"page": {
			Type: "string",
		},
		"query": {
			Type:     "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",
		},
		"application_fee_amount": {
			Type: "integer",
		},
		"auto_advance": {
			Type: "boolean",
		},
		"automatic_tax.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"automatic_tax.liability.account": {
			Type: "string",
		},
		"automatic_tax.liability.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"automatically_finalizes_at": {
			Type:   "integer",
			Format: "unix-time",
		},
		"collection_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "charge_automatically"},
				{Value: "send_invoice"},
			},
		},
		"days_until_due": {
			Type: "integer",
		},
		"default_payment_method": {
			Type: "string",
		},
		"default_source": {
			Type: "string",
		},
		"default_tax_rates": {
			Type: "array",
		},
		"description": {
			Type: "string",
		},
		"due_date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"effective_at": {
			Type: "integer",
		},
		"footer": {
			Type: "string",
		},
		"issuer.account": {
			Type: "string",
		},
		"issuer.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"number": {
			Type: "string",
		},
		"on_behalf_of": {
			Type: "string",
		},
		"payment_settings.default_mandate": {
			Type: "string",
		},
		"payment_settings.payment_method_types": {
			Type: "array",
		},
		"rendering.amount_tax_display": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "exclude_tax"},
				{Value: "include_inclusive_tax"},
			},
		},
		"rendering.pdf.page_size": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "a4"},
				{Value: "auto"},
				{Value: "letter"},
			},
		},
		"rendering.template": {
			Type: "string",
		},
		"rendering.template_version": {
			Type: "integer",
		},
		"statement_descriptor": {
			Type: "string",
		},
	},
}
View Source
var V1InvoicesUpdateLines = resource.OperationSpec{
	Name:   "update_lines",
	Path:   "/v1/invoices/{invoice}/update_lines",
	Method: "POST",
}
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",
		},
		"cardholder": {
			Type: "string",
		},
		"created": {
			Type: "integer",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
		"status": {
			Type: "string",
			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",
		},
		"close_authorization": {
			Type: "boolean",
		},
		"purchase_details.fleet.cardholder_prompt_data.driver_id": {
			Type: "string",
		},
		"purchase_details.fleet.cardholder_prompt_data.odometer": {
			Type: "integer",
		},
		"purchase_details.fleet.cardholder_prompt_data.unspecified_id": {
			Type: "string",
		},
		"purchase_details.fleet.cardholder_prompt_data.user_id": {
			Type: "string",
		},
		"purchase_details.fleet.cardholder_prompt_data.vehicle_number": {
			Type: "string",
		},
		"purchase_details.fleet.purchase_type": {
			Type: "string",
			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",
			Format: "decimal",
		},
		"purchase_details.fleet.reported_breakdown.non_fuel.gross_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"purchase_details.fleet.reported_breakdown.tax.local_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"purchase_details.fleet.reported_breakdown.tax.national_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"purchase_details.fleet.service_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "full_service"},
				{Value: "non_fuel_transaction"},
				{Value: "self_service"},
			},
		},
		"purchase_details.flight.departure_at": {
			Type:   "integer",
			Format: "unix-time",
		},
		"purchase_details.flight.passenger_name": {
			Type: "string",
		},
		"purchase_details.flight.refundable": {
			Type: "boolean",
		},
		"purchase_details.flight.travel_agency": {
			Type: "string",
		},
		"purchase_details.fuel.industry_product_code": {
			Type: "string",
		},
		"purchase_details.fuel.quantity_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"purchase_details.fuel.type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "diesel"},
				{Value: "other"},
				{Value: "unleaded_plus"},
				{Value: "unleaded_regular"},
				{Value: "unleaded_super"},
			},
		},
		"purchase_details.fuel.unit": {
			Type: "string",
			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",
			Format: "decimal",
		},
		"purchase_details.lodging.check_in_at": {
			Type:   "integer",
			Format: "unix-time",
		},
		"purchase_details.lodging.nights": {
			Type: "integer",
		},
		"purchase_details.reference": {
			Type: "string",
		},
	},
}
View Source
var V1IssuingAuthorizationsTestHelpersCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/test_helpers/issuing/authorizations",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type: "integer",
		},
		"amount_details.atm_fee": {
			Type: "integer",
		},
		"amount_details.cashback_amount": {
			Type: "integer",
		},
		"authorization_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "chip"},
				{Value: "contactless"},
				{Value: "keyed_in"},
				{Value: "online"},
				{Value: "swipe"},
			},
		},
		"card": {
			Type:     "string",
			Required: true,
		},
		"currency": {
			Type:   "string",
			Format: "currency",
		},
		"fleet.cardholder_prompt_data.driver_id": {
			Type: "string",
		},
		"fleet.cardholder_prompt_data.odometer": {
			Type: "integer",
		},
		"fleet.cardholder_prompt_data.unspecified_id": {
			Type: "string",
		},
		"fleet.cardholder_prompt_data.user_id": {
			Type: "string",
		},
		"fleet.cardholder_prompt_data.vehicle_number": {
			Type: "string",
		},
		"fleet.purchase_type": {
			Type: "string",
			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",
			Format: "decimal",
		},
		"fleet.reported_breakdown.non_fuel.gross_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"fleet.reported_breakdown.tax.local_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"fleet.reported_breakdown.tax.national_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"fleet.service_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "full_service"},
				{Value: "non_fuel_transaction"},
				{Value: "self_service"},
			},
		},
		"fraud_disputability_likelihood": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "neutral"},
				{Value: "unknown"},
				{Value: "very_likely"},
				{Value: "very_unlikely"},
			},
		},
		"fuel.industry_product_code": {
			Type: "string",
		},
		"fuel.quantity_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"fuel.type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "diesel"},
				{Value: "other"},
				{Value: "unleaded_plus"},
				{Value: "unleaded_regular"},
				{Value: "unleaded_super"},
			},
		},
		"fuel.unit": {
			Type: "string",
			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",
			Format: "decimal",
		},
		"is_amount_controllable": {
			Type: "boolean",
		},
		"merchant_amount": {
			Type: "integer",
		},
		"merchant_currency": {
			Type:   "string",
			Format: "currency",
		},
		"merchant_data.category": {
			Type: "string",
			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",
		},
		"merchant_data.country": {
			Type: "string",
		},
		"merchant_data.name": {
			Type: "string",
		},
		"merchant_data.network_id": {
			Type: "string",
		},
		"merchant_data.postal_code": {
			Type: "string",
		},
		"merchant_data.state": {
			Type: "string",
		},
		"merchant_data.terminal_id": {
			Type: "string",
		},
		"merchant_data.url": {
			Type: "string",
		},
		"network_data.acquiring_institution_id": {
			Type: "string",
		},
		"risk_assessment.card_testing_risk.invalid_account_number_decline_rate_past_hour": {
			Type: "integer",
		},
		"risk_assessment.card_testing_risk.invalid_credentials_decline_rate_past_hour": {
			Type: "integer",
		},
		"risk_assessment.card_testing_risk.level": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "elevated"},
				{Value: "highest"},
				{Value: "low"},
				{Value: "normal"},
				{Value: "not_assessed"},
				{Value: "unknown"},
			},
		},
		"risk_assessment.fraud_risk.level": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "elevated"},
				{Value: "highest"},
				{Value: "low"},
				{Value: "normal"},
				{Value: "not_assessed"},
				{Value: "unknown"},
			},
		},
		"risk_assessment.fraud_risk.score": {
			Type: "number",
		},
		"risk_assessment.merchant_dispute_risk.dispute_rate": {
			Type: "integer",
		},
		"risk_assessment.merchant_dispute_risk.level": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "elevated"},
				{Value: "highest"},
				{Value: "low"},
				{Value: "normal"},
				{Value: "not_assessed"},
				{Value: "unknown"},
			},
		},
		"verification_data.address_line1_check": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "match"},
				{Value: "mismatch"},
				{Value: "not_provided"},
			},
		},
		"verification_data.address_postal_code_check": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "match"},
				{Value: "mismatch"},
				{Value: "not_provided"},
			},
		},
		"verification_data.authentication_exemption.claimed_by": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "acquirer"},
				{Value: "issuer"},
			},
		},
		"verification_data.authentication_exemption.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "low_value_transaction"},
				{Value: "transaction_risk_analysis"},
				{Value: "unknown"},
			},
		},
		"verification_data.cvc_check": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "match"},
				{Value: "mismatch"},
				{Value: "not_provided"},
			},
		},
		"verification_data.expiry_check": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "match"},
				{Value: "mismatch"},
				{Value: "not_provided"},
			},
		},
		"verification_data.three_d_secure.result": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "attempt_acknowledged"},
				{Value: "authenticated"},
				{Value: "failed"},
				{Value: "required"},
			},
		},
		"wallet": {
			Type: "string",
			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",
			Required: true,
		},
		"fleet.cardholder_prompt_data.driver_id": {
			Type: "string",
		},
		"fleet.cardholder_prompt_data.odometer": {
			Type: "integer",
		},
		"fleet.cardholder_prompt_data.unspecified_id": {
			Type: "string",
		},
		"fleet.cardholder_prompt_data.user_id": {
			Type: "string",
		},
		"fleet.cardholder_prompt_data.vehicle_number": {
			Type: "string",
		},
		"fleet.purchase_type": {
			Type: "string",
			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",
			Format: "decimal",
		},
		"fleet.reported_breakdown.non_fuel.gross_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"fleet.reported_breakdown.tax.local_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"fleet.reported_breakdown.tax.national_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"fleet.service_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "full_service"},
				{Value: "non_fuel_transaction"},
				{Value: "self_service"},
			},
		},
		"fuel.industry_product_code": {
			Type: "string",
		},
		"fuel.quantity_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"fuel.type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "diesel"},
				{Value: "other"},
				{Value: "unleaded_plus"},
				{Value: "unleaded_regular"},
				{Value: "unleaded_super"},
			},
		},
		"fuel.unit": {
			Type: "string",
			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",
			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",
			Required: true,
		},
		"is_amount_controllable": {
			Type: "boolean",
		},
	},
}
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",
			Required: 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",
		},
	},
}
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",
			Required: true,
		},
		"billing.address.country": {
			Type:     "string",
			Required: true,
		},
		"billing.address.line1": {
			Type:     "string",
			Required: true,
		},
		"billing.address.line2": {
			Type: "string",
		},
		"billing.address.postal_code": {
			Type:     "string",
			Required: true,
		},
		"billing.address.state": {
			Type: "string",
		},
		"company.tax_id": {
			Type: "string",
		},
		"email": {
			Type: "string",
		},
		"individual.card_issuing.user_terms_acceptance.date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"individual.card_issuing.user_terms_acceptance.ip": {
			Type: "string",
		},
		"individual.card_issuing.user_terms_acceptance.user_agent": {
			Type: "string",
		},
		"individual.dob.day": {
			Type:     "integer",
			Required: true,
		},
		"individual.dob.month": {
			Type:     "integer",
			Required: true,
		},
		"individual.dob.year": {
			Type:     "integer",
			Required: true,
		},
		"individual.first_name": {
			Type: "string",
		},
		"individual.last_name": {
			Type: "string",
		},
		"individual.verification.document.back": {
			Type: "string",
		},
		"individual.verification.document.front": {
			Type: "string",
		},
		"name": {
			Type:     "string",
			Required: true,
		},
		"phone_number": {
			Type: "string",
		},
		"preferred_locales": {
			Type: "array",
		},
		"spending_controls.allowed_categories": {
			Type: "array",
		},
		"spending_controls.allowed_merchant_countries": {
			Type: "array",
		},
		"spending_controls.blocked_categories": {
			Type: "array",
		},
		"spending_controls.blocked_merchant_countries": {
			Type: "array",
		},
		"spending_controls.spending_limits_currency": {
			Type: "string",
		},
		"status": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "active"},
				{Value: "inactive"},
			},
		},
		"type": {
			Type: "string",
			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",
		},
		"email": {
			Type: "string",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"phone_number": {
			Type: "string",
		},
		"starting_after": {
			Type: "string",
		},
		"status": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "active"},
				{Value: "blocked"},
				{Value: "inactive"},
			},
		},
		"type": {
			Type: "string",
			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",
			Required: true,
		},
		"billing.address.country": {
			Type:     "string",
			Required: true,
		},
		"billing.address.line1": {
			Type:     "string",
			Required: true,
		},
		"billing.address.line2": {
			Type: "string",
		},
		"billing.address.postal_code": {
			Type:     "string",
			Required: true,
		},
		"billing.address.state": {
			Type: "string",
		},
		"company.tax_id": {
			Type: "string",
		},
		"email": {
			Type: "string",
		},
		"individual.card_issuing.user_terms_acceptance.date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"individual.card_issuing.user_terms_acceptance.ip": {
			Type: "string",
		},
		"individual.card_issuing.user_terms_acceptance.user_agent": {
			Type: "string",
		},
		"individual.dob.day": {
			Type:     "integer",
			Required: true,
		},
		"individual.dob.month": {
			Type:     "integer",
			Required: true,
		},
		"individual.dob.year": {
			Type:     "integer",
			Required: true,
		},
		"individual.first_name": {
			Type: "string",
		},
		"individual.last_name": {
			Type: "string",
		},
		"individual.verification.document.back": {
			Type: "string",
		},
		"individual.verification.document.front": {
			Type: "string",
		},
		"phone_number": {
			Type: "string",
		},
		"preferred_locales": {
			Type: "array",
		},
		"spending_controls.allowed_categories": {
			Type: "array",
		},
		"spending_controls.allowed_merchant_countries": {
			Type: "array",
		},
		"spending_controls.blocked_categories": {
			Type: "array",
		},
		"spending_controls.blocked_merchant_countries": {
			Type: "array",
		},
		"spending_controls.spending_limits_currency": {
			Type: "string",
		},
		"status": {
			Type: "string",
			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",
		},
		"currency": {
			Type:     "string",
			Required: true,
		},
		"exp_month": {
			Type: "integer",
		},
		"exp_year": {
			Type: "integer",
		},
		"financial_account": {
			Type: "string",
		},
		"lifecycle_controls.cancel_after.payment_count": {
			Type:     "integer",
			Required: true,
		},
		"personalization_design": {
			Type: "string",
		},
		"pin.encrypted_number": {
			Type: "string",
		},
		"replacement_for": {
			Type: "string",
		},
		"replacement_reason": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "damaged"},
				{Value: "expired"},
				{Value: "lost"},
				{Value: "stolen"},
			},
		},
		"second_line": {
			Type: "string",
		},
		"shipping.address.city": {
			Type:     "string",
			Required: true,
		},
		"shipping.address.country": {
			Type:     "string",
			Required: true,
		},
		"shipping.address.line1": {
			Type:     "string",
			Required: true,
		},
		"shipping.address.line2": {
			Type: "string",
		},
		"shipping.address.postal_code": {
			Type:     "string",
			Required: true,
		},
		"shipping.address.state": {
			Type: "string",
		},
		"shipping.address_validation.mode": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "disabled"},
				{Value: "normalization_only"},
				{Value: "validation_and_normalization"},
			},
		},
		"shipping.customs.eori_number": {
			Type: "string",
		},
		"shipping.name": {
			Type:     "string",
			Required: true,
		},
		"shipping.phone_number": {
			Type: "string",
		},
		"shipping.require_signature": {
			Type: "boolean",
		},
		"shipping.service": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "express"},
				{Value: "priority"},
				{Value: "standard"},
			},
		},
		"shipping.type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "bulk"},
				{Value: "individual"},
			},
		},
		"spending_controls.allowed_categories": {
			Type: "array",
		},
		"spending_controls.allowed_merchant_countries": {
			Type: "array",
		},
		"spending_controls.blocked_categories": {
			Type: "array",
		},
		"spending_controls.blocked_merchant_countries": {
			Type: "array",
		},
		"status": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "active"},
				{Value: "inactive"},
			},
		},
		"type": {
			Type:     "string",
			Required: 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",
		},
		"created": {
			Type: "integer",
		},
		"ending_before": {
			Type: "string",
		},
		"exp_month": {
			Type: "integer",
		},
		"exp_year": {
			Type: "integer",
		},
		"last4": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"personalization_design": {
			Type: "string",
		},
		"starting_after": {
			Type: "string",
		},
		"status": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "active"},
				{Value: "canceled"},
				{Value: "inactive"},
			},
		},
		"type": {
			Type: "string",
			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",
			Enum: []resource.EnumSpec{
				{Value: "lost"},
				{Value: "stolen"},
			},
		},
		"personalization_design": {
			Type: "string",
		},
		"pin.encrypted_number": {
			Type: "string",
		},
		"shipping.address.city": {
			Type:     "string",
			Required: true,
		},
		"shipping.address.country": {
			Type:     "string",
			Required: true,
		},
		"shipping.address.line1": {
			Type:     "string",
			Required: true,
		},
		"shipping.address.line2": {
			Type: "string",
		},
		"shipping.address.postal_code": {
			Type:     "string",
			Required: true,
		},
		"shipping.address.state": {
			Type: "string",
		},
		"shipping.address_validation.mode": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "disabled"},
				{Value: "normalization_only"},
				{Value: "validation_and_normalization"},
			},
		},
		"shipping.customs.eori_number": {
			Type: "string",
		},
		"shipping.name": {
			Type:     "string",
			Required: true,
		},
		"shipping.phone_number": {
			Type: "string",
		},
		"shipping.require_signature": {
			Type: "boolean",
		},
		"shipping.service": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "express"},
				{Value: "priority"},
				{Value: "standard"},
			},
		},
		"shipping.type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "bulk"},
				{Value: "individual"},
			},
		},
		"spending_controls.allowed_categories": {
			Type: "array",
		},
		"spending_controls.allowed_merchant_countries": {
			Type: "array",
		},
		"spending_controls.blocked_categories": {
			Type: "array",
		},
		"spending_controls.blocked_merchant_countries": {
			Type: "array",
		},
		"status": {
			Type: "string",
			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",
		},
		"evidence.reason": {
			Type: "string",
			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"},
			},
		},
		"transaction": {
			Type: "string",
		},
		"treasury.received_debit": {
			Type:     "string",
			Required: true,
		},
	},
}
View Source
var V1IssuingDisputesList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/issuing/disputes",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type: "integer",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
		"status": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "expired"},
				{Value: "lost"},
				{Value: "submitted"},
				{Value: "unsubmitted"},
				{Value: "won"},
			},
		},
		"transaction": {
			Type: "string",
		},
	},
}
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",
		},
		"evidence.reason": {
			Type: "string",
			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"},
			},
		},
	},
}
View Source
var V1IssuingPersonalizationDesignsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/issuing/personalization_designs",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"card_logo": {
			Type: "string",
		},
		"carrier_text.footer_body": {
			Type: "string",
		},
		"carrier_text.footer_title": {
			Type: "string",
		},
		"carrier_text.header_body": {
			Type: "string",
		},
		"carrier_text.header_title": {
			Type: "string",
		},
		"lookup_key": {
			Type: "string",
		},
		"name": {
			Type: "string",
		},
		"physical_bundle": {
			Type:     "string",
			Required: true,
		},
		"preferences.is_default": {
			Type:     "boolean",
			Required: true,
		},
		"transfer_lookup_key": {
			Type: "boolean",
		},
	},
}
View Source
var V1IssuingPersonalizationDesignsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/issuing/personalization_designs",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"lookup_keys": {
			Type: "array",
		},
		"starting_after": {
			Type: "string",
		},
		"status": {
			Type: "string",
			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",
		},
		"rejection_reasons.carrier_text": {
			Type: "array",
		},
	},
}
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",
		},
		"lookup_key": {
			Type: "string",
		},
		"name": {
			Type: "string",
		},
		"physical_bundle": {
			Type: "string",
		},
		"preferences.is_default": {
			Type:     "boolean",
			Required: true,
		},
		"transfer_lookup_key": {
			Type: "boolean",
		},
	},
}
View Source
var V1IssuingPhysicalBundlesList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/issuing/physical_bundles",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
		"status": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "active"},
				{Value: "inactive"},
				{Value: "review"},
			},
		},
		"type": {
			Type: "string",
			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",
			Required: true,
		},
		"created": {
			Type: "integer",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
		"status": {
			Type: "string",
			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",
			Required: 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",
		},
		"cardholder": {
			Type: "string",
		},
		"created": {
			Type: "integer",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
		"type": {
			Type: "string",
			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",
			Required: true,
		},
		"card": {
			Type:     "string",
			Required: true,
		},
		"currency": {
			Type:   "string",
			Format: "currency",
		},
		"merchant_data.category": {
			Type: "string",
			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",
		},
		"merchant_data.country": {
			Type: "string",
		},
		"merchant_data.name": {
			Type: "string",
		},
		"merchant_data.network_id": {
			Type: "string",
		},
		"merchant_data.postal_code": {
			Type: "string",
		},
		"merchant_data.state": {
			Type: "string",
		},
		"merchant_data.terminal_id": {
			Type: "string",
		},
		"merchant_data.url": {
			Type: "string",
		},
		"purchase_details.fleet.cardholder_prompt_data.driver_id": {
			Type: "string",
		},
		"purchase_details.fleet.cardholder_prompt_data.odometer": {
			Type: "integer",
		},
		"purchase_details.fleet.cardholder_prompt_data.unspecified_id": {
			Type: "string",
		},
		"purchase_details.fleet.cardholder_prompt_data.user_id": {
			Type: "string",
		},
		"purchase_details.fleet.cardholder_prompt_data.vehicle_number": {
			Type: "string",
		},
		"purchase_details.fleet.purchase_type": {
			Type: "string",
			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",
			Format: "decimal",
		},
		"purchase_details.fleet.reported_breakdown.non_fuel.gross_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"purchase_details.fleet.reported_breakdown.tax.local_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"purchase_details.fleet.reported_breakdown.tax.national_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"purchase_details.fleet.service_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "full_service"},
				{Value: "non_fuel_transaction"},
				{Value: "self_service"},
			},
		},
		"purchase_details.flight.departure_at": {
			Type:   "integer",
			Format: "unix-time",
		},
		"purchase_details.flight.passenger_name": {
			Type: "string",
		},
		"purchase_details.flight.refundable": {
			Type: "boolean",
		},
		"purchase_details.flight.travel_agency": {
			Type: "string",
		},
		"purchase_details.fuel.industry_product_code": {
			Type: "string",
		},
		"purchase_details.fuel.quantity_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"purchase_details.fuel.type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "diesel"},
				{Value: "other"},
				{Value: "unleaded_plus"},
				{Value: "unleaded_regular"},
				{Value: "unleaded_super"},
			},
		},
		"purchase_details.fuel.unit": {
			Type: "string",
			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",
			Format: "decimal",
		},
		"purchase_details.lodging.check_in_at": {
			Type:   "integer",
			Format: "unix-time",
		},
		"purchase_details.lodging.nights": {
			Type: "integer",
		},
		"purchase_details.reference": {
			Type: "string",
		},
	},
}
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",
			Required: true,
		},
		"card": {
			Type:     "string",
			Required: true,
		},
		"currency": {
			Type:   "string",
			Format: "currency",
		},
		"merchant_data.category": {
			Type: "string",
			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",
		},
		"merchant_data.country": {
			Type: "string",
		},
		"merchant_data.name": {
			Type: "string",
		},
		"merchant_data.network_id": {
			Type: "string",
		},
		"merchant_data.postal_code": {
			Type: "string",
		},
		"merchant_data.state": {
			Type: "string",
		},
		"merchant_data.terminal_id": {
			Type: "string",
		},
		"merchant_data.url": {
			Type: "string",
		},
		"purchase_details.fleet.cardholder_prompt_data.driver_id": {
			Type: "string",
		},
		"purchase_details.fleet.cardholder_prompt_data.odometer": {
			Type: "integer",
		},
		"purchase_details.fleet.cardholder_prompt_data.unspecified_id": {
			Type: "string",
		},
		"purchase_details.fleet.cardholder_prompt_data.user_id": {
			Type: "string",
		},
		"purchase_details.fleet.cardholder_prompt_data.vehicle_number": {
			Type: "string",
		},
		"purchase_details.fleet.purchase_type": {
			Type: "string",
			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",
			Format: "decimal",
		},
		"purchase_details.fleet.reported_breakdown.non_fuel.gross_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"purchase_details.fleet.reported_breakdown.tax.local_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"purchase_details.fleet.reported_breakdown.tax.national_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"purchase_details.fleet.service_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "full_service"},
				{Value: "non_fuel_transaction"},
				{Value: "self_service"},
			},
		},
		"purchase_details.flight.departure_at": {
			Type:   "integer",
			Format: "unix-time",
		},
		"purchase_details.flight.passenger_name": {
			Type: "string",
		},
		"purchase_details.flight.refundable": {
			Type: "boolean",
		},
		"purchase_details.flight.travel_agency": {
			Type: "string",
		},
		"purchase_details.fuel.industry_product_code": {
			Type: "string",
		},
		"purchase_details.fuel.quantity_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"purchase_details.fuel.type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "diesel"},
				{Value: "other"},
				{Value: "unleaded_plus"},
				{Value: "unleaded_regular"},
				{Value: "unleaded_super"},
			},
		},
		"purchase_details.fuel.unit": {
			Type: "string",
			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",
			Format: "decimal",
		},
		"purchase_details.lodging.check_in_at": {
			Type:   "integer",
			Format: "unix-time",
		},
		"purchase_details.lodging.nights": {
			Type: "integer",
		},
		"purchase_details.reference": {
			Type: "string",
		},
	},
}
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",
		},
	},
}
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",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
		"description": {
			Type: "string",
		},
		"discountable": {
			Type: "boolean",
		},
		"period.end": {
			Type:     "integer",
			Required: true,
			Format:   "unix-time",
		},
		"period.start": {
			Type:     "integer",
			Required: true,
			Format:   "unix-time",
		},
		"price_data.currency": {
			Type:     "string",
			Required: true,
			Format:   "currency",
		},
		"price_data.product": {
			Type: "string",
		},
		"price_data.product_data.description": {
			Type: "string",
		},
		"price_data.product_data.images": {
			Type: "array",
		},
		"price_data.product_data.name": {
			Type:     "string",
			Required: true,
		},
		"price_data.product_data.tax_code": {
			Type: "string",
		},
		"price_data.product_data.unit_label": {
			Type: "string",
		},
		"price_data.tax_behavior": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "exclusive"},
				{Value: "inclusive"},
				{Value: "unspecified"},
			},
		},
		"price_data.unit_amount": {
			Type: "integer",
		},
		"price_data.unit_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"pricing.price": {
			Type: "string",
		},
		"quantity": {
			Type: "integer",
		},
		"quantity_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"tax_rates": {
			Type: "array",
		},
	},
}
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",
		},
		"payment_record": {
			Type:     "string",
			Required: true,
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
		"currency": {
			Type:   "string",
			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",
			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",
		},
		"amount_details.enforce_arithmetic_validation": {
			Type: "boolean",
		},
		"amount_to_capture": {
			Type: "integer",
		},
		"application_fee_amount": {
			Type: "integer",
		},
		"final_capture": {
			Type: "boolean",
		},
		"hooks.inputs.tax.calculation": {
			Type:     "string",
			Required: true,
		},
		"statement_descriptor": {
			Type: "string",
		},
		"statement_descriptor_suffix": {
			Type: "string",
		},
		"transfer_data.amount": {
			Type: "integer",
		},
	},
}
View Source
var V1PaymentIntentsConfirm = resource.OperationSpec{
	Name:   "confirm",
	Path:   "/v1/payment_intents/{intent}/confirm",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"capture_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "automatic_async"},
				{Value: "manual"},
			},
		},
		"confirmation_token": {
			Type: "string",
		},
		"error_on_requires_action": {
			Type: "boolean",
		},
		"excluded_payment_method_types": {
			Type: "array",
		},
		"hooks.inputs.tax.calculation": {
			Type:     "string",
			Required: true,
		},
		"mandate": {
			Type: "string",
		},
		"off_session": {
			Type: "boolean",
		},
		"payment_method": {
			Type: "string",
		},
		"payment_method_data.acss_debit.account_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.acss_debit.institution_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.acss_debit.transit_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.allow_redisplay": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "limited"},
				{Value: "unspecified"},
			},
		},
		"payment_method_data.au_becs_debit.account_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.au_becs_debit.bsb_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.bacs_debit.account_number": {
			Type: "string",
		},
		"payment_method_data.bacs_debit.sort_code": {
			Type: "string",
		},
		"payment_method_data.billing_details.email": {
			Type: "string",
		},
		"payment_method_data.billing_details.name": {
			Type: "string",
		},
		"payment_method_data.billing_details.phone": {
			Type: "string",
		},
		"payment_method_data.billing_details.tax_id": {
			Type: "string",
		},
		"payment_method_data.boleto.tax_id": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.eps.bank": {
			Type: "string",
			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",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"payment_method_data.fpx.bank": {
			Type:     "string",
			Required: true,
			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",
			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",
			Required: true,
		},
		"payment_method_data.klarna.dob.month": {
			Type:     "integer",
			Required: true,
		},
		"payment_method_data.klarna.dob.year": {
			Type:     "integer",
			Required: true,
		},
		"payment_method_data.naver_pay.funding": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "card"},
				{Value: "points"},
			},
		},
		"payment_method_data.nz_bank_account.account_holder_name": {
			Type: "string",
		},
		"payment_method_data.nz_bank_account.account_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.nz_bank_account.bank_code": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.nz_bank_account.branch_code": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.nz_bank_account.reference": {
			Type: "string",
		},
		"payment_method_data.nz_bank_account.suffix": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.p24.bank": {
			Type: "string",
			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",
		},
		"payment_method_data.payto.bsb_number": {
			Type: "string",
		},
		"payment_method_data.payto.pay_id": {
			Type: "string",
		},
		"payment_method_data.radar_options.session": {
			Type: "string",
		},
		"payment_method_data.sepa_debit.iban": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.sofort.country": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "AT"},
				{Value: "BE"},
				{Value: "DE"},
				{Value: "ES"},
				{Value: "IT"},
				{Value: "NL"},
			},
		},
		"payment_method_data.type": {
			Type:     "string",
			Required: 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",
		},
		"payment_method_data.upi.mandate_options.amount_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_data.upi.mandate_options.description": {
			Type: "string",
		},
		"payment_method_data.upi.mandate_options.end_date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"payment_method_data.us_bank_account.account_holder_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"payment_method_data.us_bank_account.account_number": {
			Type: "string",
		},
		"payment_method_data.us_bank_account.account_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "checking"},
				{Value: "savings"},
			},
		},
		"payment_method_data.us_bank_account.financial_connections_account": {
			Type: "string",
		},
		"payment_method_data.us_bank_account.routing_number": {
			Type: "string",
		},
		"payment_method_types": {
			Type: "array",
		},
		"radar_options.session": {
			Type: "string",
		},
		"receipt_email": {
			Type: "string",
		},
		"return_url": {
			Type: "string",
		},
		"setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"use_stripe_sdk": {
			Type: "boolean",
		},
	},
}
View Source
var V1PaymentIntentsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/payment_intents",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type:     "integer",
			Required: true,
		},
		"amount_details.discount_amount": {
			Type: "integer",
		},
		"amount_details.enforce_arithmetic_validation": {
			Type: "boolean",
		},
		"application_fee_amount": {
			Type: "integer",
		},
		"automatic_payment_methods.allow_redirects": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "never"},
			},
		},
		"automatic_payment_methods.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"capture_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "automatic_async"},
				{Value: "manual"},
			},
		},
		"confirm": {
			Type: "boolean",
		},
		"confirmation_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "manual"},
			},
		},
		"confirmation_token": {
			Type: "string",
		},
		"currency": {
			Type:     "string",
			Required: true,
			Format:   "currency",
		},
		"customer": {
			Type: "string",
		},
		"customer_account": {
			Type: "string",
		},
		"description": {
			Type: "string",
		},
		"error_on_requires_action": {
			Type: "boolean",
		},
		"excluded_payment_method_types": {
			Type: "array",
		},
		"hooks.inputs.tax.calculation": {
			Type:     "string",
			Required: true,
		},
		"mandate": {
			Type: "string",
		},
		"off_session": {
			Type: "boolean",
		},
		"on_behalf_of": {
			Type: "string",
		},
		"payment_details.customer_reference": {
			Type: "string",
		},
		"payment_details.order_reference": {
			Type: "string",
		},
		"payment_method": {
			Type: "string",
		},
		"payment_method_configuration": {
			Type: "string",
		},
		"payment_method_data.acss_debit.account_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.acss_debit.institution_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.acss_debit.transit_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.allow_redisplay": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "limited"},
				{Value: "unspecified"},
			},
		},
		"payment_method_data.au_becs_debit.account_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.au_becs_debit.bsb_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.bacs_debit.account_number": {
			Type: "string",
		},
		"payment_method_data.bacs_debit.sort_code": {
			Type: "string",
		},
		"payment_method_data.billing_details.email": {
			Type: "string",
		},
		"payment_method_data.billing_details.name": {
			Type: "string",
		},
		"payment_method_data.billing_details.phone": {
			Type: "string",
		},
		"payment_method_data.billing_details.tax_id": {
			Type: "string",
		},
		"payment_method_data.boleto.tax_id": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.eps.bank": {
			Type: "string",
			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",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"payment_method_data.fpx.bank": {
			Type:     "string",
			Required: true,
			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",
			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",
			Required: true,
		},
		"payment_method_data.klarna.dob.month": {
			Type:     "integer",
			Required: true,
		},
		"payment_method_data.klarna.dob.year": {
			Type:     "integer",
			Required: true,
		},
		"payment_method_data.naver_pay.funding": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "card"},
				{Value: "points"},
			},
		},
		"payment_method_data.nz_bank_account.account_holder_name": {
			Type: "string",
		},
		"payment_method_data.nz_bank_account.account_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.nz_bank_account.bank_code": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.nz_bank_account.branch_code": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.nz_bank_account.reference": {
			Type: "string",
		},
		"payment_method_data.nz_bank_account.suffix": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.p24.bank": {
			Type: "string",
			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",
		},
		"payment_method_data.payto.bsb_number": {
			Type: "string",
		},
		"payment_method_data.payto.pay_id": {
			Type: "string",
		},
		"payment_method_data.radar_options.session": {
			Type: "string",
		},
		"payment_method_data.sepa_debit.iban": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.sofort.country": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "AT"},
				{Value: "BE"},
				{Value: "DE"},
				{Value: "ES"},
				{Value: "IT"},
				{Value: "NL"},
			},
		},
		"payment_method_data.type": {
			Type:     "string",
			Required: 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",
		},
		"payment_method_data.upi.mandate_options.amount_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_data.upi.mandate_options.description": {
			Type: "string",
		},
		"payment_method_data.upi.mandate_options.end_date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"payment_method_data.us_bank_account.account_holder_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"payment_method_data.us_bank_account.account_number": {
			Type: "string",
		},
		"payment_method_data.us_bank_account.account_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "checking"},
				{Value: "savings"},
			},
		},
		"payment_method_data.us_bank_account.financial_connections_account": {
			Type: "string",
		},
		"payment_method_data.us_bank_account.routing_number": {
			Type: "string",
		},
		"payment_method_types": {
			Type: "array",
		},
		"radar_options.session": {
			Type: "string",
		},
		"receipt_email": {
			Type: "string",
		},
		"return_url": {
			Type: "string",
		},
		"setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"shipping.address.city": {
			Type: "string",
		},
		"shipping.address.country": {
			Type: "string",
		},
		"shipping.address.line1": {
			Type: "string",
		},
		"shipping.address.line2": {
			Type: "string",
		},
		"shipping.address.postal_code": {
			Type: "string",
		},
		"shipping.address.state": {
			Type: "string",
		},
		"shipping.carrier": {
			Type: "string",
		},
		"shipping.name": {
			Type:     "string",
			Required: true,
		},
		"shipping.phone": {
			Type: "string",
		},
		"shipping.tracking_number": {
			Type: "string",
		},
		"statement_descriptor": {
			Type: "string",
		},
		"statement_descriptor_suffix": {
			Type: "string",
		},
		"transfer_data.amount": {
			Type: "integer",
		},
		"transfer_data.destination": {
			Type:     "string",
			Required: true,
		},
		"transfer_group": {
			Type: "string",
		},
		"use_stripe_sdk": {
			Type: "boolean",
		},
	},
}
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",
			Required: true,
		},
		"amount_details.discount_amount": {
			Type: "integer",
		},
		"amount_details.enforce_arithmetic_validation": {
			Type: "boolean",
		},
		"application_fee_amount": {
			Type: "integer",
		},
		"description": {
			Type: "string",
		},
		"hooks.inputs.tax.calculation": {
			Type:     "string",
			Required: true,
		},
		"payment_details.customer_reference": {
			Type: "string",
		},
		"payment_details.order_reference": {
			Type: "string",
		},
		"statement_descriptor": {
			Type: "string",
		},
		"transfer_data.amount": {
			Type: "integer",
		},
	},
}
View Source
var V1PaymentIntentsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/payment_intents",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type: "integer",
		},
		"customer": {
			Type: "string",
		},
		"customer_account": {
			Type: "string",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
View Source
var V1PaymentIntentsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/payment_intents/{intent}",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"client_secret": {
			Type: "string",
		},
	},
}
View Source
var V1PaymentIntentsSearch = resource.OperationSpec{
	Name:   "search",
	Path:   "/v1/payment_intents/search",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"limit": {
			Type: "integer",
		},
		"page": {
			Type: "string",
		},
		"query": {
			Type:     "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",
		},
		"application_fee_amount": {
			Type: "integer",
		},
		"capture_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "automatic_async"},
				{Value: "manual"},
			},
		},
		"currency": {
			Type:   "string",
			Format: "currency",
		},
		"customer": {
			Type: "string",
		},
		"customer_account": {
			Type: "string",
		},
		"description": {
			Type: "string",
		},
		"excluded_payment_method_types": {
			Type: "array",
		},
		"hooks.inputs.tax.calculation": {
			Type:     "string",
			Required: true,
		},
		"payment_method": {
			Type: "string",
		},
		"payment_method_configuration": {
			Type: "string",
		},
		"payment_method_data.acss_debit.account_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.acss_debit.institution_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.acss_debit.transit_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.allow_redisplay": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "limited"},
				{Value: "unspecified"},
			},
		},
		"payment_method_data.au_becs_debit.account_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.au_becs_debit.bsb_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.bacs_debit.account_number": {
			Type: "string",
		},
		"payment_method_data.bacs_debit.sort_code": {
			Type: "string",
		},
		"payment_method_data.billing_details.email": {
			Type: "string",
		},
		"payment_method_data.billing_details.name": {
			Type: "string",
		},
		"payment_method_data.billing_details.phone": {
			Type: "string",
		},
		"payment_method_data.billing_details.tax_id": {
			Type: "string",
		},
		"payment_method_data.boleto.tax_id": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.eps.bank": {
			Type: "string",
			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",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"payment_method_data.fpx.bank": {
			Type:     "string",
			Required: true,
			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",
			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",
			Required: true,
		},
		"payment_method_data.klarna.dob.month": {
			Type:     "integer",
			Required: true,
		},
		"payment_method_data.klarna.dob.year": {
			Type:     "integer",
			Required: true,
		},
		"payment_method_data.naver_pay.funding": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "card"},
				{Value: "points"},
			},
		},
		"payment_method_data.nz_bank_account.account_holder_name": {
			Type: "string",
		},
		"payment_method_data.nz_bank_account.account_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.nz_bank_account.bank_code": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.nz_bank_account.branch_code": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.nz_bank_account.reference": {
			Type: "string",
		},
		"payment_method_data.nz_bank_account.suffix": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.p24.bank": {
			Type: "string",
			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",
		},
		"payment_method_data.payto.bsb_number": {
			Type: "string",
		},
		"payment_method_data.payto.pay_id": {
			Type: "string",
		},
		"payment_method_data.radar_options.session": {
			Type: "string",
		},
		"payment_method_data.sepa_debit.iban": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.sofort.country": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "AT"},
				{Value: "BE"},
				{Value: "DE"},
				{Value: "ES"},
				{Value: "IT"},
				{Value: "NL"},
			},
		},
		"payment_method_data.type": {
			Type:     "string",
			Required: 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",
		},
		"payment_method_data.upi.mandate_options.amount_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_data.upi.mandate_options.description": {
			Type: "string",
		},
		"payment_method_data.upi.mandate_options.end_date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"payment_method_data.us_bank_account.account_holder_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"payment_method_data.us_bank_account.account_number": {
			Type: "string",
		},
		"payment_method_data.us_bank_account.account_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "checking"},
				{Value: "savings"},
			},
		},
		"payment_method_data.us_bank_account.financial_connections_account": {
			Type: "string",
		},
		"payment_method_data.us_bank_account.routing_number": {
			Type: "string",
		},
		"payment_method_types": {
			Type: "array",
		},
		"receipt_email": {
			Type: "string",
		},
		"setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"statement_descriptor": {
			Type: "string",
		},
		"statement_descriptor_suffix": {
			Type: "string",
		},
		"transfer_data.amount": {
			Type: "integer",
		},
		"transfer_group": {
			Type: "string",
		},
	},
}
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",
		},
		"descriptor_code": {
			Type: "string",
		},
	},
}
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",
		},
		"after_completion.redirect.url": {
			Type:     "string",
			Required: true,
		},
		"after_completion.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "hosted_confirmation"},
				{Value: "redirect"},
			},
		},
		"allow_promotion_codes": {
			Type: "boolean",
		},
		"application_fee_amount": {
			Type: "integer",
		},
		"application_fee_percent": {
			Type: "number",
		},
		"automatic_tax.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"automatic_tax.liability.account": {
			Type: "string",
		},
		"automatic_tax.liability.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"billing_address_collection": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "auto"},
				{Value: "required"},
			},
		},
		"consent_collection.payment_method_reuse_agreement.position": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "auto"},
				{Value: "hidden"},
			},
		},
		"consent_collection.promotions": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "auto"},
				{Value: "none"},
			},
		},
		"consent_collection.terms_of_service": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "required"},
			},
		},
		"currency": {
			Type:   "string",
			Format: "currency",
		},
		"customer_creation": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "if_required"},
			},
		},
		"inactive_message": {
			Type: "string",
		},
		"invoice_creation.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"invoice_creation.invoice_data.account_tax_ids": {
			Type: "array",
		},
		"invoice_creation.invoice_data.description": {
			Type: "string",
		},
		"invoice_creation.invoice_data.footer": {
			Type: "string",
		},
		"invoice_creation.invoice_data.issuer.account": {
			Type: "string",
		},
		"invoice_creation.invoice_data.issuer.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"name_collection.business.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"name_collection.business.optional": {
			Type: "boolean",
		},
		"name_collection.individual.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"name_collection.individual.optional": {
			Type: "boolean",
		},
		"on_behalf_of": {
			Type: "string",
		},
		"payment_intent_data.capture_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "automatic_async"},
				{Value: "manual"},
			},
		},
		"payment_intent_data.description": {
			Type: "string",
		},
		"payment_intent_data.setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_intent_data.statement_descriptor": {
			Type: "string",
		},
		"payment_intent_data.statement_descriptor_suffix": {
			Type: "string",
		},
		"payment_intent_data.transfer_group": {
			Type: "string",
		},
		"payment_method_collection": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "if_required"},
			},
		},
		"payment_method_types": {
			Type: "array",
		},
		"phone_number_collection.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"restrictions.completed_sessions.limit": {
			Type:     "integer",
			Required: true,
		},
		"shipping_address_collection.allowed_countries": {
			Type:     "array",
			Required: true,
		},
		"submit_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "auto"},
				{Value: "book"},
				{Value: "donate"},
				{Value: "pay"},
				{Value: "subscribe"},
			},
		},
		"subscription_data.description": {
			Type: "string",
		},
		"subscription_data.invoice_settings.issuer.account": {
			Type: "string",
		},
		"subscription_data.invoice_settings.issuer.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"subscription_data.trial_period_days": {
			Type: "integer",
		},
		"subscription_data.trial_settings.end_behavior.missing_payment_method": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "cancel"},
				{Value: "create_invoice"},
				{Value: "pause"},
			},
		},
		"tax_id_collection.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"tax_id_collection.required": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "if_supported"},
				{Value: "never"},
			},
		},
		"transfer_data.amount": {
			Type: "integer",
		},
		"transfer_data.destination": {
			Type:     "string",
			Required: true,
		},
	},
}
View Source
var V1PaymentLinksList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/payment_links",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"active": {
			Type: "boolean",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
		"after_completion.hosted_confirmation.custom_message": {
			Type: "string",
		},
		"after_completion.redirect.url": {
			Type:     "string",
			Required: true,
		},
		"after_completion.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "hosted_confirmation"},
				{Value: "redirect"},
			},
		},
		"allow_promotion_codes": {
			Type: "boolean",
		},
		"automatic_tax.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"automatic_tax.liability.account": {
			Type: "string",
		},
		"automatic_tax.liability.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"billing_address_collection": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "auto"},
				{Value: "required"},
			},
		},
		"customer_creation": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "if_required"},
			},
		},
		"inactive_message": {
			Type: "string",
		},
		"invoice_creation.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"invoice_creation.invoice_data.account_tax_ids": {
			Type: "array",
		},
		"invoice_creation.invoice_data.description": {
			Type: "string",
		},
		"invoice_creation.invoice_data.footer": {
			Type: "string",
		},
		"invoice_creation.invoice_data.issuer.account": {
			Type: "string",
		},
		"invoice_creation.invoice_data.issuer.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"payment_intent_data.description": {
			Type: "string",
		},
		"payment_intent_data.statement_descriptor": {
			Type: "string",
		},
		"payment_intent_data.statement_descriptor_suffix": {
			Type: "string",
		},
		"payment_intent_data.transfer_group": {
			Type: "string",
		},
		"payment_method_collection": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "if_required"},
			},
		},
		"payment_method_types": {
			Type: "array",
		},
		"phone_number_collection.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"submit_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "auto"},
				{Value: "book"},
				{Value: "donate"},
				{Value: "pay"},
				{Value: "subscribe"},
			},
		},
		"subscription_data.invoice_settings.issuer.account": {
			Type: "string",
		},
		"subscription_data.invoice_settings.issuer.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"subscription_data.trial_period_days": {
			Type: "integer",
		},
		"tax_id_collection.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"tax_id_collection.required": {
			Type: "string",
			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",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"affirm.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"afterpay_clearpay.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"alipay.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"alma.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"amazon_pay.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"apple_pay.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"apple_pay_later.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"au_becs_debit.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"bacs_debit.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"bancontact.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"billie.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"blik.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"boleto.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"card.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"cartes_bancaires.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"cashapp.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"crypto.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"customer_balance.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"eps.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"fpx.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"fr_meal_voucher_conecs.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"giropay.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"google_pay.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"grabpay.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"ideal.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"jcb.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"kakao_pay.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"klarna.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"konbini.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"kr_card.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"link.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"mb_way.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"mobilepay.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"multibanco.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"name": {
			Type: "string",
		},
		"naver_pay.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"nz_bank_account.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"oxxo.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"p24.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"parent": {
			Type: "string",
		},
		"pay_by_bank.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"payco.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"paynow.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"paypal.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"payto.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"pix.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"promptpay.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"revolut_pay.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"samsung_pay.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"satispay.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"sepa_debit.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"sofort.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"swish.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"twint.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"upi.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"us_bank_account.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"wechat_pay.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"zip.display_preference.preference": {
			Type: "string",
			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",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"active": {
			Type: "boolean",
		},
		"affirm.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"afterpay_clearpay.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"alipay.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"alma.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"amazon_pay.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"apple_pay.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"apple_pay_later.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"au_becs_debit.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"bacs_debit.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"bancontact.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"billie.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"blik.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"boleto.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"card.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"cartes_bancaires.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"cashapp.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"crypto.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"customer_balance.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"eps.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"fpx.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"fr_meal_voucher_conecs.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"giropay.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"google_pay.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"grabpay.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"ideal.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"jcb.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"kakao_pay.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"klarna.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"konbini.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"kr_card.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"link.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"mb_way.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"mobilepay.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"multibanco.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"name": {
			Type: "string",
		},
		"naver_pay.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"nz_bank_account.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"oxxo.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"p24.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"pay_by_bank.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"payco.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"paynow.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"paypal.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"payto.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"pix.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"promptpay.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"revolut_pay.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"samsung_pay.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"satispay.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"sepa_debit.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"sofort.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"swish.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"twint.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"upi.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"us_bank_account.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"wechat_pay.display_preference.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "none"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"zip.display_preference.preference": {
			Type: "string",
			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",
			Required: true,
		},
		"enabled": {
			Type: "boolean",
		},
	},
}
View Source
var V1PaymentMethodDomainsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/payment_method_domains",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"domain_name": {
			Type: "string",
		},
		"enabled": {
			Type: "boolean",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
	},
}
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",
		},
		"customer_account": {
			Type: "string",
		},
	},
}
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",
			Required: true,
		},
		"acss_debit.institution_number": {
			Type:     "string",
			Required: true,
		},
		"acss_debit.transit_number": {
			Type:     "string",
			Required: true,
		},
		"allow_redisplay": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "limited"},
				{Value: "unspecified"},
			},
		},
		"au_becs_debit.account_number": {
			Type:     "string",
			Required: true,
		},
		"au_becs_debit.bsb_number": {
			Type:     "string",
			Required: true,
		},
		"bacs_debit.account_number": {
			Type: "string",
		},
		"bacs_debit.sort_code": {
			Type: "string",
		},
		"billing_details.email": {
			Type: "string",
		},
		"billing_details.name": {
			Type: "string",
		},
		"billing_details.phone": {
			Type: "string",
		},
		"billing_details.tax_id": {
			Type: "string",
		},
		"boleto.tax_id": {
			Type:     "string",
			Required: true,
		},
		"custom.type": {
			Type:     "string",
			Required: true,
		},
		"customer": {
			Type: "string",
		},
		"eps.bank": {
			Type: "string",
			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",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"fpx.bank": {
			Type:     "string",
			Required: true,
			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",
			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",
			Required: true,
		},
		"klarna.dob.month": {
			Type:     "integer",
			Required: true,
		},
		"klarna.dob.year": {
			Type:     "integer",
			Required: true,
		},
		"naver_pay.funding": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "card"},
				{Value: "points"},
			},
		},
		"nz_bank_account.account_holder_name": {
			Type: "string",
		},
		"nz_bank_account.account_number": {
			Type:     "string",
			Required: true,
		},
		"nz_bank_account.bank_code": {
			Type:     "string",
			Required: true,
		},
		"nz_bank_account.branch_code": {
			Type:     "string",
			Required: true,
		},
		"nz_bank_account.reference": {
			Type: "string",
		},
		"nz_bank_account.suffix": {
			Type:     "string",
			Required: true,
		},
		"p24.bank": {
			Type: "string",
			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",
		},
		"payto.account_number": {
			Type: "string",
		},
		"payto.bsb_number": {
			Type: "string",
		},
		"payto.pay_id": {
			Type: "string",
		},
		"radar_options.session": {
			Type: "string",
		},
		"sepa_debit.iban": {
			Type:     "string",
			Required: true,
		},
		"sofort.country": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "AT"},
				{Value: "BE"},
				{Value: "DE"},
				{Value: "ES"},
				{Value: "IT"},
				{Value: "NL"},
			},
		},
		"type": {
			Type: "string",
			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",
		},
		"upi.mandate_options.amount_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"upi.mandate_options.description": {
			Type: "string",
		},
		"upi.mandate_options.end_date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"us_bank_account.account_holder_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"us_bank_account.account_number": {
			Type: "string",
		},
		"us_bank_account.account_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "checking"},
				{Value: "savings"},
			},
		},
		"us_bank_account.financial_connections_account": {
			Type: "string",
		},
		"us_bank_account.routing_number": {
			Type: "string",
		},
	},
}
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",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "limited"},
				{Value: "unspecified"},
			},
		},
		"customer": {
			Type: "string",
		},
		"customer_account": {
			Type: "string",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
		"type": {
			Type: "string",
			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",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "limited"},
				{Value: "unspecified"},
			},
		},
		"billing_details.email": {
			Type: "string",
		},
		"billing_details.name": {
			Type: "string",
		},
		"billing_details.phone": {
			Type: "string",
		},
		"billing_details.tax_id": {
			Type: "string",
		},
		"card.exp_month": {
			Type: "integer",
		},
		"card.exp_year": {
			Type: "integer",
		},
		"card.networks.preferred": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "cartes_bancaires"},
				{Value: "mastercard"},
				{Value: "visa"},
			},
		},
		"payto.account_number": {
			Type: "string",
		},
		"payto.bsb_number": {
			Type: "string",
		},
		"payto.pay_id": {
			Type: "string",
		},
		"us_bank_account.account_holder_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"us_bank_account.account_type": {
			Type: "string",
			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",
			Required: true,
			Format:   "currency",
		},
		"amount_requested.value": {
			Type:     "integer",
			Required: true,
		},
		"customer_details.customer": {
			Type: "string",
		},
		"customer_details.email": {
			Type: "string",
		},
		"customer_details.name": {
			Type: "string",
		},
		"customer_details.phone": {
			Type: "string",
		},
		"customer_presence": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"description": {
			Type: "string",
		},
		"failed.failed_at": {
			Type:     "integer",
			Required: true,
			Format:   "unix-time",
		},
		"guaranteed.guaranteed_at": {
			Type:     "integer",
			Required: true,
			Format:   "unix-time",
		},
		"initiated_at": {
			Type:     "integer",
			Required: true,
			Format:   "unix-time",
		},
		"outcome": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "failed"},
				{Value: "guaranteed"},
			},
		},
		"payment_method_details.billing_details.address.city": {
			Type: "string",
		},
		"payment_method_details.billing_details.address.country": {
			Type: "string",
		},
		"payment_method_details.billing_details.address.line1": {
			Type: "string",
		},
		"payment_method_details.billing_details.address.line2": {
			Type: "string",
		},
		"payment_method_details.billing_details.address.postal_code": {
			Type: "string",
		},
		"payment_method_details.billing_details.address.state": {
			Type: "string",
		},
		"payment_method_details.billing_details.email": {
			Type: "string",
		},
		"payment_method_details.billing_details.name": {
			Type: "string",
		},
		"payment_method_details.billing_details.phone": {
			Type: "string",
		},
		"payment_method_details.custom.display_name": {
			Type: "string",
		},
		"payment_method_details.custom.type": {
			Type: "string",
		},
		"payment_method_details.payment_method": {
			Type: "string",
		},
		"payment_method_details.type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "custom"},
			},
		},
		"processor_details.custom.payment_reference": {
			Type:     "string",
			Required: true,
		},
		"processor_details.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "custom"},
			},
		},
		"shipping_details.address.city": {
			Type: "string",
		},
		"shipping_details.address.country": {
			Type: "string",
		},
		"shipping_details.address.line1": {
			Type: "string",
		},
		"shipping_details.address.line2": {
			Type: "string",
		},
		"shipping_details.address.postal_code": {
			Type: "string",
		},
		"shipping_details.address.state": {
			Type: "string",
		},
		"shipping_details.name": {
			Type: "string",
		},
		"shipping_details.phone": {
			Type: "string",
		},
	},
}
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",
		},
		"failed.failed_at": {
			Type:     "integer",
			Required: true,
			Format:   "unix-time",
		},
		"guaranteed.guaranteed_at": {
			Type:     "integer",
			Required: true,
			Format:   "unix-time",
		},
		"initiated_at": {
			Type:     "integer",
			Required: true,
			Format:   "unix-time",
		},
		"outcome": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "failed"},
				{Value: "guaranteed"},
			},
		},
		"payment_method_details.billing_details.address.city": {
			Type: "string",
		},
		"payment_method_details.billing_details.address.country": {
			Type: "string",
		},
		"payment_method_details.billing_details.address.line1": {
			Type: "string",
		},
		"payment_method_details.billing_details.address.line2": {
			Type: "string",
		},
		"payment_method_details.billing_details.address.postal_code": {
			Type: "string",
		},
		"payment_method_details.billing_details.address.state": {
			Type: "string",
		},
		"payment_method_details.billing_details.email": {
			Type: "string",
		},
		"payment_method_details.billing_details.name": {
			Type: "string",
		},
		"payment_method_details.billing_details.phone": {
			Type: "string",
		},
		"payment_method_details.custom.display_name": {
			Type: "string",
		},
		"payment_method_details.custom.type": {
			Type: "string",
		},
		"payment_method_details.payment_method": {
			Type: "string",
		},
		"payment_method_details.type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "custom"},
			},
		},
		"shipping_details.address.city": {
			Type: "string",
		},
		"shipping_details.address.country": {
			Type: "string",
		},
		"shipping_details.address.line1": {
			Type: "string",
		},
		"shipping_details.address.line2": {
			Type: "string",
		},
		"shipping_details.address.postal_code": {
			Type: "string",
		},
		"shipping_details.address.state": {
			Type: "string",
		},
		"shipping_details.name": {
			Type: "string",
		},
		"shipping_details.phone": {
			Type: "string",
		},
	},
}
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",
			Required: 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",
			Required: 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",
			Required: 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",
		},
		"customer_details.email": {
			Type: "string",
		},
		"customer_details.name": {
			Type: "string",
		},
		"customer_details.phone": {
			Type: "string",
		},
		"description": {
			Type: "string",
		},
	},
}
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",
			Required: true,
			Format:   "currency",
		},
		"amount.value": {
			Type:     "integer",
			Required: true,
		},
		"initiated_at": {
			Type:   "integer",
			Format: "unix-time",
		},
		"outcome": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "refunded"},
			},
		},
		"processor_details.custom.refund_reference": {
			Type:     "string",
			Required: true,
		},
		"processor_details.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "custom"},
			},
		},
		"refunded.refunded_at": {
			Type:     "integer",
			Required: 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",
			Required: 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",
		},
		"limit": {
			Type: "integer",
		},
		"object": {
			Type: "string",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
			Required: true,
		},
		"currency": {
			Type:     "string",
			Required: true,
			Format:   "currency",
		},
		"description": {
			Type: "string",
		},
		"destination": {
			Type: "string",
		},
		"method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "instant"},
				{Value: "standard"},
			},
		},
		"payout_method": {
			Type: "string",
		},
		"source_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "bank_account"},
				{Value: "card"},
				{Value: "fpx"},
			},
		},
		"statement_descriptor": {
			Type: "string",
		},
	},
}
View Source
var V1PayoutsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/payouts",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"arrival_date": {
			Type: "integer",
		},
		"created": {
			Type: "integer",
		},
		"destination": {
			Type: "string",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
		"status": {
			Type: "string",
		},
	},
}
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",
			Format: "unix-time",
		},
		"additional_tos_acceptances.account.ip": {
			Type: "string",
		},
		"additional_tos_acceptances.account.user_agent": {
			Type: "string",
		},
		"address.city": {
			Type: "string",
		},
		"address.country": {
			Type: "string",
		},
		"address.line1": {
			Type: "string",
		},
		"address.line2": {
			Type: "string",
		},
		"address.postal_code": {
			Type: "string",
		},
		"address.state": {
			Type: "string",
		},
		"address_kana.city": {
			Type: "string",
		},
		"address_kana.country": {
			Type: "string",
		},
		"address_kana.line1": {
			Type: "string",
		},
		"address_kana.line2": {
			Type: "string",
		},
		"address_kana.postal_code": {
			Type: "string",
		},
		"address_kana.state": {
			Type: "string",
		},
		"address_kana.town": {
			Type: "string",
		},
		"address_kanji.city": {
			Type: "string",
		},
		"address_kanji.country": {
			Type: "string",
		},
		"address_kanji.line1": {
			Type: "string",
		},
		"address_kanji.line2": {
			Type: "string",
		},
		"address_kanji.postal_code": {
			Type: "string",
		},
		"address_kanji.state": {
			Type: "string",
		},
		"address_kanji.town": {
			Type: "string",
		},
		"documents.company_authorization.files": {
			Type: "array",
		},
		"documents.passport.files": {
			Type: "array",
		},
		"documents.visa.files": {
			Type: "array",
		},
		"email": {
			Type: "string",
		},
		"first_name": {
			Type: "string",
		},
		"first_name_kana": {
			Type: "string",
		},
		"first_name_kanji": {
			Type: "string",
		},
		"full_name_aliases": {
			Type: "array",
		},
		"gender": {
			Type: "string",
		},
		"id_number": {
			Type: "string",
		},
		"id_number_secondary": {
			Type: "string",
		},
		"last_name": {
			Type: "string",
		},
		"last_name_kana": {
			Type: "string",
		},
		"last_name_kanji": {
			Type: "string",
		},
		"maiden_name": {
			Type: "string",
		},
		"nationality": {
			Type: "string",
		},
		"person_token": {
			Type: "string",
		},
		"phone": {
			Type: "string",
		},
		"political_exposure": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "existing"},
				{Value: "none"},
			},
		},
		"registered_address.city": {
			Type: "string",
		},
		"registered_address.country": {
			Type: "string",
		},
		"registered_address.line1": {
			Type: "string",
		},
		"registered_address.line2": {
			Type: "string",
		},
		"registered_address.postal_code": {
			Type: "string",
		},
		"registered_address.state": {
			Type: "string",
		},
		"relationship.authorizer": {
			Type: "boolean",
		},
		"relationship.director": {
			Type: "boolean",
		},
		"relationship.executive": {
			Type: "boolean",
		},
		"relationship.legal_guardian": {
			Type: "boolean",
		},
		"relationship.owner": {
			Type: "boolean",
		},
		"relationship.percent_ownership": {
			Type: "number",
		},
		"relationship.representative": {
			Type: "boolean",
		},
		"relationship.title": {
			Type: "string",
		},
		"ssn_last_4": {
			Type: "string",
		},
		"us_cfpb_data.ethnicity_details.ethnicity": {
			Type: "array",
		},
		"us_cfpb_data.ethnicity_details.ethnicity_other": {
			Type: "string",
		},
		"us_cfpb_data.race_details.race": {
			Type: "array",
		},
		"us_cfpb_data.race_details.race_other": {
			Type: "string",
		},
		"us_cfpb_data.self_identified_gender": {
			Type: "string",
		},
		"verification.additional_document.back": {
			Type: "string",
		},
		"verification.additional_document.front": {
			Type: "string",
		},
		"verification.document.back": {
			Type: "string",
		},
		"verification.document.front": {
			Type: "string",
		},
	},
}
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",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
			Format: "unix-time",
		},
		"additional_tos_acceptances.account.ip": {
			Type: "string",
		},
		"additional_tos_acceptances.account.user_agent": {
			Type: "string",
		},
		"address.city": {
			Type: "string",
		},
		"address.country": {
			Type: "string",
		},
		"address.line1": {
			Type: "string",
		},
		"address.line2": {
			Type: "string",
		},
		"address.postal_code": {
			Type: "string",
		},
		"address.state": {
			Type: "string",
		},
		"address_kana.city": {
			Type: "string",
		},
		"address_kana.country": {
			Type: "string",
		},
		"address_kana.line1": {
			Type: "string",
		},
		"address_kana.line2": {
			Type: "string",
		},
		"address_kana.postal_code": {
			Type: "string",
		},
		"address_kana.state": {
			Type: "string",
		},
		"address_kana.town": {
			Type: "string",
		},
		"address_kanji.city": {
			Type: "string",
		},
		"address_kanji.country": {
			Type: "string",
		},
		"address_kanji.line1": {
			Type: "string",
		},
		"address_kanji.line2": {
			Type: "string",
		},
		"address_kanji.postal_code": {
			Type: "string",
		},
		"address_kanji.state": {
			Type: "string",
		},
		"address_kanji.town": {
			Type: "string",
		},
		"documents.company_authorization.files": {
			Type: "array",
		},
		"documents.passport.files": {
			Type: "array",
		},
		"documents.visa.files": {
			Type: "array",
		},
		"email": {
			Type: "string",
		},
		"first_name": {
			Type: "string",
		},
		"first_name_kana": {
			Type: "string",
		},
		"first_name_kanji": {
			Type: "string",
		},
		"full_name_aliases": {
			Type: "array",
		},
		"gender": {
			Type: "string",
		},
		"id_number": {
			Type: "string",
		},
		"id_number_secondary": {
			Type: "string",
		},
		"last_name": {
			Type: "string",
		},
		"last_name_kana": {
			Type: "string",
		},
		"last_name_kanji": {
			Type: "string",
		},
		"maiden_name": {
			Type: "string",
		},
		"nationality": {
			Type: "string",
		},
		"person_token": {
			Type: "string",
		},
		"phone": {
			Type: "string",
		},
		"political_exposure": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "existing"},
				{Value: "none"},
			},
		},
		"registered_address.city": {
			Type: "string",
		},
		"registered_address.country": {
			Type: "string",
		},
		"registered_address.line1": {
			Type: "string",
		},
		"registered_address.line2": {
			Type: "string",
		},
		"registered_address.postal_code": {
			Type: "string",
		},
		"registered_address.state": {
			Type: "string",
		},
		"relationship.authorizer": {
			Type: "boolean",
		},
		"relationship.director": {
			Type: "boolean",
		},
		"relationship.executive": {
			Type: "boolean",
		},
		"relationship.legal_guardian": {
			Type: "boolean",
		},
		"relationship.owner": {
			Type: "boolean",
		},
		"relationship.percent_ownership": {
			Type: "number",
		},
		"relationship.representative": {
			Type: "boolean",
		},
		"relationship.title": {
			Type: "string",
		},
		"ssn_last_4": {
			Type: "string",
		},
		"us_cfpb_data.ethnicity_details.ethnicity": {
			Type: "array",
		},
		"us_cfpb_data.ethnicity_details.ethnicity_other": {
			Type: "string",
		},
		"us_cfpb_data.race_details.race": {
			Type: "array",
		},
		"us_cfpb_data.race_details.race_other": {
			Type: "string",
		},
		"us_cfpb_data.self_identified_gender": {
			Type: "string",
		},
		"verification.additional_document.back": {
			Type: "string",
		},
		"verification.additional_document.front": {
			Type: "string",
		},
		"verification.document.back": {
			Type: "string",
		},
		"verification.document.front": {
			Type: "string",
		},
	},
}
View Source
var V1PlansCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/plans",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"active": {
			Type: "boolean",
		},
		"amount": {
			Type: "integer",
		},
		"amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"billing_scheme": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "per_unit"},
				{Value: "tiered"},
			},
		},
		"currency": {
			Type:     "string",
			Required: true,
			Format:   "currency",
		},
		"id": {
			Type: "string",
		},
		"interval": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "month"},
				{Value: "week"},
				{Value: "year"},
			},
		},
		"interval_count": {
			Type: "integer",
		},
		"meter": {
			Type: "string",
		},
		"nickname": {
			Type: "string",
		},
		"product": {
			Type: "string",
		},
		"tiers_mode": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "graduated"},
				{Value: "volume"},
			},
		},
		"transform_usage.divide_by": {
			Type:     "integer",
			Required: true,
		},
		"transform_usage.round": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "down"},
				{Value: "up"},
			},
		},
		"trial_period_days": {
			Type: "integer",
		},
		"usage_type": {
			Type: "string",
			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",
		},
		"created": {
			Type: "integer",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"product": {
			Type: "string",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
		"nickname": {
			Type: "string",
		},
		"product": {
			Type: "string",
		},
		"trial_period_days": {
			Type: "integer",
		},
	},
}
View Source
var V1PricesCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/prices",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"active": {
			Type: "boolean",
		},
		"billing_scheme": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "per_unit"},
				{Value: "tiered"},
			},
		},
		"currency": {
			Type:     "string",
			Required: true,
			Format:   "currency",
		},
		"custom_unit_amount.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"custom_unit_amount.maximum": {
			Type: "integer",
		},
		"custom_unit_amount.minimum": {
			Type: "integer",
		},
		"custom_unit_amount.preset": {
			Type: "integer",
		},
		"lookup_key": {
			Type: "string",
		},
		"nickname": {
			Type: "string",
		},
		"product": {
			Type: "string",
		},
		"product_data.active": {
			Type: "boolean",
		},
		"product_data.id": {
			Type: "string",
		},
		"product_data.name": {
			Type:     "string",
			Required: true,
		},
		"product_data.statement_descriptor": {
			Type: "string",
		},
		"product_data.tax_code": {
			Type: "string",
		},
		"product_data.unit_label": {
			Type: "string",
		},
		"recurring.interval": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "month"},
				{Value: "week"},
				{Value: "year"},
			},
		},
		"recurring.interval_count": {
			Type: "integer",
		},
		"recurring.meter": {
			Type: "string",
		},
		"recurring.trial_period_days": {
			Type: "integer",
		},
		"recurring.usage_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "licensed"},
				{Value: "metered"},
			},
		},
		"tax_behavior": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "exclusive"},
				{Value: "inclusive"},
				{Value: "unspecified"},
			},
		},
		"tiers_mode": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "graduated"},
				{Value: "volume"},
			},
		},
		"transfer_lookup_key": {
			Type: "boolean",
		},
		"transform_quantity.divide_by": {
			Type:     "integer",
			Required: true,
		},
		"transform_quantity.round": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "down"},
				{Value: "up"},
			},
		},
		"unit_amount": {
			Type: "integer",
		},
		"unit_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
	},
}
View Source
var V1PricesList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/prices",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"active": {
			Type: "boolean",
		},
		"created": {
			Type: "integer",
		},
		"currency": {
			Type:   "string",
			Format: "currency",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"lookup_keys": {
			Type: "array",
		},
		"product": {
			Type: "string",
		},
		"starting_after": {
			Type: "string",
		},
		"type": {
			Type: "string",
			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",
		},
		"page": {
			Type: "string",
		},
		"query": {
			Type:     "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",
		},
		"lookup_key": {
			Type: "string",
		},
		"nickname": {
			Type: "string",
		},
		"tax_behavior": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "exclusive"},
				{Value: "inclusive"},
				{Value: "unspecified"},
			},
		},
		"transfer_lookup_key": {
			Type: "boolean",
		},
	},
}
View Source
var V1ProductFeaturesCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/products/{product}/features",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"entitlement_feature": {
			Type:     "string",
			Required: 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",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
		"default_price_data.currency": {
			Type:     "string",
			Required: true,
			Format:   "currency",
		},
		"default_price_data.custom_unit_amount.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"default_price_data.custom_unit_amount.maximum": {
			Type: "integer",
		},
		"default_price_data.custom_unit_amount.minimum": {
			Type: "integer",
		},
		"default_price_data.custom_unit_amount.preset": {
			Type: "integer",
		},
		"default_price_data.recurring.interval": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "month"},
				{Value: "week"},
				{Value: "year"},
			},
		},
		"default_price_data.recurring.interval_count": {
			Type: "integer",
		},
		"default_price_data.tax_behavior": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "exclusive"},
				{Value: "inclusive"},
				{Value: "unspecified"},
			},
		},
		"default_price_data.unit_amount": {
			Type: "integer",
		},
		"default_price_data.unit_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"description": {
			Type: "string",
		},
		"id": {
			Type: "string",
		},
		"images": {
			Type: "array",
		},
		"name": {
			Type:     "string",
			Required: true,
		},
		"package_dimensions.height": {
			Type:     "number",
			Required: true,
		},
		"package_dimensions.length": {
			Type:     "number",
			Required: true,
		},
		"package_dimensions.weight": {
			Type:     "number",
			Required: true,
		},
		"package_dimensions.width": {
			Type:     "number",
			Required: true,
		},
		"shippable": {
			Type: "boolean",
		},
		"statement_descriptor": {
			Type: "string",
		},
		"tax_code": {
			Type: "string",
		},
		"type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "good"},
				{Value: "service"},
			},
		},
		"unit_label": {
			Type: "string",
		},
		"url": {
			Type: "string",
		},
	},
}
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",
		},
		"created": {
			Type: "integer",
		},
		"ending_before": {
			Type: "string",
		},
		"ids": {
			Type: "array",
		},
		"limit": {
			Type: "integer",
		},
		"shippable": {
			Type: "boolean",
		},
		"starting_after": {
			Type: "string",
		},
		"type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "good"},
				{Value: "service"},
			},
		},
		"url": {
			Type: "string",
		},
	},
}
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",
		},
		"page": {
			Type: "string",
		},
		"query": {
			Type:     "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",
		},
		"default_price": {
			Type: "string",
		},
		"description": {
			Type: "string",
		},
		"images": {
			Type: "array",
		},
		"name": {
			Type: "string",
		},
		"shippable": {
			Type: "boolean",
		},
		"statement_descriptor": {
			Type: "string",
		},
		"tax_code": {
			Type: "string",
		},
		"unit_label": {
			Type: "string",
		},
		"url": {
			Type: "string",
		},
	},
}
View Source
var V1PromotionCodesCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/promotion_codes",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"active": {
			Type: "boolean",
		},
		"code": {
			Type: "string",
		},
		"customer": {
			Type: "string",
		},
		"customer_account": {
			Type: "string",
		},
		"expires_at": {
			Type:   "integer",
			Format: "unix-time",
		},
		"max_redemptions": {
			Type: "integer",
		},
		"promotion.coupon": {
			Type: "string",
		},
		"promotion.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "coupon"},
			},
		},
		"restrictions.first_time_transaction": {
			Type: "boolean",
		},
		"restrictions.minimum_amount": {
			Type: "integer",
		},
		"restrictions.minimum_amount_currency": {
			Type:   "string",
			Format: "currency",
		},
	},
}
View Source
var V1PromotionCodesList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/promotion_codes",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"active": {
			Type: "boolean",
		},
		"code": {
			Type: "string",
		},
		"coupon": {
			Type: "string",
		},
		"created": {
			Type: "integer",
		},
		"customer": {
			Type: "string",
		},
		"customer_account": {
			Type: "string",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
	},
}
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",
		},
		"application_fee_percent": {
			Type: "number",
		},
		"automatic_tax.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"automatic_tax.liability.account": {
			Type: "string",
		},
		"automatic_tax.liability.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"collection_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "charge_automatically"},
				{Value: "send_invoice"},
			},
		},
		"customer": {
			Type: "string",
		},
		"customer_account": {
			Type: "string",
		},
		"default_tax_rates": {
			Type: "array",
		},
		"description": {
			Type: "string",
		},
		"expires_at": {
			Type:   "integer",
			Format: "unix-time",
		},
		"footer": {
			Type: "string",
		},
		"from_quote.is_revision": {
			Type: "boolean",
		},
		"from_quote.quote": {
			Type:     "string",
			Required: true,
		},
		"header": {
			Type: "string",
		},
		"invoice_settings.days_until_due": {
			Type: "integer",
		},
		"invoice_settings.issuer.account": {
			Type: "string",
		},
		"invoice_settings.issuer.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"on_behalf_of": {
			Type: "string",
		},
		"subscription_data.billing_mode.flexible.proration_discounts": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "included"},
				{Value: "itemized"},
			},
		},
		"subscription_data.billing_mode.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "classic"},
				{Value: "flexible"},
			},
		},
		"subscription_data.description": {
			Type: "string",
		},
		"subscription_data.effective_date": {
			Type: "string",
		},
		"subscription_data.trial_period_days": {
			Type: "integer",
		},
		"test_clock": {
			Type: "string",
		},
	},
}
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",
			Format: "unix-time",
		},
	},
}
View Source
var V1QuotesList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/quotes",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"customer": {
			Type: "string",
		},
		"customer_account": {
			Type: "string",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
		"status": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "accepted"},
				{Value: "canceled"},
				{Value: "draft"},
				{Value: "open"},
			},
		},
		"test_clock": {
			Type: "string",
		},
	},
}
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",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
		"application_fee_percent": {
			Type: "number",
		},
		"automatic_tax.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"automatic_tax.liability.account": {
			Type: "string",
		},
		"automatic_tax.liability.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"collection_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "charge_automatically"},
				{Value: "send_invoice"},
			},
		},
		"customer": {
			Type: "string",
		},
		"customer_account": {
			Type: "string",
		},
		"default_tax_rates": {
			Type: "array",
		},
		"description": {
			Type: "string",
		},
		"expires_at": {
			Type:   "integer",
			Format: "unix-time",
		},
		"footer": {
			Type: "string",
		},
		"header": {
			Type: "string",
		},
		"invoice_settings.days_until_due": {
			Type: "integer",
		},
		"invoice_settings.issuer.account": {
			Type: "string",
		},
		"invoice_settings.issuer.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"on_behalf_of": {
			Type: "string",
		},
		"subscription_data.description": {
			Type: "string",
		},
		"subscription_data.effective_date": {
			Type: "string",
		},
		"subscription_data.trial_period_days": {
			Type: "integer",
		},
	},
}
View Source
var V1RadarEarlyFraudWarningsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/radar/early_fraud_warnings",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"charge": {
			Type: "string",
		},
		"created": {
			Type: "integer",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"payment_intent": {
			Type: "string",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
			Required: true,
		},
		"customer_details.customer": {
			Type: "string",
		},
		"customer_details.customer_account": {
			Type: "string",
		},
		"customer_details.email": {
			Type: "string",
		},
		"customer_details.name": {
			Type: "string",
		},
		"customer_details.phone": {
			Type: "string",
		},
		"payment_details.amount": {
			Type:     "integer",
			Required: true,
		},
		"payment_details.currency": {
			Type:     "string",
			Required: true,
			Format:   "currency",
		},
		"payment_details.description": {
			Type: "string",
		},
		"payment_details.money_movement_details.card.customer_presence": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"payment_details.money_movement_details.card.payment_type": {
			Type: "string",
			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",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "card"},
			},
		},
		"payment_details.payment_method_details.billing_details.address.city": {
			Type: "string",
		},
		"payment_details.payment_method_details.billing_details.address.country": {
			Type: "string",
		},
		"payment_details.payment_method_details.billing_details.address.line1": {
			Type: "string",
		},
		"payment_details.payment_method_details.billing_details.address.line2": {
			Type: "string",
		},
		"payment_details.payment_method_details.billing_details.address.postal_code": {
			Type: "string",
		},
		"payment_details.payment_method_details.billing_details.address.state": {
			Type: "string",
		},
		"payment_details.payment_method_details.billing_details.email": {
			Type: "string",
		},
		"payment_details.payment_method_details.billing_details.name": {
			Type: "string",
		},
		"payment_details.payment_method_details.billing_details.phone": {
			Type: "string",
		},
		"payment_details.payment_method_details.payment_method": {
			Type:     "string",
			Required: true,
		},
		"payment_details.shipping_details.address.city": {
			Type: "string",
		},
		"payment_details.shipping_details.address.country": {
			Type: "string",
		},
		"payment_details.shipping_details.address.line1": {
			Type: "string",
		},
		"payment_details.shipping_details.address.line2": {
			Type: "string",
		},
		"payment_details.shipping_details.address.postal_code": {
			Type: "string",
		},
		"payment_details.shipping_details.address.state": {
			Type: "string",
		},
		"payment_details.shipping_details.name": {
			Type: "string",
		},
		"payment_details.shipping_details.phone": {
			Type: "string",
		},
		"payment_details.statement_descriptor": {
			Type: "string",
		},
	},
}
View Source
var V1RadarValueListItemsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/radar/value_list_items",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"value": {
			Type:     "string",
			Required: true,
		},
		"value_list": {
			Type:     "string",
			Required: 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",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
		"value": {
			Type: "string",
		},
		"value_list": {
			Type:     "string",
			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",
			Required: true,
		},
		"item_type": {
			Type: "string",
			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",
			Required: 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",
		},
		"contains": {
			Type: "string",
		},
		"created": {
			Type: "integer",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
		"name": {
			Type: "string",
		},
	},
}
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",
		},
		"charge": {
			Type: "string",
		},
		"currency": {
			Type:   "string",
			Format: "currency",
		},
		"customer": {
			Type: "string",
		},
		"instructions_email": {
			Type: "string",
		},
		"origin": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "customer_balance"},
			},
		},
		"payment_intent": {
			Type: "string",
		},
		"reason": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "duplicate"},
				{Value: "fraudulent"},
				{Value: "requested_by_customer"},
			},
		},
		"refund_application_fee": {
			Type: "boolean",
		},
		"reverse_transfer": {
			Type: "boolean",
		},
	},
}
View Source
var V1RefundsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/refunds",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"charge": {
			Type: "string",
		},
		"created": {
			Type: "integer",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"payment_intent": {
			Type: "string",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
		"parameters.connected_account": {
			Type: "string",
		},
		"parameters.currency": {
			Type:   "string",
			Format: "currency",
		},
		"parameters.interval_end": {
			Type:   "integer",
			Format: "unix-time",
		},
		"parameters.interval_start": {
			Type:   "integer",
			Format: "unix-time",
		},
		"parameters.payout": {
			Type: "string",
		},
		"parameters.reporting_category": {
			Type: "string",
			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",
			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",
			Required: true,
		},
	},
}
View Source
var V1ReportingReportRunsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/reporting/report_runs",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type: "integer",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"setup_intent": {
			Type:     "string",
			Required: true,
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
			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",
		},
		"payment_method": {
			Type: "string",
		},
		"payment_method_data.acss_debit.account_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.acss_debit.institution_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.acss_debit.transit_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.allow_redisplay": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "limited"},
				{Value: "unspecified"},
			},
		},
		"payment_method_data.au_becs_debit.account_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.au_becs_debit.bsb_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.bacs_debit.account_number": {
			Type: "string",
		},
		"payment_method_data.bacs_debit.sort_code": {
			Type: "string",
		},
		"payment_method_data.billing_details.email": {
			Type: "string",
		},
		"payment_method_data.billing_details.name": {
			Type: "string",
		},
		"payment_method_data.billing_details.phone": {
			Type: "string",
		},
		"payment_method_data.billing_details.tax_id": {
			Type: "string",
		},
		"payment_method_data.boleto.tax_id": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.eps.bank": {
			Type: "string",
			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",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"payment_method_data.fpx.bank": {
			Type:     "string",
			Required: true,
			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",
			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",
			Required: true,
		},
		"payment_method_data.klarna.dob.month": {
			Type:     "integer",
			Required: true,
		},
		"payment_method_data.klarna.dob.year": {
			Type:     "integer",
			Required: true,
		},
		"payment_method_data.naver_pay.funding": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "card"},
				{Value: "points"},
			},
		},
		"payment_method_data.nz_bank_account.account_holder_name": {
			Type: "string",
		},
		"payment_method_data.nz_bank_account.account_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.nz_bank_account.bank_code": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.nz_bank_account.branch_code": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.nz_bank_account.reference": {
			Type: "string",
		},
		"payment_method_data.nz_bank_account.suffix": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.p24.bank": {
			Type: "string",
			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",
		},
		"payment_method_data.payto.bsb_number": {
			Type: "string",
		},
		"payment_method_data.payto.pay_id": {
			Type: "string",
		},
		"payment_method_data.radar_options.session": {
			Type: "string",
		},
		"payment_method_data.sepa_debit.iban": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.sofort.country": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "AT"},
				{Value: "BE"},
				{Value: "DE"},
				{Value: "ES"},
				{Value: "IT"},
				{Value: "NL"},
			},
		},
		"payment_method_data.type": {
			Type:     "string",
			Required: 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",
		},
		"payment_method_data.upi.mandate_options.amount_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_data.upi.mandate_options.description": {
			Type: "string",
		},
		"payment_method_data.upi.mandate_options.end_date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"payment_method_data.us_bank_account.account_holder_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"payment_method_data.us_bank_account.account_number": {
			Type: "string",
		},
		"payment_method_data.us_bank_account.account_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "checking"},
				{Value: "savings"},
			},
		},
		"payment_method_data.us_bank_account.financial_connections_account": {
			Type: "string",
		},
		"payment_method_data.us_bank_account.routing_number": {
			Type: "string",
		},
		"payment_method_options.acss_debit.currency": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "cad"},
				{Value: "usd"},
			},
		},
		"payment_method_options.acss_debit.mandate_options.custom_mandate_url": {
			Type: "string",
		},
		"payment_method_options.acss_debit.mandate_options.default_for": {
			Type: "array",
		},
		"payment_method_options.acss_debit.mandate_options.interval_description": {
			Type: "string",
		},
		"payment_method_options.acss_debit.mandate_options.payment_schedule": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "combined"},
				{Value: "interval"},
				{Value: "sporadic"},
			},
		},
		"payment_method_options.acss_debit.mandate_options.transaction_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "business"},
				{Value: "personal"},
			},
		},
		"payment_method_options.acss_debit.verification_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "instant"},
				{Value: "microdeposits"},
			},
		},
		"payment_method_options.bacs_debit.mandate_options.reference_prefix": {
			Type: "string",
		},
		"payment_method_options.card.mandate_options.amount": {
			Type:     "integer",
			Required: true,
		},
		"payment_method_options.card.mandate_options.amount_type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_options.card.mandate_options.currency": {
			Type:     "string",
			Required: true,
			Format:   "currency",
		},
		"payment_method_options.card.mandate_options.description": {
			Type: "string",
		},
		"payment_method_options.card.mandate_options.end_date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"payment_method_options.card.mandate_options.interval": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "month"},
				{Value: "sporadic"},
				{Value: "week"},
				{Value: "year"},
			},
		},
		"payment_method_options.card.mandate_options.interval_count": {
			Type: "integer",
		},
		"payment_method_options.card.mandate_options.reference": {
			Type:     "string",
			Required: true,
		},
		"payment_method_options.card.mandate_options.start_date": {
			Type:     "integer",
			Required: true,
			Format:   "unix-time",
		},
		"payment_method_options.card.mandate_options.supported_types": {
			Type: "array",
		},
		"payment_method_options.card.moto": {
			Type: "boolean",
		},
		"payment_method_options.card.network": {
			Type: "string",
			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",
			Enum: []resource.EnumSpec{
				{Value: "any"},
				{Value: "automatic"},
				{Value: "challenge"},
			},
		},
		"payment_method_options.card.three_d_secure.ares_trans_status": {
			Type: "string",
			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",
		},
		"payment_method_options.card.three_d_secure.electronic_commerce_indicator": {
			Type: "string",
			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",
			Required: true,
			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",
		},
		"payment_method_options.card.three_d_secure.network_options.cartes_bancaires.cb_score": {
			Type: "integer",
		},
		"payment_method_options.card.three_d_secure.requestor_challenge_indicator": {
			Type: "string",
		},
		"payment_method_options.card.three_d_secure.transaction_id": {
			Type: "string",
		},
		"payment_method_options.card.three_d_secure.version": {
			Type: "string",
			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",
			Format: "currency",
		},
		"payment_method_options.klarna.on_demand.average_amount": {
			Type: "integer",
		},
		"payment_method_options.klarna.on_demand.maximum_amount": {
			Type: "integer",
		},
		"payment_method_options.klarna.on_demand.minimum_amount": {
			Type: "integer",
		},
		"payment_method_options.klarna.on_demand.purchase_interval": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "month"},
				{Value: "week"},
				{Value: "year"},
			},
		},
		"payment_method_options.klarna.on_demand.purchase_interval_count": {
			Type: "integer",
		},
		"payment_method_options.klarna.preferred_locale": {
			Type: "string",
			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",
		},
		"payment_method_options.paypal.billing_agreement_id": {
			Type: "string",
		},
		"payment_method_options.payto.mandate_options.amount": {
			Type: "integer",
		},
		"payment_method_options.payto.mandate_options.amount_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_options.payto.mandate_options.end_date": {
			Type: "string",
		},
		"payment_method_options.payto.mandate_options.payment_schedule": {
			Type: "string",
			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",
		},
		"payment_method_options.payto.mandate_options.purpose": {
			Type: "string",
			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",
		},
		"payment_method_options.sepa_debit.mandate_options.reference_prefix": {
			Type: "string",
		},
		"payment_method_options.upi.mandate_options.amount": {
			Type: "integer",
		},
		"payment_method_options.upi.mandate_options.amount_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_options.upi.mandate_options.description": {
			Type: "string",
		},
		"payment_method_options.upi.mandate_options.end_date": {
			Type:   "integer",
			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",
		},
		"payment_method_options.us_bank_account.financial_connections.permissions": {
			Type: "array",
		},
		"payment_method_options.us_bank_account.financial_connections.prefetch": {
			Type: "array",
		},
		"payment_method_options.us_bank_account.financial_connections.return_url": {
			Type: "string",
		},
		"payment_method_options.us_bank_account.mandate_options.collection_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "paper"},
			},
		},
		"payment_method_options.us_bank_account.networks.requested": {
			Type: "array",
		},
		"payment_method_options.us_bank_account.verification_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "instant"},
				{Value: "microdeposits"},
			},
		},
		"return_url": {
			Type: "string",
		},
		"use_stripe_sdk": {
			Type: "boolean",
		},
	},
}
View Source
var V1SetupIntentsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/setup_intents",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"attach_to_self": {
			Type: "boolean",
		},
		"automatic_payment_methods.allow_redirects": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "never"},
			},
		},
		"automatic_payment_methods.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"confirm": {
			Type: "boolean",
		},
		"confirmation_token": {
			Type: "string",
		},
		"customer": {
			Type: "string",
		},
		"customer_account": {
			Type: "string",
		},
		"description": {
			Type: "string",
		},
		"excluded_payment_method_types": {
			Type: "array",
		},
		"flow_directions": {
			Type: "array",
		},
		"on_behalf_of": {
			Type: "string",
		},
		"payment_method": {
			Type: "string",
		},
		"payment_method_configuration": {
			Type: "string",
		},
		"payment_method_data.acss_debit.account_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.acss_debit.institution_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.acss_debit.transit_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.allow_redisplay": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "limited"},
				{Value: "unspecified"},
			},
		},
		"payment_method_data.au_becs_debit.account_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.au_becs_debit.bsb_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.bacs_debit.account_number": {
			Type: "string",
		},
		"payment_method_data.bacs_debit.sort_code": {
			Type: "string",
		},
		"payment_method_data.billing_details.email": {
			Type: "string",
		},
		"payment_method_data.billing_details.name": {
			Type: "string",
		},
		"payment_method_data.billing_details.phone": {
			Type: "string",
		},
		"payment_method_data.billing_details.tax_id": {
			Type: "string",
		},
		"payment_method_data.boleto.tax_id": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.eps.bank": {
			Type: "string",
			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",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"payment_method_data.fpx.bank": {
			Type:     "string",
			Required: true,
			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",
			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",
			Required: true,
		},
		"payment_method_data.klarna.dob.month": {
			Type:     "integer",
			Required: true,
		},
		"payment_method_data.klarna.dob.year": {
			Type:     "integer",
			Required: true,
		},
		"payment_method_data.naver_pay.funding": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "card"},
				{Value: "points"},
			},
		},
		"payment_method_data.nz_bank_account.account_holder_name": {
			Type: "string",
		},
		"payment_method_data.nz_bank_account.account_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.nz_bank_account.bank_code": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.nz_bank_account.branch_code": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.nz_bank_account.reference": {
			Type: "string",
		},
		"payment_method_data.nz_bank_account.suffix": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.p24.bank": {
			Type: "string",
			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",
		},
		"payment_method_data.payto.bsb_number": {
			Type: "string",
		},
		"payment_method_data.payto.pay_id": {
			Type: "string",
		},
		"payment_method_data.radar_options.session": {
			Type: "string",
		},
		"payment_method_data.sepa_debit.iban": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.sofort.country": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "AT"},
				{Value: "BE"},
				{Value: "DE"},
				{Value: "ES"},
				{Value: "IT"},
				{Value: "NL"},
			},
		},
		"payment_method_data.type": {
			Type:     "string",
			Required: 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",
		},
		"payment_method_data.upi.mandate_options.amount_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_data.upi.mandate_options.description": {
			Type: "string",
		},
		"payment_method_data.upi.mandate_options.end_date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"payment_method_data.us_bank_account.account_holder_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"payment_method_data.us_bank_account.account_number": {
			Type: "string",
		},
		"payment_method_data.us_bank_account.account_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "checking"},
				{Value: "savings"},
			},
		},
		"payment_method_data.us_bank_account.financial_connections_account": {
			Type: "string",
		},
		"payment_method_data.us_bank_account.routing_number": {
			Type: "string",
		},
		"payment_method_options.acss_debit.currency": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "cad"},
				{Value: "usd"},
			},
		},
		"payment_method_options.acss_debit.mandate_options.custom_mandate_url": {
			Type: "string",
		},
		"payment_method_options.acss_debit.mandate_options.default_for": {
			Type: "array",
		},
		"payment_method_options.acss_debit.mandate_options.interval_description": {
			Type: "string",
		},
		"payment_method_options.acss_debit.mandate_options.payment_schedule": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "combined"},
				{Value: "interval"},
				{Value: "sporadic"},
			},
		},
		"payment_method_options.acss_debit.mandate_options.transaction_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "business"},
				{Value: "personal"},
			},
		},
		"payment_method_options.acss_debit.verification_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "instant"},
				{Value: "microdeposits"},
			},
		},
		"payment_method_options.bacs_debit.mandate_options.reference_prefix": {
			Type: "string",
		},
		"payment_method_options.card.mandate_options.amount": {
			Type:     "integer",
			Required: true,
		},
		"payment_method_options.card.mandate_options.amount_type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_options.card.mandate_options.currency": {
			Type:     "string",
			Required: true,
			Format:   "currency",
		},
		"payment_method_options.card.mandate_options.description": {
			Type: "string",
		},
		"payment_method_options.card.mandate_options.end_date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"payment_method_options.card.mandate_options.interval": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "month"},
				{Value: "sporadic"},
				{Value: "week"},
				{Value: "year"},
			},
		},
		"payment_method_options.card.mandate_options.interval_count": {
			Type: "integer",
		},
		"payment_method_options.card.mandate_options.reference": {
			Type:     "string",
			Required: true,
		},
		"payment_method_options.card.mandate_options.start_date": {
			Type:     "integer",
			Required: true,
			Format:   "unix-time",
		},
		"payment_method_options.card.mandate_options.supported_types": {
			Type: "array",
		},
		"payment_method_options.card.moto": {
			Type: "boolean",
		},
		"payment_method_options.card.network": {
			Type: "string",
			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",
			Enum: []resource.EnumSpec{
				{Value: "any"},
				{Value: "automatic"},
				{Value: "challenge"},
			},
		},
		"payment_method_options.card.three_d_secure.ares_trans_status": {
			Type: "string",
			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",
		},
		"payment_method_options.card.three_d_secure.electronic_commerce_indicator": {
			Type: "string",
			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",
			Required: true,
			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",
		},
		"payment_method_options.card.three_d_secure.network_options.cartes_bancaires.cb_score": {
			Type: "integer",
		},
		"payment_method_options.card.three_d_secure.requestor_challenge_indicator": {
			Type: "string",
		},
		"payment_method_options.card.three_d_secure.transaction_id": {
			Type: "string",
		},
		"payment_method_options.card.three_d_secure.version": {
			Type: "string",
			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",
			Format: "currency",
		},
		"payment_method_options.klarna.on_demand.average_amount": {
			Type: "integer",
		},
		"payment_method_options.klarna.on_demand.maximum_amount": {
			Type: "integer",
		},
		"payment_method_options.klarna.on_demand.minimum_amount": {
			Type: "integer",
		},
		"payment_method_options.klarna.on_demand.purchase_interval": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "month"},
				{Value: "week"},
				{Value: "year"},
			},
		},
		"payment_method_options.klarna.on_demand.purchase_interval_count": {
			Type: "integer",
		},
		"payment_method_options.klarna.preferred_locale": {
			Type: "string",
			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",
		},
		"payment_method_options.paypal.billing_agreement_id": {
			Type: "string",
		},
		"payment_method_options.payto.mandate_options.amount": {
			Type: "integer",
		},
		"payment_method_options.payto.mandate_options.amount_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_options.payto.mandate_options.end_date": {
			Type: "string",
		},
		"payment_method_options.payto.mandate_options.payment_schedule": {
			Type: "string",
			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",
		},
		"payment_method_options.payto.mandate_options.purpose": {
			Type: "string",
			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",
		},
		"payment_method_options.sepa_debit.mandate_options.reference_prefix": {
			Type: "string",
		},
		"payment_method_options.upi.mandate_options.amount": {
			Type: "integer",
		},
		"payment_method_options.upi.mandate_options.amount_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_options.upi.mandate_options.description": {
			Type: "string",
		},
		"payment_method_options.upi.mandate_options.end_date": {
			Type:   "integer",
			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",
		},
		"payment_method_options.us_bank_account.financial_connections.permissions": {
			Type: "array",
		},
		"payment_method_options.us_bank_account.financial_connections.prefetch": {
			Type: "array",
		},
		"payment_method_options.us_bank_account.financial_connections.return_url": {
			Type: "string",
		},
		"payment_method_options.us_bank_account.mandate_options.collection_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "paper"},
			},
		},
		"payment_method_options.us_bank_account.networks.requested": {
			Type: "array",
		},
		"payment_method_options.us_bank_account.verification_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "instant"},
				{Value: "microdeposits"},
			},
		},
		"payment_method_types": {
			Type: "array",
		},
		"return_url": {
			Type: "string",
		},
		"single_use.amount": {
			Type:     "integer",
			Required: true,
		},
		"single_use.currency": {
			Type:     "string",
			Required: true,
			Format:   "currency",
		},
		"usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"use_stripe_sdk": {
			Type: "boolean",
		},
	},
}
View Source
var V1SetupIntentsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/setup_intents",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"attach_to_self": {
			Type: "boolean",
		},
		"created": {
			Type: "integer",
		},
		"customer": {
			Type: "string",
		},
		"customer_account": {
			Type: "string",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"payment_method": {
			Type: "string",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
View Source
var V1SetupIntentsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v1/setup_intents/{intent}",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"client_secret": {
			Type: "string",
		},
	},
}
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",
		},
		"customer": {
			Type: "string",
		},
		"customer_account": {
			Type: "string",
		},
		"description": {
			Type: "string",
		},
		"excluded_payment_method_types": {
			Type: "array",
		},
		"flow_directions": {
			Type: "array",
		},
		"payment_method": {
			Type: "string",
		},
		"payment_method_configuration": {
			Type: "string",
		},
		"payment_method_data.acss_debit.account_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.acss_debit.institution_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.acss_debit.transit_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.allow_redisplay": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "limited"},
				{Value: "unspecified"},
			},
		},
		"payment_method_data.au_becs_debit.account_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.au_becs_debit.bsb_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.bacs_debit.account_number": {
			Type: "string",
		},
		"payment_method_data.bacs_debit.sort_code": {
			Type: "string",
		},
		"payment_method_data.billing_details.email": {
			Type: "string",
		},
		"payment_method_data.billing_details.name": {
			Type: "string",
		},
		"payment_method_data.billing_details.phone": {
			Type: "string",
		},
		"payment_method_data.billing_details.tax_id": {
			Type: "string",
		},
		"payment_method_data.boleto.tax_id": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.eps.bank": {
			Type: "string",
			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",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"payment_method_data.fpx.bank": {
			Type:     "string",
			Required: true,
			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",
			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",
			Required: true,
		},
		"payment_method_data.klarna.dob.month": {
			Type:     "integer",
			Required: true,
		},
		"payment_method_data.klarna.dob.year": {
			Type:     "integer",
			Required: true,
		},
		"payment_method_data.naver_pay.funding": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "card"},
				{Value: "points"},
			},
		},
		"payment_method_data.nz_bank_account.account_holder_name": {
			Type: "string",
		},
		"payment_method_data.nz_bank_account.account_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.nz_bank_account.bank_code": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.nz_bank_account.branch_code": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.nz_bank_account.reference": {
			Type: "string",
		},
		"payment_method_data.nz_bank_account.suffix": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.p24.bank": {
			Type: "string",
			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",
		},
		"payment_method_data.payto.bsb_number": {
			Type: "string",
		},
		"payment_method_data.payto.pay_id": {
			Type: "string",
		},
		"payment_method_data.radar_options.session": {
			Type: "string",
		},
		"payment_method_data.sepa_debit.iban": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.sofort.country": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "AT"},
				{Value: "BE"},
				{Value: "DE"},
				{Value: "ES"},
				{Value: "IT"},
				{Value: "NL"},
			},
		},
		"payment_method_data.type": {
			Type:     "string",
			Required: 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",
		},
		"payment_method_data.upi.mandate_options.amount_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_data.upi.mandate_options.description": {
			Type: "string",
		},
		"payment_method_data.upi.mandate_options.end_date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"payment_method_data.us_bank_account.account_holder_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"payment_method_data.us_bank_account.account_number": {
			Type: "string",
		},
		"payment_method_data.us_bank_account.account_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "checking"},
				{Value: "savings"},
			},
		},
		"payment_method_data.us_bank_account.financial_connections_account": {
			Type: "string",
		},
		"payment_method_data.us_bank_account.routing_number": {
			Type: "string",
		},
		"payment_method_options.acss_debit.currency": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "cad"},
				{Value: "usd"},
			},
		},
		"payment_method_options.acss_debit.mandate_options.custom_mandate_url": {
			Type: "string",
		},
		"payment_method_options.acss_debit.mandate_options.default_for": {
			Type: "array",
		},
		"payment_method_options.acss_debit.mandate_options.interval_description": {
			Type: "string",
		},
		"payment_method_options.acss_debit.mandate_options.payment_schedule": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "combined"},
				{Value: "interval"},
				{Value: "sporadic"},
			},
		},
		"payment_method_options.acss_debit.mandate_options.transaction_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "business"},
				{Value: "personal"},
			},
		},
		"payment_method_options.acss_debit.verification_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "instant"},
				{Value: "microdeposits"},
			},
		},
		"payment_method_options.bacs_debit.mandate_options.reference_prefix": {
			Type: "string",
		},
		"payment_method_options.card.mandate_options.amount": {
			Type:     "integer",
			Required: true,
		},
		"payment_method_options.card.mandate_options.amount_type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_options.card.mandate_options.currency": {
			Type:     "string",
			Required: true,
			Format:   "currency",
		},
		"payment_method_options.card.mandate_options.description": {
			Type: "string",
		},
		"payment_method_options.card.mandate_options.end_date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"payment_method_options.card.mandate_options.interval": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "month"},
				{Value: "sporadic"},
				{Value: "week"},
				{Value: "year"},
			},
		},
		"payment_method_options.card.mandate_options.interval_count": {
			Type: "integer",
		},
		"payment_method_options.card.mandate_options.reference": {
			Type:     "string",
			Required: true,
		},
		"payment_method_options.card.mandate_options.start_date": {
			Type:     "integer",
			Required: true,
			Format:   "unix-time",
		},
		"payment_method_options.card.mandate_options.supported_types": {
			Type: "array",
		},
		"payment_method_options.card.moto": {
			Type: "boolean",
		},
		"payment_method_options.card.network": {
			Type: "string",
			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",
			Enum: []resource.EnumSpec{
				{Value: "any"},
				{Value: "automatic"},
				{Value: "challenge"},
			},
		},
		"payment_method_options.card.three_d_secure.ares_trans_status": {
			Type: "string",
			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",
		},
		"payment_method_options.card.three_d_secure.electronic_commerce_indicator": {
			Type: "string",
			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",
			Required: true,
			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",
		},
		"payment_method_options.card.three_d_secure.network_options.cartes_bancaires.cb_score": {
			Type: "integer",
		},
		"payment_method_options.card.three_d_secure.requestor_challenge_indicator": {
			Type: "string",
		},
		"payment_method_options.card.three_d_secure.transaction_id": {
			Type: "string",
		},
		"payment_method_options.card.three_d_secure.version": {
			Type: "string",
			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",
			Format: "currency",
		},
		"payment_method_options.klarna.on_demand.average_amount": {
			Type: "integer",
		},
		"payment_method_options.klarna.on_demand.maximum_amount": {
			Type: "integer",
		},
		"payment_method_options.klarna.on_demand.minimum_amount": {
			Type: "integer",
		},
		"payment_method_options.klarna.on_demand.purchase_interval": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "month"},
				{Value: "week"},
				{Value: "year"},
			},
		},
		"payment_method_options.klarna.on_demand.purchase_interval_count": {
			Type: "integer",
		},
		"payment_method_options.klarna.preferred_locale": {
			Type: "string",
			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",
		},
		"payment_method_options.paypal.billing_agreement_id": {
			Type: "string",
		},
		"payment_method_options.payto.mandate_options.amount": {
			Type: "integer",
		},
		"payment_method_options.payto.mandate_options.amount_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_options.payto.mandate_options.end_date": {
			Type: "string",
		},
		"payment_method_options.payto.mandate_options.payment_schedule": {
			Type: "string",
			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",
		},
		"payment_method_options.payto.mandate_options.purpose": {
			Type: "string",
			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",
		},
		"payment_method_options.sepa_debit.mandate_options.reference_prefix": {
			Type: "string",
		},
		"payment_method_options.upi.mandate_options.amount": {
			Type: "integer",
		},
		"payment_method_options.upi.mandate_options.amount_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_options.upi.mandate_options.description": {
			Type: "string",
		},
		"payment_method_options.upi.mandate_options.end_date": {
			Type:   "integer",
			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",
		},
		"payment_method_options.us_bank_account.financial_connections.permissions": {
			Type: "array",
		},
		"payment_method_options.us_bank_account.financial_connections.prefetch": {
			Type: "array",
		},
		"payment_method_options.us_bank_account.financial_connections.return_url": {
			Type: "string",
		},
		"payment_method_options.us_bank_account.mandate_options.collection_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "paper"},
			},
		},
		"payment_method_options.us_bank_account.networks.requested": {
			Type: "array",
		},
		"payment_method_options.us_bank_account.verification_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "instant"},
				{Value: "microdeposits"},
			},
		},
		"payment_method_types": {
			Type: "array",
		},
	},
}
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",
		},
		"descriptor_code": {
			Type: "string",
		},
	},
}
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",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "business_day"},
				{Value: "day"},
				{Value: "hour"},
				{Value: "month"},
				{Value: "week"},
			},
		},
		"delivery_estimate.maximum.value": {
			Type:     "integer",
			Required: true,
		},
		"delivery_estimate.minimum.unit": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "business_day"},
				{Value: "day"},
				{Value: "hour"},
				{Value: "month"},
				{Value: "week"},
			},
		},
		"delivery_estimate.minimum.value": {
			Type:     "integer",
			Required: true,
		},
		"display_name": {
			Type:     "string",
			Required: true,
		},
		"fixed_amount.amount": {
			Type:     "integer",
			Required: true,
		},
		"fixed_amount.currency": {
			Type:     "string",
			Required: true,
			Format:   "currency",
		},
		"tax_behavior": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "exclusive"},
				{Value: "inclusive"},
				{Value: "unspecified"},
			},
		},
		"tax_code": {
			Type: "string",
		},
		"type": {
			Type: "string",
			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",
		},
		"created": {
			Type: "integer",
		},
		"currency": {
			Type:   "string",
			Format: "currency",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
		"tax_behavior": {
			Type: "string",
			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",
		},
		"currency": {
			Type:   "string",
			Format: "currency",
		},
		"customer": {
			Type: "string",
		},
		"flow": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "code_verification"},
				{Value: "none"},
				{Value: "receiver"},
				{Value: "redirect"},
			},
		},
		"mandate.acceptance.date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"mandate.acceptance.ip": {
			Type: "string",
		},
		"mandate.acceptance.offline.contact_email": {
			Type:     "string",
			Required: true,
		},
		"mandate.acceptance.online.date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"mandate.acceptance.online.ip": {
			Type: "string",
		},
		"mandate.acceptance.online.user_agent": {
			Type: "string",
		},
		"mandate.acceptance.status": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "accepted"},
				{Value: "pending"},
				{Value: "refused"},
				{Value: "revoked"},
			},
		},
		"mandate.acceptance.type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "offline"},
				{Value: "online"},
			},
		},
		"mandate.acceptance.user_agent": {
			Type: "string",
		},
		"mandate.amount": {
			Type: "integer",
		},
		"mandate.currency": {
			Type:   "string",
			Format: "currency",
		},
		"mandate.interval": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "one_time"},
				{Value: "scheduled"},
				{Value: "variable"},
			},
		},
		"mandate.notification_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "deprecated_none"},
				{Value: "email"},
				{Value: "manual"},
				{Value: "none"},
				{Value: "stripe_email"},
			},
		},
		"original_source": {
			Type: "string",
		},
		"owner.address.city": {
			Type: "string",
		},
		"owner.address.country": {
			Type: "string",
		},
		"owner.address.line1": {
			Type: "string",
		},
		"owner.address.line2": {
			Type: "string",
		},
		"owner.address.postal_code": {
			Type: "string",
		},
		"owner.address.state": {
			Type: "string",
		},
		"owner.email": {
			Type: "string",
		},
		"owner.name": {
			Type: "string",
		},
		"owner.phone": {
			Type: "string",
		},
		"receiver.refund_attributes_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "email"},
				{Value: "manual"},
				{Value: "none"},
			},
		},
		"redirect.return_url": {
			Type:     "string",
			Required: true,
		},
		"source_order.shipping.address.city": {
			Type: "string",
		},
		"source_order.shipping.address.country": {
			Type: "string",
		},
		"source_order.shipping.address.line1": {
			Type:     "string",
			Required: true,
		},
		"source_order.shipping.address.line2": {
			Type: "string",
		},
		"source_order.shipping.address.postal_code": {
			Type: "string",
		},
		"source_order.shipping.address.state": {
			Type: "string",
		},
		"source_order.shipping.carrier": {
			Type: "string",
		},
		"source_order.shipping.name": {
			Type: "string",
		},
		"source_order.shipping.phone": {
			Type: "string",
		},
		"source_order.shipping.tracking_number": {
			Type: "string",
		},
		"statement_descriptor": {
			Type: "string",
		},
		"token": {
			Type: "string",
		},
		"type": {
			Type: "string",
		},
		"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",
		},
	},
}
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",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
View Source
var V1SourcesUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v1/sources/{source}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type: "integer",
		},
		"mandate.acceptance.date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"mandate.acceptance.ip": {
			Type: "string",
		},
		"mandate.acceptance.offline.contact_email": {
			Type:     "string",
			Required: true,
		},
		"mandate.acceptance.online.date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"mandate.acceptance.online.ip": {
			Type: "string",
		},
		"mandate.acceptance.online.user_agent": {
			Type: "string",
		},
		"mandate.acceptance.status": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "accepted"},
				{Value: "pending"},
				{Value: "refused"},
				{Value: "revoked"},
			},
		},
		"mandate.acceptance.type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "offline"},
				{Value: "online"},
			},
		},
		"mandate.acceptance.user_agent": {
			Type: "string",
		},
		"mandate.amount": {
			Type: "integer",
		},
		"mandate.currency": {
			Type:   "string",
			Format: "currency",
		},
		"mandate.interval": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "one_time"},
				{Value: "scheduled"},
				{Value: "variable"},
			},
		},
		"mandate.notification_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "deprecated_none"},
				{Value: "email"},
				{Value: "manual"},
				{Value: "none"},
				{Value: "stripe_email"},
			},
		},
		"owner.address.city": {
			Type: "string",
		},
		"owner.address.country": {
			Type: "string",
		},
		"owner.address.line1": {
			Type: "string",
		},
		"owner.address.line2": {
			Type: "string",
		},
		"owner.address.postal_code": {
			Type: "string",
		},
		"owner.address.state": {
			Type: "string",
		},
		"owner.email": {
			Type: "string",
		},
		"owner.name": {
			Type: "string",
		},
		"owner.phone": {
			Type: "string",
		},
		"source_order.shipping.address.city": {
			Type: "string",
		},
		"source_order.shipping.address.country": {
			Type: "string",
		},
		"source_order.shipping.address.line1": {
			Type:     "string",
			Required: true,
		},
		"source_order.shipping.address.line2": {
			Type: "string",
		},
		"source_order.shipping.address.postal_code": {
			Type: "string",
		},
		"source_order.shipping.address.state": {
			Type: "string",
		},
		"source_order.shipping.carrier": {
			Type: "string",
		},
		"source_order.shipping.name": {
			Type: "string",
		},
		"source_order.shipping.phone": {
			Type: "string",
		},
		"source_order.shipping.tracking_number": {
			Type: "string",
		},
	},
}
View Source
var V1SourcesVerify = resource.OperationSpec{
	Name:   "verify",
	Path:   "/v1/sources/{source}/verify",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"values": {
			Type:     "array",
			Required: true,
		},
	},
}
View Source
var V1SubscriptionItemsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/subscription_items",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"payment_behavior": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "allow_incomplete"},
				{Value: "default_incomplete"},
				{Value: "error_if_incomplete"},
				{Value: "pending_if_incomplete"},
			},
		},
		"plan": {
			Type: "string",
		},
		"price": {
			Type: "string",
		},
		"price_data.currency": {
			Type:     "string",
			Required: true,
			Format:   "currency",
		},
		"price_data.product": {
			Type:     "string",
			Required: true,
		},
		"price_data.recurring.interval": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "month"},
				{Value: "week"},
				{Value: "year"},
			},
		},
		"price_data.recurring.interval_count": {
			Type: "integer",
		},
		"price_data.tax_behavior": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "exclusive"},
				{Value: "inclusive"},
				{Value: "unspecified"},
			},
		},
		"price_data.unit_amount": {
			Type: "integer",
		},
		"price_data.unit_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"proration_behavior": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "always_invoice"},
				{Value: "create_prorations"},
				{Value: "none"},
			},
		},
		"proration_date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"quantity": {
			Type: "integer",
		},
		"subscription": {
			Type:     "string",
			Required: true,
		},
		"tax_rates": {
			Type: "array",
		},
	},
}
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",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
		"subscription": {
			Type:     "string",
			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{
		"off_session": {
			Type: "boolean",
		},
		"payment_behavior": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "allow_incomplete"},
				{Value: "default_incomplete"},
				{Value: "error_if_incomplete"},
				{Value: "pending_if_incomplete"},
			},
		},
		"plan": {
			Type: "string",
		},
		"price": {
			Type: "string",
		},
		"price_data.currency": {
			Type:     "string",
			Required: true,
			Format:   "currency",
		},
		"price_data.product": {
			Type:     "string",
			Required: true,
		},
		"price_data.recurring.interval": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "month"},
				{Value: "week"},
				{Value: "year"},
			},
		},
		"price_data.recurring.interval_count": {
			Type: "integer",
		},
		"price_data.tax_behavior": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "exclusive"},
				{Value: "inclusive"},
				{Value: "unspecified"},
			},
		},
		"price_data.unit_amount": {
			Type: "integer",
		},
		"price_data.unit_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"proration_behavior": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "always_invoice"},
				{Value: "create_prorations"},
				{Value: "none"},
			},
		},
		"proration_date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"quantity": {
			Type: "integer",
		},
		"tax_rates": {
			Type: "array",
		},
	},
}
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",
		},
		"prorate": {
			Type: "boolean",
		},
	},
}
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",
			Enum: []resource.EnumSpec{
				{Value: "included"},
				{Value: "itemized"},
			},
		},
		"billing_mode.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "classic"},
				{Value: "flexible"},
			},
		},
		"customer": {
			Type: "string",
		},
		"customer_account": {
			Type: "string",
		},
		"default_settings.application_fee_percent": {
			Type: "number",
		},
		"default_settings.automatic_tax.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"default_settings.automatic_tax.liability.account": {
			Type: "string",
		},
		"default_settings.automatic_tax.liability.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"default_settings.billing_cycle_anchor": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "phase_start"},
			},
		},
		"default_settings.collection_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "charge_automatically"},
				{Value: "send_invoice"},
			},
		},
		"default_settings.default_payment_method": {
			Type: "string",
		},
		"default_settings.description": {
			Type: "string",
		},
		"default_settings.invoice_settings.account_tax_ids": {
			Type: "array",
		},
		"default_settings.invoice_settings.days_until_due": {
			Type: "integer",
		},
		"default_settings.invoice_settings.issuer.account": {
			Type: "string",
		},
		"default_settings.invoice_settings.issuer.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"default_settings.on_behalf_of": {
			Type: "string",
		},
		"end_behavior": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "cancel"},
				{Value: "none"},
				{Value: "release"},
				{Value: "renew"},
			},
		},
		"from_subscription": {
			Type: "string",
		},
		"start_date": {
			Type: "integer",
		},
	},
}
View Source
var V1SubscriptionSchedulesList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/subscription_schedules",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"canceled_at": {
			Type: "integer",
		},
		"completed_at": {
			Type: "integer",
		},
		"created": {
			Type: "integer",
		},
		"customer": {
			Type: "string",
		},
		"customer_account": {
			Type: "string",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"released_at": {
			Type: "integer",
		},
		"scheduled": {
			Type: "boolean",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
	},
}
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",
		},
		"default_settings.automatic_tax.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"default_settings.automatic_tax.liability.account": {
			Type: "string",
		},
		"default_settings.automatic_tax.liability.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"default_settings.billing_cycle_anchor": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "phase_start"},
			},
		},
		"default_settings.collection_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "charge_automatically"},
				{Value: "send_invoice"},
			},
		},
		"default_settings.default_payment_method": {
			Type: "string",
		},
		"default_settings.description": {
			Type: "string",
		},
		"default_settings.invoice_settings.account_tax_ids": {
			Type: "array",
		},
		"default_settings.invoice_settings.days_until_due": {
			Type: "integer",
		},
		"default_settings.invoice_settings.issuer.account": {
			Type: "string",
		},
		"default_settings.invoice_settings.issuer.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"default_settings.on_behalf_of": {
			Type: "string",
		},
		"end_behavior": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "cancel"},
				{Value: "none"},
				{Value: "release"},
				{Value: "renew"},
			},
		},
		"proration_behavior": {
			Type: "string",
			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",
		},
		"automatic_tax.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"automatic_tax.liability.account": {
			Type: "string",
		},
		"automatic_tax.liability.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"backdate_start_date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"billing_cycle_anchor": {
			Type:   "integer",
			Format: "unix-time",
		},
		"billing_cycle_anchor_config.day_of_month": {
			Type:     "integer",
			Required: true,
		},
		"billing_cycle_anchor_config.hour": {
			Type: "integer",
		},
		"billing_cycle_anchor_config.minute": {
			Type: "integer",
		},
		"billing_cycle_anchor_config.month": {
			Type: "integer",
		},
		"billing_cycle_anchor_config.second": {
			Type: "integer",
		},
		"billing_mode.flexible.proration_discounts": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "included"},
				{Value: "itemized"},
			},
		},
		"billing_mode.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "classic"},
				{Value: "flexible"},
			},
		},
		"cancel_at": {
			Type: "integer",
		},
		"cancel_at_period_end": {
			Type: "boolean",
		},
		"collection_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "charge_automatically"},
				{Value: "send_invoice"},
			},
		},
		"currency": {
			Type:   "string",
			Format: "currency",
		},
		"customer": {
			Type: "string",
		},
		"customer_account": {
			Type: "string",
		},
		"days_until_due": {
			Type: "integer",
		},
		"default_payment_method": {
			Type: "string",
		},
		"default_source": {
			Type: "string",
		},
		"default_tax_rates": {
			Type: "array",
		},
		"description": {
			Type: "string",
		},
		"invoice_settings.account_tax_ids": {
			Type: "array",
		},
		"invoice_settings.issuer.account": {
			Type: "string",
		},
		"invoice_settings.issuer.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"off_session": {
			Type: "boolean",
		},
		"on_behalf_of": {
			Type: "string",
		},
		"payment_behavior": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "allow_incomplete"},
				{Value: "default_incomplete"},
				{Value: "error_if_incomplete"},
				{Value: "pending_if_incomplete"},
			},
		},
		"payment_settings.payment_method_types": {
			Type: "array",
		},
		"payment_settings.save_default_payment_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "off"},
				{Value: "on_subscription"},
			},
		},
		"proration_behavior": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "always_invoice"},
				{Value: "create_prorations"},
				{Value: "none"},
			},
		},
		"transfer_data.amount_percent": {
			Type: "number",
		},
		"transfer_data.destination": {
			Type:     "string",
			Required: true,
		},
		"trial_end": {
			Type: "string",
		},
		"trial_from_plan": {
			Type: "boolean",
		},
		"trial_period_days": {
			Type: "integer",
		},
		"trial_settings.end_behavior.missing_payment_method": {
			Type:     "string",
			Required: true,
			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",
			Enum: []resource.EnumSpec{
				{Value: "charge_automatically"},
				{Value: "send_invoice"},
			},
		},
		"created": {
			Type: "integer",
		},
		"current_period_end": {
			Type: "integer",
		},
		"current_period_start": {
			Type: "integer",
		},
		"customer": {
			Type: "string",
		},
		"customer_account": {
			Type: "string",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"plan": {
			Type: "string",
		},
		"price": {
			Type: "string",
		},
		"starting_after": {
			Type: "string",
		},
		"status": {
			Type: "string",
			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",
		},
	},
}
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",
			Enum: []resource.EnumSpec{
				{Value: "included"},
				{Value: "itemized"},
			},
		},
		"billing_mode.type": {
			Type:     "string",
			Required: 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",
			Enum: []resource.EnumSpec{
				{Value: "now"},
				{Value: "unchanged"},
			},
		},
		"proration_behavior": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "always_invoice"},
				{Value: "create_prorations"},
				{Value: "none"},
			},
		},
		"proration_date": {
			Type:   "integer",
			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",
		},
		"page": {
			Type: "string",
		},
		"query": {
			Type:     "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",
		},
		"automatic_tax.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"automatic_tax.liability.account": {
			Type: "string",
		},
		"automatic_tax.liability.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"billing_cycle_anchor": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "now"},
				{Value: "unchanged"},
			},
		},
		"cancel_at": {
			Type: "integer",
		},
		"cancel_at_period_end": {
			Type: "boolean",
		},
		"cancellation_details.comment": {
			Type: "string",
		},
		"cancellation_details.feedback": {
			Type: "string",
			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",
			Enum: []resource.EnumSpec{
				{Value: "charge_automatically"},
				{Value: "send_invoice"},
			},
		},
		"days_until_due": {
			Type: "integer",
		},
		"default_payment_method": {
			Type: "string",
		},
		"default_source": {
			Type: "string",
		},
		"default_tax_rates": {
			Type: "array",
		},
		"description": {
			Type: "string",
		},
		"invoice_settings.account_tax_ids": {
			Type: "array",
		},
		"invoice_settings.issuer.account": {
			Type: "string",
		},
		"invoice_settings.issuer.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "account"},
				{Value: "self"},
			},
		},
		"off_session": {
			Type: "boolean",
		},
		"on_behalf_of": {
			Type: "string",
		},
		"payment_behavior": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "allow_incomplete"},
				{Value: "default_incomplete"},
				{Value: "error_if_incomplete"},
				{Value: "pending_if_incomplete"},
			},
		},
		"payment_settings.payment_method_types": {
			Type: "array",
		},
		"payment_settings.save_default_payment_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "off"},
				{Value: "on_subscription"},
			},
		},
		"proration_behavior": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "always_invoice"},
				{Value: "create_prorations"},
				{Value: "none"},
			},
		},
		"proration_date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"trial_end": {
			Type: "string",
		},
		"trial_from_plan": {
			Type: "boolean",
		},
		"trial_settings.end_behavior.missing_payment_method": {
			Type:     "string",
			Required: true,
			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",
			Required: true,
		},
	},
}
View Source
var V1TaxCalculationsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/tax/calculations",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"currency": {
			Type:     "string",
			Required: true,
			Format:   "currency",
		},
		"customer": {
			Type: "string",
		},
		"customer_details.address.city": {
			Type: "string",
		},
		"customer_details.address.country": {
			Type:     "string",
			Required: true,
		},
		"customer_details.address.line1": {
			Type: "string",
		},
		"customer_details.address.line2": {
			Type: "string",
		},
		"customer_details.address.postal_code": {
			Type: "string",
		},
		"customer_details.address.state": {
			Type: "string",
		},
		"customer_details.address_source": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "billing"},
				{Value: "shipping"},
			},
		},
		"customer_details.ip_address": {
			Type: "string",
		},
		"customer_details.taxability_override": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "customer_exempt"},
				{Value: "none"},
				{Value: "reverse_charge"},
			},
		},
		"ship_from_details.address.city": {
			Type: "string",
		},
		"ship_from_details.address.country": {
			Type:     "string",
			Required: true,
		},
		"ship_from_details.address.line1": {
			Type: "string",
		},
		"ship_from_details.address.line2": {
			Type: "string",
		},
		"ship_from_details.address.postal_code": {
			Type: "string",
		},
		"ship_from_details.address.state": {
			Type: "string",
		},
		"shipping_cost.amount": {
			Type: "integer",
		},
		"shipping_cost.shipping_rate": {
			Type: "string",
		},
		"shipping_cost.tax_behavior": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "exclusive"},
				{Value: "inclusive"},
			},
		},
		"shipping_cost.tax_code": {
			Type: "string",
		},
		"tax_date": {
			Type: "integer",
		},
	},
}
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",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
			Required: 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",
			Required: 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",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
		"country": {
			Type: "string",
		},
		"description": {
			Type: "string",
		},
		"display_name": {
			Type:     "string",
			Required: true,
		},
		"inclusive": {
			Type:     "boolean",
			Required: true,
		},
		"jurisdiction": {
			Type: "string",
		},
		"percentage": {
			Type:     "number",
			Required: true,
		},
		"state": {
			Type: "string",
		},
		"tax_type": {
			Type: "string",
			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",
		},
		"created": {
			Type: "integer",
		},
		"ending_before": {
			Type: "string",
		},
		"inclusive": {
			Type: "boolean",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
		"country": {
			Type: "string",
		},
		"description": {
			Type: "string",
		},
		"display_name": {
			Type: "string",
		},
		"jurisdiction": {
			Type: "string",
		},
		"state": {
			Type: "string",
		},
		"tax_type": {
			Type: "string",
			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",
			Required: true,
		},
		"country": {
			Type:     "string",
			Required: true,
		},
		"country_options.ae.standard.place_of_supply_scheme": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.ae.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.al.standard.place_of_supply_scheme": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.al.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.am.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.ao.standard.place_of_supply_scheme": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.ao.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.at.standard.place_of_supply_scheme": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.at.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.au.standard.place_of_supply_scheme": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.au.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.aw.standard.place_of_supply_scheme": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.aw.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.az.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.ba.standard.place_of_supply_scheme": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.ba.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.bb.standard.place_of_supply_scheme": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.bb.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.bd.standard.place_of_supply_scheme": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.bd.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.be.standard.place_of_supply_scheme": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.be.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.bf.standard.place_of_supply_scheme": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.bf.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.bg.standard.place_of_supply_scheme": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.bg.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.bh.standard.place_of_supply_scheme": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.bh.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.bj.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.bs.standard.place_of_supply_scheme": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.bs.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.by.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.ca.province_standard.province": {
			Type:     "string",
			Required: true,
		},
		"country_options.ca.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "province_standard"},
				{Value: "simplified"},
				{Value: "standard"},
			},
		},
		"country_options.cd.standard.place_of_supply_scheme": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.cd.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.ch.standard.place_of_supply_scheme": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.ch.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.cl.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.cm.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.co.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.cr.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.cv.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.cy.standard.place_of_supply_scheme": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.cy.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.cz.standard.place_of_supply_scheme": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.cz.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.de.standard.place_of_supply_scheme": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.de.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.dk.standard.place_of_supply_scheme": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.dk.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.ec.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.ee.standard.place_of_supply_scheme": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.ee.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.eg.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.es.standard.place_of_supply_scheme": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.es.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.et.standard.place_of_supply_scheme": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.et.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.fi.standard.place_of_supply_scheme": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.fi.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.fr.standard.place_of_supply_scheme": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.fr.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.gb.standard.place_of_supply_scheme": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.gb.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.ge.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.gn.standard.place_of_supply_scheme": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.gn.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.gr.standard.place_of_supply_scheme": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.gr.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.hr.standard.place_of_supply_scheme": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.hr.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.hu.standard.place_of_supply_scheme": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.hu.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.id.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.ie.standard.place_of_supply_scheme": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.ie.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.in.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.is.standard.place_of_supply_scheme": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.is.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.it.standard.place_of_supply_scheme": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.it.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.jp.standard.place_of_supply_scheme": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.jp.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.ke.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.kg.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.kh.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.kr.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.kz.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.la.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.lk.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.lt.standard.place_of_supply_scheme": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.lt.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.lu.standard.place_of_supply_scheme": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.lu.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.lv.standard.place_of_supply_scheme": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.lv.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.ma.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.md.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.me.standard.place_of_supply_scheme": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.me.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.mk.standard.place_of_supply_scheme": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.mk.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.mr.standard.place_of_supply_scheme": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.mr.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.mt.standard.place_of_supply_scheme": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.mt.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.mx.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.my.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.ng.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.nl.standard.place_of_supply_scheme": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.nl.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.no.standard.place_of_supply_scheme": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.no.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.np.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.nz.standard.place_of_supply_scheme": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.nz.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.om.standard.place_of_supply_scheme": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.om.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.pe.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.ph.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.pl.standard.place_of_supply_scheme": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.pl.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.pt.standard.place_of_supply_scheme": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.pt.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.ro.standard.place_of_supply_scheme": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.ro.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.rs.standard.place_of_supply_scheme": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.rs.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.ru.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.sa.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.se.standard.place_of_supply_scheme": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.se.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.sg.standard.place_of_supply_scheme": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.sg.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.si.standard.place_of_supply_scheme": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.si.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.sk.standard.place_of_supply_scheme": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "small_seller"},
				{Value: "standard"},
			},
		},
		"country_options.sk.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "ioss"},
				{Value: "oss_non_union"},
				{Value: "oss_union"},
				{Value: "standard"},
			},
		},
		"country_options.sn.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.sr.standard.place_of_supply_scheme": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.sr.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.th.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.tj.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.tr.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.tw.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.tz.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.ua.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.ug.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.us.local_amusement_tax.jurisdiction": {
			Type:     "string",
			Required: true,
		},
		"country_options.us.local_lease_tax.jurisdiction": {
			Type:     "string",
			Required: true,
		},
		"country_options.us.state": {
			Type:     "string",
			Required: true,
		},
		"country_options.us.type": {
			Type:     "string",
			Required: true,
			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",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.uy.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.uz.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.vn.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.za.standard.place_of_supply_scheme": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.za.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"country_options.zm.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "simplified"},
			},
		},
		"country_options.zw.standard.place_of_supply_scheme": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "inbound_goods"},
				{Value: "standard"},
			},
		},
		"country_options.zw.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "standard"},
			},
		},
		"expires_at": {
			Type:   "integer",
			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",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
		"status": {
			Type: "string",
			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",
		},
		"expires_at": {
			Type: "string",
		},
	},
}
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",
			Enum: []resource.EnumSpec{
				{Value: "exclusive"},
				{Value: "inclusive"},
				{Value: "inferred_by_currency"},
			},
		},
		"defaults.tax_code": {
			Type: "string",
		},
		"head_office.address.city": {
			Type: "string",
		},
		"head_office.address.country": {
			Type: "string",
		},
		"head_office.address.line1": {
			Type: "string",
		},
		"head_office.address.line2": {
			Type: "string",
		},
		"head_office.address.postal_code": {
			Type: "string",
		},
		"head_office.address.state": {
			Type: "string",
		},
	},
}
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",
			Required: true,
		},
		"posted_at": {
			Type:   "integer",
			Format: "unix-time",
		},
		"reference": {
			Type:     "string",
			Required: 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",
		},
		"mode": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "full"},
				{Value: "partial"},
			},
		},
		"original_transaction": {
			Type:     "string",
			Required: true,
		},
		"reference": {
			Type:     "string",
			Required: true,
		},
		"shipping_cost.amount": {
			Type:     "integer",
			Required: true,
		},
		"shipping_cost.amount_tax": {
			Type:     "integer",
			Required: true,
		},
	},
}
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",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
		"bbpos_wisepos_e.splashscreen": {
			Type: "string",
		},
		"name": {
			Type: "string",
		},
		"reboot_window.end_hour": {
			Type:     "integer",
			Required: true,
		},
		"reboot_window.start_hour": {
			Type:     "integer",
			Required: true,
		},
		"stripe_s700.splashscreen": {
			Type: "string",
		},
		"stripe_s710.splashscreen": {
			Type: "string",
		},
		"verifone_p400.splashscreen": {
			Type: "string",
		},
	},
}
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",
		},
		"is_account_default": {
			Type: "boolean",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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{
		"name": {
			Type: "string",
		},
	},
}
View Source
var V1TerminalConnectionTokensCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/terminal/connection_tokens",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"location": {
			Type: "string",
		},
	},
}
View Source
var V1TerminalLocationsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/terminal/locations",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"address.city": {
			Type: "string",
		},
		"address.country": {
			Type:     "string",
			Required: true,
		},
		"address.line1": {
			Type: "string",
		},
		"address.line2": {
			Type: "string",
		},
		"address.postal_code": {
			Type: "string",
		},
		"address.state": {
			Type: "string",
		},
		"address_kana.city": {
			Type: "string",
		},
		"address_kana.country": {
			Type: "string",
		},
		"address_kana.line1": {
			Type: "string",
		},
		"address_kana.line2": {
			Type: "string",
		},
		"address_kana.postal_code": {
			Type: "string",
		},
		"address_kana.state": {
			Type: "string",
		},
		"address_kana.town": {
			Type: "string",
		},
		"address_kanji.city": {
			Type: "string",
		},
		"address_kanji.country": {
			Type: "string",
		},
		"address_kanji.line1": {
			Type: "string",
		},
		"address_kanji.line2": {
			Type: "string",
		},
		"address_kanji.postal_code": {
			Type: "string",
		},
		"address_kanji.state": {
			Type: "string",
		},
		"address_kanji.town": {
			Type: "string",
		},
		"configuration_overrides": {
			Type: "string",
		},
		"display_name": {
			Type: "string",
		},
		"display_name_kana": {
			Type: "string",
		},
		"display_name_kanji": {
			Type: "string",
		},
		"phone": {
			Type: "string",
		},
	},
}
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",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
		"address.country": {
			Type: "string",
		},
		"address.line1": {
			Type: "string",
		},
		"address.line2": {
			Type: "string",
		},
		"address.postal_code": {
			Type: "string",
		},
		"address.state": {
			Type: "string",
		},
		"address_kana.city": {
			Type: "string",
		},
		"address_kana.country": {
			Type: "string",
		},
		"address_kana.line1": {
			Type: "string",
		},
		"address_kana.line2": {
			Type: "string",
		},
		"address_kana.postal_code": {
			Type: "string",
		},
		"address_kana.state": {
			Type: "string",
		},
		"address_kana.town": {
			Type: "string",
		},
		"address_kanji.city": {
			Type: "string",
		},
		"address_kanji.country": {
			Type: "string",
		},
		"address_kanji.line1": {
			Type: "string",
		},
		"address_kanji.line2": {
			Type: "string",
		},
		"address_kanji.postal_code": {
			Type: "string",
		},
		"address_kanji.state": {
			Type: "string",
		},
		"address_kanji.town": {
			Type: "string",
		},
		"configuration_overrides": {
			Type: "string",
		},
		"display_name": {
			Type: "string",
		},
		"display_name_kana": {
			Type: "string",
		},
		"display_name_kanji": {
			Type: "string",
		},
		"phone": {
			Type: "string",
		},
	},
}
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",
		},
		"link_options.apple_terms_and_conditions.merchant_display_name": {
			Type:     "string",
			Required: true,
		},
		"link_type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "apple_terms_and_conditions"},
			},
		},
		"on_behalf_of": {
			Type: "string",
		},
	},
}
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",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "limited"},
				{Value: "unspecified"},
			},
		},
		"collect_config.enable_customer_cancellation": {
			Type: "boolean",
		},
		"collect_config.skip_tipping": {
			Type: "boolean",
		},
		"collect_config.tipping.amount_eligible": {
			Type: "integer",
		},
		"payment_intent": {
			Type:     "string",
			Required: 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",
		},
		"payment_intent": {
			Type:     "string",
			Required: true,
		},
	},
}
View Source
var V1TerminalReadersCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/terminal/readers",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"label": {
			Type: "string",
		},
		"location": {
			Type: "string",
		},
		"registration_code": {
			Type:     "string",
			Required: 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",
			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",
		},
		"limit": {
			Type: "integer",
		},
		"location": {
			Type: "string",
		},
		"serial_number": {
			Type: "string",
		},
		"starting_after": {
			Type: "string",
		},
		"status": {
			Type: "string",
			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",
			Required: true,
		},
		"process_config.allow_redisplay": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "limited"},
				{Value: "unspecified"},
			},
		},
		"process_config.enable_customer_cancellation": {
			Type: "boolean",
		},
		"process_config.return_url": {
			Type: "string",
		},
		"process_config.skip_tipping": {
			Type: "boolean",
		},
		"process_config.tipping.amount_eligible": {
			Type: "integer",
		},
	},
}
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",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "limited"},
				{Value: "unspecified"},
			},
		},
		"process_config.enable_customer_cancellation": {
			Type: "boolean",
		},
		"setup_intent": {
			Type:     "string",
			Required: 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",
		},
		"charge": {
			Type: "string",
		},
		"payment_intent": {
			Type: "string",
		},
		"refund_application_fee": {
			Type: "boolean",
		},
		"refund_payment_config.enable_customer_cancellation": {
			Type: "boolean",
		},
		"reverse_transfer": {
			Type: "boolean",
		},
	},
}
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",
			Required: true,
			Format:   "currency",
		},
		"cart.tax": {
			Type: "integer",
		},
		"cart.total": {
			Type:     "integer",
			Required: true,
		},
		"type": {
			Type:     "string",
			Required: 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",
		},
		"card.cvc": {
			Type: "string",
		},
		"card.exp_month": {
			Type:     "integer",
			Required: true,
		},
		"card.exp_year": {
			Type:     "integer",
			Required: true,
		},
		"card.number": {
			Type:     "string",
			Required: true,
		},
		"card_present.number": {
			Type: "string",
		},
		"interac_present.number": {
			Type: "string",
		},
		"type": {
			Type: "string",
			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",
			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",
		},
	},
}
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",
		},
		"payment_method_data.acss_debit.account_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.acss_debit.institution_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.acss_debit.transit_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.allow_redisplay": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "always"},
				{Value: "limited"},
				{Value: "unspecified"},
			},
		},
		"payment_method_data.au_becs_debit.account_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.au_becs_debit.bsb_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.bacs_debit.account_number": {
			Type: "string",
		},
		"payment_method_data.bacs_debit.sort_code": {
			Type: "string",
		},
		"payment_method_data.billing_details.email": {
			Type: "string",
		},
		"payment_method_data.billing_details.name": {
			Type: "string",
		},
		"payment_method_data.billing_details.phone": {
			Type: "string",
		},
		"payment_method_data.billing_details.tax_id": {
			Type: "string",
		},
		"payment_method_data.boleto.tax_id": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.eps.bank": {
			Type: "string",
			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",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"payment_method_data.fpx.bank": {
			Type:     "string",
			Required: true,
			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",
			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",
			Required: true,
		},
		"payment_method_data.klarna.dob.month": {
			Type:     "integer",
			Required: true,
		},
		"payment_method_data.klarna.dob.year": {
			Type:     "integer",
			Required: true,
		},
		"payment_method_data.naver_pay.funding": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "card"},
				{Value: "points"},
			},
		},
		"payment_method_data.nz_bank_account.account_holder_name": {
			Type: "string",
		},
		"payment_method_data.nz_bank_account.account_number": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.nz_bank_account.bank_code": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.nz_bank_account.branch_code": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.nz_bank_account.reference": {
			Type: "string",
		},
		"payment_method_data.nz_bank_account.suffix": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.p24.bank": {
			Type: "string",
			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",
		},
		"payment_method_data.payto.bsb_number": {
			Type: "string",
		},
		"payment_method_data.payto.pay_id": {
			Type: "string",
		},
		"payment_method_data.radar_options.session": {
			Type: "string",
		},
		"payment_method_data.sepa_debit.iban": {
			Type:     "string",
			Required: true,
		},
		"payment_method_data.sofort.country": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "AT"},
				{Value: "BE"},
				{Value: "DE"},
				{Value: "ES"},
				{Value: "IT"},
				{Value: "NL"},
			},
		},
		"payment_method_data.type": {
			Type:     "string",
			Required: 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",
		},
		"payment_method_data.upi.mandate_options.amount_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_data.upi.mandate_options.description": {
			Type: "string",
		},
		"payment_method_data.upi.mandate_options.end_date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"payment_method_data.us_bank_account.account_holder_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"payment_method_data.us_bank_account.account_number": {
			Type: "string",
		},
		"payment_method_data.us_bank_account.account_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "checking"},
				{Value: "savings"},
			},
		},
		"payment_method_data.us_bank_account.financial_connections_account": {
			Type: "string",
		},
		"payment_method_data.us_bank_account.routing_number": {
			Type: "string",
		},
		"payment_method_options.card.installments.plan.count": {
			Type: "integer",
		},
		"payment_method_options.card.installments.plan.interval": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "month"},
			},
		},
		"payment_method_options.card.installments.plan.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "bonus"},
				{Value: "fixed_count"},
				{Value: "revolving"},
			},
		},
		"return_url": {
			Type: "string",
		},
		"setup_future_usage": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "off_session"},
				{Value: "on_session"},
			},
		},
		"shipping.address.city": {
			Type: "string",
		},
		"shipping.address.country": {
			Type: "string",
		},
		"shipping.address.line1": {
			Type: "string",
		},
		"shipping.address.line2": {
			Type: "string",
		},
		"shipping.address.postal_code": {
			Type: "string",
		},
		"shipping.address.state": {
			Type: "string",
		},
		"shipping.name": {
			Type:     "string",
			Required: true,
		},
		"shipping.phone": {
			Type: "string",
		},
	},
}
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",
			Required: true,
		},
		"currency": {
			Type:     "string",
			Required: true,
			Format:   "currency",
		},
		"reference": {
			Type: "string",
		},
	},
}
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",
		},
		"close_authorization": {
			Type: "boolean",
		},
		"purchase_details.fleet.cardholder_prompt_data.driver_id": {
			Type: "string",
		},
		"purchase_details.fleet.cardholder_prompt_data.odometer": {
			Type: "integer",
		},
		"purchase_details.fleet.cardholder_prompt_data.unspecified_id": {
			Type: "string",
		},
		"purchase_details.fleet.cardholder_prompt_data.user_id": {
			Type: "string",
		},
		"purchase_details.fleet.cardholder_prompt_data.vehicle_number": {
			Type: "string",
		},
		"purchase_details.fleet.purchase_type": {
			Type: "string",
			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",
			Format: "decimal",
		},
		"purchase_details.fleet.reported_breakdown.non_fuel.gross_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"purchase_details.fleet.reported_breakdown.tax.local_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"purchase_details.fleet.reported_breakdown.tax.national_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"purchase_details.fleet.service_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "full_service"},
				{Value: "non_fuel_transaction"},
				{Value: "self_service"},
			},
		},
		"purchase_details.flight.departure_at": {
			Type:   "integer",
			Format: "unix-time",
		},
		"purchase_details.flight.passenger_name": {
			Type: "string",
		},
		"purchase_details.flight.refundable": {
			Type: "boolean",
		},
		"purchase_details.flight.travel_agency": {
			Type: "string",
		},
		"purchase_details.fuel.industry_product_code": {
			Type: "string",
		},
		"purchase_details.fuel.quantity_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"purchase_details.fuel.type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "diesel"},
				{Value: "other"},
				{Value: "unleaded_plus"},
				{Value: "unleaded_regular"},
				{Value: "unleaded_super"},
			},
		},
		"purchase_details.fuel.unit": {
			Type: "string",
			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",
			Format: "decimal",
		},
		"purchase_details.lodging.check_in_at": {
			Type:   "integer",
			Format: "unix-time",
		},
		"purchase_details.lodging.nights": {
			Type: "integer",
		},
		"purchase_details.reference": {
			Type: "string",
		},
	},
}
View Source
var V1TestHelpersIssuingAuthorizationsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/test_helpers/issuing/authorizations",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type: "integer",
		},
		"amount_details.atm_fee": {
			Type: "integer",
		},
		"amount_details.cashback_amount": {
			Type: "integer",
		},
		"authorization_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "chip"},
				{Value: "contactless"},
				{Value: "keyed_in"},
				{Value: "online"},
				{Value: "swipe"},
			},
		},
		"card": {
			Type:     "string",
			Required: true,
		},
		"currency": {
			Type:   "string",
			Format: "currency",
		},
		"fleet.cardholder_prompt_data.driver_id": {
			Type: "string",
		},
		"fleet.cardholder_prompt_data.odometer": {
			Type: "integer",
		},
		"fleet.cardholder_prompt_data.unspecified_id": {
			Type: "string",
		},
		"fleet.cardholder_prompt_data.user_id": {
			Type: "string",
		},
		"fleet.cardholder_prompt_data.vehicle_number": {
			Type: "string",
		},
		"fleet.purchase_type": {
			Type: "string",
			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",
			Format: "decimal",
		},
		"fleet.reported_breakdown.non_fuel.gross_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"fleet.reported_breakdown.tax.local_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"fleet.reported_breakdown.tax.national_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"fleet.service_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "full_service"},
				{Value: "non_fuel_transaction"},
				{Value: "self_service"},
			},
		},
		"fraud_disputability_likelihood": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "neutral"},
				{Value: "unknown"},
				{Value: "very_likely"},
				{Value: "very_unlikely"},
			},
		},
		"fuel.industry_product_code": {
			Type: "string",
		},
		"fuel.quantity_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"fuel.type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "diesel"},
				{Value: "other"},
				{Value: "unleaded_plus"},
				{Value: "unleaded_regular"},
				{Value: "unleaded_super"},
			},
		},
		"fuel.unit": {
			Type: "string",
			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",
			Format: "decimal",
		},
		"is_amount_controllable": {
			Type: "boolean",
		},
		"merchant_amount": {
			Type: "integer",
		},
		"merchant_currency": {
			Type:   "string",
			Format: "currency",
		},
		"merchant_data.category": {
			Type: "string",
			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",
		},
		"merchant_data.country": {
			Type: "string",
		},
		"merchant_data.name": {
			Type: "string",
		},
		"merchant_data.network_id": {
			Type: "string",
		},
		"merchant_data.postal_code": {
			Type: "string",
		},
		"merchant_data.state": {
			Type: "string",
		},
		"merchant_data.terminal_id": {
			Type: "string",
		},
		"merchant_data.url": {
			Type: "string",
		},
		"network_data.acquiring_institution_id": {
			Type: "string",
		},
		"risk_assessment.card_testing_risk.invalid_account_number_decline_rate_past_hour": {
			Type: "integer",
		},
		"risk_assessment.card_testing_risk.invalid_credentials_decline_rate_past_hour": {
			Type: "integer",
		},
		"risk_assessment.card_testing_risk.level": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "elevated"},
				{Value: "highest"},
				{Value: "low"},
				{Value: "normal"},
				{Value: "not_assessed"},
				{Value: "unknown"},
			},
		},
		"risk_assessment.fraud_risk.level": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "elevated"},
				{Value: "highest"},
				{Value: "low"},
				{Value: "normal"},
				{Value: "not_assessed"},
				{Value: "unknown"},
			},
		},
		"risk_assessment.fraud_risk.score": {
			Type: "number",
		},
		"risk_assessment.merchant_dispute_risk.dispute_rate": {
			Type: "integer",
		},
		"risk_assessment.merchant_dispute_risk.level": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "elevated"},
				{Value: "highest"},
				{Value: "low"},
				{Value: "normal"},
				{Value: "not_assessed"},
				{Value: "unknown"},
			},
		},
		"verification_data.address_line1_check": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "match"},
				{Value: "mismatch"},
				{Value: "not_provided"},
			},
		},
		"verification_data.address_postal_code_check": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "match"},
				{Value: "mismatch"},
				{Value: "not_provided"},
			},
		},
		"verification_data.authentication_exemption.claimed_by": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "acquirer"},
				{Value: "issuer"},
			},
		},
		"verification_data.authentication_exemption.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "low_value_transaction"},
				{Value: "transaction_risk_analysis"},
				{Value: "unknown"},
			},
		},
		"verification_data.cvc_check": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "match"},
				{Value: "mismatch"},
				{Value: "not_provided"},
			},
		},
		"verification_data.expiry_check": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "match"},
				{Value: "mismatch"},
				{Value: "not_provided"},
			},
		},
		"verification_data.three_d_secure.result": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "attempt_acknowledged"},
				{Value: "authenticated"},
				{Value: "failed"},
				{Value: "required"},
			},
		},
		"wallet": {
			Type: "string",
			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",
			Required: true,
		},
		"fleet.cardholder_prompt_data.driver_id": {
			Type: "string",
		},
		"fleet.cardholder_prompt_data.odometer": {
			Type: "integer",
		},
		"fleet.cardholder_prompt_data.unspecified_id": {
			Type: "string",
		},
		"fleet.cardholder_prompt_data.user_id": {
			Type: "string",
		},
		"fleet.cardholder_prompt_data.vehicle_number": {
			Type: "string",
		},
		"fleet.purchase_type": {
			Type: "string",
			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",
			Format: "decimal",
		},
		"fleet.reported_breakdown.non_fuel.gross_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"fleet.reported_breakdown.tax.local_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"fleet.reported_breakdown.tax.national_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"fleet.service_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "full_service"},
				{Value: "non_fuel_transaction"},
				{Value: "self_service"},
			},
		},
		"fuel.industry_product_code": {
			Type: "string",
		},
		"fuel.quantity_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"fuel.type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "diesel"},
				{Value: "other"},
				{Value: "unleaded_plus"},
				{Value: "unleaded_regular"},
				{Value: "unleaded_super"},
			},
		},
		"fuel.unit": {
			Type: "string",
			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",
			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",
			Required: true,
		},
		"is_amount_controllable": {
			Type: "boolean",
		},
	},
}
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",
			Required: 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",
		},
	},
}
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",
		},
		"rejection_reasons.carrier_text": {
			Type: "array",
		},
	},
}
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",
			Required: true,
		},
		"card": {
			Type:     "string",
			Required: true,
		},
		"currency": {
			Type:   "string",
			Format: "currency",
		},
		"merchant_data.category": {
			Type: "string",
			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",
		},
		"merchant_data.country": {
			Type: "string",
		},
		"merchant_data.name": {
			Type: "string",
		},
		"merchant_data.network_id": {
			Type: "string",
		},
		"merchant_data.postal_code": {
			Type: "string",
		},
		"merchant_data.state": {
			Type: "string",
		},
		"merchant_data.terminal_id": {
			Type: "string",
		},
		"merchant_data.url": {
			Type: "string",
		},
		"purchase_details.fleet.cardholder_prompt_data.driver_id": {
			Type: "string",
		},
		"purchase_details.fleet.cardholder_prompt_data.odometer": {
			Type: "integer",
		},
		"purchase_details.fleet.cardholder_prompt_data.unspecified_id": {
			Type: "string",
		},
		"purchase_details.fleet.cardholder_prompt_data.user_id": {
			Type: "string",
		},
		"purchase_details.fleet.cardholder_prompt_data.vehicle_number": {
			Type: "string",
		},
		"purchase_details.fleet.purchase_type": {
			Type: "string",
			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",
			Format: "decimal",
		},
		"purchase_details.fleet.reported_breakdown.non_fuel.gross_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"purchase_details.fleet.reported_breakdown.tax.local_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"purchase_details.fleet.reported_breakdown.tax.national_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"purchase_details.fleet.service_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "full_service"},
				{Value: "non_fuel_transaction"},
				{Value: "self_service"},
			},
		},
		"purchase_details.flight.departure_at": {
			Type:   "integer",
			Format: "unix-time",
		},
		"purchase_details.flight.passenger_name": {
			Type: "string",
		},
		"purchase_details.flight.refundable": {
			Type: "boolean",
		},
		"purchase_details.flight.travel_agency": {
			Type: "string",
		},
		"purchase_details.fuel.industry_product_code": {
			Type: "string",
		},
		"purchase_details.fuel.quantity_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"purchase_details.fuel.type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "diesel"},
				{Value: "other"},
				{Value: "unleaded_plus"},
				{Value: "unleaded_regular"},
				{Value: "unleaded_super"},
			},
		},
		"purchase_details.fuel.unit": {
			Type: "string",
			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",
			Format: "decimal",
		},
		"purchase_details.lodging.check_in_at": {
			Type:   "integer",
			Format: "unix-time",
		},
		"purchase_details.lodging.nights": {
			Type: "integer",
		},
		"purchase_details.reference": {
			Type: "string",
		},
	},
}
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",
			Required: true,
		},
		"card": {
			Type:     "string",
			Required: true,
		},
		"currency": {
			Type:   "string",
			Format: "currency",
		},
		"merchant_data.category": {
			Type: "string",
			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",
		},
		"merchant_data.country": {
			Type: "string",
		},
		"merchant_data.name": {
			Type: "string",
		},
		"merchant_data.network_id": {
			Type: "string",
		},
		"merchant_data.postal_code": {
			Type: "string",
		},
		"merchant_data.state": {
			Type: "string",
		},
		"merchant_data.terminal_id": {
			Type: "string",
		},
		"merchant_data.url": {
			Type: "string",
		},
		"purchase_details.fleet.cardholder_prompt_data.driver_id": {
			Type: "string",
		},
		"purchase_details.fleet.cardholder_prompt_data.odometer": {
			Type: "integer",
		},
		"purchase_details.fleet.cardholder_prompt_data.unspecified_id": {
			Type: "string",
		},
		"purchase_details.fleet.cardholder_prompt_data.user_id": {
			Type: "string",
		},
		"purchase_details.fleet.cardholder_prompt_data.vehicle_number": {
			Type: "string",
		},
		"purchase_details.fleet.purchase_type": {
			Type: "string",
			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",
			Format: "decimal",
		},
		"purchase_details.fleet.reported_breakdown.non_fuel.gross_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"purchase_details.fleet.reported_breakdown.tax.local_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"purchase_details.fleet.reported_breakdown.tax.national_amount_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"purchase_details.fleet.service_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "full_service"},
				{Value: "non_fuel_transaction"},
				{Value: "self_service"},
			},
		},
		"purchase_details.flight.departure_at": {
			Type:   "integer",
			Format: "unix-time",
		},
		"purchase_details.flight.passenger_name": {
			Type: "string",
		},
		"purchase_details.flight.refundable": {
			Type: "boolean",
		},
		"purchase_details.flight.travel_agency": {
			Type: "string",
		},
		"purchase_details.fuel.industry_product_code": {
			Type: "string",
		},
		"purchase_details.fuel.quantity_decimal": {
			Type:   "string",
			Format: "decimal",
		},
		"purchase_details.fuel.type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "diesel"},
				{Value: "other"},
				{Value: "unleaded_plus"},
				{Value: "unleaded_regular"},
				{Value: "unleaded_super"},
			},
		},
		"purchase_details.fuel.unit": {
			Type: "string",
			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",
			Format: "decimal",
		},
		"purchase_details.lodging.check_in_at": {
			Type:   "integer",
			Format: "unix-time",
		},
		"purchase_details.lodging.nights": {
			Type: "integer",
		},
		"purchase_details.reference": {
			Type: "string",
		},
	},
}
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",
		},
	},
}
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",
		},
		"card.cvc": {
			Type: "string",
		},
		"card.exp_month": {
			Type:     "integer",
			Required: true,
		},
		"card.exp_year": {
			Type:     "integer",
			Required: true,
		},
		"card.number": {
			Type:     "string",
			Required: true,
		},
		"card_present.number": {
			Type: "string",
		},
		"interac_present.number": {
			Type: "string",
		},
		"type": {
			Type: "string",
			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",
			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",
			Required: 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",
			Required: true,
			Format:   "unix-time",
		},
		"name": {
			Type: "string",
		},
	},
}
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",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
			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",
			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",
			Required: true,
		},
		"tracking_details.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "ach"},
				{Value: "us_domestic_wire"},
			},
		},
		"tracking_details.us_domestic_wire.chips": {
			Type: "string",
		},
		"tracking_details.us_domestic_wire.imad": {
			Type: "string",
		},
		"tracking_details.us_domestic_wire.omad": {
			Type: "string",
		},
	},
}
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",
			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",
			Required: true,
		},
		"tracking_details.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "ach"},
				{Value: "us_domestic_wire"},
			},
		},
		"tracking_details.us_domestic_wire.chips": {
			Type: "string",
		},
		"tracking_details.us_domestic_wire.imad": {
			Type: "string",
		},
		"tracking_details.us_domestic_wire.omad": {
			Type: "string",
		},
	},
}
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",
			Required: true,
		},
		"currency": {
			Type:     "string",
			Required: true,
			Format:   "currency",
		},
		"description": {
			Type: "string",
		},
		"financial_account": {
			Type:     "string",
			Required: true,
		},
		"initiating_payment_method_details.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "us_bank_account"},
			},
		},
		"initiating_payment_method_details.us_bank_account.account_holder_name": {
			Type: "string",
		},
		"initiating_payment_method_details.us_bank_account.account_number": {
			Type: "string",
		},
		"initiating_payment_method_details.us_bank_account.routing_number": {
			Type: "string",
		},
		"network": {
			Type:     "string",
			Required: 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",
			Required: true,
		},
		"currency": {
			Type:     "string",
			Required: true,
			Format:   "currency",
		},
		"description": {
			Type: "string",
		},
		"financial_account": {
			Type:     "string",
			Required: true,
		},
		"initiating_payment_method_details.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "us_bank_account"},
			},
		},
		"initiating_payment_method_details.us_bank_account.account_holder_name": {
			Type: "string",
		},
		"initiating_payment_method_details.us_bank_account.account_number": {
			Type: "string",
		},
		"initiating_payment_method_details.us_bank_account.routing_number": {
			Type: "string",
		},
		"network": {
			Type:     "string",
			Required: 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",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "government_entity"},
				{Value: "individual"},
				{Value: "non_profit"},
			},
		},
		"account.company.address.city": {
			Type: "string",
		},
		"account.company.address.country": {
			Type: "string",
		},
		"account.company.address.line1": {
			Type: "string",
		},
		"account.company.address.line2": {
			Type: "string",
		},
		"account.company.address.postal_code": {
			Type: "string",
		},
		"account.company.address.state": {
			Type: "string",
		},
		"account.company.address_kana.city": {
			Type: "string",
		},
		"account.company.address_kana.country": {
			Type: "string",
		},
		"account.company.address_kana.line1": {
			Type: "string",
		},
		"account.company.address_kana.line2": {
			Type: "string",
		},
		"account.company.address_kana.postal_code": {
			Type: "string",
		},
		"account.company.address_kana.state": {
			Type: "string",
		},
		"account.company.address_kana.town": {
			Type: "string",
		},
		"account.company.address_kanji.city": {
			Type: "string",
		},
		"account.company.address_kanji.country": {
			Type: "string",
		},
		"account.company.address_kanji.line1": {
			Type: "string",
		},
		"account.company.address_kanji.line2": {
			Type: "string",
		},
		"account.company.address_kanji.postal_code": {
			Type: "string",
		},
		"account.company.address_kanji.state": {
			Type: "string",
		},
		"account.company.address_kanji.town": {
			Type: "string",
		},
		"account.company.directors_provided": {
			Type: "boolean",
		},
		"account.company.directorship_declaration.date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"account.company.directorship_declaration.ip": {
			Type: "string",
		},
		"account.company.directorship_declaration.user_agent": {
			Type: "string",
		},
		"account.company.executives_provided": {
			Type: "boolean",
		},
		"account.company.export_license_id": {
			Type: "string",
		},
		"account.company.export_purpose_code": {
			Type: "string",
		},
		"account.company.name": {
			Type: "string",
		},
		"account.company.name_kana": {
			Type: "string",
		},
		"account.company.name_kanji": {
			Type: "string",
		},
		"account.company.owners_provided": {
			Type: "boolean",
		},
		"account.company.ownership_declaration.date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"account.company.ownership_declaration.ip": {
			Type: "string",
		},
		"account.company.ownership_declaration.user_agent": {
			Type: "string",
		},
		"account.company.ownership_declaration_shown_and_signed": {
			Type: "boolean",
		},
		"account.company.ownership_exemption_reason": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "qualified_entity_exceeds_ownership_threshold"},
				{Value: "qualifies_as_financial_institution"},
			},
		},
		"account.company.phone": {
			Type: "string",
		},
		"account.company.registration_number": {
			Type: "string",
		},
		"account.company.representative_declaration.date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"account.company.representative_declaration.ip": {
			Type: "string",
		},
		"account.company.representative_declaration.user_agent": {
			Type: "string",
		},
		"account.company.structure": {
			Type: "string",
			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",
		},
		"account.company.tax_id_registrar": {
			Type: "string",
		},
		"account.company.vat_id": {
			Type: "string",
		},
		"account.company.verification.document.back": {
			Type: "string",
		},
		"account.company.verification.document.front": {
			Type: "string",
		},
		"account.individual.address.city": {
			Type: "string",
		},
		"account.individual.address.country": {
			Type: "string",
		},
		"account.individual.address.line1": {
			Type: "string",
		},
		"account.individual.address.line2": {
			Type: "string",
		},
		"account.individual.address.postal_code": {
			Type: "string",
		},
		"account.individual.address.state": {
			Type: "string",
		},
		"account.individual.address_kana.city": {
			Type: "string",
		},
		"account.individual.address_kana.country": {
			Type: "string",
		},
		"account.individual.address_kana.line1": {
			Type: "string",
		},
		"account.individual.address_kana.line2": {
			Type: "string",
		},
		"account.individual.address_kana.postal_code": {
			Type: "string",
		},
		"account.individual.address_kana.state": {
			Type: "string",
		},
		"account.individual.address_kana.town": {
			Type: "string",
		},
		"account.individual.address_kanji.city": {
			Type: "string",
		},
		"account.individual.address_kanji.country": {
			Type: "string",
		},
		"account.individual.address_kanji.line1": {
			Type: "string",
		},
		"account.individual.address_kanji.line2": {
			Type: "string",
		},
		"account.individual.address_kanji.postal_code": {
			Type: "string",
		},
		"account.individual.address_kanji.state": {
			Type: "string",
		},
		"account.individual.address_kanji.town": {
			Type: "string",
		},
		"account.individual.email": {
			Type: "string",
		},
		"account.individual.first_name": {
			Type: "string",
		},
		"account.individual.first_name_kana": {
			Type: "string",
		},
		"account.individual.first_name_kanji": {
			Type: "string",
		},
		"account.individual.full_name_aliases": {
			Type: "array",
		},
		"account.individual.gender": {
			Type: "string",
		},
		"account.individual.id_number": {
			Type: "string",
		},
		"account.individual.id_number_secondary": {
			Type: "string",
		},
		"account.individual.last_name": {
			Type: "string",
		},
		"account.individual.last_name_kana": {
			Type: "string",
		},
		"account.individual.last_name_kanji": {
			Type: "string",
		},
		"account.individual.maiden_name": {
			Type: "string",
		},
		"account.individual.phone": {
			Type: "string",
		},
		"account.individual.political_exposure": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "existing"},
				{Value: "none"},
			},
		},
		"account.individual.registered_address.city": {
			Type: "string",
		},
		"account.individual.registered_address.country": {
			Type: "string",
		},
		"account.individual.registered_address.line1": {
			Type: "string",
		},
		"account.individual.registered_address.line2": {
			Type: "string",
		},
		"account.individual.registered_address.postal_code": {
			Type: "string",
		},
		"account.individual.registered_address.state": {
			Type: "string",
		},
		"account.individual.relationship.director": {
			Type: "boolean",
		},
		"account.individual.relationship.executive": {
			Type: "boolean",
		},
		"account.individual.relationship.owner": {
			Type: "boolean",
		},
		"account.individual.relationship.percent_ownership": {
			Type: "number",
		},
		"account.individual.relationship.title": {
			Type: "string",
		},
		"account.individual.ssn_last_4": {
			Type: "string",
		},
		"account.individual.verification.additional_document.back": {
			Type: "string",
		},
		"account.individual.verification.additional_document.front": {
			Type: "string",
		},
		"account.individual.verification.document.back": {
			Type: "string",
		},
		"account.individual.verification.document.front": {
			Type: "string",
		},
		"account.tos_shown_and_accepted": {
			Type: "boolean",
		},
		"bank_account.account_holder_name": {
			Type: "string",
		},
		"bank_account.account_holder_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"bank_account.account_number": {
			Type:     "string",
			Required: true,
		},
		"bank_account.account_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "checking"},
				{Value: "futsu"},
				{Value: "savings"},
				{Value: "toza"},
			},
		},
		"bank_account.country": {
			Type:     "string",
			Required: true,
		},
		"bank_account.currency": {
			Type:   "string",
			Format: "currency",
		},
		"bank_account.payment_method": {
			Type: "string",
		},
		"bank_account.routing_number": {
			Type: "string",
		},
		"card": {
			Type: "string",
		},
		"customer": {
			Type: "string",
		},
		"cvc_update.cvc": {
			Type:     "string",
			Required: true,
		},
		"person.additional_tos_acceptances.account.date": {
			Type:   "integer",
			Format: "unix-time",
		},
		"person.additional_tos_acceptances.account.ip": {
			Type: "string",
		},
		"person.additional_tos_acceptances.account.user_agent": {
			Type: "string",
		},
		"person.address.city": {
			Type: "string",
		},
		"person.address.country": {
			Type: "string",
		},
		"person.address.line1": {
			Type: "string",
		},
		"person.address.line2": {
			Type: "string",
		},
		"person.address.postal_code": {
			Type: "string",
		},
		"person.address.state": {
			Type: "string",
		},
		"person.address_kana.city": {
			Type: "string",
		},
		"person.address_kana.country": {
			Type: "string",
		},
		"person.address_kana.line1": {
			Type: "string",
		},
		"person.address_kana.line2": {
			Type: "string",
		},
		"person.address_kana.postal_code": {
			Type: "string",
		},
		"person.address_kana.state": {
			Type: "string",
		},
		"person.address_kana.town": {
			Type: "string",
		},
		"person.address_kanji.city": {
			Type: "string",
		},
		"person.address_kanji.country": {
			Type: "string",
		},
		"person.address_kanji.line1": {
			Type: "string",
		},
		"person.address_kanji.line2": {
			Type: "string",
		},
		"person.address_kanji.postal_code": {
			Type: "string",
		},
		"person.address_kanji.state": {
			Type: "string",
		},
		"person.address_kanji.town": {
			Type: "string",
		},
		"person.documents.company_authorization.files": {
			Type: "array",
		},
		"person.documents.passport.files": {
			Type: "array",
		},
		"person.documents.visa.files": {
			Type: "array",
		},
		"person.email": {
			Type: "string",
		},
		"person.first_name": {
			Type: "string",
		},
		"person.first_name_kana": {
			Type: "string",
		},
		"person.first_name_kanji": {
			Type: "string",
		},
		"person.full_name_aliases": {
			Type: "array",
		},
		"person.gender": {
			Type: "string",
		},
		"person.id_number": {
			Type: "string",
		},
		"person.id_number_secondary": {
			Type: "string",
		},
		"person.last_name": {
			Type: "string",
		},
		"person.last_name_kana": {
			Type: "string",
		},
		"person.last_name_kanji": {
			Type: "string",
		},
		"person.maiden_name": {
			Type: "string",
		},
		"person.nationality": {
			Type: "string",
		},
		"person.phone": {
			Type: "string",
		},
		"person.political_exposure": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "existing"},
				{Value: "none"},
			},
		},
		"person.registered_address.city": {
			Type: "string",
		},
		"person.registered_address.country": {
			Type: "string",
		},
		"person.registered_address.line1": {
			Type: "string",
		},
		"person.registered_address.line2": {
			Type: "string",
		},
		"person.registered_address.postal_code": {
			Type: "string",
		},
		"person.registered_address.state": {
			Type: "string",
		},
		"person.relationship.authorizer": {
			Type: "boolean",
		},
		"person.relationship.director": {
			Type: "boolean",
		},
		"person.relationship.executive": {
			Type: "boolean",
		},
		"person.relationship.legal_guardian": {
			Type: "boolean",
		},
		"person.relationship.owner": {
			Type: "boolean",
		},
		"person.relationship.percent_ownership": {
			Type: "number",
		},
		"person.relationship.representative": {
			Type: "boolean",
		},
		"person.relationship.title": {
			Type: "string",
		},
		"person.ssn_last_4": {
			Type: "string",
		},
		"person.us_cfpb_data.ethnicity_details.ethnicity": {
			Type: "array",
		},
		"person.us_cfpb_data.ethnicity_details.ethnicity_other": {
			Type: "string",
		},
		"person.us_cfpb_data.race_details.race": {
			Type: "array",
		},
		"person.us_cfpb_data.race_details.race_other": {
			Type: "string",
		},
		"person.us_cfpb_data.self_identified_gender": {
			Type: "string",
		},
		"person.verification.additional_document.back": {
			Type: "string",
		},
		"person.verification.additional_document.front": {
			Type: "string",
		},
		"person.verification.document.back": {
			Type: "string",
		},
		"person.verification.document.front": {
			Type: "string",
		},
		"pii.id_number": {
			Type: "string",
		},
	},
}
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",
			Required: true,
		},
		"currency": {
			Type:     "string",
			Required: true,
		},
		"description": {
			Type: "string",
		},
		"source": {
			Type: "string",
		},
		"statement_descriptor": {
			Type: "string",
		},
		"transfer_group": {
			Type: "string",
		},
	},
}
View Source
var V1TopupsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/topups",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type: "integer",
		},
		"created": {
			Type: "integer",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
		"status": {
			Type: "string",
			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",
		},
	},
}
View Source
var V1TransferReversalsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/transfers/{id}/reversals",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"amount": {
			Type: "integer",
		},
		"description": {
			Type: "string",
		},
		"refund_application_fee": {
			Type: "boolean",
		},
	},
}
View Source
var V1TransferReversalsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/transfers/{id}/reversals",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
		"currency": {
			Type:     "string",
			Required: true,
			Format:   "currency",
		},
		"description": {
			Type: "string",
		},
		"destination": {
			Type:     "string",
			Required: true,
		},
		"source_transaction": {
			Type: "string",
		},
		"source_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "bank_account"},
				{Value: "card"},
				{Value: "fpx"},
			},
		},
		"transfer_group": {
			Type: "string",
		},
	},
}
View Source
var V1TransfersList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/transfers",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type: "integer",
		},
		"destination": {
			Type: "string",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
		"transfer_group": {
			Type: "string",
		},
	},
}
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",
		},
	},
}
View Source
var V1TreasuryCreditReversalsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v1/treasury/credit_reversals",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"received_credit": {
			Type:     "string",
			Required: 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",
		},
		"financial_account": {
			Type:     "string",
			Required: true,
		},
		"limit": {
			Type: "integer",
		},
		"received_credit": {
			Type: "string",
		},
		"starting_after": {
			Type: "string",
		},
		"status": {
			Type: "string",
			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",
			Required: 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",
		},
		"financial_account": {
			Type:     "string",
			Required: true,
		},
		"limit": {
			Type: "integer",
		},
		"received_debit": {
			Type: "string",
		},
		"resolution": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "lost"},
				{Value: "won"},
			},
		},
		"starting_after": {
			Type: "string",
		},
		"status": {
			Type: "string",
			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",
		},
		"forwarding_settings.payment_method": {
			Type: "string",
		},
		"forwarding_settings.type": {
			Type:     "string",
			Required: 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",
			Required: true,
		},
		"features.deposit_insurance.requested": {
			Type:     "boolean",
			Required: true,
		},
		"features.financial_addresses.aba.requested": {
			Type:     "boolean",
			Required: true,
		},
		"features.inbound_transfers.ach.requested": {
			Type:     "boolean",
			Required: true,
		},
		"features.intra_stripe_flows.requested": {
			Type:     "boolean",
			Required: true,
		},
		"features.outbound_payments.ach.requested": {
			Type:     "boolean",
			Required: true,
		},
		"features.outbound_payments.us_domestic_wire.requested": {
			Type:     "boolean",
			Required: true,
		},
		"features.outbound_transfers.ach.requested": {
			Type:     "boolean",
			Required: true,
		},
		"features.outbound_transfers.us_domestic_wire.requested": {
			Type:     "boolean",
			Required: true,
		},
		"nickname": {
			Type: "string",
		},
		"platform_restrictions.inbound_flows": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "restricted"},
				{Value: "unrestricted"},
			},
		},
		"platform_restrictions.outbound_flows": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "restricted"},
				{Value: "unrestricted"},
			},
		},
		"supported_currencies": {
			Type:     "array",
			Required: true,
		},
	},
}
View Source
var V1TreasuryFinancialAccountsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/treasury/financial_accounts",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type: "integer",
		},
		"ending_before": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
		"status": {
			Type: "string",
			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",
			Required: true,
		},
		"features.deposit_insurance.requested": {
			Type:     "boolean",
			Required: true,
		},
		"features.financial_addresses.aba.requested": {
			Type:     "boolean",
			Required: true,
		},
		"features.inbound_transfers.ach.requested": {
			Type:     "boolean",
			Required: true,
		},
		"features.intra_stripe_flows.requested": {
			Type:     "boolean",
			Required: true,
		},
		"features.outbound_payments.ach.requested": {
			Type:     "boolean",
			Required: true,
		},
		"features.outbound_payments.us_domestic_wire.requested": {
			Type:     "boolean",
			Required: true,
		},
		"features.outbound_transfers.ach.requested": {
			Type:     "boolean",
			Required: true,
		},
		"features.outbound_transfers.us_domestic_wire.requested": {
			Type:     "boolean",
			Required: true,
		},
		"forwarding_settings.financial_account": {
			Type: "string",
		},
		"forwarding_settings.payment_method": {
			Type: "string",
		},
		"forwarding_settings.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "financial_account"},
				{Value: "payment_method"},
			},
		},
		"nickname": {
			Type: "string",
		},
		"platform_restrictions.inbound_flows": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "restricted"},
				{Value: "unrestricted"},
			},
		},
		"platform_restrictions.outbound_flows": {
			Type: "string",
			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",
			Required: true,
		},
		"deposit_insurance.requested": {
			Type:     "boolean",
			Required: true,
		},
		"financial_addresses.aba.requested": {
			Type:     "boolean",
			Required: true,
		},
		"inbound_transfers.ach.requested": {
			Type:     "boolean",
			Required: true,
		},
		"intra_stripe_flows.requested": {
			Type:     "boolean",
			Required: true,
		},
		"outbound_payments.ach.requested": {
			Type:     "boolean",
			Required: true,
		},
		"outbound_payments.us_domestic_wire.requested": {
			Type:     "boolean",
			Required: true,
		},
		"outbound_transfers.ach.requested": {
			Type:     "boolean",
			Required: true,
		},
		"outbound_transfers.us_domestic_wire.requested": {
			Type:     "boolean",
			Required: true,
		},
	},
}
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",
			Required: true,
		},
		"currency": {
			Type:     "string",
			Required: true,
			Format:   "currency",
		},
		"description": {
			Type: "string",
		},
		"financial_account": {
			Type:     "string",
			Required: true,
		},
		"origin_payment_method": {
			Type:     "string",
			Required: true,
		},
		"statement_descriptor": {
			Type: "string",
		},
	},
}
View Source
var V1TreasuryInboundTransfersList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/treasury/inbound_transfers",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type: "string",
		},
		"financial_account": {
			Type:     "string",
			Required: true,
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
		"status": {
			Type: "string",
			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",
			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",
			Required: true,
		},
		"currency": {
			Type:     "string",
			Required: true,
			Format:   "currency",
		},
		"customer": {
			Type: "string",
		},
		"description": {
			Type: "string",
		},
		"destination_payment_method": {
			Type: "string",
		},
		"destination_payment_method_data.billing_details.email": {
			Type: "string",
		},
		"destination_payment_method_data.billing_details.name": {
			Type: "string",
		},
		"destination_payment_method_data.billing_details.phone": {
			Type: "string",
		},
		"destination_payment_method_data.financial_account": {
			Type: "string",
		},
		"destination_payment_method_data.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "financial_account"},
				{Value: "us_bank_account"},
			},
		},
		"destination_payment_method_data.us_bank_account.account_holder_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "individual"},
			},
		},
		"destination_payment_method_data.us_bank_account.account_number": {
			Type: "string",
		},
		"destination_payment_method_data.us_bank_account.account_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "checking"},
				{Value: "savings"},
			},
		},
		"destination_payment_method_data.us_bank_account.financial_connections_account": {
			Type: "string",
		},
		"destination_payment_method_data.us_bank_account.routing_number": {
			Type: "string",
		},
		"end_user_details.ip_address": {
			Type: "string",
		},
		"end_user_details.present": {
			Type:     "boolean",
			Required: true,
		},
		"financial_account": {
			Type:     "string",
			Required: true,
		},
		"statement_descriptor": {
			Type: "string",
		},
	},
}
View Source
var V1TreasuryOutboundPaymentsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/treasury/outbound_payments",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"created": {
			Type: "integer",
		},
		"customer": {
			Type: "string",
		},
		"ending_before": {
			Type: "string",
		},
		"financial_account": {
			Type:     "string",
			Required: true,
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
		"status": {
			Type: "string",
			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",
			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",
			Required: true,
		},
		"tracking_details.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "ach"},
				{Value: "us_domestic_wire"},
			},
		},
		"tracking_details.us_domestic_wire.chips": {
			Type: "string",
		},
		"tracking_details.us_domestic_wire.imad": {
			Type: "string",
		},
		"tracking_details.us_domestic_wire.omad": {
			Type: "string",
		},
	},
}
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",
			Required: true,
		},
		"currency": {
			Type:     "string",
			Required: true,
			Format:   "currency",
		},
		"description": {
			Type: "string",
		},
		"destination_payment_method": {
			Type: "string",
		},
		"destination_payment_method_data.financial_account": {
			Type: "string",
		},
		"destination_payment_method_data.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "financial_account"},
			},
		},
		"financial_account": {
			Type:     "string",
			Required: true,
		},
		"statement_descriptor": {
			Type: "string",
		},
	},
}
View Source
var V1TreasuryOutboundTransfersList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/treasury/outbound_transfers",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type: "string",
		},
		"financial_account": {
			Type:     "string",
			Required: true,
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
		"status": {
			Type: "string",
			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",
			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",
			Required: true,
		},
		"tracking_details.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "ach"},
				{Value: "us_domestic_wire"},
			},
		},
		"tracking_details.us_domestic_wire.chips": {
			Type: "string",
		},
		"tracking_details.us_domestic_wire.imad": {
			Type: "string",
		},
		"tracking_details.us_domestic_wire.omad": {
			Type: "string",
		},
	},
}
View Source
var V1TreasuryReceivedCreditsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v1/treasury/received_credits",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"ending_before": {
			Type: "string",
		},
		"financial_account": {
			Type:     "string",
			Required: true,
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
		"status": {
			Type: "string",
			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",
			Required: true,
		},
		"currency": {
			Type:     "string",
			Required: true,
			Format:   "currency",
		},
		"description": {
			Type: "string",
		},
		"financial_account": {
			Type:     "string",
			Required: true,
		},
		"initiating_payment_method_details.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "us_bank_account"},
			},
		},
		"initiating_payment_method_details.us_bank_account.account_holder_name": {
			Type: "string",
		},
		"initiating_payment_method_details.us_bank_account.account_number": {
			Type: "string",
		},
		"initiating_payment_method_details.us_bank_account.routing_number": {
			Type: "string",
		},
		"network": {
			Type:     "string",
			Required: 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",
		},
		"financial_account": {
			Type:     "string",
			Required: true,
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
		"status": {
			Type: "string",
			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",
			Required: true,
		},
		"currency": {
			Type:     "string",
			Required: true,
			Format:   "currency",
		},
		"description": {
			Type: "string",
		},
		"financial_account": {
			Type:     "string",
			Required: true,
		},
		"initiating_payment_method_details.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "us_bank_account"},
			},
		},
		"initiating_payment_method_details.us_bank_account.account_holder_name": {
			Type: "string",
		},
		"initiating_payment_method_details.us_bank_account.account_number": {
			Type: "string",
		},
		"initiating_payment_method_details.us_bank_account.routing_number": {
			Type: "string",
		},
		"network": {
			Type:     "string",
			Required: 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",
		},
		"effective_at": {
			Type: "integer",
		},
		"ending_before": {
			Type: "string",
		},
		"financial_account": {
			Type:     "string",
			Required: true,
		},
		"limit": {
			Type: "integer",
		},
		"order_by": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "created"},
				{Value: "effective_at"},
			},
		},
		"starting_after": {
			Type: "string",
		},
		"transaction": {
			Type: "string",
		},
	},
}
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",
		},
		"ending_before": {
			Type: "string",
		},
		"financial_account": {
			Type:     "string",
			Required: true,
		},
		"limit": {
			Type: "integer",
		},
		"order_by": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "created"},
				{Value: "posted_at"},
			},
		},
		"starting_after": {
			Type: "string",
		},
		"status": {
			Type: "string",
			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",
			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",
		},
		"description": {
			Type: "string",
		},
		"enabled_events": {
			Type:     "array",
			Required: true,
		},
		"url": {
			Type:     "string",
			Required: 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",
		},
		"limit": {
			Type: "integer",
		},
		"starting_after": {
			Type: "string",
		},
	},
}
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",
		},
		"disabled": {
			Type: "boolean",
		},
		"enabled_events": {
			Type: "array",
		},
		"url": {
			Type: "string",
		},
	},
}
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",
			Required: true,
		},
		"event_name": {
			Type:     "string",
			Required: true,
		},
		"type": {
			Type:     "string",
			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",
			Required: true,
		},
		"identifier": {
			Type: "string",
		},
		"timestamp": {
			Type:   "string",
			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",
			Required: true,
		},
		"use_case.account_onboarding.collection_options.fields": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "currently_due"},
				{Value: "eventually_due"},
			},
		},
		"use_case.account_onboarding.collection_options.future_requirements": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "include"},
				{Value: "omit"},
			},
		},
		"use_case.account_onboarding.configurations": {
			Type:     "array",
			Required: true,
		},
		"use_case.account_onboarding.refresh_url": {
			Type:     "string",
			Required: true,
		},
		"use_case.account_onboarding.return_url": {
			Type: "string",
		},
		"use_case.account_update.collection_options.fields": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "currently_due"},
				{Value: "eventually_due"},
			},
		},
		"use_case.account_update.collection_options.future_requirements": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "include"},
				{Value: "omit"},
			},
		},
		"use_case.account_update.configurations": {
			Type:     "array",
			Required: true,
		},
		"use_case.account_update.refresh_url": {
			Type:     "string",
			Required: true,
		},
		"use_case.account_update.return_url": {
			Type: "string",
		},
		"use_case.type": {
			Type:     "string",
			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",
		},
		"address.city": {
			Type: "string",
		},
		"address.country": {
			Type: "string",
		},
		"address.line1": {
			Type: "string",
		},
		"address.line2": {
			Type: "string",
		},
		"address.postal_code": {
			Type: "string",
		},
		"address.state": {
			Type: "string",
		},
		"address.town": {
			Type: "string",
		},
		"date_of_birth.day": {
			Type:     "integer",
			Required: true,
		},
		"date_of_birth.month": {
			Type:     "integer",
			Required: true,
		},
		"date_of_birth.year": {
			Type:     "integer",
			Required: true,
		},
		"documents.company_authorization.files": {
			Type:     "array",
			Required: true,
		},
		"documents.company_authorization.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"documents.passport.files": {
			Type:     "array",
			Required: true,
		},
		"documents.passport.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"documents.primary_verification.front_back.back": {
			Type: "string",
		},
		"documents.primary_verification.front_back.front": {
			Type: "string",
		},
		"documents.primary_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"documents.secondary_verification.front_back.back": {
			Type: "string",
		},
		"documents.secondary_verification.front_back.front": {
			Type: "string",
		},
		"documents.secondary_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"documents.visa.files": {
			Type:     "array",
			Required: true,
		},
		"documents.visa.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"email": {
			Type: "string",
		},
		"given_name": {
			Type: "string",
		},
		"legal_gender": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "female"},
				{Value: "male"},
			},
		},
		"nationalities": {
			Type: "array",
		},
		"phone": {
			Type: "string",
		},
		"political_exposure": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "existing"},
				{Value: "none"},
			},
		},
		"relationship.authorizer": {
			Type: "boolean",
		},
		"relationship.director": {
			Type: "boolean",
		},
		"relationship.executive": {
			Type: "boolean",
		},
		"relationship.legal_guardian": {
			Type: "boolean",
		},
		"relationship.owner": {
			Type: "boolean",
		},
		"relationship.percent_ownership": {
			Type:   "string",
			Format: "decimal",
		},
		"relationship.representative": {
			Type: "boolean",
		},
		"relationship.title": {
			Type: "string",
		},
		"script_addresses.kana.city": {
			Type: "string",
		},
		"script_addresses.kana.country": {
			Type: "string",
		},
		"script_addresses.kana.line1": {
			Type: "string",
		},
		"script_addresses.kana.line2": {
			Type: "string",
		},
		"script_addresses.kana.postal_code": {
			Type: "string",
		},
		"script_addresses.kana.state": {
			Type: "string",
		},
		"script_addresses.kana.town": {
			Type: "string",
		},
		"script_addresses.kanji.city": {
			Type: "string",
		},
		"script_addresses.kanji.country": {
			Type: "string",
		},
		"script_addresses.kanji.line1": {
			Type: "string",
		},
		"script_addresses.kanji.line2": {
			Type: "string",
		},
		"script_addresses.kanji.postal_code": {
			Type: "string",
		},
		"script_addresses.kanji.state": {
			Type: "string",
		},
		"script_addresses.kanji.town": {
			Type: "string",
		},
		"script_names.kana.given_name": {
			Type: "string",
		},
		"script_names.kana.surname": {
			Type: "string",
		},
		"script_names.kanji.given_name": {
			Type: "string",
		},
		"script_names.kanji.surname": {
			Type: "string",
		},
		"surname": {
			Type: "string",
		},
	},
}
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",
			Required: true,
			Format:   "date-time",
		},
		"additional_terms_of_service.account.ip": {
			Type:     "string",
			Required: true,
		},
		"additional_terms_of_service.account.user_agent": {
			Type: "string",
		},
		"address.city": {
			Type: "string",
		},
		"address.country": {
			Type:     "string",
			Required: true,
		},
		"address.line1": {
			Type: "string",
		},
		"address.line2": {
			Type: "string",
		},
		"address.postal_code": {
			Type: "string",
		},
		"address.state": {
			Type: "string",
		},
		"address.town": {
			Type: "string",
		},
		"date_of_birth.day": {
			Type:     "integer",
			Required: true,
		},
		"date_of_birth.month": {
			Type:     "integer",
			Required: true,
		},
		"date_of_birth.year": {
			Type:     "integer",
			Required: true,
		},
		"documents.company_authorization.files": {
			Type:     "array",
			Required: true,
		},
		"documents.company_authorization.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"documents.passport.files": {
			Type:     "array",
			Required: true,
		},
		"documents.passport.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"documents.primary_verification.front_back.back": {
			Type: "string",
		},
		"documents.primary_verification.front_back.front": {
			Type:     "string",
			Required: true,
		},
		"documents.primary_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"documents.secondary_verification.front_back.back": {
			Type: "string",
		},
		"documents.secondary_verification.front_back.front": {
			Type:     "string",
			Required: true,
		},
		"documents.secondary_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"documents.visa.files": {
			Type:     "array",
			Required: true,
		},
		"documents.visa.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"email": {
			Type: "string",
		},
		"given_name": {
			Type: "string",
		},
		"legal_gender": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "female"},
				{Value: "male"},
			},
		},
		"nationalities": {
			Type: "array",
		},
		"person_token": {
			Type: "string",
		},
		"phone": {
			Type: "string",
		},
		"political_exposure": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "existing"},
				{Value: "none"},
			},
		},
		"relationship.authorizer": {
			Type: "boolean",
		},
		"relationship.director": {
			Type: "boolean",
		},
		"relationship.executive": {
			Type: "boolean",
		},
		"relationship.legal_guardian": {
			Type: "boolean",
		},
		"relationship.owner": {
			Type: "boolean",
		},
		"relationship.percent_ownership": {
			Type:   "string",
			Format: "decimal",
		},
		"relationship.representative": {
			Type: "boolean",
		},
		"relationship.title": {
			Type: "string",
		},
		"script_addresses.kana.city": {
			Type: "string",
		},
		"script_addresses.kana.country": {
			Type:     "string",
			Required: true,
		},
		"script_addresses.kana.line1": {
			Type: "string",
		},
		"script_addresses.kana.line2": {
			Type: "string",
		},
		"script_addresses.kana.postal_code": {
			Type: "string",
		},
		"script_addresses.kana.state": {
			Type: "string",
		},
		"script_addresses.kana.town": {
			Type: "string",
		},
		"script_addresses.kanji.city": {
			Type: "string",
		},
		"script_addresses.kanji.country": {
			Type:     "string",
			Required: true,
		},
		"script_addresses.kanji.line1": {
			Type: "string",
		},
		"script_addresses.kanji.line2": {
			Type: "string",
		},
		"script_addresses.kanji.postal_code": {
			Type: "string",
		},
		"script_addresses.kanji.state": {
			Type: "string",
		},
		"script_addresses.kanji.town": {
			Type: "string",
		},
		"script_names.kana.given_name": {
			Type: "string",
		},
		"script_names.kana.surname": {
			Type: "string",
		},
		"script_names.kanji.given_name": {
			Type: "string",
		},
		"script_names.kanji.surname": {
			Type: "string",
		},
		"surname": {
			Type: "string",
		},
	},
}
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",
		},
		"page": {
			Type: "string",
		},
	},
}
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",
			Format: "date-time",
		},
		"additional_terms_of_service.account.ip": {
			Type: "string",
		},
		"additional_terms_of_service.account.user_agent": {
			Type: "string",
		},
		"address.city": {
			Type: "string",
		},
		"address.country": {
			Type: "string",
		},
		"address.line1": {
			Type: "string",
		},
		"address.line2": {
			Type: "string",
		},
		"address.postal_code": {
			Type: "string",
		},
		"address.state": {
			Type: "string",
		},
		"address.town": {
			Type: "string",
		},
		"date_of_birth.day": {
			Type:     "integer",
			Required: true,
		},
		"date_of_birth.month": {
			Type:     "integer",
			Required: true,
		},
		"date_of_birth.year": {
			Type:     "integer",
			Required: true,
		},
		"documents.company_authorization.files": {
			Type:     "array",
			Required: true,
		},
		"documents.company_authorization.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"documents.passport.files": {
			Type:     "array",
			Required: true,
		},
		"documents.passport.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"documents.primary_verification.front_back.back": {
			Type: "string",
		},
		"documents.primary_verification.front_back.front": {
			Type: "string",
		},
		"documents.primary_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"documents.secondary_verification.front_back.back": {
			Type: "string",
		},
		"documents.secondary_verification.front_back.front": {
			Type: "string",
		},
		"documents.secondary_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"documents.visa.files": {
			Type:     "array",
			Required: true,
		},
		"documents.visa.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"email": {
			Type: "string",
		},
		"given_name": {
			Type: "string",
		},
		"legal_gender": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "female"},
				{Value: "male"},
			},
		},
		"nationalities": {
			Type: "array",
		},
		"person_token": {
			Type: "string",
		},
		"phone": {
			Type: "string",
		},
		"political_exposure": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "existing"},
				{Value: "none"},
			},
		},
		"relationship.authorizer": {
			Type: "boolean",
		},
		"relationship.director": {
			Type: "boolean",
		},
		"relationship.executive": {
			Type: "boolean",
		},
		"relationship.legal_guardian": {
			Type: "boolean",
		},
		"relationship.owner": {
			Type: "boolean",
		},
		"relationship.percent_ownership": {
			Type:   "string",
			Format: "decimal",
		},
		"relationship.representative": {
			Type: "boolean",
		},
		"relationship.title": {
			Type: "string",
		},
		"script_addresses.kana.city": {
			Type: "string",
		},
		"script_addresses.kana.country": {
			Type: "string",
		},
		"script_addresses.kana.line1": {
			Type: "string",
		},
		"script_addresses.kana.line2": {
			Type: "string",
		},
		"script_addresses.kana.postal_code": {
			Type: "string",
		},
		"script_addresses.kana.state": {
			Type: "string",
		},
		"script_addresses.kana.town": {
			Type: "string",
		},
		"script_addresses.kanji.city": {
			Type: "string",
		},
		"script_addresses.kanji.country": {
			Type: "string",
		},
		"script_addresses.kanji.line1": {
			Type: "string",
		},
		"script_addresses.kanji.line2": {
			Type: "string",
		},
		"script_addresses.kanji.postal_code": {
			Type: "string",
		},
		"script_addresses.kanji.state": {
			Type: "string",
		},
		"script_addresses.kanji.town": {
			Type: "string",
		},
		"script_names.kana.given_name": {
			Type: "string",
		},
		"script_names.kana.surname": {
			Type: "string",
		},
		"script_names.kanji.given_name": {
			Type: "string",
		},
		"script_names.kanji.surname": {
			Type: "string",
		},
		"surname": {
			Type: "string",
		},
	},
}
View Source
var V2CoreAccountTokensCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v2/core/account_tokens",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"contact_email": {
			Type: "string",
		},
		"contact_phone": {
			Type: "string",
		},
		"display_name": {
			Type: "string",
		},
		"identity.attestations.directorship_declaration.attested": {
			Type: "boolean",
		},
		"identity.attestations.ownership_declaration.attested": {
			Type: "boolean",
		},
		"identity.attestations.persons_provided.directors": {
			Type: "boolean",
		},
		"identity.attestations.persons_provided.executives": {
			Type: "boolean",
		},
		"identity.attestations.persons_provided.owners": {
			Type: "boolean",
		},
		"identity.attestations.persons_provided.ownership_exemption_reason": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "qualified_entity_exceeds_ownership_threshold"},
				{Value: "qualifies_as_financial_institution"},
			},
		},
		"identity.attestations.representative_declaration.attested": {
			Type: "boolean",
		},
		"identity.attestations.terms_of_service.account.shown_and_accepted": {
			Type: "boolean",
		},
		"identity.business_details.address.city": {
			Type: "string",
		},
		"identity.business_details.address.country": {
			Type: "string",
		},
		"identity.business_details.address.line1": {
			Type: "string",
		},
		"identity.business_details.address.line2": {
			Type: "string",
		},
		"identity.business_details.address.postal_code": {
			Type: "string",
		},
		"identity.business_details.address.state": {
			Type: "string",
		},
		"identity.business_details.address.town": {
			Type: "string",
		},
		"identity.business_details.annual_revenue.amount.currency": {
			Type:     "string",
			Required: true,
		},
		"identity.business_details.annual_revenue.amount.value": {
			Type:     "integer",
			Required: true,
		},
		"identity.business_details.annual_revenue.fiscal_year_end": {
			Type: "string",
		},
		"identity.business_details.documents.bank_account_ownership_verification.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.bank_account_ownership_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_license.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.company_license.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_memorandum_of_association.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.company_memorandum_of_association.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_ministerial_decree.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.company_ministerial_decree.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_registration_verification.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.company_registration_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_tax_id_verification.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.company_tax_id_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.primary_verification.front_back.back": {
			Type: "string",
		},
		"identity.business_details.documents.primary_verification.front_back.front": {
			Type: "string",
		},
		"identity.business_details.documents.primary_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"identity.business_details.documents.proof_of_address.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.proof_of_address.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.proof_of_registration.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.proof_of_registration.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.proof_of_ultimate_beneficial_ownership.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.proof_of_ultimate_beneficial_ownership.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.estimated_worker_count": {
			Type: "integer",
		},
		"identity.business_details.monthly_estimated_revenue.amount.currency": {
			Type:     "string",
			Required: true,
		},
		"identity.business_details.monthly_estimated_revenue.amount.value": {
			Type:     "integer",
			Required: true,
		},
		"identity.business_details.phone": {
			Type: "string",
		},
		"identity.business_details.registered_name": {
			Type: "string",
		},
		"identity.business_details.registration_date.day": {
			Type:     "integer",
			Required: true,
		},
		"identity.business_details.registration_date.month": {
			Type:     "integer",
			Required: true,
		},
		"identity.business_details.registration_date.year": {
			Type:     "integer",
			Required: true,
		},
		"identity.business_details.script_addresses.kana.city": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kana.country": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kana.line1": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kana.line2": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kana.postal_code": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kana.state": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kana.town": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.city": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.country": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.line1": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.line2": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.postal_code": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.state": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.town": {
			Type: "string",
		},
		"identity.business_details.script_names.kana.registered_name": {
			Type: "string",
		},
		"identity.business_details.script_names.kanji.registered_name": {
			Type: "string",
		},
		"identity.business_details.structure": {
			Type: "string",
			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",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "government_entity"},
				{Value: "individual"},
				{Value: "non_profit"},
			},
		},
		"identity.individual.address.city": {
			Type: "string",
		},
		"identity.individual.address.country": {
			Type: "string",
		},
		"identity.individual.address.line1": {
			Type: "string",
		},
		"identity.individual.address.line2": {
			Type: "string",
		},
		"identity.individual.address.postal_code": {
			Type: "string",
		},
		"identity.individual.address.state": {
			Type: "string",
		},
		"identity.individual.address.town": {
			Type: "string",
		},
		"identity.individual.date_of_birth.day": {
			Type:     "integer",
			Required: true,
		},
		"identity.individual.date_of_birth.month": {
			Type:     "integer",
			Required: true,
		},
		"identity.individual.date_of_birth.year": {
			Type:     "integer",
			Required: true,
		},
		"identity.individual.documents.company_authorization.files": {
			Type:     "array",
			Required: true,
		},
		"identity.individual.documents.company_authorization.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.individual.documents.passport.files": {
			Type:     "array",
			Required: true,
		},
		"identity.individual.documents.passport.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.individual.documents.primary_verification.front_back.back": {
			Type: "string",
		},
		"identity.individual.documents.primary_verification.front_back.front": {
			Type: "string",
		},
		"identity.individual.documents.primary_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"identity.individual.documents.secondary_verification.front_back.back": {
			Type: "string",
		},
		"identity.individual.documents.secondary_verification.front_back.front": {
			Type: "string",
		},
		"identity.individual.documents.secondary_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"identity.individual.documents.visa.files": {
			Type:     "array",
			Required: true,
		},
		"identity.individual.documents.visa.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.individual.email": {
			Type: "string",
		},
		"identity.individual.given_name": {
			Type: "string",
		},
		"identity.individual.legal_gender": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "female"},
				{Value: "male"},
			},
		},
		"identity.individual.nationalities": {
			Type: "array",
		},
		"identity.individual.phone": {
			Type: "string",
		},
		"identity.individual.political_exposure": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "existing"},
				{Value: "none"},
			},
		},
		"identity.individual.relationship.director": {
			Type: "boolean",
		},
		"identity.individual.relationship.executive": {
			Type: "boolean",
		},
		"identity.individual.relationship.owner": {
			Type: "boolean",
		},
		"identity.individual.relationship.percent_ownership": {
			Type:   "string",
			Format: "decimal",
		},
		"identity.individual.relationship.title": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.city": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.country": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.line1": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.line2": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.postal_code": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.state": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.town": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.city": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.country": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.line1": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.line2": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.postal_code": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.state": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.town": {
			Type: "string",
		},
		"identity.individual.script_names.kana.given_name": {
			Type: "string",
		},
		"identity.individual.script_names.kana.surname": {
			Type: "string",
		},
		"identity.individual.script_names.kanji.given_name": {
			Type: "string",
		},
		"identity.individual.script_names.kanji.surname": {
			Type: "string",
		},
		"identity.individual.surname": {
			Type: "string",
		},
	},
}
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",
		},
	},
}
View Source
var V2CoreAccountsCreate = resource.OperationSpec{
	Name:   "create",
	Path:   "/v2/core/accounts",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"account_token": {
			Type: "string",
		},
		"configuration.customer.automatic_indirect_tax.exempt": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "exempt"},
				{Value: "none"},
				{Value: "reverse"},
			},
		},
		"configuration.customer.automatic_indirect_tax.ip_address": {
			Type: "string",
		},
		"configuration.customer.billing.invoice.footer": {
			Type: "string",
		},
		"configuration.customer.billing.invoice.next_sequence": {
			Type: "integer",
		},
		"configuration.customer.billing.invoice.prefix": {
			Type: "string",
		},
		"configuration.customer.billing.invoice.rendering.amount_tax_display": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "exclude_tax"},
				{Value: "include_inclusive_tax"},
			},
		},
		"configuration.customer.billing.invoice.rendering.template": {
			Type: "string",
		},
		"configuration.customer.capabilities.automatic_indirect_tax.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.customer.shipping.address.city": {
			Type: "string",
		},
		"configuration.customer.shipping.address.country": {
			Type: "string",
		},
		"configuration.customer.shipping.address.line1": {
			Type: "string",
		},
		"configuration.customer.shipping.address.line2": {
			Type: "string",
		},
		"configuration.customer.shipping.address.postal_code": {
			Type: "string",
		},
		"configuration.customer.shipping.address.state": {
			Type: "string",
		},
		"configuration.customer.shipping.name": {
			Type: "string",
		},
		"configuration.customer.shipping.phone": {
			Type: "string",
		},
		"configuration.customer.test_clock": {
			Type: "string",
		},
		"configuration.merchant.bacs_debit_payments.display_name": {
			Type: "string",
		},
		"configuration.merchant.branding.icon": {
			Type: "string",
		},
		"configuration.merchant.branding.logo": {
			Type: "string",
		},
		"configuration.merchant.branding.primary_color": {
			Type: "string",
		},
		"configuration.merchant.branding.secondary_color": {
			Type: "string",
		},
		"configuration.merchant.capabilities.ach_debit_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.acss_debit_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.affirm_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.afterpay_clearpay_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.alma_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.amazon_pay_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.au_becs_debit_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.bacs_debit_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.bancontact_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.blik_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.boleto_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.card_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.cartes_bancaires_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.cashapp_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.eps_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.fpx_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.gb_bank_transfer_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.grabpay_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.ideal_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.jcb_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.jp_bank_transfer_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.kakao_pay_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.klarna_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.konbini_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.kr_card_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.link_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.mobilepay_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.multibanco_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.mx_bank_transfer_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.naver_pay_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.oxxo_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.p24_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.pay_by_bank_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.payco_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.paynow_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.promptpay_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.revolut_pay_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.samsung_pay_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.sepa_bank_transfer_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.sepa_debit_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.swish_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.twint_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.us_bank_transfer_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.zip_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.card_payments.decline_on.avs_failure": {
			Type: "boolean",
		},
		"configuration.merchant.card_payments.decline_on.cvc_failure": {
			Type: "boolean",
		},
		"configuration.merchant.konbini_payments.support.email": {
			Type: "string",
		},
		"configuration.merchant.konbini_payments.support.hours.end_time": {
			Type: "string",
		},
		"configuration.merchant.konbini_payments.support.hours.start_time": {
			Type: "string",
		},
		"configuration.merchant.konbini_payments.support.phone": {
			Type: "string",
		},
		"configuration.merchant.mcc": {
			Type: "string",
		},
		"configuration.merchant.script_statement_descriptor.kana.descriptor": {
			Type: "string",
		},
		"configuration.merchant.script_statement_descriptor.kana.prefix": {
			Type: "string",
		},
		"configuration.merchant.script_statement_descriptor.kanji.descriptor": {
			Type: "string",
		},
		"configuration.merchant.script_statement_descriptor.kanji.prefix": {
			Type: "string",
		},
		"configuration.merchant.statement_descriptor.descriptor": {
			Type: "string",
		},
		"configuration.merchant.statement_descriptor.prefix": {
			Type: "string",
		},
		"configuration.merchant.support.address.city": {
			Type: "string",
		},
		"configuration.merchant.support.address.country": {
			Type:     "string",
			Required: true,
		},
		"configuration.merchant.support.address.line1": {
			Type: "string",
		},
		"configuration.merchant.support.address.line2": {
			Type: "string",
		},
		"configuration.merchant.support.address.postal_code": {
			Type: "string",
		},
		"configuration.merchant.support.address.state": {
			Type: "string",
		},
		"configuration.merchant.support.address.town": {
			Type: "string",
		},
		"configuration.merchant.support.email": {
			Type: "string",
		},
		"configuration.merchant.support.phone": {
			Type: "string",
		},
		"configuration.merchant.support.url": {
			Type: "string",
		},
		"configuration.recipient.capabilities.stripe_balance.stripe_transfers.requested": {
			Type:     "boolean",
			Required: true,
		},
		"contact_email": {
			Type: "string",
		},
		"contact_phone": {
			Type: "string",
		},
		"dashboard": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "express"},
				{Value: "full"},
				{Value: "none"},
			},
		},
		"defaults.currency": {
			Type: "string",
		},
		"defaults.locales": {
			Type: "array",
		},
		"defaults.profile.business_url": {
			Type: "string",
		},
		"defaults.profile.doing_business_as": {
			Type: "string",
		},
		"defaults.profile.product_description": {
			Type: "string",
		},
		"defaults.responsibilities.fees_collector": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "application"},
				{Value: "application_custom"},
				{Value: "application_express"},
				{Value: "stripe"},
			},
		},
		"defaults.responsibilities.losses_collector": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "application"},
				{Value: "stripe"},
			},
		},
		"display_name": {
			Type: "string",
		},
		"identity.attestations.directorship_declaration.date": {
			Type:   "string",
			Format: "date-time",
		},
		"identity.attestations.directorship_declaration.ip": {
			Type: "string",
		},
		"identity.attestations.directorship_declaration.user_agent": {
			Type: "string",
		},
		"identity.attestations.ownership_declaration.date": {
			Type:   "string",
			Format: "date-time",
		},
		"identity.attestations.ownership_declaration.ip": {
			Type: "string",
		},
		"identity.attestations.ownership_declaration.user_agent": {
			Type: "string",
		},
		"identity.attestations.persons_provided.directors": {
			Type: "boolean",
		},
		"identity.attestations.persons_provided.executives": {
			Type: "boolean",
		},
		"identity.attestations.persons_provided.owners": {
			Type: "boolean",
		},
		"identity.attestations.persons_provided.ownership_exemption_reason": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "qualified_entity_exceeds_ownership_threshold"},
				{Value: "qualifies_as_financial_institution"},
			},
		},
		"identity.attestations.representative_declaration.date": {
			Type:   "string",
			Format: "date-time",
		},
		"identity.attestations.representative_declaration.ip": {
			Type: "string",
		},
		"identity.attestations.representative_declaration.user_agent": {
			Type: "string",
		},
		"identity.attestations.terms_of_service.account.date": {
			Type:     "string",
			Required: true,
			Format:   "date-time",
		},
		"identity.attestations.terms_of_service.account.ip": {
			Type:     "string",
			Required: true,
		},
		"identity.attestations.terms_of_service.account.user_agent": {
			Type: "string",
		},
		"identity.business_details.address.city": {
			Type: "string",
		},
		"identity.business_details.address.country": {
			Type:     "string",
			Required: true,
		},
		"identity.business_details.address.line1": {
			Type: "string",
		},
		"identity.business_details.address.line2": {
			Type: "string",
		},
		"identity.business_details.address.postal_code": {
			Type: "string",
		},
		"identity.business_details.address.state": {
			Type: "string",
		},
		"identity.business_details.address.town": {
			Type: "string",
		},
		"identity.business_details.annual_revenue.amount.currency": {
			Type:     "string",
			Required: true,
		},
		"identity.business_details.annual_revenue.amount.value": {
			Type:     "integer",
			Required: true,
		},
		"identity.business_details.annual_revenue.fiscal_year_end": {
			Type: "string",
		},
		"identity.business_details.documents.bank_account_ownership_verification.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.bank_account_ownership_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_license.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.company_license.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_memorandum_of_association.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.company_memorandum_of_association.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_ministerial_decree.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.company_ministerial_decree.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_registration_verification.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.company_registration_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_tax_id_verification.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.company_tax_id_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.primary_verification.front_back.back": {
			Type: "string",
		},
		"identity.business_details.documents.primary_verification.front_back.front": {
			Type:     "string",
			Required: true,
		},
		"identity.business_details.documents.primary_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"identity.business_details.documents.proof_of_address.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.proof_of_address.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.proof_of_registration.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.proof_of_registration.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.proof_of_ultimate_beneficial_ownership.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.proof_of_ultimate_beneficial_ownership.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.estimated_worker_count": {
			Type: "integer",
		},
		"identity.business_details.monthly_estimated_revenue.amount.currency": {
			Type:     "string",
			Required: true,
		},
		"identity.business_details.monthly_estimated_revenue.amount.value": {
			Type:     "integer",
			Required: true,
		},
		"identity.business_details.phone": {
			Type: "string",
		},
		"identity.business_details.registered_name": {
			Type: "string",
		},
		"identity.business_details.registration_date.day": {
			Type:     "integer",
			Required: true,
		},
		"identity.business_details.registration_date.month": {
			Type:     "integer",
			Required: true,
		},
		"identity.business_details.registration_date.year": {
			Type:     "integer",
			Required: true,
		},
		"identity.business_details.script_addresses.kana.city": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kana.country": {
			Type:     "string",
			Required: true,
		},
		"identity.business_details.script_addresses.kana.line1": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kana.line2": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kana.postal_code": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kana.state": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kana.town": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.city": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.country": {
			Type:     "string",
			Required: true,
		},
		"identity.business_details.script_addresses.kanji.line1": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.line2": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.postal_code": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.state": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.town": {
			Type: "string",
		},
		"identity.business_details.script_names.kana.registered_name": {
			Type: "string",
		},
		"identity.business_details.script_names.kanji.registered_name": {
			Type: "string",
		},
		"identity.business_details.structure": {
			Type: "string",
			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",
		},
		"identity.entity_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "government_entity"},
				{Value: "individual"},
				{Value: "non_profit"},
			},
		},
		"identity.individual.address.city": {
			Type: "string",
		},
		"identity.individual.address.country": {
			Type:     "string",
			Required: true,
		},
		"identity.individual.address.line1": {
			Type: "string",
		},
		"identity.individual.address.line2": {
			Type: "string",
		},
		"identity.individual.address.postal_code": {
			Type: "string",
		},
		"identity.individual.address.state": {
			Type: "string",
		},
		"identity.individual.address.town": {
			Type: "string",
		},
		"identity.individual.date_of_birth.day": {
			Type:     "integer",
			Required: true,
		},
		"identity.individual.date_of_birth.month": {
			Type:     "integer",
			Required: true,
		},
		"identity.individual.date_of_birth.year": {
			Type:     "integer",
			Required: true,
		},
		"identity.individual.documents.company_authorization.files": {
			Type:     "array",
			Required: true,
		},
		"identity.individual.documents.company_authorization.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.individual.documents.passport.files": {
			Type:     "array",
			Required: true,
		},
		"identity.individual.documents.passport.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.individual.documents.primary_verification.front_back.back": {
			Type: "string",
		},
		"identity.individual.documents.primary_verification.front_back.front": {
			Type:     "string",
			Required: true,
		},
		"identity.individual.documents.primary_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"identity.individual.documents.secondary_verification.front_back.back": {
			Type: "string",
		},
		"identity.individual.documents.secondary_verification.front_back.front": {
			Type:     "string",
			Required: true,
		},
		"identity.individual.documents.secondary_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"identity.individual.documents.visa.files": {
			Type:     "array",
			Required: true,
		},
		"identity.individual.documents.visa.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.individual.email": {
			Type: "string",
		},
		"identity.individual.given_name": {
			Type: "string",
		},
		"identity.individual.legal_gender": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "female"},
				{Value: "male"},
			},
		},
		"identity.individual.nationalities": {
			Type: "array",
		},
		"identity.individual.phone": {
			Type: "string",
		},
		"identity.individual.political_exposure": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "existing"},
				{Value: "none"},
			},
		},
		"identity.individual.relationship.director": {
			Type: "boolean",
		},
		"identity.individual.relationship.executive": {
			Type: "boolean",
		},
		"identity.individual.relationship.owner": {
			Type: "boolean",
		},
		"identity.individual.relationship.percent_ownership": {
			Type:   "string",
			Format: "decimal",
		},
		"identity.individual.relationship.title": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.city": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.country": {
			Type:     "string",
			Required: true,
		},
		"identity.individual.script_addresses.kana.line1": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.line2": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.postal_code": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.state": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.town": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.city": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.country": {
			Type:     "string",
			Required: true,
		},
		"identity.individual.script_addresses.kanji.line1": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.line2": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.postal_code": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.state": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.town": {
			Type: "string",
		},
		"identity.individual.script_names.kana.given_name": {
			Type: "string",
		},
		"identity.individual.script_names.kana.surname": {
			Type: "string",
		},
		"identity.individual.script_names.kanji.given_name": {
			Type: "string",
		},
		"identity.individual.script_names.kanji.surname": {
			Type: "string",
		},
		"identity.individual.surname": {
			Type: "string",
		},
		"include": {
			Type: "array",
		},
	},
}
View Source
var V2CoreAccountsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v2/core/accounts",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"applied_configurations": {
			Type: "array",
		},
		"closed": {
			Type: "boolean",
		},
		"limit": {
			Type: "integer",
		},
		"page": {
			Type: "string",
		},
	},
}
View Source
var V2CoreAccountsRetrieve = resource.OperationSpec{
	Name:   "retrieve",
	Path:   "/v2/core/accounts/{id}",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"include": {
			Type: "array",
		},
	},
}
View Source
var V2CoreAccountsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v2/core/accounts/{id}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"account_token": {
			Type: "string",
		},
		"configuration.customer.applied": {
			Type: "boolean",
		},
		"configuration.customer.automatic_indirect_tax.exempt": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "exempt"},
				{Value: "none"},
				{Value: "reverse"},
			},
		},
		"configuration.customer.automatic_indirect_tax.ip_address": {
			Type: "string",
		},
		"configuration.customer.automatic_indirect_tax.validate_location": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "auto"},
				{Value: "deferred"},
				{Value: "immediately"},
			},
		},
		"configuration.customer.billing.default_payment_method": {
			Type: "string",
		},
		"configuration.customer.billing.invoice.footer": {
			Type: "string",
		},
		"configuration.customer.billing.invoice.next_sequence": {
			Type: "integer",
		},
		"configuration.customer.billing.invoice.prefix": {
			Type: "string",
		},
		"configuration.customer.billing.invoice.rendering.amount_tax_display": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "exclude_tax"},
				{Value: "include_inclusive_tax"},
			},
		},
		"configuration.customer.billing.invoice.rendering.template": {
			Type: "string",
		},
		"configuration.customer.capabilities.automatic_indirect_tax.requested": {
			Type: "boolean",
		},
		"configuration.customer.shipping.address.city": {
			Type: "string",
		},
		"configuration.customer.shipping.address.country": {
			Type: "string",
		},
		"configuration.customer.shipping.address.line1": {
			Type: "string",
		},
		"configuration.customer.shipping.address.line2": {
			Type: "string",
		},
		"configuration.customer.shipping.address.postal_code": {
			Type: "string",
		},
		"configuration.customer.shipping.address.state": {
			Type: "string",
		},
		"configuration.customer.shipping.name": {
			Type: "string",
		},
		"configuration.customer.shipping.phone": {
			Type: "string",
		},
		"configuration.customer.test_clock": {
			Type: "string",
		},
		"configuration.merchant.applied": {
			Type: "boolean",
		},
		"configuration.merchant.bacs_debit_payments.display_name": {
			Type: "string",
		},
		"configuration.merchant.branding.icon": {
			Type: "string",
		},
		"configuration.merchant.branding.logo": {
			Type: "string",
		},
		"configuration.merchant.branding.primary_color": {
			Type: "string",
		},
		"configuration.merchant.branding.secondary_color": {
			Type: "string",
		},
		"configuration.merchant.capabilities.ach_debit_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.acss_debit_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.affirm_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.afterpay_clearpay_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.alma_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.amazon_pay_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.au_becs_debit_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.bacs_debit_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.bancontact_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.blik_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.boleto_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.card_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.cartes_bancaires_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.cashapp_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.eps_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.fpx_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.gb_bank_transfer_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.grabpay_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.ideal_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.jcb_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.jp_bank_transfer_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.kakao_pay_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.klarna_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.konbini_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.kr_card_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.link_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.mobilepay_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.multibanco_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.mx_bank_transfer_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.naver_pay_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.oxxo_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.p24_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.pay_by_bank_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.payco_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.paynow_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.promptpay_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.revolut_pay_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.samsung_pay_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.sepa_bank_transfer_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.sepa_debit_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.swish_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.twint_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.us_bank_transfer_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.zip_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.card_payments.decline_on.avs_failure": {
			Type: "boolean",
		},
		"configuration.merchant.card_payments.decline_on.cvc_failure": {
			Type: "boolean",
		},
		"configuration.merchant.konbini_payments.support.email": {
			Type: "string",
		},
		"configuration.merchant.konbini_payments.support.hours.end_time": {
			Type: "string",
		},
		"configuration.merchant.konbini_payments.support.hours.start_time": {
			Type: "string",
		},
		"configuration.merchant.konbini_payments.support.phone": {
			Type: "string",
		},
		"configuration.merchant.mcc": {
			Type: "string",
		},
		"configuration.merchant.script_statement_descriptor.kana.descriptor": {
			Type: "string",
		},
		"configuration.merchant.script_statement_descriptor.kana.prefix": {
			Type: "string",
		},
		"configuration.merchant.script_statement_descriptor.kanji.descriptor": {
			Type: "string",
		},
		"configuration.merchant.script_statement_descriptor.kanji.prefix": {
			Type: "string",
		},
		"configuration.merchant.statement_descriptor.descriptor": {
			Type: "string",
		},
		"configuration.merchant.statement_descriptor.prefix": {
			Type: "string",
		},
		"configuration.merchant.support.address.city": {
			Type: "string",
		},
		"configuration.merchant.support.address.country": {
			Type: "string",
		},
		"configuration.merchant.support.address.line1": {
			Type: "string",
		},
		"configuration.merchant.support.address.line2": {
			Type: "string",
		},
		"configuration.merchant.support.address.postal_code": {
			Type: "string",
		},
		"configuration.merchant.support.address.state": {
			Type: "string",
		},
		"configuration.merchant.support.address.town": {
			Type: "string",
		},
		"configuration.merchant.support.email": {
			Type: "string",
		},
		"configuration.merchant.support.phone": {
			Type: "string",
		},
		"configuration.merchant.support.url": {
			Type: "string",
		},
		"configuration.recipient.applied": {
			Type: "boolean",
		},
		"configuration.recipient.capabilities.stripe_balance.stripe_transfers.requested": {
			Type: "boolean",
		},
		"contact_email": {
			Type: "string",
		},
		"contact_phone": {
			Type: "string",
		},
		"dashboard": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "express"},
				{Value: "full"},
				{Value: "none"},
			},
		},
		"defaults.currency": {
			Type: "string",
		},
		"defaults.locales": {
			Type: "array",
		},
		"defaults.profile.business_url": {
			Type: "string",
		},
		"defaults.profile.doing_business_as": {
			Type: "string",
		},
		"defaults.profile.product_description": {
			Type: "string",
		},
		"defaults.responsibilities.fees_collector": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "application"},
				{Value: "application_custom"},
				{Value: "application_express"},
				{Value: "stripe"},
			},
		},
		"defaults.responsibilities.losses_collector": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "application"},
				{Value: "stripe"},
			},
		},
		"display_name": {
			Type: "string",
		},
		"identity.attestations.directorship_declaration.date": {
			Type:   "string",
			Format: "date-time",
		},
		"identity.attestations.directorship_declaration.ip": {
			Type: "string",
		},
		"identity.attestations.directorship_declaration.user_agent": {
			Type: "string",
		},
		"identity.attestations.ownership_declaration.date": {
			Type:   "string",
			Format: "date-time",
		},
		"identity.attestations.ownership_declaration.ip": {
			Type: "string",
		},
		"identity.attestations.ownership_declaration.user_agent": {
			Type: "string",
		},
		"identity.attestations.persons_provided.directors": {
			Type: "boolean",
		},
		"identity.attestations.persons_provided.executives": {
			Type: "boolean",
		},
		"identity.attestations.persons_provided.owners": {
			Type: "boolean",
		},
		"identity.attestations.persons_provided.ownership_exemption_reason": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "qualified_entity_exceeds_ownership_threshold"},
				{Value: "qualifies_as_financial_institution"},
			},
		},
		"identity.attestations.representative_declaration.date": {
			Type:   "string",
			Format: "date-time",
		},
		"identity.attestations.representative_declaration.ip": {
			Type: "string",
		},
		"identity.attestations.representative_declaration.user_agent": {
			Type: "string",
		},
		"identity.attestations.terms_of_service.account.date": {
			Type:   "string",
			Format: "date-time",
		},
		"identity.attestations.terms_of_service.account.ip": {
			Type: "string",
		},
		"identity.attestations.terms_of_service.account.user_agent": {
			Type: "string",
		},
		"identity.attestations.terms_of_service.crypto_storer.date": {
			Type:   "string",
			Format: "date-time",
		},
		"identity.attestations.terms_of_service.crypto_storer.ip": {
			Type: "string",
		},
		"identity.attestations.terms_of_service.crypto_storer.user_agent": {
			Type: "string",
		},
		"identity.attestations.terms_of_service.storer.date": {
			Type:   "string",
			Format: "date-time",
		},
		"identity.attestations.terms_of_service.storer.ip": {
			Type: "string",
		},
		"identity.attestations.terms_of_service.storer.user_agent": {
			Type: "string",
		},
		"identity.business_details.address.city": {
			Type: "string",
		},
		"identity.business_details.address.country": {
			Type: "string",
		},
		"identity.business_details.address.line1": {
			Type: "string",
		},
		"identity.business_details.address.line2": {
			Type: "string",
		},
		"identity.business_details.address.postal_code": {
			Type: "string",
		},
		"identity.business_details.address.state": {
			Type: "string",
		},
		"identity.business_details.address.town": {
			Type: "string",
		},
		"identity.business_details.annual_revenue.amount.currency": {
			Type:     "string",
			Required: true,
		},
		"identity.business_details.annual_revenue.amount.value": {
			Type:     "integer",
			Required: true,
		},
		"identity.business_details.annual_revenue.fiscal_year_end": {
			Type: "string",
		},
		"identity.business_details.documents.bank_account_ownership_verification.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.bank_account_ownership_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_license.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.company_license.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_memorandum_of_association.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.company_memorandum_of_association.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_ministerial_decree.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.company_ministerial_decree.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_registration_verification.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.company_registration_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_tax_id_verification.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.company_tax_id_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.primary_verification.front_back.back": {
			Type: "string",
		},
		"identity.business_details.documents.primary_verification.front_back.front": {
			Type: "string",
		},
		"identity.business_details.documents.primary_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"identity.business_details.documents.proof_of_address.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.proof_of_address.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.proof_of_registration.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.proof_of_registration.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.proof_of_ultimate_beneficial_ownership.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.proof_of_ultimate_beneficial_ownership.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.estimated_worker_count": {
			Type: "integer",
		},
		"identity.business_details.monthly_estimated_revenue.amount.currency": {
			Type:     "string",
			Required: true,
		},
		"identity.business_details.monthly_estimated_revenue.amount.value": {
			Type:     "integer",
			Required: true,
		},
		"identity.business_details.phone": {
			Type: "string",
		},
		"identity.business_details.registered_name": {
			Type: "string",
		},
		"identity.business_details.registration_date.day": {
			Type:     "integer",
			Required: true,
		},
		"identity.business_details.registration_date.month": {
			Type:     "integer",
			Required: true,
		},
		"identity.business_details.registration_date.year": {
			Type:     "integer",
			Required: true,
		},
		"identity.business_details.script_addresses.kana.city": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kana.country": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kana.line1": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kana.line2": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kana.postal_code": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kana.state": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kana.town": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.city": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.country": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.line1": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.line2": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.postal_code": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.state": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.town": {
			Type: "string",
		},
		"identity.business_details.script_names.kana.registered_name": {
			Type: "string",
		},
		"identity.business_details.script_names.kanji.registered_name": {
			Type: "string",
		},
		"identity.business_details.structure": {
			Type: "string",
			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",
		},
		"identity.entity_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "government_entity"},
				{Value: "individual"},
				{Value: "non_profit"},
			},
		},
		"identity.individual.address.city": {
			Type: "string",
		},
		"identity.individual.address.country": {
			Type: "string",
		},
		"identity.individual.address.line1": {
			Type: "string",
		},
		"identity.individual.address.line2": {
			Type: "string",
		},
		"identity.individual.address.postal_code": {
			Type: "string",
		},
		"identity.individual.address.state": {
			Type: "string",
		},
		"identity.individual.address.town": {
			Type: "string",
		},
		"identity.individual.date_of_birth.day": {
			Type:     "integer",
			Required: true,
		},
		"identity.individual.date_of_birth.month": {
			Type:     "integer",
			Required: true,
		},
		"identity.individual.date_of_birth.year": {
			Type:     "integer",
			Required: true,
		},
		"identity.individual.documents.company_authorization.files": {
			Type:     "array",
			Required: true,
		},
		"identity.individual.documents.company_authorization.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.individual.documents.passport.files": {
			Type:     "array",
			Required: true,
		},
		"identity.individual.documents.passport.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.individual.documents.primary_verification.front_back.back": {
			Type: "string",
		},
		"identity.individual.documents.primary_verification.front_back.front": {
			Type: "string",
		},
		"identity.individual.documents.primary_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"identity.individual.documents.secondary_verification.front_back.back": {
			Type: "string",
		},
		"identity.individual.documents.secondary_verification.front_back.front": {
			Type: "string",
		},
		"identity.individual.documents.secondary_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"identity.individual.documents.visa.files": {
			Type:     "array",
			Required: true,
		},
		"identity.individual.documents.visa.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.individual.email": {
			Type: "string",
		},
		"identity.individual.given_name": {
			Type: "string",
		},
		"identity.individual.legal_gender": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "female"},
				{Value: "male"},
			},
		},
		"identity.individual.nationalities": {
			Type: "array",
		},
		"identity.individual.phone": {
			Type: "string",
		},
		"identity.individual.political_exposure": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "existing"},
				{Value: "none"},
			},
		},
		"identity.individual.relationship.director": {
			Type: "boolean",
		},
		"identity.individual.relationship.executive": {
			Type: "boolean",
		},
		"identity.individual.relationship.owner": {
			Type: "boolean",
		},
		"identity.individual.relationship.percent_ownership": {
			Type:   "string",
			Format: "decimal",
		},
		"identity.individual.relationship.title": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.city": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.country": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.line1": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.line2": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.postal_code": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.state": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.town": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.city": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.country": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.line1": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.line2": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.postal_code": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.state": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.town": {
			Type: "string",
		},
		"identity.individual.script_names.kana.given_name": {
			Type: "string",
		},
		"identity.individual.script_names.kana.surname": {
			Type: "string",
		},
		"identity.individual.script_names.kanji.given_name": {
			Type: "string",
		},
		"identity.individual.script_names.kanji.surname": {
			Type: "string",
		},
		"identity.individual.surname": {
			Type: "string",
		},
		"include": {
			Type: "array",
		},
	},
}
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",
			Required: true,
		},
		"amazon_eventbridge.aws_region": {
			Type:     "string",
			Required: true,
		},
		"description": {
			Type: "string",
		},
		"enabled_events": {
			Type:     "array",
			Required: true,
		},
		"event_payload": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "snapshot"},
				{Value: "thin"},
			},
		},
		"events_from": {
			Type: "array",
		},
		"include": {
			Type: "array",
		},
		"name": {
			Type:     "string",
			Required: true,
		},
		"snapshot_api_version": {
			Type: "string",
		},
		"type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "amazon_eventbridge"},
				{Value: "webhook_endpoint"},
			},
		},
		"webhook_endpoint.url": {
			Type:     "string",
			Required: true,
		},
	},
}
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",
		},
		"limit": {
			Type: "integer",
		},
		"page": {
			Type: "string",
		},
	},
}
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",
		},
	},
}
View Source
var V2CoreEventDestinationsUpdate = resource.OperationSpec{
	Name:   "update",
	Path:   "/v2/core/event_destinations/{id}",
	Method: "POST",
	Params: map[string]*resource.ParamSpec{
		"description": {
			Type: "string",
		},
		"enabled_events": {
			Type: "array",
		},
		"include": {
			Type: "array",
		},
		"name": {
			Type: "string",
		},
		"webhook_endpoint.url": {
			Type:     "string",
			Required: true,
		},
	},
}
View Source
var V2CoreEventsList = resource.OperationSpec{
	Name:   "list",
	Path:   "/v2/core/events",
	Method: "GET",
	Params: map[string]*resource.ParamSpec{
		"limit": {
			Type: "integer",
		},
		"object_id": {
			Type: "string",
		},
		"page": {
			Type: "string",
		},
		"types": {
			Type: "array",
		},
	},
}
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",
		},
		"page": {
			Type: "string",
		},
	},
}
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",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "manual"},
			},
		},
		"display_name": {
			Type: "string",
		},
		"invoice.time_until_due.interval": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "month"},
				{Value: "week"},
				{Value: "year"},
			},
		},
		"invoice.time_until_due.interval_count": {
			Type:     "integer",
			Required: true,
		},
		"invoice_rendering_template": {
			Type: "string",
		},
		"lookup_key": {
			Type: "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",
		},
		"lookup_keys": {
			Type: "array",
		},
		"page": {
			Type: "string",
		},
	},
}
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",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "manual"},
			},
		},
		"display_name": {
			Type: "string",
		},
		"invoice.time_until_due.interval": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "month"},
				{Value: "week"},
				{Value: "year"},
			},
		},
		"invoice.time_until_due.interval_count": {
			Type:     "integer",
			Required: true,
		},
		"invoice_rendering_template": {
			Type: "string",
		},
		"live_version": {
			Type: "string",
		},
		"lookup_key": {
			Type: "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",
			Required: true,
		},
		"billing_cycle.day.time.minute": {
			Type:     "integer",
			Required: true,
		},
		"billing_cycle.day.time.second": {
			Type:     "integer",
			Required: true,
		},
		"billing_cycle.interval_count": {
			Type: "integer",
		},
		"billing_cycle.month.day_of_month": {
			Type:     "integer",
			Required: true,
		},
		"billing_cycle.month.month_of_year": {
			Type: "integer",
		},
		"billing_cycle.month.time.hour": {
			Type:     "integer",
			Required: true,
		},
		"billing_cycle.month.time.minute": {
			Type:     "integer",
			Required: true,
		},
		"billing_cycle.month.time.second": {
			Type:     "integer",
			Required: true,
		},
		"billing_cycle.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "day"},
				{Value: "month"},
				{Value: "week"},
				{Value: "year"},
			},
		},
		"billing_cycle.week.day_of_week": {
			Type:     "integer",
			Required: true,
		},
		"billing_cycle.week.time.hour": {
			Type:     "integer",
			Required: true,
		},
		"billing_cycle.week.time.minute": {
			Type:     "integer",
			Required: true,
		},
		"billing_cycle.week.time.second": {
			Type:     "integer",
			Required: true,
		},
		"billing_cycle.year.day_of_month": {
			Type: "integer",
		},
		"billing_cycle.year.month_of_year": {
			Type: "integer",
		},
		"billing_cycle.year.time.hour": {
			Type:     "integer",
			Required: true,
		},
		"billing_cycle.year.time.minute": {
			Type:     "integer",
			Required: true,
		},
		"billing_cycle.year.time.second": {
			Type:     "integer",
			Required: true,
		},
		"lookup_key": {
			Type: "string",
		},
		"payer.billing_profile": {
			Type:     "string",
			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",
		},
		"limit": {
			Type: "integer",
		},
		"lookup_keys": {
			Type: "array",
		},
		"page": {
			Type: "string",
		},
		"test_clock": {
			Type: "string",
		},
	},
}
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",
		},
	},
}
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",
		},
	},
}
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",
		},
		"page": {
			Type: "string",
		},
	},
}
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",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "send_invoice"},
			},
		},
		"display_name": {
			Type: "string",
		},
		"email_delivery.payment_due.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"email_delivery.payment_due.include_payment_link": {
			Type:     "boolean",
			Required: true,
		},
		"lookup_key": {
			Type: "string",
		},
		"payment_method_configuration": {
			Type: "string",
		},
		"payment_method_options.acss_debit.mandate_options.transaction_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "business"},
				{Value: "personal"},
			},
		},
		"payment_method_options.acss_debit.verification_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "instant"},
				{Value: "microdeposits"},
			},
		},
		"payment_method_options.bancontact.preferred_language": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "de"},
				{Value: "en"},
				{Value: "fr"},
				{Value: "nl"},
			},
		},
		"payment_method_options.card.mandate_options.amount": {
			Type:   "string",
			Format: "int64",
		},
		"payment_method_options.card.mandate_options.amount_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_options.card.mandate_options.description": {
			Type: "string",
		},
		"payment_method_options.card.network": {
			Type: "string",
		},
		"payment_method_options.card.request_three_d_secure": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "any"},
				{Value: "automatic"},
				{Value: "challenge"},
			},
		},
		"payment_method_options.customer_balance.bank_transfer.eu_bank_transfer.country": {
			Type:     "string",
			Required: true,
			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",
			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",
			Enum: []resource.EnumSpec{
				{Value: "bank_transfer"},
			},
		},
		"payment_method_options.us_bank_account.financial_connections.filters.account_subcategories": {
			Type: "array",
		},
		"payment_method_options.us_bank_account.financial_connections.permissions": {
			Type: "array",
		},
		"payment_method_options.us_bank_account.financial_connections.prefetch": {
			Type: "array",
		},
		"payment_method_options.us_bank_account.verification_method": {
			Type:     "string",
			Required: true,
			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",
		},
		"lookup_keys": {
			Type: "array",
		},
		"page": {
			Type: "string",
		},
	},
}
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",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "send_invoice"},
			},
		},
		"display_name": {
			Type: "string",
		},
		"email_delivery.payment_due.enabled": {
			Type:     "boolean",
			Required: true,
		},
		"email_delivery.payment_due.include_payment_link": {
			Type:     "boolean",
			Required: true,
		},
		"live_version": {
			Type: "string",
		},
		"lookup_key": {
			Type: "string",
		},
		"payment_method_configuration": {
			Type: "string",
		},
		"payment_method_options.acss_debit.mandate_options.transaction_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "business"},
				{Value: "personal"},
			},
		},
		"payment_method_options.acss_debit.verification_method": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "instant"},
				{Value: "microdeposits"},
			},
		},
		"payment_method_options.bancontact.preferred_language": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "de"},
				{Value: "en"},
				{Value: "fr"},
				{Value: "nl"},
			},
		},
		"payment_method_options.card.mandate_options.amount": {
			Type:   "string",
			Format: "int64",
		},
		"payment_method_options.card.mandate_options.amount_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "fixed"},
				{Value: "maximum"},
			},
		},
		"payment_method_options.card.mandate_options.description": {
			Type: "string",
		},
		"payment_method_options.card.network": {
			Type: "string",
		},
		"payment_method_options.card.request_three_d_secure": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "any"},
				{Value: "automatic"},
				{Value: "challenge"},
			},
		},
		"payment_method_options.customer_balance.bank_transfer.eu_bank_transfer.country": {
			Type:     "string",
			Required: true,
			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",
			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",
			Enum: []resource.EnumSpec{
				{Value: "bank_transfer"},
			},
		},
		"payment_method_options.us_bank_account.financial_connections.filters.account_subcategories": {
			Type: "array",
		},
		"payment_method_options.us_bank_account.financial_connections.permissions": {
			Type: "array",
		},
		"payment_method_options.us_bank_account.financial_connections.prefetch": {
			Type: "array",
		},
		"payment_method_options.us_bank_account.verification_method": {
			Type:     "string",
			Required: true,
			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",
			Required: true,
		},
		"event_name": {
			Type:     "string",
			Required: true,
		},
		"type": {
			Type:     "string",
			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",
			Required: true,
		},
		"identifier": {
			Type: "string",
		},
		"timestamp": {
			Type:   "string",
			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",
			Required: true,
		},
		"default_payment_method": {
			Type: "string",
		},
		"display_name": {
			Type: "string",
		},
		"lookup_key": {
			Type: "string",
		},
	},
}
View Source
var V2PreviewBillingProfilesList = resource.OperationSpec{
	Name:      "list",
	Path:      "/v2/billing/profiles",
	Method:    "GET",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"customer": {
			Type: "string",
		},
		"default_payment_method": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"lookup_keys": {
			Type:     "array",
			Required: true,
		},
		"page": {
			Type: "string",
		},
		"status": {
			Type: "string",
			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",
		},
		"display_name": {
			Type: "string",
		},
		"lookup_key": {
			Type: "string",
		},
	},
}
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",
			Required: true,
		},
		"use_case.account_onboarding.collection_options.fields": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "currently_due"},
				{Value: "eventually_due"},
			},
		},
		"use_case.account_onboarding.collection_options.future_requirements": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "include"},
				{Value: "omit"},
			},
		},
		"use_case.account_onboarding.configurations": {
			Type:     "array",
			Required: true,
		},
		"use_case.account_onboarding.refresh_url": {
			Type:     "string",
			Required: true,
		},
		"use_case.account_onboarding.return_url": {
			Type: "string",
		},
		"use_case.account_update.collection_options.fields": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "currently_due"},
				{Value: "eventually_due"},
			},
		},
		"use_case.account_update.collection_options.future_requirements": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "include"},
				{Value: "omit"},
			},
		},
		"use_case.account_update.configurations": {
			Type:     "array",
			Required: true,
		},
		"use_case.account_update.refresh_url": {
			Type:     "string",
			Required: true,
		},
		"use_case.account_update.return_url": {
			Type: "string",
		},
		"use_case.type": {
			Type:     "string",
			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",
		},
		"address.city": {
			Type: "string",
		},
		"address.country": {
			Type: "string",
		},
		"address.line1": {
			Type: "string",
		},
		"address.line2": {
			Type: "string",
		},
		"address.postal_code": {
			Type: "string",
		},
		"address.state": {
			Type: "string",
		},
		"address.town": {
			Type: "string",
		},
		"date_of_birth.day": {
			Type:     "integer",
			Required: true,
		},
		"date_of_birth.month": {
			Type:     "integer",
			Required: true,
		},
		"date_of_birth.year": {
			Type:     "integer",
			Required: true,
		},
		"documents.company_authorization.files": {
			Type:     "array",
			Required: true,
		},
		"documents.company_authorization.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"documents.passport.files": {
			Type:     "array",
			Required: true,
		},
		"documents.passport.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"documents.primary_verification.front_back.back": {
			Type: "string",
		},
		"documents.primary_verification.front_back.front": {
			Type: "string",
		},
		"documents.primary_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"documents.secondary_verification.front_back.back": {
			Type: "string",
		},
		"documents.secondary_verification.front_back.front": {
			Type: "string",
		},
		"documents.secondary_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"documents.visa.files": {
			Type:     "array",
			Required: true,
		},
		"documents.visa.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"email": {
			Type: "string",
		},
		"given_name": {
			Type: "string",
		},
		"legal_gender": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "female"},
				{Value: "male"},
			},
		},
		"nationalities": {
			Type: "array",
		},
		"phone": {
			Type: "string",
		},
		"political_exposure": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "existing"},
				{Value: "none"},
			},
		},
		"relationship.authorizer": {
			Type: "boolean",
		},
		"relationship.director": {
			Type: "boolean",
		},
		"relationship.executive": {
			Type: "boolean",
		},
		"relationship.legal_guardian": {
			Type: "boolean",
		},
		"relationship.owner": {
			Type: "boolean",
		},
		"relationship.percent_ownership": {
			Type:   "string",
			Format: "decimal",
		},
		"relationship.representative": {
			Type: "boolean",
		},
		"relationship.title": {
			Type: "string",
		},
		"script_addresses.kana.city": {
			Type: "string",
		},
		"script_addresses.kana.country": {
			Type: "string",
		},
		"script_addresses.kana.line1": {
			Type: "string",
		},
		"script_addresses.kana.line2": {
			Type: "string",
		},
		"script_addresses.kana.postal_code": {
			Type: "string",
		},
		"script_addresses.kana.state": {
			Type: "string",
		},
		"script_addresses.kana.town": {
			Type: "string",
		},
		"script_addresses.kanji.city": {
			Type: "string",
		},
		"script_addresses.kanji.country": {
			Type: "string",
		},
		"script_addresses.kanji.line1": {
			Type: "string",
		},
		"script_addresses.kanji.line2": {
			Type: "string",
		},
		"script_addresses.kanji.postal_code": {
			Type: "string",
		},
		"script_addresses.kanji.state": {
			Type: "string",
		},
		"script_addresses.kanji.town": {
			Type: "string",
		},
		"script_names.kana.given_name": {
			Type: "string",
		},
		"script_names.kana.surname": {
			Type: "string",
		},
		"script_names.kanji.given_name": {
			Type: "string",
		},
		"script_names.kanji.surname": {
			Type: "string",
		},
		"surname": {
			Type: "string",
		},
	},
}
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",
			Required: true,
			Format:   "date-time",
		},
		"additional_terms_of_service.account.ip": {
			Type:     "string",
			Required: true,
		},
		"additional_terms_of_service.account.user_agent": {
			Type: "string",
		},
		"address.city": {
			Type: "string",
		},
		"address.country": {
			Type:     "string",
			Required: true,
		},
		"address.line1": {
			Type: "string",
		},
		"address.line2": {
			Type: "string",
		},
		"address.postal_code": {
			Type: "string",
		},
		"address.state": {
			Type: "string",
		},
		"address.town": {
			Type: "string",
		},
		"date_of_birth.day": {
			Type:     "integer",
			Required: true,
		},
		"date_of_birth.month": {
			Type:     "integer",
			Required: true,
		},
		"date_of_birth.year": {
			Type:     "integer",
			Required: true,
		},
		"documents.company_authorization.files": {
			Type:     "array",
			Required: true,
		},
		"documents.company_authorization.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"documents.passport.files": {
			Type:     "array",
			Required: true,
		},
		"documents.passport.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"documents.primary_verification.front_back.back": {
			Type: "string",
		},
		"documents.primary_verification.front_back.front": {
			Type:     "string",
			Required: true,
		},
		"documents.primary_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"documents.secondary_verification.front_back.back": {
			Type: "string",
		},
		"documents.secondary_verification.front_back.front": {
			Type:     "string",
			Required: true,
		},
		"documents.secondary_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"documents.visa.files": {
			Type:     "array",
			Required: true,
		},
		"documents.visa.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"email": {
			Type: "string",
		},
		"given_name": {
			Type: "string",
		},
		"legal_gender": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "female"},
				{Value: "male"},
			},
		},
		"nationalities": {
			Type: "array",
		},
		"person_token": {
			Type: "string",
		},
		"phone": {
			Type: "string",
		},
		"political_exposure": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "existing"},
				{Value: "none"},
			},
		},
		"relationship.authorizer": {
			Type: "boolean",
		},
		"relationship.director": {
			Type: "boolean",
		},
		"relationship.executive": {
			Type: "boolean",
		},
		"relationship.legal_guardian": {
			Type: "boolean",
		},
		"relationship.owner": {
			Type: "boolean",
		},
		"relationship.percent_ownership": {
			Type:   "string",
			Format: "decimal",
		},
		"relationship.representative": {
			Type: "boolean",
		},
		"relationship.title": {
			Type: "string",
		},
		"script_addresses.kana.city": {
			Type: "string",
		},
		"script_addresses.kana.country": {
			Type:     "string",
			Required: true,
		},
		"script_addresses.kana.line1": {
			Type: "string",
		},
		"script_addresses.kana.line2": {
			Type: "string",
		},
		"script_addresses.kana.postal_code": {
			Type: "string",
		},
		"script_addresses.kana.state": {
			Type: "string",
		},
		"script_addresses.kana.town": {
			Type: "string",
		},
		"script_addresses.kanji.city": {
			Type: "string",
		},
		"script_addresses.kanji.country": {
			Type:     "string",
			Required: true,
		},
		"script_addresses.kanji.line1": {
			Type: "string",
		},
		"script_addresses.kanji.line2": {
			Type: "string",
		},
		"script_addresses.kanji.postal_code": {
			Type: "string",
		},
		"script_addresses.kanji.state": {
			Type: "string",
		},
		"script_addresses.kanji.town": {
			Type: "string",
		},
		"script_names.kana.given_name": {
			Type: "string",
		},
		"script_names.kana.surname": {
			Type: "string",
		},
		"script_names.kanji.given_name": {
			Type: "string",
		},
		"script_names.kanji.surname": {
			Type: "string",
		},
		"surname": {
			Type: "string",
		},
	},
}
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",
		},
		"page": {
			Type: "string",
		},
	},
}
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",
			Format: "date-time",
		},
		"additional_terms_of_service.account.ip": {
			Type: "string",
		},
		"additional_terms_of_service.account.user_agent": {
			Type: "string",
		},
		"address.city": {
			Type: "string",
		},
		"address.country": {
			Type: "string",
		},
		"address.line1": {
			Type: "string",
		},
		"address.line2": {
			Type: "string",
		},
		"address.postal_code": {
			Type: "string",
		},
		"address.state": {
			Type: "string",
		},
		"address.town": {
			Type: "string",
		},
		"date_of_birth.day": {
			Type:     "integer",
			Required: true,
		},
		"date_of_birth.month": {
			Type:     "integer",
			Required: true,
		},
		"date_of_birth.year": {
			Type:     "integer",
			Required: true,
		},
		"documents.company_authorization.files": {
			Type:     "array",
			Required: true,
		},
		"documents.company_authorization.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"documents.passport.files": {
			Type:     "array",
			Required: true,
		},
		"documents.passport.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"documents.primary_verification.front_back.back": {
			Type: "string",
		},
		"documents.primary_verification.front_back.front": {
			Type: "string",
		},
		"documents.primary_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"documents.secondary_verification.front_back.back": {
			Type: "string",
		},
		"documents.secondary_verification.front_back.front": {
			Type: "string",
		},
		"documents.secondary_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"documents.visa.files": {
			Type:     "array",
			Required: true,
		},
		"documents.visa.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"email": {
			Type: "string",
		},
		"given_name": {
			Type: "string",
		},
		"legal_gender": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "female"},
				{Value: "male"},
			},
		},
		"nationalities": {
			Type: "array",
		},
		"person_token": {
			Type: "string",
		},
		"phone": {
			Type: "string",
		},
		"political_exposure": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "existing"},
				{Value: "none"},
			},
		},
		"relationship.authorizer": {
			Type: "boolean",
		},
		"relationship.director": {
			Type: "boolean",
		},
		"relationship.executive": {
			Type: "boolean",
		},
		"relationship.legal_guardian": {
			Type: "boolean",
		},
		"relationship.owner": {
			Type: "boolean",
		},
		"relationship.percent_ownership": {
			Type:   "string",
			Format: "decimal",
		},
		"relationship.representative": {
			Type: "boolean",
		},
		"relationship.title": {
			Type: "string",
		},
		"script_addresses.kana.city": {
			Type: "string",
		},
		"script_addresses.kana.country": {
			Type: "string",
		},
		"script_addresses.kana.line1": {
			Type: "string",
		},
		"script_addresses.kana.line2": {
			Type: "string",
		},
		"script_addresses.kana.postal_code": {
			Type: "string",
		},
		"script_addresses.kana.state": {
			Type: "string",
		},
		"script_addresses.kana.town": {
			Type: "string",
		},
		"script_addresses.kanji.city": {
			Type: "string",
		},
		"script_addresses.kanji.country": {
			Type: "string",
		},
		"script_addresses.kanji.line1": {
			Type: "string",
		},
		"script_addresses.kanji.line2": {
			Type: "string",
		},
		"script_addresses.kanji.postal_code": {
			Type: "string",
		},
		"script_addresses.kanji.state": {
			Type: "string",
		},
		"script_addresses.kanji.town": {
			Type: "string",
		},
		"script_names.kana.given_name": {
			Type: "string",
		},
		"script_names.kana.surname": {
			Type: "string",
		},
		"script_names.kanji.given_name": {
			Type: "string",
		},
		"script_names.kanji.surname": {
			Type: "string",
		},
		"surname": {
			Type: "string",
		},
	},
}
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",
		},
		"contact_phone": {
			Type: "string",
		},
		"display_name": {
			Type: "string",
		},
		"identity.attestations.directorship_declaration.attested": {
			Type: "boolean",
		},
		"identity.attestations.ownership_declaration.attested": {
			Type: "boolean",
		},
		"identity.attestations.persons_provided.directors": {
			Type: "boolean",
		},
		"identity.attestations.persons_provided.executives": {
			Type: "boolean",
		},
		"identity.attestations.persons_provided.owners": {
			Type: "boolean",
		},
		"identity.attestations.persons_provided.ownership_exemption_reason": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "qualified_entity_exceeds_ownership_threshold"},
				{Value: "qualifies_as_financial_institution"},
			},
		},
		"identity.attestations.representative_declaration.attested": {
			Type: "boolean",
		},
		"identity.attestations.terms_of_service.account.shown_and_accepted": {
			Type: "boolean",
		},
		"identity.attestations.terms_of_service.storer.shown_and_accepted": {
			Type: "boolean",
		},
		"identity.business_details.address.city": {
			Type: "string",
		},
		"identity.business_details.address.country": {
			Type: "string",
		},
		"identity.business_details.address.line1": {
			Type: "string",
		},
		"identity.business_details.address.line2": {
			Type: "string",
		},
		"identity.business_details.address.postal_code": {
			Type: "string",
		},
		"identity.business_details.address.state": {
			Type: "string",
		},
		"identity.business_details.address.town": {
			Type: "string",
		},
		"identity.business_details.annual_revenue.amount.currency": {
			Type:     "string",
			Required: true,
		},
		"identity.business_details.annual_revenue.amount.value": {
			Type:     "integer",
			Required: true,
		},
		"identity.business_details.annual_revenue.fiscal_year_end": {
			Type: "string",
		},
		"identity.business_details.documents.bank_account_ownership_verification.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.bank_account_ownership_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_license.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.company_license.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_memorandum_of_association.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.company_memorandum_of_association.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_ministerial_decree.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.company_ministerial_decree.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_registration_verification.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.company_registration_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_tax_id_verification.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.company_tax_id_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.primary_verification.front_back.back": {
			Type: "string",
		},
		"identity.business_details.documents.primary_verification.front_back.front": {
			Type: "string",
		},
		"identity.business_details.documents.primary_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"identity.business_details.documents.proof_of_address.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.proof_of_address.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.proof_of_registration.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.proof_of_registration.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.proof_of_ultimate_beneficial_ownership.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.proof_of_ultimate_beneficial_ownership.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.estimated_worker_count": {
			Type: "integer",
		},
		"identity.business_details.monthly_estimated_revenue.amount.currency": {
			Type:     "string",
			Required: true,
		},
		"identity.business_details.monthly_estimated_revenue.amount.value": {
			Type:     "integer",
			Required: true,
		},
		"identity.business_details.phone": {
			Type: "string",
		},
		"identity.business_details.registered_name": {
			Type: "string",
		},
		"identity.business_details.registration_date.day": {
			Type:     "integer",
			Required: true,
		},
		"identity.business_details.registration_date.month": {
			Type:     "integer",
			Required: true,
		},
		"identity.business_details.registration_date.year": {
			Type:     "integer",
			Required: true,
		},
		"identity.business_details.script_addresses.kana.city": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kana.country": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kana.line1": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kana.line2": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kana.postal_code": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kana.state": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kana.town": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.city": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.country": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.line1": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.line2": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.postal_code": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.state": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.town": {
			Type: "string",
		},
		"identity.business_details.script_names.kana.registered_name": {
			Type: "string",
		},
		"identity.business_details.script_names.kanji.registered_name": {
			Type: "string",
		},
		"identity.business_details.structure": {
			Type: "string",
			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",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "government_entity"},
				{Value: "individual"},
				{Value: "non_profit"},
			},
		},
		"identity.individual.address.city": {
			Type: "string",
		},
		"identity.individual.address.country": {
			Type: "string",
		},
		"identity.individual.address.line1": {
			Type: "string",
		},
		"identity.individual.address.line2": {
			Type: "string",
		},
		"identity.individual.address.postal_code": {
			Type: "string",
		},
		"identity.individual.address.state": {
			Type: "string",
		},
		"identity.individual.address.town": {
			Type: "string",
		},
		"identity.individual.date_of_birth.day": {
			Type:     "integer",
			Required: true,
		},
		"identity.individual.date_of_birth.month": {
			Type:     "integer",
			Required: true,
		},
		"identity.individual.date_of_birth.year": {
			Type:     "integer",
			Required: true,
		},
		"identity.individual.documents.company_authorization.files": {
			Type:     "array",
			Required: true,
		},
		"identity.individual.documents.company_authorization.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.individual.documents.passport.files": {
			Type:     "array",
			Required: true,
		},
		"identity.individual.documents.passport.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.individual.documents.primary_verification.front_back.back": {
			Type: "string",
		},
		"identity.individual.documents.primary_verification.front_back.front": {
			Type: "string",
		},
		"identity.individual.documents.primary_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"identity.individual.documents.secondary_verification.front_back.back": {
			Type: "string",
		},
		"identity.individual.documents.secondary_verification.front_back.front": {
			Type: "string",
		},
		"identity.individual.documents.secondary_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"identity.individual.documents.visa.files": {
			Type:     "array",
			Required: true,
		},
		"identity.individual.documents.visa.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.individual.email": {
			Type: "string",
		},
		"identity.individual.given_name": {
			Type: "string",
		},
		"identity.individual.legal_gender": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "female"},
				{Value: "male"},
			},
		},
		"identity.individual.nationalities": {
			Type: "array",
		},
		"identity.individual.phone": {
			Type: "string",
		},
		"identity.individual.political_exposure": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "existing"},
				{Value: "none"},
			},
		},
		"identity.individual.relationship.director": {
			Type: "boolean",
		},
		"identity.individual.relationship.executive": {
			Type: "boolean",
		},
		"identity.individual.relationship.owner": {
			Type: "boolean",
		},
		"identity.individual.relationship.percent_ownership": {
			Type:   "string",
			Format: "decimal",
		},
		"identity.individual.relationship.title": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.city": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.country": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.line1": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.line2": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.postal_code": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.state": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.town": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.city": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.country": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.line1": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.line2": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.postal_code": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.state": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.town": {
			Type: "string",
		},
		"identity.individual.script_names.kana.given_name": {
			Type: "string",
		},
		"identity.individual.script_names.kana.surname": {
			Type: "string",
		},
		"identity.individual.script_names.kanji.given_name": {
			Type: "string",
		},
		"identity.individual.script_names.kanji.surname": {
			Type: "string",
		},
		"identity.individual.surname": {
			Type: "string",
		},
	},
}
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",
		},
	},
}
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",
		},
		"configuration.customer.automatic_indirect_tax.exempt": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "exempt"},
				{Value: "none"},
				{Value: "reverse"},
			},
		},
		"configuration.customer.automatic_indirect_tax.ip_address": {
			Type: "string",
		},
		"configuration.customer.automatic_indirect_tax.location_source": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "identity_address"},
				{Value: "ip_address"},
				{Value: "payment_method"},
				{Value: "shipping_address"},
			},
		},
		"configuration.customer.billing.invoice.footer": {
			Type: "string",
		},
		"configuration.customer.billing.invoice.next_sequence": {
			Type: "integer",
		},
		"configuration.customer.billing.invoice.prefix": {
			Type: "string",
		},
		"configuration.customer.billing.invoice.rendering.amount_tax_display": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "exclude_tax"},
				{Value: "include_inclusive_tax"},
			},
		},
		"configuration.customer.billing.invoice.rendering.template": {
			Type: "string",
		},
		"configuration.customer.capabilities.automatic_indirect_tax.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.customer.shipping.address.city": {
			Type: "string",
		},
		"configuration.customer.shipping.address.country": {
			Type: "string",
		},
		"configuration.customer.shipping.address.line1": {
			Type: "string",
		},
		"configuration.customer.shipping.address.line2": {
			Type: "string",
		},
		"configuration.customer.shipping.address.postal_code": {
			Type: "string",
		},
		"configuration.customer.shipping.address.state": {
			Type: "string",
		},
		"configuration.customer.shipping.name": {
			Type: "string",
		},
		"configuration.customer.shipping.phone": {
			Type: "string",
		},
		"configuration.customer.test_clock": {
			Type: "string",
		},
		"configuration.merchant.bacs_debit_payments.display_name": {
			Type: "string",
		},
		"configuration.merchant.branding.icon": {
			Type: "string",
		},
		"configuration.merchant.branding.logo": {
			Type: "string",
		},
		"configuration.merchant.branding.primary_color": {
			Type: "string",
		},
		"configuration.merchant.branding.secondary_color": {
			Type: "string",
		},
		"configuration.merchant.capabilities.ach_debit_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.acss_debit_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.affirm_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.afterpay_clearpay_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.alma_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.amazon_pay_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.au_becs_debit_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.bacs_debit_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.bancontact_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.blik_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.boleto_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.card_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.cartes_bancaires_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.cashapp_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.eps_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.fpx_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.gb_bank_transfer_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.grabpay_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.ideal_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.jcb_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.jp_bank_transfer_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.kakao_pay_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.klarna_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.konbini_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.kr_card_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.link_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.mobilepay_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.multibanco_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.mx_bank_transfer_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.naver_pay_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.oxxo_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.p24_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.pay_by_bank_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.payco_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.paynow_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.promptpay_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.revolut_pay_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.samsung_pay_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.sepa_bank_transfer_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.sepa_debit_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.swish_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.twint_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.us_bank_transfer_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.capabilities.zip_payments.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.merchant.card_payments.decline_on.avs_failure": {
			Type: "boolean",
		},
		"configuration.merchant.card_payments.decline_on.cvc_failure": {
			Type: "boolean",
		},
		"configuration.merchant.konbini_payments.support.email": {
			Type: "string",
		},
		"configuration.merchant.konbini_payments.support.hours.end_time": {
			Type: "string",
		},
		"configuration.merchant.konbini_payments.support.hours.start_time": {
			Type: "string",
		},
		"configuration.merchant.konbini_payments.support.phone": {
			Type: "string",
		},
		"configuration.merchant.mcc": {
			Type: "string",
		},
		"configuration.merchant.script_statement_descriptor.kana.descriptor": {
			Type: "string",
		},
		"configuration.merchant.script_statement_descriptor.kana.prefix": {
			Type: "string",
		},
		"configuration.merchant.script_statement_descriptor.kanji.descriptor": {
			Type: "string",
		},
		"configuration.merchant.script_statement_descriptor.kanji.prefix": {
			Type: "string",
		},
		"configuration.merchant.smart_disputes.auto_respond.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "inherit"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"configuration.merchant.statement_descriptor.descriptor": {
			Type: "string",
		},
		"configuration.merchant.statement_descriptor.prefix": {
			Type: "string",
		},
		"configuration.merchant.support.address.city": {
			Type: "string",
		},
		"configuration.merchant.support.address.country": {
			Type:     "string",
			Required: true,
		},
		"configuration.merchant.support.address.line1": {
			Type: "string",
		},
		"configuration.merchant.support.address.line2": {
			Type: "string",
		},
		"configuration.merchant.support.address.postal_code": {
			Type: "string",
		},
		"configuration.merchant.support.address.state": {
			Type: "string",
		},
		"configuration.merchant.support.address.town": {
			Type: "string",
		},
		"configuration.merchant.support.email": {
			Type: "string",
		},
		"configuration.merchant.support.phone": {
			Type: "string",
		},
		"configuration.merchant.support.url": {
			Type: "string",
		},
		"configuration.recipient.capabilities.bank_accounts.local.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.recipient.capabilities.bank_accounts.wire.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.recipient.capabilities.cards.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.recipient.capabilities.stripe_balance.stripe_transfers.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.storer.capabilities.financial_addresses.bank_accounts.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.storer.capabilities.holds_currencies.eur.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.storer.capabilities.holds_currencies.gbp.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.storer.capabilities.holds_currencies.usd.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.storer.capabilities.inbound_transfers.bank_accounts.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.storer.capabilities.outbound_payments.bank_accounts.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.storer.capabilities.outbound_payments.cards.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.storer.capabilities.outbound_payments.financial_accounts.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.storer.capabilities.outbound_transfers.bank_accounts.requested": {
			Type:     "boolean",
			Required: true,
		},
		"configuration.storer.capabilities.outbound_transfers.financial_accounts.requested": {
			Type:     "boolean",
			Required: true,
		},
		"contact_email": {
			Type: "string",
		},
		"contact_phone": {
			Type: "string",
		},
		"dashboard": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "express"},
				{Value: "full"},
				{Value: "none"},
			},
		},
		"defaults.currency": {
			Type: "string",
		},
		"defaults.locales": {
			Type: "array",
		},
		"defaults.profile.business_url": {
			Type: "string",
		},
		"defaults.profile.doing_business_as": {
			Type: "string",
		},
		"defaults.profile.product_description": {
			Type: "string",
		},
		"defaults.responsibilities.fees_collector": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "application"},
				{Value: "application_custom"},
				{Value: "application_express"},
				{Value: "stripe"},
			},
		},
		"defaults.responsibilities.losses_collector": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "application"},
				{Value: "stripe"},
			},
		},
		"defaults.timezone": {
			Type: "string",
		},
		"display_name": {
			Type: "string",
		},
		"identity.attestations.directorship_declaration.date": {
			Type:   "string",
			Format: "date-time",
		},
		"identity.attestations.directorship_declaration.ip": {
			Type: "string",
		},
		"identity.attestations.directorship_declaration.user_agent": {
			Type: "string",
		},
		"identity.attestations.ownership_declaration.date": {
			Type:   "string",
			Format: "date-time",
		},
		"identity.attestations.ownership_declaration.ip": {
			Type: "string",
		},
		"identity.attestations.ownership_declaration.user_agent": {
			Type: "string",
		},
		"identity.attestations.persons_provided.directors": {
			Type: "boolean",
		},
		"identity.attestations.persons_provided.executives": {
			Type: "boolean",
		},
		"identity.attestations.persons_provided.owners": {
			Type: "boolean",
		},
		"identity.attestations.persons_provided.ownership_exemption_reason": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "qualified_entity_exceeds_ownership_threshold"},
				{Value: "qualifies_as_financial_institution"},
			},
		},
		"identity.attestations.representative_declaration.date": {
			Type:   "string",
			Format: "date-time",
		},
		"identity.attestations.representative_declaration.ip": {
			Type: "string",
		},
		"identity.attestations.representative_declaration.user_agent": {
			Type: "string",
		},
		"identity.attestations.terms_of_service.account.date": {
			Type:     "string",
			Required: true,
			Format:   "date-time",
		},
		"identity.attestations.terms_of_service.account.ip": {
			Type:     "string",
			Required: true,
		},
		"identity.attestations.terms_of_service.account.user_agent": {
			Type: "string",
		},
		"identity.attestations.terms_of_service.storer.date": {
			Type:     "string",
			Required: true,
			Format:   "date-time",
		},
		"identity.attestations.terms_of_service.storer.ip": {
			Type:     "string",
			Required: true,
		},
		"identity.attestations.terms_of_service.storer.user_agent": {
			Type: "string",
		},
		"identity.business_details.address.city": {
			Type: "string",
		},
		"identity.business_details.address.country": {
			Type:     "string",
			Required: true,
		},
		"identity.business_details.address.line1": {
			Type: "string",
		},
		"identity.business_details.address.line2": {
			Type: "string",
		},
		"identity.business_details.address.postal_code": {
			Type: "string",
		},
		"identity.business_details.address.state": {
			Type: "string",
		},
		"identity.business_details.address.town": {
			Type: "string",
		},
		"identity.business_details.annual_revenue.amount.currency": {
			Type:     "string",
			Required: true,
		},
		"identity.business_details.annual_revenue.amount.value": {
			Type:     "integer",
			Required: true,
		},
		"identity.business_details.annual_revenue.fiscal_year_end": {
			Type: "string",
		},
		"identity.business_details.documents.bank_account_ownership_verification.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.bank_account_ownership_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_license.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.company_license.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_memorandum_of_association.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.company_memorandum_of_association.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_ministerial_decree.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.company_ministerial_decree.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_registration_verification.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.company_registration_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_tax_id_verification.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.company_tax_id_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.primary_verification.front_back.back": {
			Type: "string",
		},
		"identity.business_details.documents.primary_verification.front_back.front": {
			Type:     "string",
			Required: true,
		},
		"identity.business_details.documents.primary_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"identity.business_details.documents.proof_of_address.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.proof_of_address.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.proof_of_registration.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.proof_of_registration.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.proof_of_ultimate_beneficial_ownership.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.proof_of_ultimate_beneficial_ownership.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.estimated_worker_count": {
			Type: "integer",
		},
		"identity.business_details.monthly_estimated_revenue.amount.currency": {
			Type:     "string",
			Required: true,
		},
		"identity.business_details.monthly_estimated_revenue.amount.value": {
			Type:     "integer",
			Required: true,
		},
		"identity.business_details.phone": {
			Type: "string",
		},
		"identity.business_details.registered_name": {
			Type: "string",
		},
		"identity.business_details.registration_date.day": {
			Type:     "integer",
			Required: true,
		},
		"identity.business_details.registration_date.month": {
			Type:     "integer",
			Required: true,
		},
		"identity.business_details.registration_date.year": {
			Type:     "integer",
			Required: true,
		},
		"identity.business_details.script_addresses.kana.city": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kana.country": {
			Type:     "string",
			Required: true,
		},
		"identity.business_details.script_addresses.kana.line1": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kana.line2": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kana.postal_code": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kana.state": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kana.town": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.city": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.country": {
			Type:     "string",
			Required: true,
		},
		"identity.business_details.script_addresses.kanji.line1": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.line2": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.postal_code": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.state": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.town": {
			Type: "string",
		},
		"identity.business_details.script_names.kana.registered_name": {
			Type: "string",
		},
		"identity.business_details.script_names.kanji.registered_name": {
			Type: "string",
		},
		"identity.business_details.structure": {
			Type: "string",
			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",
		},
		"identity.entity_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "government_entity"},
				{Value: "individual"},
				{Value: "non_profit"},
			},
		},
		"identity.individual.address.city": {
			Type: "string",
		},
		"identity.individual.address.country": {
			Type:     "string",
			Required: true,
		},
		"identity.individual.address.line1": {
			Type: "string",
		},
		"identity.individual.address.line2": {
			Type: "string",
		},
		"identity.individual.address.postal_code": {
			Type: "string",
		},
		"identity.individual.address.state": {
			Type: "string",
		},
		"identity.individual.address.town": {
			Type: "string",
		},
		"identity.individual.date_of_birth.day": {
			Type:     "integer",
			Required: true,
		},
		"identity.individual.date_of_birth.month": {
			Type:     "integer",
			Required: true,
		},
		"identity.individual.date_of_birth.year": {
			Type:     "integer",
			Required: true,
		},
		"identity.individual.documents.company_authorization.files": {
			Type:     "array",
			Required: true,
		},
		"identity.individual.documents.company_authorization.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.individual.documents.passport.files": {
			Type:     "array",
			Required: true,
		},
		"identity.individual.documents.passport.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.individual.documents.primary_verification.front_back.back": {
			Type: "string",
		},
		"identity.individual.documents.primary_verification.front_back.front": {
			Type:     "string",
			Required: true,
		},
		"identity.individual.documents.primary_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"identity.individual.documents.secondary_verification.front_back.back": {
			Type: "string",
		},
		"identity.individual.documents.secondary_verification.front_back.front": {
			Type:     "string",
			Required: true,
		},
		"identity.individual.documents.secondary_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"identity.individual.documents.visa.files": {
			Type:     "array",
			Required: true,
		},
		"identity.individual.documents.visa.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.individual.email": {
			Type: "string",
		},
		"identity.individual.given_name": {
			Type: "string",
		},
		"identity.individual.legal_gender": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "female"},
				{Value: "male"},
			},
		},
		"identity.individual.nationalities": {
			Type: "array",
		},
		"identity.individual.phone": {
			Type: "string",
		},
		"identity.individual.political_exposure": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "existing"},
				{Value: "none"},
			},
		},
		"identity.individual.relationship.director": {
			Type: "boolean",
		},
		"identity.individual.relationship.executive": {
			Type: "boolean",
		},
		"identity.individual.relationship.owner": {
			Type: "boolean",
		},
		"identity.individual.relationship.percent_ownership": {
			Type:   "string",
			Format: "decimal",
		},
		"identity.individual.relationship.title": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.city": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.country": {
			Type:     "string",
			Required: true,
		},
		"identity.individual.script_addresses.kana.line1": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.line2": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.postal_code": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.state": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.town": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.city": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.country": {
			Type:     "string",
			Required: true,
		},
		"identity.individual.script_addresses.kanji.line1": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.line2": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.postal_code": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.state": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.town": {
			Type: "string",
		},
		"identity.individual.script_names.kana.given_name": {
			Type: "string",
		},
		"identity.individual.script_names.kana.surname": {
			Type: "string",
		},
		"identity.individual.script_names.kanji.given_name": {
			Type: "string",
		},
		"identity.individual.script_names.kanji.surname": {
			Type: "string",
		},
		"identity.individual.surname": {
			Type: "string",
		},
		"include": {
			Type: "array",
		},
	},
}
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",
		},
		"closed": {
			Type: "boolean",
		},
		"limit": {
			Type: "integer",
		},
		"page": {
			Type: "string",
		},
	},
}
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",
		},
	},
}
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",
		},
		"configuration.customer.applied": {
			Type: "boolean",
		},
		"configuration.customer.automatic_indirect_tax.exempt": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "exempt"},
				{Value: "none"},
				{Value: "reverse"},
			},
		},
		"configuration.customer.automatic_indirect_tax.ip_address": {
			Type: "string",
		},
		"configuration.customer.automatic_indirect_tax.location_source": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "identity_address"},
				{Value: "ip_address"},
				{Value: "payment_method"},
				{Value: "shipping_address"},
			},
		},
		"configuration.customer.automatic_indirect_tax.validate_location": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "auto"},
				{Value: "deferred"},
				{Value: "immediately"},
			},
		},
		"configuration.customer.billing.default_payment_method": {
			Type: "string",
		},
		"configuration.customer.billing.invoice.footer": {
			Type: "string",
		},
		"configuration.customer.billing.invoice.next_sequence": {
			Type: "integer",
		},
		"configuration.customer.billing.invoice.prefix": {
			Type: "string",
		},
		"configuration.customer.billing.invoice.rendering.amount_tax_display": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "exclude_tax"},
				{Value: "include_inclusive_tax"},
			},
		},
		"configuration.customer.billing.invoice.rendering.template": {
			Type: "string",
		},
		"configuration.customer.capabilities.automatic_indirect_tax.requested": {
			Type: "boolean",
		},
		"configuration.customer.shipping.address.city": {
			Type: "string",
		},
		"configuration.customer.shipping.address.country": {
			Type: "string",
		},
		"configuration.customer.shipping.address.line1": {
			Type: "string",
		},
		"configuration.customer.shipping.address.line2": {
			Type: "string",
		},
		"configuration.customer.shipping.address.postal_code": {
			Type: "string",
		},
		"configuration.customer.shipping.address.state": {
			Type: "string",
		},
		"configuration.customer.shipping.name": {
			Type: "string",
		},
		"configuration.customer.shipping.phone": {
			Type: "string",
		},
		"configuration.customer.test_clock": {
			Type: "string",
		},
		"configuration.merchant.applied": {
			Type: "boolean",
		},
		"configuration.merchant.bacs_debit_payments.display_name": {
			Type: "string",
		},
		"configuration.merchant.branding.icon": {
			Type: "string",
		},
		"configuration.merchant.branding.logo": {
			Type: "string",
		},
		"configuration.merchant.branding.primary_color": {
			Type: "string",
		},
		"configuration.merchant.branding.secondary_color": {
			Type: "string",
		},
		"configuration.merchant.capabilities.ach_debit_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.acss_debit_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.affirm_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.afterpay_clearpay_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.alma_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.amazon_pay_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.au_becs_debit_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.bacs_debit_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.bancontact_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.blik_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.boleto_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.card_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.cartes_bancaires_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.cashapp_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.eps_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.fpx_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.gb_bank_transfer_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.grabpay_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.ideal_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.jcb_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.jp_bank_transfer_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.kakao_pay_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.klarna_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.konbini_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.kr_card_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.link_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.mobilepay_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.multibanco_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.mx_bank_transfer_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.naver_pay_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.oxxo_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.p24_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.pay_by_bank_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.payco_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.paynow_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.promptpay_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.revolut_pay_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.samsung_pay_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.sepa_bank_transfer_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.sepa_debit_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.swish_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.twint_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.us_bank_transfer_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.capabilities.zip_payments.requested": {
			Type: "boolean",
		},
		"configuration.merchant.card_payments.decline_on.avs_failure": {
			Type: "boolean",
		},
		"configuration.merchant.card_payments.decline_on.cvc_failure": {
			Type: "boolean",
		},
		"configuration.merchant.konbini_payments.support.email": {
			Type: "string",
		},
		"configuration.merchant.konbini_payments.support.hours.end_time": {
			Type: "string",
		},
		"configuration.merchant.konbini_payments.support.hours.start_time": {
			Type: "string",
		},
		"configuration.merchant.konbini_payments.support.phone": {
			Type: "string",
		},
		"configuration.merchant.mcc": {
			Type: "string",
		},
		"configuration.merchant.script_statement_descriptor.kana.descriptor": {
			Type: "string",
		},
		"configuration.merchant.script_statement_descriptor.kana.prefix": {
			Type: "string",
		},
		"configuration.merchant.script_statement_descriptor.kanji.descriptor": {
			Type: "string",
		},
		"configuration.merchant.script_statement_descriptor.kanji.prefix": {
			Type: "string",
		},
		"configuration.merchant.smart_disputes.auto_respond.preference": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "inherit"},
				{Value: "off"},
				{Value: "on"},
			},
		},
		"configuration.merchant.statement_descriptor.descriptor": {
			Type: "string",
		},
		"configuration.merchant.statement_descriptor.prefix": {
			Type: "string",
		},
		"configuration.merchant.support.address.city": {
			Type: "string",
		},
		"configuration.merchant.support.address.country": {
			Type: "string",
		},
		"configuration.merchant.support.address.line1": {
			Type: "string",
		},
		"configuration.merchant.support.address.line2": {
			Type: "string",
		},
		"configuration.merchant.support.address.postal_code": {
			Type: "string",
		},
		"configuration.merchant.support.address.state": {
			Type: "string",
		},
		"configuration.merchant.support.address.town": {
			Type: "string",
		},
		"configuration.merchant.support.email": {
			Type: "string",
		},
		"configuration.merchant.support.phone": {
			Type: "string",
		},
		"configuration.merchant.support.url": {
			Type: "string",
		},
		"configuration.recipient.applied": {
			Type: "boolean",
		},
		"configuration.recipient.capabilities.bank_accounts.local.requested": {
			Type: "boolean",
		},
		"configuration.recipient.capabilities.bank_accounts.wire.requested": {
			Type: "boolean",
		},
		"configuration.recipient.capabilities.cards.requested": {
			Type: "boolean",
		},
		"configuration.recipient.capabilities.stripe_balance.stripe_transfers.requested": {
			Type: "boolean",
		},
		"configuration.recipient.default_outbound_destination": {
			Type: "string",
		},
		"configuration.storer.applied": {
			Type: "boolean",
		},
		"configuration.storer.capabilities.financial_addresses.bank_accounts.requested": {
			Type: "boolean",
		},
		"configuration.storer.capabilities.holds_currencies.eur.requested": {
			Type: "boolean",
		},
		"configuration.storer.capabilities.holds_currencies.gbp.requested": {
			Type: "boolean",
		},
		"configuration.storer.capabilities.holds_currencies.usd.requested": {
			Type: "boolean",
		},
		"configuration.storer.capabilities.inbound_transfers.bank_accounts.requested": {
			Type: "boolean",
		},
		"configuration.storer.capabilities.outbound_payments.bank_accounts.requested": {
			Type: "boolean",
		},
		"configuration.storer.capabilities.outbound_payments.cards.requested": {
			Type: "boolean",
		},
		"configuration.storer.capabilities.outbound_payments.financial_accounts.requested": {
			Type: "boolean",
		},
		"configuration.storer.capabilities.outbound_transfers.bank_accounts.requested": {
			Type: "boolean",
		},
		"configuration.storer.capabilities.outbound_transfers.financial_accounts.requested": {
			Type: "boolean",
		},
		"contact_email": {
			Type: "string",
		},
		"contact_phone": {
			Type: "string",
		},
		"dashboard": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "express"},
				{Value: "full"},
				{Value: "none"},
			},
		},
		"defaults.currency": {
			Type: "string",
		},
		"defaults.locales": {
			Type: "array",
		},
		"defaults.profile.business_url": {
			Type: "string",
		},
		"defaults.profile.doing_business_as": {
			Type: "string",
		},
		"defaults.profile.product_description": {
			Type: "string",
		},
		"defaults.responsibilities.fees_collector": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "application"},
				{Value: "application_custom"},
				{Value: "application_express"},
				{Value: "stripe"},
			},
		},
		"defaults.responsibilities.losses_collector": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "application"},
				{Value: "stripe"},
			},
		},
		"defaults.timezone": {
			Type: "string",
		},
		"display_name": {
			Type: "string",
		},
		"identity.attestations.directorship_declaration.date": {
			Type:   "string",
			Format: "date-time",
		},
		"identity.attestations.directorship_declaration.ip": {
			Type: "string",
		},
		"identity.attestations.directorship_declaration.user_agent": {
			Type: "string",
		},
		"identity.attestations.ownership_declaration.date": {
			Type:   "string",
			Format: "date-time",
		},
		"identity.attestations.ownership_declaration.ip": {
			Type: "string",
		},
		"identity.attestations.ownership_declaration.user_agent": {
			Type: "string",
		},
		"identity.attestations.persons_provided.directors": {
			Type: "boolean",
		},
		"identity.attestations.persons_provided.executives": {
			Type: "boolean",
		},
		"identity.attestations.persons_provided.owners": {
			Type: "boolean",
		},
		"identity.attestations.persons_provided.ownership_exemption_reason": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "qualified_entity_exceeds_ownership_threshold"},
				{Value: "qualifies_as_financial_institution"},
			},
		},
		"identity.attestations.representative_declaration.date": {
			Type:   "string",
			Format: "date-time",
		},
		"identity.attestations.representative_declaration.ip": {
			Type: "string",
		},
		"identity.attestations.representative_declaration.user_agent": {
			Type: "string",
		},
		"identity.attestations.terms_of_service.account.date": {
			Type:   "string",
			Format: "date-time",
		},
		"identity.attestations.terms_of_service.account.ip": {
			Type: "string",
		},
		"identity.attestations.terms_of_service.account.user_agent": {
			Type: "string",
		},
		"identity.attestations.terms_of_service.crypto_storer.date": {
			Type:   "string",
			Format: "date-time",
		},
		"identity.attestations.terms_of_service.crypto_storer.ip": {
			Type: "string",
		},
		"identity.attestations.terms_of_service.crypto_storer.user_agent": {
			Type: "string",
		},
		"identity.attestations.terms_of_service.storer.date": {
			Type:   "string",
			Format: "date-time",
		},
		"identity.attestations.terms_of_service.storer.ip": {
			Type: "string",
		},
		"identity.attestations.terms_of_service.storer.user_agent": {
			Type: "string",
		},
		"identity.business_details.address.city": {
			Type: "string",
		},
		"identity.business_details.address.country": {
			Type: "string",
		},
		"identity.business_details.address.line1": {
			Type: "string",
		},
		"identity.business_details.address.line2": {
			Type: "string",
		},
		"identity.business_details.address.postal_code": {
			Type: "string",
		},
		"identity.business_details.address.state": {
			Type: "string",
		},
		"identity.business_details.address.town": {
			Type: "string",
		},
		"identity.business_details.annual_revenue.amount.currency": {
			Type:     "string",
			Required: true,
		},
		"identity.business_details.annual_revenue.amount.value": {
			Type:     "integer",
			Required: true,
		},
		"identity.business_details.annual_revenue.fiscal_year_end": {
			Type: "string",
		},
		"identity.business_details.documents.bank_account_ownership_verification.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.bank_account_ownership_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_license.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.company_license.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_memorandum_of_association.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.company_memorandum_of_association.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_ministerial_decree.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.company_ministerial_decree.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_registration_verification.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.company_registration_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.company_tax_id_verification.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.company_tax_id_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.primary_verification.front_back.back": {
			Type: "string",
		},
		"identity.business_details.documents.primary_verification.front_back.front": {
			Type: "string",
		},
		"identity.business_details.documents.primary_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"identity.business_details.documents.proof_of_address.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.proof_of_address.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.proof_of_registration.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.proof_of_registration.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.documents.proof_of_ultimate_beneficial_ownership.files": {
			Type:     "array",
			Required: true,
		},
		"identity.business_details.documents.proof_of_ultimate_beneficial_ownership.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.business_details.estimated_worker_count": {
			Type: "integer",
		},
		"identity.business_details.monthly_estimated_revenue.amount.currency": {
			Type:     "string",
			Required: true,
		},
		"identity.business_details.monthly_estimated_revenue.amount.value": {
			Type:     "integer",
			Required: true,
		},
		"identity.business_details.phone": {
			Type: "string",
		},
		"identity.business_details.registered_name": {
			Type: "string",
		},
		"identity.business_details.registration_date.day": {
			Type:     "integer",
			Required: true,
		},
		"identity.business_details.registration_date.month": {
			Type:     "integer",
			Required: true,
		},
		"identity.business_details.registration_date.year": {
			Type:     "integer",
			Required: true,
		},
		"identity.business_details.script_addresses.kana.city": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kana.country": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kana.line1": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kana.line2": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kana.postal_code": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kana.state": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kana.town": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.city": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.country": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.line1": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.line2": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.postal_code": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.state": {
			Type: "string",
		},
		"identity.business_details.script_addresses.kanji.town": {
			Type: "string",
		},
		"identity.business_details.script_names.kana.registered_name": {
			Type: "string",
		},
		"identity.business_details.script_names.kanji.registered_name": {
			Type: "string",
		},
		"identity.business_details.structure": {
			Type: "string",
			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",
		},
		"identity.entity_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "company"},
				{Value: "government_entity"},
				{Value: "individual"},
				{Value: "non_profit"},
			},
		},
		"identity.individual.address.city": {
			Type: "string",
		},
		"identity.individual.address.country": {
			Type: "string",
		},
		"identity.individual.address.line1": {
			Type: "string",
		},
		"identity.individual.address.line2": {
			Type: "string",
		},
		"identity.individual.address.postal_code": {
			Type: "string",
		},
		"identity.individual.address.state": {
			Type: "string",
		},
		"identity.individual.address.town": {
			Type: "string",
		},
		"identity.individual.date_of_birth.day": {
			Type:     "integer",
			Required: true,
		},
		"identity.individual.date_of_birth.month": {
			Type:     "integer",
			Required: true,
		},
		"identity.individual.date_of_birth.year": {
			Type:     "integer",
			Required: true,
		},
		"identity.individual.documents.company_authorization.files": {
			Type:     "array",
			Required: true,
		},
		"identity.individual.documents.company_authorization.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.individual.documents.passport.files": {
			Type:     "array",
			Required: true,
		},
		"identity.individual.documents.passport.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.individual.documents.primary_verification.front_back.back": {
			Type: "string",
		},
		"identity.individual.documents.primary_verification.front_back.front": {
			Type: "string",
		},
		"identity.individual.documents.primary_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"identity.individual.documents.secondary_verification.front_back.back": {
			Type: "string",
		},
		"identity.individual.documents.secondary_verification.front_back.front": {
			Type: "string",
		},
		"identity.individual.documents.secondary_verification.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "front_back"},
			},
		},
		"identity.individual.documents.visa.files": {
			Type:     "array",
			Required: true,
		},
		"identity.individual.documents.visa.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "files"},
			},
		},
		"identity.individual.email": {
			Type: "string",
		},
		"identity.individual.given_name": {
			Type: "string",
		},
		"identity.individual.legal_gender": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "female"},
				{Value: "male"},
			},
		},
		"identity.individual.nationalities": {
			Type: "array",
		},
		"identity.individual.phone": {
			Type: "string",
		},
		"identity.individual.political_exposure": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "existing"},
				{Value: "none"},
			},
		},
		"identity.individual.relationship.director": {
			Type: "boolean",
		},
		"identity.individual.relationship.executive": {
			Type: "boolean",
		},
		"identity.individual.relationship.owner": {
			Type: "boolean",
		},
		"identity.individual.relationship.percent_ownership": {
			Type:   "string",
			Format: "decimal",
		},
		"identity.individual.relationship.title": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.city": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.country": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.line1": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.line2": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.postal_code": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.state": {
			Type: "string",
		},
		"identity.individual.script_addresses.kana.town": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.city": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.country": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.line1": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.line2": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.postal_code": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.state": {
			Type: "string",
		},
		"identity.individual.script_addresses.kanji.town": {
			Type: "string",
		},
		"identity.individual.script_names.kana.given_name": {
			Type: "string",
		},
		"identity.individual.script_names.kana.surname": {
			Type: "string",
		},
		"identity.individual.script_names.kanji.given_name": {
			Type: "string",
		},
		"identity.individual.script_names.kanji.surname": {
			Type: "string",
		},
		"identity.individual.surname": {
			Type: "string",
		},
		"include": {
			Type: "array",
		},
	},
}
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",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "post"},
			},
		},
		"endpoint.path": {
			Type:     "string",
			Required: true,
		},
		"maximum_rps": {
			Type: "integer",
		},
		"notification_suppression.scope": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "all"},
				{Value: "none"},
			},
		},
		"skip_validation": {
			Type:     "boolean",
			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",
			Required: true,
		},
		"amazon_eventbridge.aws_region": {
			Type:     "string",
			Required: true,
		},
		"description": {
			Type: "string",
		},
		"enabled_events": {
			Type:     "array",
			Required: true,
		},
		"event_payload": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "snapshot"},
				{Value: "thin"},
			},
		},
		"events_from": {
			Type: "array",
		},
		"include": {
			Type: "array",
		},
		"name": {
			Type:     "string",
			Required: true,
		},
		"snapshot_api_version": {
			Type: "string",
		},
		"type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "amazon_eventbridge"},
				{Value: "azure_event_grid"},
				{Value: "webhook_endpoint"},
			},
		},
		"webhook_endpoint.url": {
			Type:     "string",
			Required: true,
		},
	},
}
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",
		},
		"limit": {
			Type: "integer",
		},
		"page": {
			Type: "string",
		},
	},
}
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",
		},
	},
}
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",
		},
		"enabled_events": {
			Type: "array",
		},
		"include": {
			Type: "array",
		},
		"name": {
			Type: "string",
		},
		"webhook_endpoint.url": {
			Type:     "string",
			Required: true,
		},
	},
}
View Source
var V2PreviewCoreEventsList = resource.OperationSpec{
	Name:      "list",
	Path:      "/v2/core/events",
	Method:    "GET",
	IsPreview: true,
	Params: map[string]*resource.ParamSpec{
		"limit": {
			Type: "integer",
		},
		"object_id": {
			Type: "string",
		},
		"page": {
			Type: "string",
		},
		"types": {
			Type: "array",
		},
	},
}
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",
		},
		"bank_account_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "checking"},
				{Value: "savings"},
			},
		},
		"confirmation_of_payee.business_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "business"},
				{Value: "personal"},
			},
		},
		"confirmation_of_payee.initiate": {
			Type:     "boolean",
			Required: true,
		},
		"confirmation_of_payee.name": {
			Type: "string",
		},
		"currency": {
			Type:     "string",
			Required: true,
		},
		"iban": {
			Type: "string",
		},
		"sort_code": {
			Type: "string",
		},
	},
}
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",
			Enum: []resource.EnumSpec{
				{Value: "business"},
				{Value: "personal"},
			},
		},
		"name": {
			Type: "string",
		},
	},
}
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",
		},
		"page": {
			Type: "string",
		},
	},
}
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",
		},
		"descriptor_code": {
			Type: "string",
		},
	},
}
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",
			Required: true,
		},
		"bank_account_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "checking"},
				{Value: "savings"},
			},
		},
		"currency": {
			Type:     "string",
			Required: true,
		},
		"fedwire_routing_number": {
			Type: "string",
		},
		"routing_number": {
			Type: "string",
		},
	},
}
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",
		},
		"page": {
			Type: "string",
		},
		"verification_status": {
			Type: "string",
		},
	},
}
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",
		},
		"routing_number": {
			Type: "string",
		},
	},
}
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",
			Required: true,
		},
		"amount.value": {
			Type:     "integer",
			Required: true,
		},
		"network": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "ach"},
				{Value: "fps"},
				{Value: "rtp"},
				{Value: "wire"},
			},
		},
		"statement_descriptor": {
			Type: "string",
		},
	},
}
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",
		},
		"created": {
			Type:   "string",
			Format: "date-time",
		},
		"created_gt": {
			Type:   "string",
			Format: "date-time",
		},
		"created_gte": {
			Type:   "string",
			Format: "date-time",
		},
		"created_lt": {
			Type:   "string",
			Format: "date-time",
		},
		"created_lte": {
			Type:   "string",
			Format: "date-time",
		},
		"limit": {
			Type: "integer",
		},
		"page": {
			Type: "string",
		},
	},
}
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",
		},
		"forwarding_settings.payout_method": {
			Type: "string",
		},
	},
}
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",
		},
		"storage.holds_currencies": {
			Type:     "array",
			Required: true,
		},
		"type": {
			Type:     "string",
			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",
		},
		"page": {
			Type: "string",
		},
		"status": {
			Type: "string",
			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",
		},
	},
}
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",
			Required: true,
		},
		"type": {
			Type:     "string",
			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",
		},
		"include": {
			Type: "array",
		},
		"limit": {
			Type: "integer",
		},
		"page": {
			Type: "string",
		},
	},
}
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",
		},
	},
}
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",
			Required: true,
		},
		"amount.value": {
			Type:     "integer",
			Required: true,
		},
		"description": {
			Type: "string",
		},
		"from.currency": {
			Type: "string",
		},
		"from.payment_method": {
			Type:     "string",
			Required: true,
		},
		"to.currency": {
			Type:     "string",
			Required: true,
		},
		"to.financial_account": {
			Type:     "string",
			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",
			Format: "date-time",
		},
		"created_gt": {
			Type:   "string",
			Format: "date-time",
		},
		"created_gte": {
			Type:   "string",
			Format: "date-time",
		},
		"created_lt": {
			Type:   "string",
			Format: "date-time",
		},
		"created_lte": {
			Type:   "string",
			Format: "date-time",
		},
		"limit": {
			Type: "integer",
		},
		"page": {
			Type: "string",
		},
	},
}
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",
			Required: true,
		},
		"amount.value": {
			Type:     "integer",
			Required: true,
		},
		"delivery_options.bank_account": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "local"},
				{Value: "wire"},
			},
		},
		"from.currency": {
			Type:     "string",
			Required: true,
		},
		"from.financial_account": {
			Type:     "string",
			Required: true,
		},
		"to.currency": {
			Type: "string",
		},
		"to.payout_method": {
			Type: "string",
		},
		"to.recipient": {
			Type:     "string",
			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",
			Required: true,
		},
		"amount.value": {
			Type:     "integer",
			Required: true,
		},
		"delivery_options.bank_account": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "local"},
				{Value: "wire"},
			},
		},
		"description": {
			Type: "string",
		},
		"from.currency": {
			Type:     "string",
			Required: true,
		},
		"from.financial_account": {
			Type:     "string",
			Required: true,
		},
		"recipient_notification.setting": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "configured"},
				{Value: "none"},
			},
		},
		"to.currency": {
			Type: "string",
		},
		"to.payout_method": {
			Type: "string",
		},
		"to.recipient": {
			Type:     "string",
			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",
			Format: "date-time",
		},
		"created_gt": {
			Type:   "string",
			Format: "date-time",
		},
		"created_gte": {
			Type:   "string",
			Format: "date-time",
		},
		"created_lt": {
			Type:   "string",
			Format: "date-time",
		},
		"created_lte": {
			Type:   "string",
			Format: "date-time",
		},
		"limit": {
			Type: "integer",
		},
		"page": {
			Type: "string",
		},
		"recipient": {
			Type: "string",
		},
		"status": {
			Type: "array",
		},
	},
}
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",
		},
		"payout_method_data.bank_account.account_number": {
			Type:     "string",
			Required: true,
		},
		"payout_method_data.bank_account.bank_account_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "checking"},
				{Value: "savings"},
			},
		},
		"payout_method_data.bank_account.branch_number": {
			Type: "string",
		},
		"payout_method_data.bank_account.country": {
			Type:     "string",
			Required: true,
		},
		"payout_method_data.bank_account.currency": {
			Type:     "string",
			Required: true,
		},
		"payout_method_data.bank_account.routing_number": {
			Type: "string",
		},
		"payout_method_data.bank_account.swift_code": {
			Type: "string",
		},
		"payout_method_data.card.currency": {
			Type:     "string",
			Required: true,
		},
		"payout_method_data.card.exp_month": {
			Type:     "string",
			Required: true,
		},
		"payout_method_data.card.exp_year": {
			Type:     "string",
			Required: true,
		},
		"payout_method_data.card.number": {
			Type:     "string",
			Required: true,
		},
		"payout_method_data.type": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "bank_account"},
				{Value: "card"},
				{Value: "crypto_wallet"},
			},
		},
		"usage_intent": {
			Type: "string",
			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",
		},
		"page": {
			Type: "string",
		},
	},
}
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",
		},
		"payout_method_data.bank_account.account_number": {
			Type:     "string",
			Required: true,
		},
		"payout_method_data.bank_account.bank_account_type": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "checking"},
				{Value: "savings"},
			},
		},
		"payout_method_data.bank_account.branch_number": {
			Type: "string",
		},
		"payout_method_data.bank_account.country": {
			Type:     "string",
			Required: true,
		},
		"payout_method_data.bank_account.currency": {
			Type:     "string",
			Required: true,
		},
		"payout_method_data.bank_account.routing_number": {
			Type: "string",
		},
		"payout_method_data.bank_account.swift_code": {
			Type: "string",
		},
		"payout_method_data.card.currency": {
			Type: "string",
		},
		"payout_method_data.card.exp_month": {
			Type: "string",
		},
		"payout_method_data.card.exp_year": {
			Type: "string",
		},
		"payout_method_data.card.number": {
			Type: "string",
		},
		"payout_method_data.type": {
			Type:     "string",
			Required: true,
			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",
			Required: true,
		},
		"amount.value": {
			Type:     "integer",
			Required: true,
		},
		"delivery_options.bank_account": {
			Type: "string",
			Enum: []resource.EnumSpec{
				{Value: "automatic"},
				{Value: "local"},
				{Value: "wire"},
			},
		},
		"description": {
			Type: "string",
		},
		"from.currency": {
			Type:     "string",
			Required: true,
		},
		"from.financial_account": {
			Type:     "string",
			Required: true,
		},
		"to.currency": {
			Type: "string",
		},
		"to.payout_method": {
			Type:     "string",
			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",
			Format: "date-time",
		},
		"created_gt": {
			Type:   "string",
			Format: "date-time",
		},
		"created_gte": {
			Type:   "string",
			Format: "date-time",
		},
		"created_lt": {
			Type:   "string",
			Format: "date-time",
		},
		"created_lte": {
			Type:   "string",
			Format: "date-time",
		},
		"limit": {
			Type: "integer",
		},
		"page": {
			Type: "string",
		},
		"status": {
			Type: "array",
		},
	},
}
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",
		},
	},
}
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",
		},
		"page": {
			Type: "string",
		},
	},
}
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",
			Format: "date-time",
		},
		"created_gt": {
			Type:   "string",
			Format: "date-time",
		},
		"created_gte": {
			Type:   "string",
			Format: "date-time",
		},
		"created_lt": {
			Type:   "string",
			Format: "date-time",
		},
		"created_lte": {
			Type:   "string",
			Format: "date-time",
		},
		"limit": {
			Type: "integer",
		},
		"page": {
			Type: "string",
		},
	},
}
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",
		},
		"page": {
			Type: "string",
		},
	},
}
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",
			Format: "date-time",
		},
		"created_gt": {
			Type:   "string",
			Format: "date-time",
		},
		"created_gte": {
			Type:   "string",
			Format: "date-time",
		},
		"created_lt": {
			Type:   "string",
			Format: "date-time",
		},
		"created_lte": {
			Type:   "string",
			Format: "date-time",
		},
		"limit": {
			Type: "integer",
		},
		"page": {
			Type: "string",
		},
		"transaction": {
			Type: "string",
		},
	},
}
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",
			Format: "date-time",
		},
		"created_gt": {
			Type:   "string",
			Format: "date-time",
		},
		"created_gte": {
			Type:   "string",
			Format: "date-time",
		},
		"created_lt": {
			Type:   "string",
			Format: "date-time",
		},
		"created_lte": {
			Type:   "string",
			Format: "date-time",
		},
		"financial_account": {
			Type: "string",
		},
		"flow": {
			Type: "string",
		},
		"limit": {
			Type: "integer",
		},
		"page": {
			Type: "string",
		},
	},
}
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",
			Required: true,
		},
		"amount.value": {
			Type:     "integer",
			Required: true,
		},
		"network": {
			Type:     "string",
			Required: true,
			Enum: []resource.EnumSpec{
				{Value: "ach"},
				{Value: "fps"},
				{Value: "rtp"},
				{Value: "wire"},
			},
		},
		"statement_descriptor": {
			Type: "string",
		},
	},
}
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