Skip to content
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 .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:

- name: Coveralls
run: yarn report && yarn coveralls
if: matrix.node == '18'
if: env.COVERALLS_REPO_TOKEN && matrix.node == '18'
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v203
v205
6 changes: 3 additions & 3 deletions types/2022-08-01/AccountSessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
declare module 'stripe' {
namespace Stripe {
/**
* An AccountSession allows a Connect platform to grant access to a connected account in Connect Elements.
* An AccountSession allows a Connect platform to grant access to a connected account in Connect embedded UIs.
*
* We recommend that you create an AccountSession each time you need to display an embedded UI
* to your user. Do not save AccountSessions to your database as they expire relatively
* quickly, and cannot be used more than once.
*
* Related guide: [Connect Elements](https://stripe.com/docs/connect/get-started-connect-elements).
* Related guide: [Connect embedded UIs](https://stripe.com/docs/connect/get-started-connect-embedded-uis).
*/
interface AccountSession {
/**
Expand All @@ -27,7 +27,7 @@ declare module 'stripe' {
*
* The client secret can be used to provide access to `account` from your frontend. It should not be stored, logged, or exposed to anyone other than the connected account. Make sure that you have TLS enabled on any page that includes the client secret.
*
* Refer to our docs to [setup Connect Elements](https://stripe.com/docs/connect/get-started-connect-elements) and learn about how `client_secret` should be handled.
* Refer to our docs to [setup Connect embedded UIs](https://stripe.com/docs/connect/get-started-connect-embedded-uis) and learn about how `client_secret` should be handled.
*/
client_secret: string;

Expand Down
62 changes: 62 additions & 0 deletions types/2022-08-01/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,11 @@ declare module 'stripe' {
*/
cartes_bancaires_payments?: Capabilities.CartesBancairesPayments;

/**
* The status of the Cash App Pay capability of the account, or whether the account can directly process Cash App Pay payments.
*/
cashapp_payments?: Capabilities.CashappPayments;

/**
* The status of the EPS payments capability of the account, or whether the account can directly process EPS charges.
*/
Expand Down Expand Up @@ -325,6 +330,11 @@ declare module 'stripe' {
* The status of the US bank account ACH payments capability of the account, or whether the account can directly process US bank account charges.
*/
us_bank_account_ach_payments?: Capabilities.UsBankAccountAchPayments;

/**
* The status of the Zip capability of the account, or whether the account can directly process Zip charges.
*/
zip_payments?: Capabilities.ZipPayments;
}

namespace Capabilities {
Expand Down Expand Up @@ -352,6 +362,8 @@ declare module 'stripe' {

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

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

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

type FpxPayments = 'active' | 'inactive' | 'pending';
Expand Down Expand Up @@ -393,6 +405,8 @@ declare module 'stripe' {
type Treasury = 'active' | 'inactive' | 'pending';

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

type ZipPayments = 'active' | 'inactive' | 'pending';
}

interface Company {
Expand Down Expand Up @@ -1338,6 +1352,11 @@ declare module 'stripe' {
*/
cartes_bancaires_payments?: Capabilities.CartesBancairesPayments;

/**
* The cashapp_payments capability.
*/
cashapp_payments?: Capabilities.CashappPayments;

/**
* The eps_payments capability.
*/
Expand Down Expand Up @@ -1442,6 +1461,11 @@ declare module 'stripe' {
* The us_bank_account_ach_payments capability.
*/
us_bank_account_ach_payments?: Capabilities.UsBankAccountAchPayments;

/**
* The zip_payments capability.
*/
zip_payments?: Capabilities.ZipPayments;
}

namespace Capabilities {
Expand Down Expand Up @@ -1529,6 +1553,13 @@ declare module 'stripe' {
requested?: boolean;
}

interface CashappPayments {
/**
* 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 EpsPayments {
/**
* 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 @@ -1675,6 +1706,13 @@ declare module 'stripe' {
*/
requested?: boolean;
}

interface ZipPayments {
/**
* 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 Company {
Expand Down Expand Up @@ -2553,6 +2591,11 @@ declare module 'stripe' {
*/
cartes_bancaires_payments?: Capabilities.CartesBancairesPayments;

/**
* The cashapp_payments capability.
*/
cashapp_payments?: Capabilities.CashappPayments;

/**
* The eps_payments capability.
*/
Expand Down Expand Up @@ -2657,6 +2700,11 @@ declare module 'stripe' {
* The us_bank_account_ach_payments capability.
*/
us_bank_account_ach_payments?: Capabilities.UsBankAccountAchPayments;

/**
* The zip_payments capability.
*/
zip_payments?: Capabilities.ZipPayments;
}

namespace Capabilities {
Expand Down Expand Up @@ -2744,6 +2792,13 @@ declare module 'stripe' {
requested?: boolean;
}

interface CashappPayments {
/**
* 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 EpsPayments {
/**
* 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 @@ -2890,6 +2945,13 @@ declare module 'stripe' {
*/
requested?: boolean;
}

interface ZipPayments {
/**
* 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 Company {
Expand Down
11 changes: 11 additions & 0 deletions types/2022-08-01/Capital/FinancingOffers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,16 @@ declare module 'stripe' {
*/
product_type?: FinancingOffer.ProductType;

/**
* The ID of the financing offer that replaced this offer.
*/
replacement?: string;

/**
* The ID of the financing offer that this offer is a replacement for.
*/
replacement_for?: string;

/**
* The current status of the offer.
*/
Expand Down Expand Up @@ -163,6 +173,7 @@ declare module 'stripe' {
| 'fully_repaid'
| 'paid_out'
| 'rejected'
| 'replaced'
| 'undelivered';

type Type = 'cash_advance' | 'flex_loan';
Expand Down
8 changes: 8 additions & 0 deletions types/2022-08-01/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,8 @@ declare module 'stripe' {

card_present?: PaymentMethodDetails.CardPresent;

cashapp?: PaymentMethodDetails.Cashapp;

customer_balance?: PaymentMethodDetails.CustomerBalance;

eps?: PaymentMethodDetails.Eps;
Expand Down Expand Up @@ -471,6 +473,8 @@ declare module 'stripe' {
wechat?: PaymentMethodDetails.Wechat;

wechat_pay?: PaymentMethodDetails.WechatPay;

zip?: PaymentMethodDetails.Zip;
}

namespace PaymentMethodDetails {
Expand Down Expand Up @@ -1125,6 +1129,8 @@ declare module 'stripe' {
}
}

interface Cashapp {}

interface CustomerBalance {}

interface Eps {
Expand Down Expand Up @@ -1787,6 +1793,8 @@ declare module 'stripe' {
*/
transaction_id: string | null;
}

interface Zip {}
}

interface RadarOptions {
Expand Down
10 changes: 9 additions & 1 deletion types/2022-08-01/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ declare module 'stripe' {

interface TaxId {
/**
* The type of the tax ID, one of `eu_vat`, `br_cnpj`, `br_cpf`, `eu_oss_vat`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, or `unknown`
* The type of the tax ID, one of `eu_vat`, `br_cnpj`, `br_cpf`, `eu_oss_vat`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown`
*/
type: TaxId.Type;

Expand All @@ -405,6 +405,7 @@ declare module 'stripe' {
| 'ca_qst'
| 'ch_vat'
| 'cl_tin'
| 'eg_tin'
| 'es_cif'
| 'eu_oss_vat'
| 'eu_vat'
Expand All @@ -428,13 +429,15 @@ declare module 'stripe' {
| 'my_sst'
| 'no_vat'
| 'nz_gst'
| 'ph_tin'
| 'ru_inn'
| 'ru_kpp'
| 'sa_vat'
| 'sg_gst'
| 'sg_uen'
| 'si_tin'
| 'th_vat'
| 'tr_tin'
| 'tw_vat'
| 'ua_vat'
| 'unknown'
Expand Down Expand Up @@ -3152,6 +3155,11 @@ declare module 'stripe' {
*/
metadata?: Stripe.MetadataParam;

/**
* The account on behalf of which to charge, for each of the subscription's invoices.
*/
on_behalf_of?: string;

/**
* If specified, the funds from the subscription's invoices will be transferred to the destination and the ID of the resulting transfers will be found on the resulting charges.
*/
Expand Down
9 changes: 7 additions & 2 deletions types/2022-08-01/Customers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ declare module 'stripe' {

interface TaxIdDatum {
/**
* Type of the tax ID, one of `ae_trn`, `au_abn`, `au_arn`, `bg_uic`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `th_vat`, `tw_vat`, `ua_vat`, `us_ein`, or `za_vat`
* Type of the tax ID, one of `ae_trn`, `au_abn`, `au_arn`, `bg_uic`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `ph_tin`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, or `za_vat`
*/
type: TaxIdDatum.Type;

Expand All @@ -522,6 +522,7 @@ declare module 'stripe' {
| 'ca_qst'
| 'ch_vat'
| 'cl_tin'
| 'eg_tin'
| 'es_cif'
| 'eu_oss_vat'
| 'eu_vat'
Expand All @@ -545,13 +546,15 @@ declare module 'stripe' {
| 'my_sst'
| 'no_vat'
| 'nz_gst'
| 'ph_tin'
| 'ru_inn'
| 'ru_kpp'
| 'sa_vat'
| 'sg_gst'
| 'sg_uen'
| 'si_tin'
| 'th_vat'
| 'tr_tin'
| 'tw_vat'
| 'ua_vat'
| 'us_ein'
Expand Down Expand Up @@ -874,6 +877,7 @@ declare module 'stripe' {
| 'boleto'
| 'card'
| 'card_present'
| 'cashapp'
| 'customer_balance'
| 'eps'
| 'fpx'
Expand All @@ -892,7 +896,8 @@ declare module 'stripe' {
| 'sepa_debit'
| 'sofort'
| 'us_bank_account'
| 'wechat_pay';
| 'wechat_pay'
| 'zip';
}

interface CustomerRetrievePaymentMethodParams {
Expand Down
24 changes: 24 additions & 0 deletions types/2022-08-01/InvoiceItems.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,16 @@ declare module 'stripe' {
*/
subscription?: string;

/**
* Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
*/
tax_behavior?: InvoiceItemCreateParams.TaxBehavior;

/**
* A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
*/
tax_code?: Stripe.Emptyable<string>;

/**
* The tax rates which apply to the invoice item. When set, the `default_tax_rates` on the invoice do not apply to this invoice item.
*/
Expand Down Expand Up @@ -303,6 +313,8 @@ declare module 'stripe' {
namespace PriceData {
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
}

type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
}

interface InvoiceItemRetrieveParams {
Expand Down Expand Up @@ -363,6 +375,16 @@ declare module 'stripe' {
*/
quantity?: number;

/**
* Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
*/
tax_behavior?: InvoiceItemUpdateParams.TaxBehavior;

/**
* A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
*/
tax_code?: Stripe.Emptyable<string>;

/**
* The tax rates which apply to the invoice item. When set, the `default_tax_rates` on the invoice do not apply to this invoice item. Pass an empty string to remove previously-defined tax rates.
*/
Expand Down Expand Up @@ -434,6 +456,8 @@ declare module 'stripe' {
namespace PriceData {
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
}

type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
}

interface InvoiceItemListParams extends PaginationParams {
Expand Down
Loading