Skip to content

Commit

Permalink
Update generated code (#1797)
Browse files Browse the repository at this point in the history
* Update generated code for v352

* Update generated code for v353

* Update generated code for v353

* Update generated code for v354

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] authored May 25, 2023
1 parent 62fbbc6 commit dd85a8c
Show file tree
Hide file tree
Showing 15 changed files with 838 additions and 18 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v350
v354
25 changes: 24 additions & 1 deletion test/resources/generated_examples_test.spec.js

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion types/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ declare module 'stripe' {
details_submitted: boolean;

/**
* An email address associated with the account. You can treat this as metadata: it is not used for authentication or messaging account holders.
* An email address associated with the account. It's not used for authentication and Stripe doesn't market to this field without explicit approval from the platform.
*/
email: string | null;

Expand Down Expand Up @@ -337,6 +337,11 @@ declare module 'stripe' {
* The status of the US bank account ACH payments capability of the account, or whether the account can directly process US bank account charges.
*/
us_bank_account_ach_payments?: Capabilities.UsBankAccountAchPayments;

/**
* The status of the Zip capability of the account, or whether the account can directly process Zip charges.
*/
zip_payments?: Capabilities.ZipPayments;
}

namespace Capabilities {
Expand Down Expand Up @@ -409,6 +414,8 @@ declare module 'stripe' {
type Treasury = 'active' | 'inactive' | 'pending';

type UsBankAccountAchPayments = 'active' | 'inactive' | 'pending';

type ZipPayments = 'active' | 'inactive' | 'pending';
}

interface Company {
Expand Down
24 changes: 24 additions & 0 deletions types/AccountsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,11 @@ declare module 'stripe' {
* The us_bank_account_ach_payments capability.
*/
us_bank_account_ach_payments?: Capabilities.UsBankAccountAchPayments;

/**
* The zip_payments capability.
*/
zip_payments?: Capabilities.ZipPayments;
}

namespace Capabilities {
Expand Down Expand Up @@ -557,6 +562,13 @@ declare module 'stripe' {
*/
requested?: boolean;
}

interface ZipPayments {
/**
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
*/
requested?: boolean;
}
}

interface Company {
Expand Down Expand Up @@ -1559,6 +1571,11 @@ declare module 'stripe' {
* The us_bank_account_ach_payments capability.
*/
us_bank_account_ach_payments?: Capabilities.UsBankAccountAchPayments;

/**
* The zip_payments capability.
*/
zip_payments?: Capabilities.ZipPayments;
}

namespace Capabilities {
Expand Down Expand Up @@ -1806,6 +1823,13 @@ declare module 'stripe' {
*/
requested?: boolean;
}

interface ZipPayments {
/**
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
*/
requested?: boolean;
}
}

interface Company {
Expand Down
4 changes: 4 additions & 0 deletions types/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,8 @@ declare module 'stripe' {
wechat?: PaymentMethodDetails.Wechat;

wechat_pay?: PaymentMethodDetails.WechatPay;

zip?: PaymentMethodDetails.Zip;
}

namespace PaymentMethodDetails {
Expand Down Expand Up @@ -1838,6 +1840,8 @@ declare module 'stripe' {
*/
transaction_id: string | null;
}

interface Zip {}
}

interface RadarOptions {
Expand Down
3 changes: 2 additions & 1 deletion types/Checkout/SessionsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1563,7 +1563,8 @@ declare module 'stripe' {
| 'sepa_debit'
| 'sofort'
| 'us_bank_account'
| 'wechat_pay';
| 'wechat_pay'
| 'zip';

interface PhoneNumberCollection {
/**
Expand Down
3 changes: 2 additions & 1 deletion types/CustomersResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,8 @@ declare module 'stripe' {
| 'sepa_debit'
| 'sofort'
| 'us_bank_account'
| 'wechat_pay';
| 'wechat_pay'
| 'zip';
}

interface CustomerBalanceTransactionListParams extends PaginationParams {
Expand Down
158 changes: 157 additions & 1 deletion types/Invoices.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ declare module 'stripe' {
/**
* For some errors that could be handled programmatically, a short string indicating the [error code](https://stripe.com/docs/error-codes) reported.
*/
code?: string;
code?: LastFinalizationError.Code;

/**
* For card errors resulting from a card issuer decline, a short string indicating the [card issuer's reason for the decline](https://stripe.com/docs/declines#issuer-declines) if they provide one.
Expand Down Expand Up @@ -679,6 +679,162 @@ declare module 'stripe' {
}

namespace LastFinalizationError {
type Code =
| 'account_closed'
| 'account_country_invalid_address'
| 'account_error_country_change_requires_additional_steps'
| 'account_information_mismatch'
| 'account_invalid'
| 'account_number_invalid'
| 'acss_debit_session_incomplete'
| 'alipay_upgrade_required'
| 'amount_too_large'
| 'amount_too_small'
| 'api_key_expired'
| 'authentication_required'
| 'balance_insufficient'
| 'bank_account_bad_routing_numbers'
| 'bank_account_declined'
| 'bank_account_exists'
| 'bank_account_restricted'
| 'bank_account_unusable'
| 'bank_account_unverified'
| 'bank_account_verification_failed'
| 'billing_invalid_mandate'
| 'bitcoin_upgrade_required'
| 'capture_charge_authorization_expired'
| 'capture_unauthorized_payment'
| 'card_decline_rate_limit_exceeded'
| 'card_declined'
| 'cardholder_phone_number_required'
| 'charge_already_captured'
| 'charge_already_refunded'
| 'charge_disputed'
| 'charge_exceeds_source_limit'
| 'charge_expired_for_capture'
| 'charge_invalid_parameter'
| 'charge_not_refundable'
| 'clearing_code_unsupported'
| 'country_code_invalid'
| 'country_unsupported'
| 'coupon_expired'
| 'customer_max_payment_methods'
| 'customer_max_subscriptions'
| 'debit_not_authorized'
| 'email_invalid'
| 'expired_card'
| 'idempotency_key_in_use'
| 'incorrect_address'
| 'incorrect_cvc'
| 'incorrect_number'
| 'incorrect_zip'
| 'instant_payouts_config_disabled'
| 'instant_payouts_currency_disabled'
| 'instant_payouts_limit_exceeded'
| 'instant_payouts_unsupported'
| 'insufficient_funds'
| 'intent_invalid_state'
| 'intent_verification_method_missing'
| 'invalid_card_type'
| 'invalid_characters'
| 'invalid_charge_amount'
| 'invalid_cvc'
| 'invalid_expiry_month'
| 'invalid_expiry_year'
| 'invalid_number'
| 'invalid_source_usage'
| 'invoice_no_customer_line_items'
| 'invoice_no_payment_method_types'
| 'invoice_no_subscription_line_items'
| 'invoice_not_editable'
| 'invoice_on_behalf_of_not_editable'
| 'invoice_payment_intent_requires_action'
| 'invoice_upcoming_none'
| 'livemode_mismatch'
| 'lock_timeout'
| 'missing'
| 'no_account'
| 'not_allowed_on_standard_account'
| 'out_of_inventory'
| 'ownership_declaration_not_allowed'
| 'parameter_invalid_empty'
| 'parameter_invalid_integer'
| 'parameter_invalid_string_blank'
| 'parameter_invalid_string_empty'
| 'parameter_missing'
| 'parameter_unknown'
| 'parameters_exclusive'
| 'payment_intent_action_required'
| 'payment_intent_authentication_failure'
| 'payment_intent_incompatible_payment_method'
| 'payment_intent_invalid_parameter'
| 'payment_intent_konbini_rejected_confirmation_number'
| 'payment_intent_mandate_invalid'
| 'payment_intent_payment_attempt_expired'
| 'payment_intent_payment_attempt_failed'
| 'payment_intent_unexpected_state'
| 'payment_method_bank_account_already_verified'
| 'payment_method_bank_account_blocked'
| 'payment_method_billing_details_address_missing'
| 'payment_method_configuration_failures'
| 'payment_method_currency_mismatch'
| 'payment_method_customer_decline'
| 'payment_method_invalid_parameter'
| 'payment_method_invalid_parameter_testmode'
| 'payment_method_microdeposit_failed'
| 'payment_method_microdeposit_verification_amounts_invalid'
| 'payment_method_microdeposit_verification_amounts_mismatch'
| 'payment_method_microdeposit_verification_attempts_exceeded'
| 'payment_method_microdeposit_verification_descriptor_code_mismatch'
| 'payment_method_microdeposit_verification_timeout'
| 'payment_method_not_available'
| 'payment_method_provider_decline'
| 'payment_method_provider_timeout'
| 'payment_method_unactivated'
| 'payment_method_unexpected_state'
| 'payment_method_unsupported_type'
| 'payout_reconciliation_not_ready'
| 'payouts_limit_exceeded'
| 'payouts_not_allowed'
| 'platform_account_required'
| 'platform_api_key_expired'
| 'postal_code_invalid'
| 'processing_error'
| 'product_inactive'
| 'progressive_onboarding_limit_exceeded'
| 'rate_limit'
| 'refer_to_customer'
| 'refund_disputed_payment'
| 'resource_already_exists'
| 'resource_missing'
| 'return_intent_already_processed'
| 'routing_number_invalid'
| 'secret_key_required'
| 'sepa_unsupported_account'
| 'setup_attempt_failed'
| 'setup_intent_authentication_failure'
| 'setup_intent_invalid_parameter'
| 'setup_intent_mandate_invalid'
| 'setup_intent_setup_attempt_expired'
| 'setup_intent_unexpected_state'
| 'shipping_calculation_failed'
| 'sku_inactive'
| 'state_unsupported'
| 'status_transition_invalid'
| 'tax_id_invalid'
| 'taxes_calculation_failed'
| 'terminal_location_country_unsupported'
| 'terminal_reader_busy'
| 'terminal_reader_offline'
| 'terminal_reader_timeout'
| 'testmode_charges_only'
| 'tls_version_unsupported'
| 'token_already_used'
| 'token_in_use'
| 'transfer_source_balance_parameters_mismatch'
| 'transfers_not_allowed'
| 'url_invalid';

type Type =
| 'api_error'
| 'card_error'
Expand Down
Loading

0 comments on commit dd85a8c

Please sign in to comment.