Skip to content

Commit

Permalink
Codegen for openapi f4bfd6d (#1132)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardm-stripe committed Mar 22, 2021
1 parent 3ea5f68 commit 84b6c3c
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 13 deletions.
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 support@stripe.com 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

0 comments on commit 84b6c3c

Please sign in to comment.