Skip to content

Commit

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

* Update generated code for v461

* Update generated code for v462

* Update generated code for v464

* Update generated code for v465

* Update generated code for v466

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: anniel-stripe <97691964+anniel-stripe@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] and anniel-stripe committed Aug 16, 2023
1 parent 07a8d2a commit 9958b1d
Show file tree
Hide file tree
Showing 34 changed files with 61 additions and 411 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v458
v466
2 changes: 1 addition & 1 deletion src/apiVersion.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// File generated from our OpenAPI spec

export const ApiVersion = '2022-11-15';
export const ApiVersion = '2023-08-16';
4 changes: 0 additions & 4 deletions src/resources/Subscriptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ export const Subscriptions = StripeResource.extend({
method: 'DELETE',
fullPath: '/v1/subscriptions/{subscription_exposed_id}',
}),
del: stripeMethod({
method: 'DELETE',
fullPath: '/v1/subscriptions/{subscription_exposed_id}',
}),
deleteDiscount: stripeMethod({
method: 'DELETE',
fullPath: '/v1/subscriptions/{subscription_exposed_id}/discount',
Expand Down
2 changes: 1 addition & 1 deletion test/resources/generated_examples_test.spec.js

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions types/AccountLinksResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@ declare module 'stripe' {
namespace AccountLinkCreateParams {
type Collect = 'currently_due' | 'eventually_due';

type Type =
| 'account_onboarding'
| 'account_update'
| 'custom_account_update'
| 'custom_account_verification';
type Type = 'account_onboarding' | 'account_update';
}

class AccountLinksResource {
Expand Down
8 changes: 8 additions & 0 deletions types/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -764,10 +764,12 @@ declare module 'stripe' {
| 'invalid_street_address'
| 'invalid_tos_acceptance'
| 'invalid_value_other'
| 'verification_directors_mismatch'
| 'verification_document_address_mismatch'
| 'verification_document_address_missing'
| 'verification_document_corrupt'
| 'verification_document_country_not_supported'
| 'verification_document_directors_mismatch'
| 'verification_document_dob_mismatch'
| 'verification_document_duplicate_type'
| 'verification_document_expired'
Expand All @@ -793,6 +795,7 @@ declare module 'stripe' {
| 'verification_document_photo_mismatch'
| 'verification_document_too_large'
| 'verification_document_type_not_supported'
| 'verification_extraneous_directors'
| 'verification_failed_address_match'
| 'verification_failed_business_iec_number'
| 'verification_failed_document_match'
Expand All @@ -804,6 +807,7 @@ declare module 'stripe' {
| 'verification_failed_residential_address'
| 'verification_failed_tax_id_match'
| 'verification_failed_tax_id_not_issued'
| 'verification_missing_directors'
| 'verification_missing_executives'
| 'verification_missing_owners'
| 'verification_requires_additional_memorandum_of_associations';
Expand Down Expand Up @@ -890,10 +894,12 @@ declare module 'stripe' {
| 'invalid_street_address'
| 'invalid_tos_acceptance'
| 'invalid_value_other'
| 'verification_directors_mismatch'
| 'verification_document_address_mismatch'
| 'verification_document_address_missing'
| 'verification_document_corrupt'
| 'verification_document_country_not_supported'
| 'verification_document_directors_mismatch'
| 'verification_document_dob_mismatch'
| 'verification_document_duplicate_type'
| 'verification_document_expired'
Expand All @@ -919,6 +925,7 @@ declare module 'stripe' {
| 'verification_document_photo_mismatch'
| 'verification_document_too_large'
| 'verification_document_type_not_supported'
| 'verification_extraneous_directors'
| 'verification_failed_address_match'
| 'verification_failed_business_iec_number'
| 'verification_failed_document_match'
Expand All @@ -930,6 +937,7 @@ declare module 'stripe' {
| 'verification_failed_residential_address'
| 'verification_failed_tax_id_match'
| 'verification_failed_tax_id_not_issued'
| 'verification_missing_directors'
| 'verification_missing_executives'
| 'verification_missing_owners'
| 'verification_requires_additional_memorandum_of_associations';
Expand Down
5 changes: 0 additions & 5 deletions types/BalanceTransactionsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ declare module 'stripe' {
}

interface BalanceTransactionListParams extends PaginationParams {
/**
* This parameter is deprecated and we recommend listing by created and filtering in memory instead.
*/
available_on?: Stripe.RangeQueryParam | number;

created?: Stripe.RangeQueryParam | number;

/**
Expand Down
8 changes: 8 additions & 0 deletions types/BankAccounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,12 @@ declare module 'stripe' {
| 'invalid_street_address'
| 'invalid_tos_acceptance'
| 'invalid_value_other'
| 'verification_directors_mismatch'
| 'verification_document_address_mismatch'
| 'verification_document_address_missing'
| 'verification_document_corrupt'
| 'verification_document_country_not_supported'
| 'verification_document_directors_mismatch'
| 'verification_document_dob_mismatch'
| 'verification_document_duplicate_type'
| 'verification_document_expired'
Expand All @@ -194,6 +196,7 @@ declare module 'stripe' {
| 'verification_document_photo_mismatch'
| 'verification_document_too_large'
| 'verification_document_type_not_supported'
| 'verification_extraneous_directors'
| 'verification_failed_address_match'
| 'verification_failed_business_iec_number'
| 'verification_failed_document_match'
Expand All @@ -205,6 +208,7 @@ declare module 'stripe' {
| 'verification_failed_residential_address'
| 'verification_failed_tax_id_match'
| 'verification_failed_tax_id_not_issued'
| 'verification_missing_directors'
| 'verification_missing_executives'
| 'verification_missing_owners'
| 'verification_requires_additional_memorandum_of_associations';
Expand Down Expand Up @@ -259,10 +263,12 @@ declare module 'stripe' {
| 'invalid_street_address'
| 'invalid_tos_acceptance'
| 'invalid_value_other'
| 'verification_directors_mismatch'
| 'verification_document_address_mismatch'
| 'verification_document_address_missing'
| 'verification_document_corrupt'
| 'verification_document_country_not_supported'
| 'verification_document_directors_mismatch'
| 'verification_document_dob_mismatch'
| 'verification_document_duplicate_type'
| 'verification_document_expired'
Expand All @@ -288,6 +294,7 @@ declare module 'stripe' {
| 'verification_document_photo_mismatch'
| 'verification_document_too_large'
| 'verification_document_type_not_supported'
| 'verification_extraneous_directors'
| 'verification_failed_address_match'
| 'verification_failed_business_iec_number'
| 'verification_failed_document_match'
Expand All @@ -299,6 +306,7 @@ declare module 'stripe' {
| 'verification_failed_residential_address'
| 'verification_failed_tax_id_match'
| 'verification_failed_tax_id_not_issued'
| 'verification_missing_directors'
| 'verification_missing_executives'
| 'verification_missing_owners'
| 'verification_requires_additional_memorandum_of_associations';
Expand Down
8 changes: 8 additions & 0 deletions types/Capabilities.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,12 @@ declare module 'stripe' {
| 'invalid_street_address'
| 'invalid_tos_acceptance'
| 'invalid_value_other'
| 'verification_directors_mismatch'
| 'verification_document_address_mismatch'
| 'verification_document_address_missing'
| 'verification_document_corrupt'
| 'verification_document_country_not_supported'
| 'verification_document_directors_mismatch'
| 'verification_document_dob_mismatch'
| 'verification_document_duplicate_type'
| 'verification_document_expired'
Expand All @@ -153,6 +155,7 @@ declare module 'stripe' {
| 'verification_document_photo_mismatch'
| 'verification_document_too_large'
| 'verification_document_type_not_supported'
| 'verification_extraneous_directors'
| 'verification_failed_address_match'
| 'verification_failed_business_iec_number'
| 'verification_failed_document_match'
Expand All @@ -164,6 +167,7 @@ declare module 'stripe' {
| 'verification_failed_residential_address'
| 'verification_failed_tax_id_match'
| 'verification_failed_tax_id_not_issued'
| 'verification_missing_directors'
| 'verification_missing_executives'
| 'verification_missing_owners'
| 'verification_requires_additional_memorandum_of_associations';
Expand Down Expand Up @@ -256,10 +260,12 @@ declare module 'stripe' {
| 'invalid_street_address'
| 'invalid_tos_acceptance'
| 'invalid_value_other'
| 'verification_directors_mismatch'
| 'verification_document_address_mismatch'
| 'verification_document_address_missing'
| 'verification_document_corrupt'
| 'verification_document_country_not_supported'
| 'verification_document_directors_mismatch'
| 'verification_document_dob_mismatch'
| 'verification_document_duplicate_type'
| 'verification_document_expired'
Expand All @@ -285,6 +291,7 @@ declare module 'stripe' {
| 'verification_document_photo_mismatch'
| 'verification_document_too_large'
| 'verification_document_type_not_supported'
| 'verification_extraneous_directors'
| 'verification_failed_address_match'
| 'verification_failed_business_iec_number'
| 'verification_failed_document_match'
Expand All @@ -296,6 +303,7 @@ declare module 'stripe' {
| 'verification_failed_residential_address'
| 'verification_failed_tax_id_match'
| 'verification_failed_tax_id_not_issued'
| 'verification_missing_directors'
| 'verification_missing_executives'
| 'verification_missing_owners'
| 'verification_requires_additional_memorandum_of_associations';
Expand Down
24 changes: 0 additions & 24 deletions types/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ declare module 'stripe' {
*/
object: 'charge';

alternate_statement_descriptors?: Charge.AlternateStatementDescriptors;

/**
* Amount intended to be collected by this payment. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
*/
Expand Down Expand Up @@ -93,16 +91,6 @@ declare module 'stripe' {
*/
description: string | null;

/**
* ID of an existing, connected Stripe account to transfer funds to if `transfer_data` was specified in the charge request.
*/
destination: string | Stripe.Account | null;

/**
* Details about the dispute if the charge has been disputed.
*/
dispute: string | Stripe.Dispute | null;

/**
* Whether the charge has been disputed.
*/
Expand Down Expand Up @@ -257,18 +245,6 @@ declare module 'stripe' {
}

namespace Charge {
interface AlternateStatementDescriptors {
/**
* The Kana variation of the descriptor.
*/
kana?: string;

/**
* The Kanji variation of the descriptor.
*/
kanji?: string;
}

interface BillingDetails {
/**
* Billing address.
Expand Down
6 changes: 0 additions & 6 deletions types/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1608,8 +1608,6 @@ declare module 'stripe' {
namespace Tax {
type TaxabilityReason =
| 'customer_exempt'
| 'excluded_territory'
| 'jurisdiction_unsupported'
| 'not_collecting'
| 'not_subject_to_tax'
| 'not_supported'
Expand All @@ -1623,7 +1621,6 @@ declare module 'stripe' {
| 'reverse_charge'
| 'standard_rated'
| 'taxable_basis_reduced'
| 'vat_exempt'
| 'zero_rated';
}
}
Expand Down Expand Up @@ -1750,8 +1747,6 @@ declare module 'stripe' {
namespace Tax {
type TaxabilityReason =
| 'customer_exempt'
| 'excluded_territory'
| 'jurisdiction_unsupported'
| 'not_collecting'
| 'not_subject_to_tax'
| 'not_supported'
Expand All @@ -1765,7 +1760,6 @@ declare module 'stripe' {
| 'reverse_charge'
| 'standard_rated'
| 'taxable_basis_reduced'
| 'vat_exempt'
| 'zero_rated';
}
}
Expand Down
15 changes: 0 additions & 15 deletions types/Checkout/SessionsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,6 @@ declare module 'stripe' {
*/
shipping_options?: Array<SessionCreateParams.ShippingOption>;

/**
* [Deprecated] The shipping rate to apply to this Session. Only up to one may be specified.
*/
shipping_rates?: Array<string>;

/**
* Describes the type of transaction being performed by Checkout in order to customize
* relevant text on the page, such as the submit button. `submit_type` can only be
Expand Down Expand Up @@ -2027,11 +2022,6 @@ declare module 'stripe' {
*/
billing_cycle_anchor?: number;

/**
* The ID of the coupon to apply to this subscription. A coupon applied to a subscription will only affect invoices created for that particular subscription.
*/
coupon?: string;

/**
* The tax rates that will apply to any subscription item that does not have
* `tax_rates` set. Invoices created will have their `default_tax_rates` populated
Expand Down Expand Up @@ -2073,11 +2063,6 @@ declare module 'stripe' {
*/
trial_end?: number;

/**
* Indicates if a plan's `trial_period_days` should be applied to the subscription. Setting `trial_end` on `subscription_data` is preferred. Defaults to `false`.
*/
trial_from_plan?: boolean;

/**
* Integer representing the number of trial period days before the
* customer is charged for the first time. Has to be at least 1.
Expand Down
3 changes: 0 additions & 3 deletions types/CreditNotes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,6 @@ declare module 'stripe' {
namespace Tax {
type TaxabilityReason =
| 'customer_exempt'
| 'excluded_territory'
| 'jurisdiction_unsupported'
| 'not_collecting'
| 'not_subject_to_tax'
| 'not_supported'
Expand All @@ -251,7 +249,6 @@ declare module 'stripe' {
| 'reverse_charge'
| 'standard_rated'
| 'taxable_basis_reduced'
| 'vat_exempt'
| 'zero_rated';
}
}
Expand Down
1 change: 0 additions & 1 deletion types/CustomersResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,6 @@ declare module 'stripe' {
| 'blik'
| 'boleto'
| 'card'
| 'card_present'
| 'cashapp'
| 'customer_balance'
| 'eps'
Expand Down
3 changes: 1 addition & 2 deletions types/Disputes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ declare module 'stripe' {
reason: string;

/**
* Current status of dispute. Possible values are `warning_needs_response`, `warning_under_review`, `warning_closed`, `needs_response`, `under_review`, `charge_refunded`, `won`, or `lost`.
* Current status of dispute. Possible values are `warning_needs_response`, `warning_under_review`, `warning_closed`, `needs_response`, `under_review`, `won`, or `lost`.
*/
status: Dispute.Status;
}
Expand Down Expand Up @@ -248,7 +248,6 @@ declare module 'stripe' {
}

type Status =
| 'charge_refunded'
| 'lost'
| 'needs_response'
| 'under_review'
Expand Down
3 changes: 0 additions & 3 deletions types/Invoices.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1124,8 +1124,6 @@ declare module 'stripe' {
namespace Tax {
type TaxabilityReason =
| 'customer_exempt'
| 'excluded_territory'
| 'jurisdiction_unsupported'
| 'not_collecting'
| 'not_subject_to_tax'
| 'not_supported'
Expand All @@ -1139,7 +1137,6 @@ declare module 'stripe' {
| 'reverse_charge'
| 'standard_rated'
| 'taxable_basis_reduced'
| 'vat_exempt'
| 'zero_rated';
}
}
Expand Down

0 comments on commit 9958b1d

Please sign in to comment.