Skip to content

Commit

Permalink
Codegen for openapi v202
Browse files Browse the repository at this point in the history
  • Loading branch information
richardm-stripe committed Oct 13, 2022
1 parent deb7bb5 commit c0fd4c2
Show file tree
Hide file tree
Showing 12 changed files with 48 additions and 24 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v201
v202
4 changes: 4 additions & 0 deletions types/2022-08-01/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,7 @@ declare module 'stripe' {
type Code =
| 'invalid_address_city_state_postal_code'
| 'invalid_dob_age_under_18'
| 'invalid_representative_country'
| 'invalid_street_address'
| 'invalid_tos_acceptance'
| 'invalid_value_other'
Expand Down Expand Up @@ -749,6 +750,7 @@ declare module 'stripe' {
| 'verification_failed_keyed_match'
| 'verification_failed_name_match'
| 'verification_failed_other'
| 'verification_failed_residential_address'
| 'verification_failed_tax_id_match'
| 'verification_failed_tax_id_not_issued'
| 'verification_missing_executives'
Expand Down Expand Up @@ -833,6 +835,7 @@ declare module 'stripe' {
type Code =
| 'invalid_address_city_state_postal_code'
| 'invalid_dob_age_under_18'
| 'invalid_representative_country'
| 'invalid_street_address'
| 'invalid_tos_acceptance'
| 'invalid_value_other'
Expand Down Expand Up @@ -873,6 +876,7 @@ declare module 'stripe' {
| 'verification_failed_keyed_match'
| 'verification_failed_name_match'
| 'verification_failed_other'
| 'verification_failed_residential_address'
| 'verification_failed_tax_id_match'
| 'verification_failed_tax_id_not_issued'
| 'verification_missing_executives'
Expand Down
4 changes: 4 additions & 0 deletions types/2022-08-01/Capabilities.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ declare module 'stripe' {
type Code =
| 'invalid_address_city_state_postal_code'
| 'invalid_dob_age_under_18'
| 'invalid_representative_country'
| 'invalid_street_address'
| 'invalid_tos_acceptance'
| 'invalid_value_other'
Expand Down Expand Up @@ -160,6 +161,7 @@ declare module 'stripe' {
| 'verification_failed_keyed_match'
| 'verification_failed_name_match'
| 'verification_failed_other'
| 'verification_failed_residential_address'
| 'verification_failed_tax_id_match'
| 'verification_failed_tax_id_not_issued'
| 'verification_missing_executives'
Expand Down Expand Up @@ -250,6 +252,7 @@ declare module 'stripe' {
type Code =
| 'invalid_address_city_state_postal_code'
| 'invalid_dob_age_under_18'
| 'invalid_representative_country'
| 'invalid_street_address'
| 'invalid_tos_acceptance'
| 'invalid_value_other'
Expand Down Expand Up @@ -290,6 +293,7 @@ declare module 'stripe' {
| 'verification_failed_keyed_match'
| 'verification_failed_name_match'
| 'verification_failed_other'
| 'verification_failed_residential_address'
| 'verification_failed_tax_id_match'
| 'verification_failed_tax_id_not_issued'
| 'verification_missing_executives'
Expand Down
22 changes: 1 addition & 21 deletions types/2022-08-01/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1536,7 +1536,7 @@ declare module 'stripe' {
metadata?: Stripe.MetadataParam;

/**
* The mode of the Checkout Session. Required when using prices or `setup` mode. Pass `subscription` if the Checkout Session includes at least one recurring item.
* The mode of the Checkout Session. Pass `subscription` if the Checkout Session includes at least one recurring item.
*/
mode?: SessionCreateParams.Mode;

Expand Down Expand Up @@ -1728,31 +1728,11 @@ declare module 'stripe' {
*/
amount?: number;

/**
* [Deprecated] Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). Required if `amount` is passed.
*/
currency?: string;

/**
* [Deprecated] The description for the line item, to be displayed on the Checkout page.
*/
description?: string;

/**
* The [tax rates](https://stripe.com/docs/api/tax_rates) that will be applied to this line item depending on the customer's billing/shipping address. We currently support the following countries: US, GB, AU, and all countries in the EU.
*/
dynamic_tax_rates?: Array<string>;

/**
* [Deprecated] A list of image URLs representing this line item. Each image can be up to 5 MB in size. If passing `price` or `price_data`, specify images on the associated product instead.
*/
images?: Array<string>;

/**
* [Deprecated] The name for the item to be displayed on the Checkout page. Required if `amount` is passed.
*/
name?: string;

/**
* The ID of the [Price](https://stripe.com/docs/api/prices) or [Plan](https://stripe.com/docs/api/plans) object. One of `price` or `price_data` is required.
*/
Expand Down
2 changes: 1 addition & 1 deletion types/2022-08-01/Coupons.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ declare module 'stripe' {
};

/**
* Specifies how long the discount will be in effect if used on a subscription. Can be `forever`, `once`, or `repeating`. Defaults to `once`.
* Specifies how long the discount will be in effect if used on a subscription. Defaults to `once`.
*/
duration?: CouponCreateParams.Duration;

Expand Down
5 changes: 5 additions & 0 deletions types/2022-08-01/Invoices.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,11 @@ declare module 'stripe' {
*/
payment_method_type?: string;

/**
* A URL to the request log entry in your dashboard.
*/
request_log_url?: string;

/**
* A SetupIntent guides you through the process of setting up and saving a customer's payment credentials for future payments.
* For example, you could use a SetupIntent to set up and save your customer's card without immediately collecting a payment.
Expand Down
12 changes: 12 additions & 0 deletions types/2022-08-01/Issuing/Authorizations.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ declare module 'stripe' {
*/
metadata: Stripe.Metadata;

/**
* Details about the authorization, such as identifiers, set by the card network.
*/
network_data: Authorization.NetworkData | null;

/**
* The pending authorization request. This field will only be non-null during an `issuing_authorization.request` webhook.
*/
Expand Down Expand Up @@ -178,6 +183,13 @@ declare module 'stripe' {
state: string | null;
}

interface NetworkData {
/**
* ID from the network that identifies the acquiring financial institution. For Visa and Mastercard credit transactions this is as 6 digit code. For Maestro debit transactions this is a 9 digit code. Uncommonly, acquiring institution ID is not provided. When this occurs, the value will be null.
*/
acquiring_institution_id: string | null;
}

interface PendingRequest {
/**
* The additional amount Stripe will hold if the authorization is approved, in the card's [currency](https://stripe.com/docs/api#issuing_authorization_object-pending-request-currency) and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
Expand Down
5 changes: 5 additions & 0 deletions types/2022-08-01/PaymentIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,11 @@ declare module 'stripe' {
*/
payment_method_type?: string;

/**
* A URL to the request log entry in your dashboard.
*/
request_log_url?: string;

/**
* A SetupIntent guides you through the process of setting up and saving a customer's payment credentials for future payments.
* For example, you could use a SetupIntent to set up and save your customer's card without immediately collecting a payment.
Expand Down
4 changes: 4 additions & 0 deletions types/2022-08-01/Persons.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ declare module 'stripe' {
type Code =
| 'invalid_address_city_state_postal_code'
| 'invalid_dob_age_under_18'
| 'invalid_representative_country'
| 'invalid_street_address'
| 'invalid_tos_acceptance'
| 'invalid_value_other'
Expand Down Expand Up @@ -347,6 +348,7 @@ declare module 'stripe' {
| 'verification_failed_keyed_match'
| 'verification_failed_name_match'
| 'verification_failed_other'
| 'verification_failed_residential_address'
| 'verification_failed_tax_id_match'
| 'verification_failed_tax_id_not_issued'
| 'verification_missing_executives'
Expand Down Expand Up @@ -455,6 +457,7 @@ declare module 'stripe' {
type Code =
| 'invalid_address_city_state_postal_code'
| 'invalid_dob_age_under_18'
| 'invalid_representative_country'
| 'invalid_street_address'
| 'invalid_tos_acceptance'
| 'invalid_value_other'
Expand Down Expand Up @@ -495,6 +498,7 @@ declare module 'stripe' {
| 'verification_failed_keyed_match'
| 'verification_failed_name_match'
| 'verification_failed_other'
| 'verification_failed_residential_address'
| 'verification_failed_tax_id_match'
| 'verification_failed_tax_id_not_issued'
| 'verification_missing_executives'
Expand Down
5 changes: 5 additions & 0 deletions types/2022-08-01/SetupAttempts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,11 @@ declare module 'stripe' {
*/
payment_method_type?: string;

/**
* A URL to the request log entry in your dashboard.
*/
request_log_url?: string;

/**
* A SetupIntent guides you through the process of setting up and saving a customer's payment credentials for future payments.
* For example, you could use a SetupIntent to set up and save your customer's card without immediately collecting a payment.
Expand Down
5 changes: 5 additions & 0 deletions types/2022-08-01/SetupIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,11 @@ declare module 'stripe' {
*/
payment_method_type?: string;

/**
* A URL to the request log entry in your dashboard.
*/
request_log_url?: string;

/**
* A SetupIntent guides you through the process of setting up and saving a customer's payment credentials for future payments.
* For example, you could use a SetupIntent to set up and save your customer's card without immediately collecting a payment.
Expand Down
2 changes: 1 addition & 1 deletion types/2022-08-01/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ declare module 'stripe' {
export class Stripe {
static Stripe: typeof Stripe;

constructor(apiKey: string, config: Stripe.StripeConfig);
constructor(apiKey: string, config?: Stripe.StripeConfig);

setAppInfo(info: Stripe.AppInfo): void;

Expand Down

0 comments on commit c0fd4c2

Please sign in to comment.