Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for jcb_payments as a Capability #876

Merged
merged 1 commit into from
Apr 24, 2020
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
9 changes: 9 additions & 0 deletions types/2020-03-02/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ declare module 'stripe' {
*/
card_payments?: Capabilities.CardPayments;

/**
* The status of the JCB payments capability of the account, or whether the account (Japan only) can directly process JCB credit card charges in JPY currency.
*/
jcb_payments?: Capabilities.JcbPayments;

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

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

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

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

type TaxReportingUs1099K = 'active' | 'inactive' | 'pending';
Expand Down Expand Up @@ -1115,6 +1122,7 @@ declare module 'stripe' {
| 'au_becs_debit_payments'
| 'card_issuing'
| 'card_payments'
| 'jcb_payments'
| 'legacy_payments'
| 'tax_reporting_us_1099_k'
| 'tax_reporting_us_1099_misc'
Expand Down Expand Up @@ -1744,6 +1752,7 @@ declare module 'stripe' {
| 'au_becs_debit_payments'
| 'card_issuing'
| 'card_payments'
| 'jcb_payments'
| 'legacy_payments'
| 'tax_reporting_us_1099_k'
| 'tax_reporting_us_1099_misc'
Expand Down
8 changes: 4 additions & 4 deletions types/2020-03-02/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,10 @@ declare module 'stripe' {
custom?: DisplayItem.Custom;

/**
* Plans define the base price, currency, and billing cycle for subscriptions.
* For example, you might have a $5/month plan
* that provides limited access to your products, and a
* $15/month plan that allows full access.
* Plans define the base price, currency, and billing cycle for recurring purchases of products.
* Products help you track inventory or provisioning, and plans help you track pricing. Different physical goods or levels of service should be represented by products, and pricing options should be represented by plans. This approach lets you change prices without having to change your provisioning scheme.
*
* For example, you might have a single "gold" product that has plans for $10/month, $100/year, €9/month, and €90/year.
*
* Related guides: [Set up a subscription](https://stripe.com/docs/billing/subscriptions/set-up-subscription) and more about [products and plans](https://stripe.com/docs/billing/subscriptions/products-and-plans).
*/
Expand Down
2 changes: 1 addition & 1 deletion types/2020-03-02/Invoices.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ declare module 'stripe' {
>;

/**
* If previewing an update to a subscription, this decides whether the preview will show the result of applying prorations or not. If set, one of `subscription_items` or `subscription`, and one of `subscription_items` or `subscription_trial_end` are required.
* This field has been renamed to `subscription_proration_behavior`. `subscription_prorate=true` can be replaced with `subscription_proration_behavior=create_prorations` and `subscription_prorate=false` can be replaced with `subscription_proration_behavior=none`.
*/
subscription_prorate?: boolean;

Expand Down
2 changes: 1 addition & 1 deletion types/2020-03-02/Products.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ declare module 'stripe' {

class ProductsResource {
/**
* Creates a new product object. To create a product for use with orders, see [Products](https://stripe.com/docs/api#create_product).
* Creates a new product object.
*/
create(
params: ProductCreateParams,
Expand Down
8 changes: 4 additions & 4 deletions types/2020-03-02/SubscriptionItems.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ declare module 'stripe' {
metadata: Metadata;

/**
* Plans define the base price, currency, and billing cycle for subscriptions.
* For example, you might have a $5/month plan
* that provides limited access to your products, and a
* $15/month plan that allows full access.
* Plans define the base price, currency, and billing cycle for recurring purchases of products.
* Products help you track inventory or provisioning, and plans help you track pricing. Different physical goods or levels of service should be represented by products, and pricing options should be represented by plans. This approach lets you change prices without having to change your provisioning scheme.
*
* For example, you might have a single "gold" product that has plans for $10/month, $100/year, €9/month, and €90/year.
*
* Related guides: [Set up a subscription](https://stripe.com/docs/billing/subscriptions/set-up-subscription) and more about [products and plans](https://stripe.com/docs/billing/subscriptions/products-and-plans).
*/
Expand Down