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 #1132

Merged
merged 1 commit into from
Mar 22, 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
2 changes: 1 addition & 1 deletion types/2020-08-27/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ declare module 'stripe' {
details_submitted: boolean;

/**
* The primary user's email address.
* An email address associated with the account. You can treat this as metadata: it is not used for authentication or messaging account holders.
*/
email: string | null;

Expand Down
8 changes: 7 additions & 1 deletion types/2020-08-27/Capabilities.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,13 @@ declare module 'stripe' {
currently_due: Array<string>;

/**
* If the capability is disabled, this string describes why. Possible values are `requirement.fields_needed`, `pending.onboarding`, `pending.review`, `rejected_fraud`, or `rejected.other`.
* If the capability is disabled, this string describes why. Possible values are `requirement.fields_needed`, `pending.onboarding`, `pending.review`, `rejected_fraud`, `rejected.unsupported_business` or `rejected.other`.
*
* `rejected.unsupported_business` means that the account's business is not supported by the capability. For example, payment methods may restrict the businesses they support in their terms of service:
*
* - [Afterpay Clearpay's terms of service](https://stripe.com/afterpay-clearpay/legal#restricted-businesses)
*
* If you believe that the rejection is in error, please contact [email protected] for assistance.
*/
disabled_reason: string | null;

Expand Down
10 changes: 10 additions & 0 deletions types/2020-08-27/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,11 @@ declare module 'stripe' {
*/
amount_discount: number;

/**
* This is the sum of all the line item shipping amounts.
*/
amount_shipping?: number | null;

/**
* This is the sum of all the line item tax amounts.
*/
Expand Down Expand Up @@ -724,6 +729,11 @@ declare module 'stripe' {
*/
shipping_address_collection?: SessionCreateParams.ShippingAddressCollection;

/**
* The shipping rate to apply to this Session. Currently, only up to one may be specified
*/
shipping_rates?: Array<string>;

/**
* Describes the type of transaction being performed by Checkout in order to customize
* relevant text on the page, such as the submit button. `submit_type` can only be
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 @@ -101,7 +101,7 @@ declare module 'stripe' {
/**
* The ID of the customer who will be billed.
*/
customer: string | Stripe.Customer | Stripe.DeletedCustomer;
customer: string | Stripe.Customer | Stripe.DeletedCustomer | null;

/**
* The customer's address. Until the invoice is finalized, this field will equal `customer.address`. Once the invoice is finalized, this field will no longer be updated.
Expand Down
2 changes: 1 addition & 1 deletion types/2020-08-27/Prices.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ declare module 'stripe' {
metadata: Stripe.Metadata;

/**
* A brief description of the plan, hidden from customers.
* A brief description of the price, hidden from customers.
*/
nickname: string | null;

Expand Down
18 changes: 9 additions & 9 deletions types/2020-08-27/Products.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ declare module 'stripe' {
name: string;

/**
* The dimensions of this product for shipping purposes. A SKU associated with this product can override this value by having its own `package_dimensions`. Only applicable to products of `type=good`.
* The dimensions of this product for shipping purposes.
*/
package_dimensions: Product.PackageDimensions | null;

/**
* Whether this product is a shipped good. Only applicable to products of `type=good`.
* Whether this product is shipped (i.e., physical goods).
*/
shippable: boolean | null;

Expand All @@ -99,7 +99,7 @@ declare module 'stripe' {
updated: number;

/**
* A URL of a publicly-accessible webpage for this product. Only applicable to products of `type=good`.
* A URL of a publicly-accessible webpage for this product.
*/
url: string | null;
}
Expand Down Expand Up @@ -202,12 +202,12 @@ declare module 'stripe' {
metadata?: Stripe.MetadataParam;

/**
* The dimensions of this product for shipping purposes. A SKU associated with this product can override this value by having its own `package_dimensions`. May only be set if type=`good`.
* The dimensions of this product for shipping purposes.
*/
package_dimensions?: ProductCreateParams.PackageDimensions;

/**
* Whether this product is shipped (i.e., physical goods). Defaults to `true`. May only be set if type=`good`.
* Whether this product is shipped (i.e., physical goods).
*/
shippable?: boolean;

Expand All @@ -230,7 +230,7 @@ declare module 'stripe' {
unit_label?: string;

/**
* A URL of a publicly-accessible webpage for this product. May only be set if type=`good`.
* A URL of a publicly-accessible webpage for this product.
*/
url?: string;
}
Expand Down Expand Up @@ -315,14 +315,14 @@ declare module 'stripe' {
name?: string;

/**
* The dimensions of this product for shipping purposes. A SKU associated with this product can override this value by having its own `package_dimensions`. May only be set if `type=good`.
* The dimensions of this product for shipping purposes.
*/
package_dimensions?: Stripe.Emptyable<
ProductUpdateParams.PackageDimensions
>;

/**
* Whether this product is shipped (i.e., physical goods). Defaults to `true`. May only be set if `type=good`.
* Whether this product is shipped (i.e., physical goods).
*/
shippable?: boolean;

Expand All @@ -340,7 +340,7 @@ declare module 'stripe' {
unit_label?: string;

/**
* A URL of a publicly-accessible webpage for this product. May only be set if `type=good`.
* A URL of a publicly-accessible webpage for this product.
*/
url?: string;
}
Expand Down