Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update generated code #2175

Merged
merged 4 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1260
v1266
2 changes: 1 addition & 1 deletion test/resources/generated_examples_test.spec.js

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions types/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 +1007,8 @@ declare module 'stripe' {
| 'verification_missing_executives'
| 'verification_missing_owners'
| 'verification_requires_additional_memorandum_of_associations'
| 'verification_requires_additional_proof_of_registration';
| 'verification_requires_additional_proof_of_registration'
| 'verification_supportability';
}
}

Expand Down Expand Up @@ -1173,7 +1174,8 @@ declare module 'stripe' {
| 'verification_missing_executives'
| 'verification_missing_owners'
| 'verification_requires_additional_memorandum_of_associations'
| 'verification_requires_additional_proof_of_registration';
| 'verification_requires_additional_proof_of_registration'
| 'verification_supportability';
}
}

Expand Down
6 changes: 4 additions & 2 deletions types/BankAccounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ declare module 'stripe' {
| 'verification_missing_executives'
| 'verification_missing_owners'
| 'verification_requires_additional_memorandum_of_associations'
| 'verification_requires_additional_proof_of_registration';
| 'verification_requires_additional_proof_of_registration'
| 'verification_supportability';
}
}

Expand Down Expand Up @@ -384,7 +385,8 @@ declare module 'stripe' {
| 'verification_missing_executives'
| 'verification_missing_owners'
| 'verification_requires_additional_memorandum_of_associations'
| 'verification_requires_additional_proof_of_registration';
| 'verification_requires_additional_proof_of_registration'
| 'verification_supportability';
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions types/Capabilities.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ declare module 'stripe' {
| 'verification_missing_executives'
| 'verification_missing_owners'
| 'verification_requires_additional_memorandum_of_associations'
| 'verification_requires_additional_proof_of_registration';
| 'verification_requires_additional_proof_of_registration'
| 'verification_supportability';
}
}

Expand Down Expand Up @@ -396,7 +397,8 @@ declare module 'stripe' {
| 'verification_missing_executives'
| 'verification_missing_owners'
| 'verification_requires_additional_memorandum_of_associations'
| 'verification_requires_additional_proof_of_registration';
| 'verification_requires_additional_proof_of_registration'
| 'verification_supportability';
}
}

Expand Down
23 changes: 23 additions & 0 deletions types/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1657,6 +1657,11 @@ declare module 'stripe' {
}

interface Klarna {
/**
* The payer details for this transaction.
*/
payer_details: Klarna.PayerDetails | null;

/**
* The Klarna payment method used for this transaction.
* Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments`
Expand All @@ -1670,6 +1675,24 @@ declare module 'stripe' {
preferred_locale: string | null;
}

namespace Klarna {
interface PayerDetails {
/**
* The payer's address
*/
address: PayerDetails.Address | null;
}

namespace PayerDetails {
interface Address {
/**
* The payer address country
*/
country: string | null;
}
}
}

interface Konbini {
/**
* If the payment succeeded, this contains the details of the convenience store where the payment was completed.
Expand Down
15 changes: 14 additions & 1 deletion types/Disputes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,8 @@ declare module 'stripe' {
}

interface PaymentMethodDetails {
amazon_pay?: PaymentMethodDetails.AmazonPay;

card?: PaymentMethodDetails.Card;

klarna?: PaymentMethodDetails.Klarna;
Expand All @@ -261,6 +263,17 @@ declare module 'stripe' {
}

namespace PaymentMethodDetails {
interface AmazonPay {
/**
* The AmazonPay dispute type, chargeback or claim
*/
dispute_type: AmazonPay.DisputeType | null;
}

namespace AmazonPay {
type DisputeType = 'chargeback' | 'claim';
}

