Skip to content

Commit

Permalink
Merge pull request #1088 from stripe/ctrudeau/codegen-b56f2c0
Browse files Browse the repository at this point in the history
[codegen] Update API Resources
  • Loading branch information
ctrudeau-stripe authored Dec 10, 2020
2 parents 0a77112 + 6cacc88 commit 779f136
Show file tree
Hide file tree
Showing 91 changed files with 425 additions and 43 deletions.
1 change: 1 addition & 0 deletions types/2020-08-27/AccountLinks.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// File generated from our OpenAPI spec

declare module 'stripe' {
namespace Stripe {
/**
Expand Down
1 change: 1 addition & 0 deletions types/2020-08-27/Accounts.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// File generated from our OpenAPI spec

declare module 'stripe' {
namespace Stripe {
/**
Expand Down
3 changes: 2 additions & 1 deletion types/2020-08-27/AlipayAccounts.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// File generated from our OpenAPI spec

declare module 'stripe' {
namespace Stripe {
/**
Expand All @@ -23,7 +24,7 @@ declare module 'stripe' {
/**
* The ID of the customer associated with this Alipay Account.
*/
customer?: string | Stripe.Customer | DeletedCustomer | null;
customer?: string | Stripe.Customer | Stripe.DeletedCustomer | null;

deleted?: void;

Expand Down
1 change: 1 addition & 0 deletions types/2020-08-27/ApplePayDomains.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// File generated from our OpenAPI spec

declare module 'stripe' {
namespace Stripe {
/**
Expand Down
1 change: 1 addition & 0 deletions types/2020-08-27/ApplicationFees.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// File generated from our OpenAPI spec

declare module 'stripe' {
namespace Stripe {
/**
Expand Down
1 change: 1 addition & 0 deletions types/2020-08-27/Applications.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// File generated from our OpenAPI spec

declare module 'stripe' {
namespace Stripe {
/**
Expand Down
1 change: 1 addition & 0 deletions types/2020-08-27/Balance.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// File generated from our OpenAPI spec

declare module 'stripe' {
namespace Stripe {
/**
Expand Down
1 change: 1 addition & 0 deletions types/2020-08-27/BalanceTransactions.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// File generated from our OpenAPI spec

declare module 'stripe' {
namespace Stripe {
/**
Expand Down
3 changes: 2 additions & 1 deletion types/2020-08-27/BankAccounts.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// File generated from our OpenAPI spec

declare module 'stripe' {
namespace Stripe {
/**
Expand Down Expand Up @@ -55,7 +56,7 @@ declare module 'stripe' {
/**
* The ID of the customer that the bank account is associated with.
*/
customer?: string | Stripe.Customer | DeletedCustomer | null;
customer?: string | Stripe.Customer | Stripe.DeletedCustomer | null;

/**
* Whether this bank account is the default external account for its currency.
Expand Down
1 change: 1 addition & 0 deletions types/2020-08-27/BillingPortal/Sessions.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// File generated from our OpenAPI spec

declare module 'stripe' {
namespace Stripe {
namespace BillingPortal {
Expand Down
1 change: 1 addition & 0 deletions types/2020-08-27/BitcoinReceivers.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// File generated from our OpenAPI spec

declare module 'stripe' {
namespace Stripe {
/**
Expand Down
1 change: 1 addition & 0 deletions types/2020-08-27/BitcoinTransactions.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// File generated from our OpenAPI spec

declare module 'stripe' {
namespace Stripe {
/**
Expand Down
1 change: 1 addition & 0 deletions types/2020-08-27/Capabilities.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// File generated from our OpenAPI spec

declare module 'stripe' {
namespace Stripe {
/**
Expand Down
3 changes: 2 additions & 1 deletion types/2020-08-27/Cards.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// File generated from our OpenAPI spec

declare module 'stripe' {
namespace Stripe {
/**
Expand Down Expand Up @@ -83,7 +84,7 @@ declare module 'stripe' {
/**
* The customer that this card belongs to. This attribute will not be in the card object if the card belongs to an account or recipient instead.
*/
customer?: string | Stripe.Customer | DeletedCustomer | null;
customer?: string | Stripe.Customer | Stripe.DeletedCustomer | null;

/**
* If a CVC was provided, results of the check: `pass`, `fail`, `unavailable`, or `unchecked`. A result of unchecked indicates that CVC was provided but hasn't been checked yet. Checks are typically performed when attaching a card to a Customer object, or when creating a charge. For more details, see [Check if a card is valid without a charge](https://support.stripe.com/questions/check-if-a-card-is-valid-without-a-charge).
Expand Down
73 changes: 72 additions & 1 deletion types/2020-08-27/Charges.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// File generated from our OpenAPI spec

declare module 'stripe' {
namespace Stripe {
/**
Expand Down Expand Up @@ -82,7 +83,7 @@ declare module 'stripe' {
/**
* ID of the customer this charge is for if one exists.
*/
customer: string | Stripe.Customer | DeletedCustomer | null;
customer: string | Stripe.Customer | Stripe.DeletedCustomer | null;

/**
* An arbitrary string attached to the object. Often useful for displaying to users.
Expand Down Expand Up @@ -1037,6 +1038,11 @@ declare module 'stripe' {
}

interface Eps {
/**
* The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`.
*/
bank?: Eps.Bank | null;

/**
* Owner's verified full name. Values are verified or provided by EPS directly
* (if supported) at the time of authorization or settlement. They cannot be set or mutated.
Expand All @@ -1045,6 +1051,37 @@ declare module 'stripe' {
verified_name: string | null;
}

namespace Eps {
type Bank =
| 'arzte_und_apotheker_bank'
| 'austrian_anadi_bank_ag'
| 'bank_austria'
| 'bankhaus_carl_spangler'
| 'bankhaus_schelhammer_und_schattera_ag'
| 'bawag_psk_ag'
| 'bks_bank_ag'
| 'brull_kallmus_bank_ag'
| 'btv_vier_lander_bank'
| 'capital_bank_grawe_gruppe_ag'
| 'dolomitenbank'
| 'easybank_ag'
| 'erste_bank_und_sparkassen'
| 'hypo_alpeadriabank_international_ag'
| 'hypo_bank_burgenland_aktiengesellschaft'
| 'hypo_noe_lb_fur_niederosterreich_u_wien'
| 'hypo_oberosterreich_salzburg_steiermark'
| 'hypo_tirol_bank_ag'
| 'hypo_vorarlberg_bank_ag'
| 'marchfelder_bank'
| 'oberbank_ag'
| 'raiffeisen_bankengruppe_osterreich'
| 'schoellerbank_ag'
| 'sparda_bank_wien'
| 'volksbank_gruppe'
| 'volkskreditbank_ag'
| 'vr_bank_braunau';
}

interface Fpx {
/**
* Account holder type, if provided. Can be one of `individual` or `company`.
Expand Down Expand Up @@ -1351,6 +1388,11 @@ declare module 'stripe' {
}

interface P24 {
/**
* The customer's bank. Can be one of `ing`, `citi_handlowy`, `tmobile_usbugi_bankowe`, `plus_bank`, `etransfer_pocztowy24`, `banki_spbdzielcze`, `bank_nowy_bfg_sa`, `getin_bank`, `blik`, `noble_pay`, `ideabank`, `envelobank`, `santander_przelew24`, `nest_przelew`, `mbank_mtransfer`, `inteligo`, `pbac_z_ipko`, `bnp_paribas`, `credit_agricole`, `toyota_bank`, `bank_pekao_sa`, `volkswagen_bank`, `bank_millennium`, `alior_bank`, or `boz`.
*/
bank?: P24.Bank | null;

/**
* Unique reference for this Przelewy24 payment.
*/
Expand All @@ -1364,6 +1406,35 @@ declare module 'stripe' {
verified_name: string | null;
}

namespace P24 {
type Bank =
| 'alior_bank'
| 'bank_millennium'
| 'bank_nowy_bfg_sa'
| 'bank_pekao_sa'
| 'banki_spbdzielcze'
| 'blik'
| 'bnp_paribas'
| 'boz'
| 'citi_handlowy'
| 'credit_agricole'
| 'envelobank'
| 'etransfer_pocztowy24'
| 'getin_bank'
| 'ideabank'
| 'ing'
| 'inteligo'
| 'mbank_mtransfer'
| 'nest_przelew'
| 'noble_pay'
| 'pbac_z_ipko'
| 'plus_bank'
| 'santander_przelew24'
| 'tmobile_usbugi_bankowe'
| 'toyota_bank'
| 'volkswagen_bank';
}

interface SepaCreditTransfer {
/**
* Name of the bank associated with the bank account.
Expand Down
3 changes: 2 additions & 1 deletion types/2020-08-27/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// File generated from our OpenAPI spec

declare module 'stripe' {
namespace Stripe {
namespace Checkout {
Expand Down Expand Up @@ -61,7 +62,7 @@ declare module 'stripe' {
* during the payment flow unless an existing customer was provided when
* the Session was created.
*/
customer: string | Stripe.Customer | DeletedCustomer | null;
customer: string | Stripe.Customer | Stripe.DeletedCustomer | null;

/**
* If provided, this value will be used when the Customer object is created.
Expand Down
1 change: 1 addition & 0 deletions types/2020-08-27/ConnectCollectionTransfers.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// File generated from our OpenAPI spec

declare module 'stripe' {
namespace Stripe {
/**
Expand Down
1 change: 1 addition & 0 deletions types/2020-08-27/CountrySpecs.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// File generated from our OpenAPI spec

declare module 'stripe' {
namespace Stripe {
/**
Expand Down
1 change: 1 addition & 0 deletions types/2020-08-27/Coupons.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// File generated from our OpenAPI spec

declare module 'stripe' {
namespace Stripe {
/**
Expand Down
3 changes: 2 additions & 1 deletion types/2020-08-27/CreditNoteLineItems.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// File generated from our OpenAPI spec

declare module 'stripe' {
namespace Stripe {
/**
Expand Down Expand Up @@ -86,7 +87,7 @@ declare module 'stripe' {
/**
* The discount that was applied to get this discount amount.
*/
discount: string | Stripe.Discount | DeletedDiscount;
discount: string | Stripe.Discount | Stripe.DeletedDiscount;
}

interface TaxAmount {
Expand Down
5 changes: 3 additions & 2 deletions types/2020-08-27/CreditNotes.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// File generated from our OpenAPI spec

declare module 'stripe' {
namespace Stripe {
/**
Expand Down Expand Up @@ -33,7 +34,7 @@ declare module 'stripe' {
/**
* ID of the customer.
*/
customer: string | Stripe.Customer | DeletedCustomer;
customer: string | Stripe.Customer | Stripe.DeletedCustomer;

/**
* Customer balance transaction related to this credit note.
Expand Down Expand Up @@ -144,7 +145,7 @@ declare module 'stripe' {
/**
* The discount that was applied to get this discount amount.
*/
discount: string | Stripe.Discount | DeletedDiscount;
discount: string | Stripe.Discount | Stripe.DeletedDiscount;
}

type Reason =
Expand Down
1 change: 1 addition & 0 deletions types/2020-08-27/CustomerBalanceTransactions.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// File generated from our OpenAPI spec

declare module 'stripe' {
namespace Stripe {
/**
Expand Down
1 change: 1 addition & 0 deletions types/2020-08-27/CustomerSources.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// File generated from our OpenAPI spec

declare module 'stripe' {
namespace Stripe {
interface CustomerSourceCreateParams {
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
@@ -1,4 +1,5 @@
// File generated from our OpenAPI spec

declare module 'stripe' {
namespace Stripe {
/**
Expand Down
5 changes: 3 additions & 2 deletions types/2020-08-27/Discounts.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// File generated from our OpenAPI spec

declare module 'stripe' {
namespace Stripe {
/**
Expand Down Expand Up @@ -30,7 +31,7 @@ declare module 'stripe' {
/**
* The ID of the customer associated with this discount.
*/
customer: string | Stripe.Customer | DeletedCustomer | null;
customer: string | Stripe.Customer | Stripe.DeletedCustomer | null;

deleted?: void;

Expand Down Expand Up @@ -94,7 +95,7 @@ declare module 'stripe' {
/**
* The ID of the customer associated with this discount.
*/
customer: string | Stripe.Customer | DeletedCustomer | null;
customer: string | Stripe.Customer | Stripe.DeletedCustomer | null;

/**
* Always true for a deleted object
Expand Down
1 change: 1 addition & 0 deletions types/2020-08-27/Disputes.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// File generated from our OpenAPI spec

declare module 'stripe' {
namespace Stripe {
/**
Expand Down
1 change: 1 addition & 0 deletions types/2020-08-27/EphemeralKeys.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// File generated from our OpenAPI spec

declare module 'stripe' {
namespace Stripe {
/**
Expand Down
1 change: 1 addition & 0 deletions types/2020-08-27/Events.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// File generated from our OpenAPI spec

declare module 'stripe' {
namespace Stripe {
/**
Expand Down
1 change: 1 addition & 0 deletions types/2020-08-27/ExchangeRates.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// File generated from our OpenAPI spec

declare module 'stripe' {
namespace Stripe {
/**
Expand Down
1 change: 1 addition & 0 deletions types/2020-08-27/ExternalAccounts.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// File generated from our OpenAPI spec

declare module 'stripe' {
namespace Stripe {
interface ExternalAccountCreateParams {
Expand Down
1 change: 1 addition & 0 deletions types/2020-08-27/FeeRefunds.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// File generated from our OpenAPI spec

declare module 'stripe' {
namespace Stripe {
/**
Expand Down
1 change: 1 addition & 0 deletions types/2020-08-27/FileLinks.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// File generated from our OpenAPI spec

declare module 'stripe' {
namespace Stripe {
/**
Expand Down
1 change: 1 addition & 0 deletions types/2020-08-27/Files.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// File generated from our OpenAPI spec

declare module 'stripe' {
namespace Stripe {
/**
Expand Down
Loading

0 comments on commit 779f136

Please sign in to comment.