Skip to content

Commit

Permalink
Codegen for openapi 3c477c0 (#1359)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardm-stripe authored Feb 26, 2022
1 parent 9bec53e commit 57736db
Show file tree
Hide file tree
Showing 9 changed files with 405 additions and 6 deletions.
31 changes: 31 additions & 0 deletions types/2020-08-27/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,11 @@ declare module 'stripe' {
*/
klarna_payments?: Capabilities.KlarnaPayments;

/**
* The status of the konbini payments capability of the account, or whether the account can directly process konbini charges.
*/
konbini_payments?: Capabilities.KonbiniPayments;

/**
* The status of the legacy payments capability of the account.
*/
Expand Down Expand Up @@ -310,6 +315,8 @@ declare module 'stripe' {

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

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

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

type OxxoPayments = 'active' | 'inactive' | 'pending';
Expand Down Expand Up @@ -1243,6 +1250,11 @@ declare module 'stripe' {
*/
klarna_payments?: Capabilities.KlarnaPayments;

/**
* The konbini_payments capability.
*/
konbini_payments?: Capabilities.KonbiniPayments;

/**
* The legacy_payments capability.
*/
Expand Down Expand Up @@ -1397,6 +1409,13 @@ declare module 'stripe' {
requested?: boolean;
}

interface KonbiniPayments {
/**
* 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 LegacyPayments {
/**
* 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.
Expand Down Expand Up @@ -2313,6 +2332,11 @@ declare module 'stripe' {
*/
klarna_payments?: Capabilities.KlarnaPayments;

/**
* The konbini_payments capability.
*/
konbini_payments?: Capabilities.KonbiniPayments;

/**
* The legacy_payments capability.
*/
Expand Down Expand Up @@ -2467,6 +2491,13 @@ declare module 'stripe' {
requested?: boolean;
}

interface KonbiniPayments {
/**
* 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 LegacyPayments {
/**
* 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.
Expand Down
12 changes: 6 additions & 6 deletions types/2020-08-27/BillingPortal/Configurations.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ declare module 'stripe' {
/**
* A link to the business's publicly available privacy policy.
*/
privacy_policy_url: string;
privacy_policy_url: string | null;

/**
* A link to the business's publicly available terms of service.
*/
terms_of_service_url: string;
terms_of_service_url: string | null;
}

interface Features {
Expand Down Expand Up @@ -273,12 +273,12 @@ declare module 'stripe' {
/**
* A link to the business's publicly available privacy policy.
*/
privacy_policy_url: string;
privacy_policy_url?: string;

/**
* A link to the business's publicly available terms of service.
*/
terms_of_service_url: string;
terms_of_service_url?: string;
}

interface Features {
Expand Down Expand Up @@ -509,12 +509,12 @@ declare module 'stripe' {
/**
* A link to the business's publicly available privacy policy.
*/
privacy_policy_url?: string;
privacy_policy_url?: Stripe.Emptyable<string>;

/**
* A link to the business's publicly available terms of service.
*/
terms_of_service_url?: string;
terms_of_service_url?: Stripe.Emptyable<string>;
}

interface Features {
Expand Down
22 changes: 22 additions & 0 deletions types/2020-08-27/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,8 @@ declare module 'stripe' {

klarna?: PaymentMethodDetails.Klarna;

konbini?: PaymentMethodDetails.Konbini;

multibanco?: PaymentMethodDetails.Multibanco;

oxxo?: PaymentMethodDetails.Oxxo;
Expand Down Expand Up @@ -1424,6 +1426,26 @@ declare module 'stripe' {
preferred_locale: string | null;
}

interface Konbini {
/**
* If the payment succeeded, this contains the details of the convenience store where the payment was completed.
*/
store: Konbini.Store | null;
}

namespace Konbini {
interface Store {
/**
* The name of the convenience store chain where the payment was completed.
*/
chain: Store.Chain | null;
}

namespace Store {
type Chain = 'familymart' | 'lawson' | 'ministop' | 'seicomart';
}
}

interface Multibanco {
/**
* Entity number associated with this Multibanco payment.
Expand Down
22 changes: 22 additions & 0 deletions types/2020-08-27/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,8 @@ declare module 'stripe' {

boleto?: PaymentMethodOptions.Boleto;

konbini?: PaymentMethodOptions.Konbini;

oxxo?: PaymentMethodOptions.Oxxo;
}

Expand Down Expand Up @@ -498,6 +500,13 @@ declare module 'stripe' {
expires_after_days: number;
}

interface Konbini {
/**
* The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST.
*/
expires_after_days: number | null;
}

interface Oxxo {
/**
* The number of calendar days before an OXXO invoice expires. For example, if you create an OXXO invoice on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
Expand Down Expand Up @@ -1506,6 +1515,11 @@ declare module 'stripe' {
*/
boleto?: PaymentMethodOptions.Boleto;

/**
* contains details about the Konbini payment method options.
*/
konbini?: PaymentMethodOptions.Konbini;

/**
* contains details about the OXXO payment method options.
*/
Expand Down Expand Up @@ -1585,6 +1599,13 @@ declare module 'stripe' {
expires_after_days?: number;
}

interface Konbini {
/**
* The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST. Defaults to 3 days.
*/
expires_after_days?: Stripe.Emptyable<number>;
}

interface Oxxo {
/**
* The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
Expand Down Expand Up @@ -1624,6 +1645,7 @@ declare module 'stripe' {
| 'grabpay'
| 'ideal'
| 'klarna'
| 'konbini'
| 'oxxo'
| 'p24'
| 'sepa_debit'
Expand Down
1 change: 1 addition & 0 deletions types/2020-08-27/Customers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,7 @@ declare module 'stripe' {
| 'grabpay'
| 'ideal'
| 'klarna'
| 'konbini'
| 'oxxo'
| 'p24'
| 'sepa_debit'
Expand Down
24 changes: 24 additions & 0 deletions types/2020-08-27/Invoices.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,11 @@ declare module 'stripe' {
* If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent.
*/
card: PaymentMethodOptions.Card | null;

/**
* If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
*/
konbini: PaymentMethodOptions.Konbini | null;
}

namespace PaymentMethodOptions {
Expand Down Expand Up @@ -651,6 +656,8 @@ declare module 'stripe' {
namespace Card {
type RequestThreeDSecure = 'any' | 'automatic';
}

interface Konbini {}
}

type PaymentMethodType =
Expand All @@ -666,6 +673,7 @@ declare module 'stripe' {
| 'giropay'
| 'grabpay'
| 'ideal'
| 'konbini'
| 'sepa_credit_transfer'
| 'sepa_debit'
| 'sofort'
Expand Down Expand Up @@ -966,6 +974,11 @@ declare module 'stripe' {
* If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent.
*/
card?: Stripe.Emptyable<PaymentMethodOptions.Card>;

/**
* If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
*/
konbini?: Stripe.Emptyable<PaymentMethodOptions.Konbini>;
}

namespace PaymentMethodOptions {
Expand Down Expand Up @@ -1017,6 +1030,8 @@ declare module 'stripe' {
namespace Card {
type RequestThreeDSecure = 'any' | 'automatic';
}

interface Konbini {}
}

type PaymentMethodType =
Expand All @@ -1032,6 +1047,7 @@ declare module 'stripe' {
| 'giropay'
| 'grabpay'
| 'ideal'
| 'konbini'
| 'sepa_credit_transfer'
| 'sepa_debit'
| 'sofort'
Expand Down Expand Up @@ -1224,6 +1240,11 @@ declare module 'stripe' {
* If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent.
*/
card?: Stripe.Emptyable<PaymentMethodOptions.Card>;

/**
* If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
*/
konbini?: Stripe.Emptyable<PaymentMethodOptions.Konbini>;
}

namespace PaymentMethodOptions {
Expand Down Expand Up @@ -1275,6 +1296,8 @@ declare module 'stripe' {
namespace Card {
type RequestThreeDSecure = 'any' | 'automatic';
}

interface Konbini {}
}

type PaymentMethodType =
Expand All @@ -1290,6 +1313,7 @@ declare module 'stripe' {
| 'giropay'
| 'grabpay'
| 'ideal'
| 'konbini'
| 'sepa_credit_transfer'
| 'sepa_debit'
| 'sofort'
Expand Down
Loading

0 comments on commit 57736db

Please sign in to comment.