interface Card {
/**
* Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
Expand Down Expand Up @@ -301,7 +314,7 @@ declare module 'stripe' {
reason_code: string | null;
}

type Type = 'card' | 'klarna' | 'paypal';
type Type = 'amazon_pay' | 'card' | 'klarna' | 'paypal';
}

type Status =
Expand Down
3 changes: 2 additions & 1 deletion types/InvoiceRenderingTemplates.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
declare module 'stripe' {
namespace Stripe {
/**
* The InvoiceRenderingTemplate object.
* Invoice Rendering Templates are used to configure how invoices are rendered on surfaces like the PDF. Invoice Rendering Templates
* can be created from within the Dashboard, and they can be used over the API when creating invoices.
*/
interface InvoiceRenderingTemplate {
/**
Expand Down
6 changes: 6 additions & 0 deletions types/Invoices.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@ declare module 'stripe' {

automatic_tax: Invoice.AutomaticTax;

/**
* The time when this invoice is currently scheduled to be automatically finalized. The field will be `null` if the invoice is not scheduled to finalize in the future. If the invoice is not in the draft state, this field will always be `null` - see `finalized_at` for the time when an already-finalized invoice was finalized.
*/
automatically_finalizes_at: number | null;

/**
* Indicates the reason why the invoice was created.
*
Expand Down Expand Up @@ -940,6 +945,7 @@ declare module 'stripe' {
| 'terminal_location_country_unsupported'
| 'terminal_reader_busy'
| 'terminal_reader_hardware_fault'
| 'terminal_reader_invalid_location_for_activation'
| 'terminal_reader_invalid_location_for_payment'
| 'terminal_reader_offline'
| 'terminal_reader_timeout'
Expand Down
1 change: 1 addition & 0 deletions types/PaymentIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,7 @@ declare module 'stripe' {
| 'terminal_location_country_unsupported'
| 'terminal_reader_busy'
| 'terminal_reader_hardware_fault'
| 'terminal_reader_invalid_location_for_activation'
| 'terminal_reader_invalid_location_for_payment'
| 'terminal_reader_offline'
| 'terminal_reader_timeout'
Expand Down
6 changes: 4 additions & 2 deletions types/Persons.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,8 @@ declare module 'stripe' {
| 'verification_missing_executives'
| 'verification_missing_owners'
| 'verification_requires_additional_memorandum_of_associations'
| 'verification_requires_additional_proof_of_registration';
| 'verification_requires_additional_proof_of_registration'
| 'verification_supportability';
}
}

Expand Down Expand Up @@ -638,7 +639,8 @@ declare module 'stripe' {
| 'verification_missing_executives'
| 'verification_missing_owners'
| 'verification_requires_additional_memorandum_of_associations'
| 'verification_requires_additional_proof_of_registration';
| 'verification_requires_additional_proof_of_registration'
| 'verification_supportability';
}
}

Expand Down
1 change: 1 addition & 0 deletions types/SetupAttempts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,7 @@ declare module 'stripe' {
| 'terminal_location_country_unsupported'
| 'terminal_reader_busy'
| 'terminal_reader_hardware_fault'
| 'terminal_reader_invalid_location_for_activation'
| 'terminal_reader_invalid_location_for_payment'
| 'terminal_reader_offline'
| 'terminal_reader_timeout'
Expand Down
1 change: 1 addition & 0 deletions types/SetupIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ declare module 'stripe' {
| 'terminal_location_country_unsupported'
| 'terminal_reader_busy'
| 'terminal_reader_hardware_fault'
| 'terminal_reader_invalid_location_for_activation'
| 'terminal_reader_invalid_location_for_payment'
| 'terminal_reader_offline'
| 'terminal_reader_timeout'
Expand Down
30 changes: 30 additions & 0 deletions types/Tax/Registrations.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1023,6 +1023,8 @@ declare module 'stripe' {
*/
state: string;

state_sales_tax?: Us.StateSalesTax;

/**
* Type of registration in the US.
*/
Expand All @@ -1044,6 +1046,34 @@ declare module 'stripe' {
jurisdiction: string;
}

interface StateSalesTax {
/**
* Elections for the state sales tax registration.
*/
elections?: Array<StateSalesTax.Election>;
}

namespace StateSalesTax {
interface Election {
/**
* A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction.
*/
jurisdiction?: string;

/**
* The type of the election for the state sales tax registration.
*/
type: Election.Type;
}

namespace Election {
type Type =
| 'local_use_tax'
| 'simplified_sellers_use_tax'
| 'single_local_use_tax';
}
}

type Type =
| 'local_amusement_tax'
| 'local_lease_tax'
Expand Down
33 changes: 33 additions & 0 deletions types/Tax/RegistrationsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1257,6 +1257,11 @@ declare module 'stripe' {
*/
state: string;

/**
* Options for the state sales tax registration.
*/
state_sales_tax?: Us.StateSalesTax;

/**
* Type of registration to be created in the US.
*/
Expand All @@ -1278,6 +1283,34 @@ declare module 'stripe' {
jurisdiction: string;
}

interface StateSalesTax {
/**
* Elections for the state sales tax registration.
*/
elections: Array<StateSalesTax.Election>;
}

namespace StateSalesTax {
interface Election {
/**
* A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. Supported FIPS codes are: `003` (Allegheny County) and `60000` (Philadelphia City).
*/
jurisdiction?: string;

/**
* The type of the election for the state sales tax registration.
*/
type: Election.Type;
}

namespace Election {
type Type =
| 'local_use_tax'
| 'simplified_sellers_use_tax'
| 'single_local_use_tax';
}
}

type Type =
| 'local_amusement_tax'
| 'local_lease_tax'
Expand Down
Loading