Skip to content

Commit

Permalink
Codegen for openapi v232
Browse files Browse the repository at this point in the history
  • Loading branch information
richardm-stripe committed Feb 23, 2023
1 parent 963819d commit e95a2f4
Show file tree
Hide file tree
Showing 18 changed files with 61 additions and 42 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v226
v232
6 changes: 4 additions & 2 deletions types/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1249,7 +1249,7 @@ declare module 'stripe' {

interface Ideal {
/**
* The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, or `van_lanschot`.
* The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
*/
bank: Ideal.Bank | null;

Expand Down Expand Up @@ -1294,11 +1294,13 @@ declare module 'stripe' {
| 'revolut'
| 'sns_bank'
| 'triodos_bank'
| 'van_lanschot';
| 'van_lanschot'
| 'yoursafe';

type Bic =
| 'ABNANL2A'
| 'ASNBNL21'
| 'BITSNL2A'
| 'BUNQNL2A'
| 'FVLBNL22'
| 'HANDNL2A'
Expand Down
4 changes: 2 additions & 2 deletions types/InvoiceItems.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,12 @@ declare module 'stripe' {
namespace InvoiceItem {
interface Period {
/**
* The end of the period, which must be greater than or equal to the start.
* The end of the period, which must be greater than or equal to the start. This value is inclusive.
*/
end: number;

/**
* The start of the period.
* The start of the period. This value is inclusive.
*/
start: number;
}
Expand Down
8 changes: 4 additions & 4 deletions types/InvoiceItemsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,12 @@ declare module 'stripe' {

interface Period {
/**
* The end of the period, which must be greater than or equal to the start.
* The end of the period, which must be greater than or equal to the start. This value is inclusive.
*/
end: number;

/**
* The start of the period.
* The start of the period. This value is inclusive.
*/
start: number;
}
Expand Down Expand Up @@ -257,12 +257,12 @@ declare module 'stripe' {

interface Period {
/**
* The end of the period, which must be greater than or equal to the start.
* The end of the period, which must be greater than or equal to the start. This value is inclusive.
*/
end: number;

/**
* The start of the period.
* The start of the period. This value is inclusive.
*/
start: number;
}
Expand Down
4 changes: 2 additions & 2 deletions types/InvoiceLineItems.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,12 @@ declare module 'stripe' {

interface Period {
/**
* The end of the period, which must be greater than or equal to the start.
* The end of the period, which must be greater than or equal to the start. This value is inclusive.
*/
end: number;

/**
* The start of the period.
* The start of the period. This value is inclusive.
*/
start: number;
}
Expand Down
8 changes: 4 additions & 4 deletions types/InvoicesResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1614,12 +1614,12 @@ declare module 'stripe' {

interface Period {
/**
* The end of the period, which must be greater than or equal to the start.
* The end of the period, which must be greater than or equal to the start. This value is inclusive.
*/
end: number;

/**
* The start of the period.
* The start of the period. This value is inclusive.
*/
start: number;
}
Expand Down Expand Up @@ -2184,12 +2184,12 @@ declare module 'stripe' {

interface Period {
/**
* The end of the period, which must be greater than or equal to the start.
* The end of the period, which must be greater than or equal to the start. This value is inclusive.
*/
end: number;

/**
* The start of the period.
* The start of the period. This value is inclusive.
*/
start: number;
}
Expand Down
11 changes: 7 additions & 4 deletions types/Issuing/Cardholders.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ declare module 'stripe' {
}

interface Individual {
/**
* Information related to the card_issuing program for this cardholder.
*/
card_issuing: Individual.CardIssuing | null;

/**
Expand All @@ -100,12 +103,12 @@ declare module 'stripe' {
dob: Individual.Dob | null;

/**
* The first name of this cardholder. This field cannot contain any numbers, special characters (except periods, commas, hyphens, spaces and apostrophes) or non-latin letters.
* The first name of this cardholder. Required before activating Cards. This field cannot contain any numbers, special characters (except periods, commas, hyphens, spaces and apostrophes) or non-latin letters.
*/
first_name: string | null;

/**
* The last name of this cardholder. This field cannot contain any numbers, special characters (except periods, commas, hyphens, spaces and apostrophes) or non-latin letters.
* The last name of this cardholder. Required before activating Cards. This field cannot contain any numbers, special characters (except periods, commas, hyphens, spaces and apostrophes) or non-latin letters.
*/
last_name: string | null;

Expand All @@ -126,12 +129,12 @@ declare module 'stripe' {
namespace CardIssuing {
interface UserTermsAcceptance {
/**
* The Unix timestamp marking when the cardholder accepted the Authorized User Terms.
* The Unix timestamp marking when the cardholder accepted the Authorized User Terms. Required for Celtic Spend Card users.
*/
date: number | null;

/**
* The IP address from which the cardholder accepted the Authorized User Terms.
* The IP address from which the cardholder accepted the Authorized User Terms. Required for Celtic Spend Card users.
*/
ip: string | null;

Expand Down
10 changes: 5 additions & 5 deletions types/Issuing/CardholdersResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ declare module 'stripe' {
name: string;

/**
* One of `individual` or `company`.
* One of `individual` or `company`. See [Choose a cardholder type](https://stripe.com/docs/issuing/other/choose-cardholder) for more details.
*/
type: CardholderCreateParams.Type;

Expand Down Expand Up @@ -116,12 +116,12 @@ declare module 'stripe' {
dob?: Individual.Dob;

/**
* The first name of this cardholder. This field cannot contain any special characters or numbers.
* The first name of this cardholder. Required before activating Cards. This field cannot contain any numbers, special characters (except periods, commas, hyphens, spaces and apostrophes) or non-latin letters.
*/
first_name?: string;

/**
* The last name of this cardholder. This field cannot contain any special characters or numbers.
* The last name of this cardholder. Required before activating Cards. This field cannot contain any numbers, special characters (except periods, commas, hyphens, spaces and apostrophes) or non-latin letters.
*/
last_name?: string;

Expand Down Expand Up @@ -1207,12 +1207,12 @@ declare module 'stripe' {
dob?: Individual.Dob;

/**
* The first name of this cardholder. This field cannot contain any special characters or numbers.
* The first name of this cardholder. Required before activating Cards. This field cannot contain any numbers, special characters (except periods, commas, hyphens, spaces and apostrophes) or non-latin letters.
*/
first_name?: string;

/**
* The last name of this cardholder. This field cannot contain any special characters or numbers.
* The last name of this cardholder. Required before activating Cards. This field cannot contain any numbers, special characters (except periods, commas, hyphens, spaces and apostrophes) or non-latin letters.
*/
last_name?: string;

Expand Down
2 changes: 1 addition & 1 deletion types/Issuing/Cards.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ declare module 'stripe' {
spending_controls: Card.SpendingControls;

/**
* Whether authorizations can be approved on this card.
* Whether authorizations can be approved on this card. May be blocked from activating cards depending on past-due Cardholder requirements. Defaults to `inactive`.
*/
status: Card.Status;

Expand Down
4 changes: 2 additions & 2 deletions types/Issuing/CardsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ declare module 'stripe' {
spending_controls?: CardCreateParams.SpendingControls;

/**
* Whether authorizations can be approved on this card. Defaults to `inactive`.
* Whether authorizations can be approved on this card. May be blocked from activating cards depending on past-due Cardholder requirements. Defaults to `inactive`.
*/
status?: CardCreateParams.Status;
}
Expand Down Expand Up @@ -1097,7 +1097,7 @@ declare module 'stripe' {
spending_controls?: CardUpdateParams.SpendingControls;

/**
* Dictates whether authorizations can be approved on this card. If this card is being canceled because it was lost or stolen, this information should be provided as `cancellation_reason`.
* Dictates whether authorizations can be approved on this card. May be blocked from activating cards depending on past-due Cardholder requirements. Defaults to `inactive`. If this card is being canceled because it was lost or stolen, this information should be provided as `cancellation_reason`.
*/
status?: CardUpdateParams.Status;
}
Expand Down
9 changes: 6 additions & 3 deletions types/PaymentIntentsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,8 @@ declare module 'stripe' {
| 'revolut'
| 'sns_bank'
| 'triodos_bank'
| 'van_lanschot';
| 'van_lanschot'
| 'yoursafe';
}

interface InteracPresent {}
Expand Down Expand Up @@ -2341,7 +2342,8 @@ declare module 'stripe' {
| 'revolut'
| 'sns_bank'
| 'triodos_bank'
| 'van_lanschot';
| 'van_lanschot'
| 'yoursafe';
}

interface InteracPresent {}
Expand Down Expand Up @@ -4241,7 +4243,8 @@ declare module 'stripe' {
| 'revolut'
| 'sns_bank'
| 'triodos_bank'
| 'van_lanschot';
| 'van_lanschot'
| 'yoursafe';
}

interface InteracPresent {}
Expand Down
6 changes: 4 additions & 2 deletions types/PaymentMethods.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ declare module 'stripe' {

interface Ideal {
/**
* The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, or `van_lanschot`.
* The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
*/
bank: Ideal.Bank | null;

Expand All @@ -525,11 +525,13 @@ declare module 'stripe' {
| 'revolut'
| 'sns_bank'
| 'triodos_bank'
| 'van_lanschot';
| 'van_lanschot'
| 'yoursafe';

type Bic =
| 'ABNANL2A'
| 'ASNBNL21'
| 'BITSNL2A'
| 'BUNQNL2A'
| 'FVLBNL22'
| 'HANDNL2A'
Expand Down
3 changes: 2 additions & 1 deletion types/PaymentMethodsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,8 @@ declare module 'stripe' {
| 'revolut'
| 'sns_bank'
| 'triodos_bank'
| 'van_lanschot';
| 'van_lanschot'
| 'yoursafe';
}

interface InteracPresent {}
Expand Down
6 changes: 4 additions & 2 deletions types/SetupAttempts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ declare module 'stripe' {

interface Ideal {
/**
* The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, or `van_lanschot`.
* The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
*/
bank: Ideal.Bank | null;

Expand Down Expand Up @@ -293,11 +293,13 @@ declare module 'stripe' {
| 'revolut'
| 'sns_bank'
| 'triodos_bank'
| 'van_lanschot';
| 'van_lanschot'
| 'yoursafe';

type Bic =
| 'ABNANL2A'
| 'ASNBNL21'
| 'BITSNL2A'
| 'BUNQNL2A'
| 'FVLBNL22'
| 'HANDNL2A'
Expand Down
9 changes: 6 additions & 3 deletions types/SetupIntentsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,8 @@ declare module 'stripe' {
| 'revolut'
| 'sns_bank'
| 'triodos_bank'
| 'van_lanschot';
| 'van_lanschot'
| 'yoursafe';
}

interface InteracPresent {}
Expand Down Expand Up @@ -1368,7 +1369,8 @@ declare module 'stripe' {
| 'revolut'
| 'sns_bank'
| 'triodos_bank'
| 'van_lanschot';
| 'van_lanschot'
| 'yoursafe';
}

interface InteracPresent {}
Expand Down Expand Up @@ -2326,7 +2328,8 @@ declare module 'stripe' {
| 'revolut'
| 'sns_bank'
| 'triodos_bank'
| 'van_lanschot';
| 'van_lanschot'
| 'yoursafe';
}

interface InteracPresent {}
Expand Down
1 change: 1 addition & 0 deletions types/TaxRates.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ declare module 'stripe' {
type TaxType =
| 'gst'
| 'hst'
| 'igst'
| 'jct'
| 'pst'
| 'qst'
Expand Down
2 changes: 2 additions & 0 deletions types/TaxRatesResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ declare module 'stripe' {
type TaxType =
| 'gst'
| 'hst'
| 'igst'
| 'jct'
| 'pst'
| 'qst'
Expand Down Expand Up @@ -129,6 +130,7 @@ declare module 'stripe' {
type TaxType =
| 'gst'
| 'hst'
| 'igst'
| 'jct'
| 'pst'
| 'qst'
Expand Down
8 changes: 4 additions & 4 deletions types/TestHelpers/Terminal/ReadersResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ declare module 'stripe' {
namespace Terminal {
interface ReaderPresentPaymentMethodParams {
/**
* Simulated data for the card_present payment method
* Simulated data for the card_present payment method.
*/
card_present?: ReaderPresentPaymentMethodParams.CardPresent;

Expand All @@ -16,20 +16,20 @@ declare module 'stripe' {
expand?: Array<string>;

/**
* Simulated data for the interac_present payment method
* Simulated data for the interac_present payment method.
*/
interac_present?: ReaderPresentPaymentMethodParams.InteracPresent;

/**
* Simulated payment type
* Simulated payment type.
*/
type?: ReaderPresentPaymentMethodParams.Type;
}

namespace ReaderPresentPaymentMethodParams {
interface CardPresent {
/**
* Card Number
* The card number, as a string without any separators.
*/
number?: string;
}
Expand Down

0 comments on commit e95a2f4

Please sign in to comment.