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

Multiple API changes #904

Merged
merged 1 commit into from
May 28, 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
12 changes: 12 additions & 0 deletions types/2020-03-02/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,13 @@ declare module 'stripe' {
*/
authenticated?: boolean;

/**
* For authenticated transactions: whether issuing bank authenticated the
* cardholder with a traditional challenge screen, or with device data
* via the 3DS2 frictionless flow.
*/
authentication_flow: ThreeDSecure.AuthenticationFlow | null;

/**
* Indicates the outcome of 3D Secure authentication.
*/
Expand All @@ -751,6 +758,8 @@ declare module 'stripe' {
}

namespace ThreeDSecure {
type AuthenticationFlow = 'challenge' | 'frictionless';

type Result =
| 'attempt_acknowledged'
| 'authenticated'
Expand Down Expand Up @@ -972,6 +981,7 @@ declare module 'stripe' {
/**
* Owner's verified full name. Values are verified or provided by EPS directly
* (if supported) at the time of authorization or settlement. They cannot be set or mutated.
* EPS rarely provides this information so the attribute is usually empty.
*/
verified_name: string | null;
}
Expand Down Expand Up @@ -1038,6 +1048,7 @@ declare module 'stripe' {
/**
* Owner's verified full name. Values are verified or provided by Giropay directly
* (if supported) at the time of authorization or settlement. They cannot be set or mutated.
* Giropay rarely provides this information so the attribute is usually empty.
*/
verified_name: string | null;
}
Expand Down Expand Up @@ -1234,6 +1245,7 @@ declare module 'stripe' {
/**
* Owner's verified full name. Values are verified or provided by Przelewy24 directly
* (if supported) at the time of authorization or settlement. They cannot be set or mutated.
* Przelewy24 rarely provides this information so the attribute is usually empty.
*/
verified_name: string | null;
}
Expand Down
29 changes: 28 additions & 1 deletion types/2020-03-02/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -665,10 +665,15 @@ declare module 'stripe' {
currency: string;

/**
* The ID of the product that this price will belong to.
* The ID of the product that this price will belong to. One of `product` or `product_data` is required.
*/
product?: string;

/**
* Data used to generate a new product object inline. One of `product` or `product_data` is required.
*/
product_data?: PriceData.ProductData;

/**
* The recurring components of a price such as `interval` and `usage_type`.
*/
Expand All @@ -686,6 +691,28 @@ declare module 'stripe' {
}

namespace PriceData {
interface ProductData {
/**
* The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
*/
description?: string;

/**
* A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
*/
images?: Array<string>;

/**
* Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
*/
metadata?: MetadataParam;

/**
* The product's name, meant to be displayable to the customer. Whenever this product is sold via a subscription, name will show up on associated invoice line item descriptions.
*/
name: string;
}

interface Recurring {
/**
* Specifies billing frequency. Either `day`, `week`, `month` or `year`.
Expand Down
2 changes: 1 addition & 1 deletion types/2020-03-02/SubscriptionItems.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ declare module 'stripe' {
): Promise<Stripe.SubscriptionItem>;

/**
* Retrieves the invoice item with the given ID.
* Retrieves the subscription item with the given ID.
*/
retrieve(
id: string,
Expand Down