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

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
8 changes: 8 additions & 0 deletions checkout_session.go
Original file line number Diff line number Diff line change
Expand Up @@ -501,11 +501,19 @@ const (
CheckoutSessionSubmitTypePay CheckoutSessionSubmitType = "pay"
)

// Only return the Checkout Sessions for the Customer details specified.
type CheckoutSessionListCustomerDetailsParams struct {
// Customer's email address.
Email *string `form:"email"`
}

// Returns a list of Checkout Sessions.
type CheckoutSessionListParams struct {
ListParams `form:"*"`
// Only return the Checkout Sessions for the Customer specified.
Customer *string `form:"customer"`
// Only return the Checkout Sessions for the Customer details specified.
CustomerDetails *CheckoutSessionListCustomerDetailsParams `form:"customer_details"`
// Only return the Checkout Session for the PaymentIntent specified.
PaymentIntent *string `form:"payment_intent"`
// Only return the Checkout Session for the subscription specified.
Expand Down
4 changes: 2 additions & 2 deletions testhelpersterminal_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

package stripe

// Simulated card present data
// Simulated data for the card_present payment method
type TestHelpersTerminalReaderPresentPaymentMethodCardPresentParams struct {
// Card Number
Number *string `form:"number"`
Expand All @@ -15,7 +15,7 @@ type TestHelpersTerminalReaderPresentPaymentMethodCardPresentParams struct {
// Presents a payment method on a simulated reader. Can be used to simulate accepting a payment, saving a card or refunding a transaction.
type TestHelpersTerminalReaderPresentPaymentMethodParams struct {
Params `form:"*"`
// Simulated card present data
// Simulated data for the card_present payment method
CardPresent *TestHelpersTerminalReaderPresentPaymentMethodCardPresentParams `form:"card_present"`
// Simulated payment type
Type *string `form:"type"`
Expand Down