Skip to content

Commit

Permalink
Merge pull request #1473 from stripe/latest-codegen-master
Browse files Browse the repository at this point in the history
API Updates
  • Loading branch information
yejia-stripe authored Jul 12, 2022
2 parents 295fca1 + 3b26df8 commit a5904ca
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 5 deletions.
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

0 comments on commit a5904ca

Please sign in to comment.