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

Merged
merged 1 commit into from
Jul 12, 2022
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 OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v163
v164
14 changes: 14 additions & 0 deletions types/2020-08-27/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2942,6 +2942,11 @@ declare module 'stripe' {
*/
customer?: string;

/**
* Only return the Checkout Sessions for the Customer details specified.
*/
customer_details?: SessionListParams.CustomerDetails;

/**
* Specifies which fields in the response should be expanded.
*/
Expand All @@ -2958,6 +2963,15 @@ declare module 'stripe' {
subscription?: string;
}

namespace SessionListParams {
interface CustomerDetails {
/**
* Customer's email address.
*/
email: string;
}
}

interface SessionExpireParams {
/**
* Specifies which fields in the response should be expanded.
Expand Down
4 changes: 2 additions & 2 deletions types/2020-08-27/LineItems.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ declare module 'stripe' {
/**
* Total discount amount applied. If no discounts were applied, defaults to 0.
*/
amount_discount?: number;
amount_discount: number;

/**
* Total before any discounts or taxes are applied.
Expand All @@ -29,7 +29,7 @@ declare module 'stripe' {
/**
* Total tax amount applied. If no tax was applied, defaults to 0.
*/
amount_tax?: number;
amount_tax: number;

/**
* Total after discounts and taxes.
Expand Down
2 changes: 1 addition & 1 deletion types/2020-08-27/TestHelpers/Terminal/Readers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ declare module 'stripe' {
namespace Terminal {
interface ReaderPresentPaymentMethodParams {
/**
* Simulated card present data
* Simulated data for the card_present payment method
*/
card_present?: ReaderPresentPaymentMethodParams.CardPresent;

Expand Down
2 changes: 1 addition & 1 deletion types/2020-08-27/Transfers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ declare module 'stripe' {
/**
* The source balance this transfer came from. One of `card`, `fpx`, or `bank_account`.
*/
source_type: string | null;
source_type?: string;

/**
* A string that identifies this transaction as part of a group. See the [Connect documentation](https://stripe.com/docs/connect/charges-transfers#transfer-options) for details.
Expand Down