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

API Updates #1173

Merged
merged 1 commit into from
Jun 16, 2021
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
12 changes: 10 additions & 2 deletions types/2020-08-27/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ declare module 'stripe' {
*/
amount_total: number | null;

automatic_tax?: Session.AutomaticTax;
automatic_tax: Session.AutomaticTax;

/**
* Describes whether Checkout should collect the customer's billing address.
Expand Down Expand Up @@ -167,6 +167,11 @@ declare module 'stripe' {
* Tax and discount details for the computed total amount.
*/
total_details: Session.TotalDetails | null;

/**
* The URL to the Checkout Session.
*/
url: string | null;
}

namespace Session {
Expand Down Expand Up @@ -844,6 +849,9 @@ declare module 'stripe' {
*/
subscription_data?: SessionCreateParams.SubscriptionData;

/**
* Controls tax ID collection settings for the session.
*/
tax_id_collection?: SessionCreateParams.TaxIdCollection;
}

Expand Down Expand Up @@ -1245,7 +1253,7 @@ declare module 'stripe' {
namespace PaymentMethodOptions {
interface AcssDebit {
/**
* 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).
* 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). This is only accepted for Checkout Sessions in `setup` mode.
*/
currency?: AcssDebit.Currency;

Expand Down
2 changes: 1 addition & 1 deletion types/2020-08-27/Identity/VerificationSessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ declare module 'stripe' {
last_error: VerificationSession.LastError | null;

/**
* ID of the most recent VerificationReport. [Learn more about accessing detailed verification results.](https://stripe.com/docs/identity/verification-checks)
* ID of the most recent VerificationReport. [Learn more about accessing detailed verification results.](https://stripe.com/docs/identity/verification-sessions#results)
*/
last_verification_report:
| string
Expand Down
2 changes: 1 addition & 1 deletion types/2020-08-27/Invoices.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ declare module 'stripe' {
*/
auto_advance?: boolean;

automatic_tax?: Invoice.AutomaticTax;
automatic_tax: Invoice.AutomaticTax;

/**
* Indicates the reason why the invoice was created. `subscription_cycle` indicates an invoice created by a subscription advancing into a new period. `subscription_create` indicates an invoice created due to creating a subscription. `subscription_update` indicates an invoice created due to updating a subscription. `subscription` is set for all old invoices to indicate either a change to a subscription or a period advancement. `manual` is set for all invoices unrelated to a subscription (for example: created via the invoice editor). The `upcoming` value is reserved for simulated invoices per the upcoming invoice endpoint. `subscription_threshold` indicates an invoice created due to a billing threshold being reached.
Expand Down
2 changes: 1 addition & 1 deletion types/2020-08-27/Issuing/Cards.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,7 @@ declare module 'stripe' {

interface CardCreateParams {
/**
* The currency for the card. This currently must be `usd`.
* The currency for the card.
*/
currency: string;

Expand Down
6 changes: 3 additions & 3 deletions types/2020-08-27/Subscriptions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ declare module 'stripe' {
*/
application_fee_percent: number | null;

automatic_tax?: Subscription.AutomaticTax;
automatic_tax: Subscription.AutomaticTax;

/**
* Determines the date of the first full invoice, and, for plans with `month` or `year` intervals, the day of the month for subsequent invoices.
Expand Down Expand Up @@ -344,7 +344,7 @@ declare module 'stripe' {
collection_method?: SubscriptionCreateParams.CollectionMethod;

/**
* The code of the coupon to apply to this subscription. A coupon applied to a subscription will only affect invoices created for that particular subscription.
* The ID of the coupon to apply to this subscription. A coupon applied to a subscription will only affect invoices created for that particular subscription.
*/
coupon?: string;

Expand Down Expand Up @@ -702,7 +702,7 @@ declare module 'stripe' {
collection_method?: SubscriptionUpdateParams.CollectionMethod;

/**
* The code of the coupon to apply to this subscription. A coupon applied to a subscription will only affect invoices created for that particular subscription.
* The ID of the coupon to apply to this subscription. A coupon applied to a subscription will only affect invoices created for that particular subscription.
*/
coupon?: string;

Expand Down