Skip to content

Commit

Permalink
Update generated code (#1890)
Browse files Browse the repository at this point in the history
* Update generated code for v1126

* Update generated code for v1127

* Update generated code for v1128

* Update generated code for v1131

* Update generated code for v1132

* Update generated code for v1134

* Update generated code for v1135

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] authored Jul 18, 2024
1 parent 21a782c commit 7eaa3f3
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 24 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1123
v1135
24 changes: 13 additions & 11 deletions confirmationtoken.go
Original file line number Diff line number Diff line change
Expand Up @@ -854,17 +854,19 @@ type ConfirmationTokenPaymentMethodPreview struct {
AfterpayClearpay *ConfirmationTokenPaymentMethodPreviewAfterpayClearpay `json:"afterpay_clearpay"`
Alipay *ConfirmationTokenPaymentMethodPreviewAlipay `json:"alipay"`
// This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to “unspecified”.
AllowRedisplay ConfirmationTokenPaymentMethodPreviewAllowRedisplay `json:"allow_redisplay"`
AmazonPay *ConfirmationTokenPaymentMethodPreviewAmazonPay `json:"amazon_pay"`
AUBECSDebit *ConfirmationTokenPaymentMethodPreviewAUBECSDebit `json:"au_becs_debit"`
BACSDebit *ConfirmationTokenPaymentMethodPreviewBACSDebit `json:"bacs_debit"`
Bancontact *ConfirmationTokenPaymentMethodPreviewBancontact `json:"bancontact"`
BillingDetails *ConfirmationTokenPaymentMethodPreviewBillingDetails `json:"billing_details"`
BLIK *ConfirmationTokenPaymentMethodPreviewBLIK `json:"blik"`
Boleto *ConfirmationTokenPaymentMethodPreviewBoleto `json:"boleto"`
Card *ConfirmationTokenPaymentMethodPreviewCard `json:"card"`
CardPresent *ConfirmationTokenPaymentMethodPreviewCardPresent `json:"card_present"`
CashApp *ConfirmationTokenPaymentMethodPreviewCashApp `json:"cashapp"`
AllowRedisplay ConfirmationTokenPaymentMethodPreviewAllowRedisplay `json:"allow_redisplay"`
AmazonPay *ConfirmationTokenPaymentMethodPreviewAmazonPay `json:"amazon_pay"`
AUBECSDebit *ConfirmationTokenPaymentMethodPreviewAUBECSDebit `json:"au_becs_debit"`
BACSDebit *ConfirmationTokenPaymentMethodPreviewBACSDebit `json:"bacs_debit"`
Bancontact *ConfirmationTokenPaymentMethodPreviewBancontact `json:"bancontact"`
BillingDetails *ConfirmationTokenPaymentMethodPreviewBillingDetails `json:"billing_details"`
BLIK *ConfirmationTokenPaymentMethodPreviewBLIK `json:"blik"`
Boleto *ConfirmationTokenPaymentMethodPreviewBoleto `json:"boleto"`
Card *ConfirmationTokenPaymentMethodPreviewCard `json:"card"`
CardPresent *ConfirmationTokenPaymentMethodPreviewCardPresent `json:"card_present"`
CashApp *ConfirmationTokenPaymentMethodPreviewCashApp `json:"cashapp"`
// The ID of the Customer to which this PaymentMethod is saved. This will not be set when the PaymentMethod has not been saved to a Customer.
Customer *Customer `json:"customer"`
CustomerBalance *ConfirmationTokenPaymentMethodPreviewCustomerBalance `json:"customer_balance"`
EPS *ConfirmationTokenPaymentMethodPreviewEPS `json:"eps"`
FPX *ConfirmationTokenPaymentMethodPreviewFPX `json:"fpx"`
Expand Down
6 changes: 4 additions & 2 deletions dispute.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ const (
type DisputeListParams struct {
ListParams `form:"*"`
// Only return disputes associated to the charge specified by this charge ID.
Charge *string `form:"charge"`
Created *int64 `form:"created"`
Charge *string `form:"charge"`
// Only return disputes that were created during the given date interval.
Created *int64 `form:"created"`
// Only return disputes that were created during the given date interval.
CreatedRange *RangeQueryParams `form:"created"`
// Specifies which fields in the response should be expanded.
Expand []*string `form:"expand"`
Expand Down
3 changes: 2 additions & 1 deletion event.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ const (
EventTypeIssuingDisputeClosed EventType = "issuing_dispute.closed"
EventTypeIssuingDisputeCreated EventType = "issuing_dispute.created"
EventTypeIssuingDisputeFundsReinstated EventType = "issuing_dispute.funds_reinstated"
EventTypeIssuingDisputeFundsRescinded EventType = "issuing_dispute.funds_rescinded"
EventTypeIssuingDisputeSubmitted EventType = "issuing_dispute.submitted"
EventTypeIssuingDisputeUpdated EventType = "issuing_dispute.updated"
EventTypeIssuingPersonalizationDesignActivated EventType = "issuing_personalization_design.activated"
Expand Down Expand Up @@ -274,7 +275,7 @@ func (p *EventListParams) AddExpand(f string) {
p.Expand = append(p.Expand, &f)
}

// Retrieves the details of an event. Supply the unique identifier of the event, which you might have received in a webhook.
// Retrieves the details of an event if it was created in the last 30 days. Supply the unique identifier of the event, which you might have received in a webhook.
type EventParams struct {
Params `form:"*"`
// Specifies which fields in the response should be expanded.
Expand Down
4 changes: 2 additions & 2 deletions event/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ type Client struct {
Key string
}

// Retrieves the details of an event. Supply the unique identifier of the event, which you might have received in a webhook.
// Retrieves the details of an event if it was created in the last 30 days. Supply the unique identifier of the event, which you might have received in a webhook.
func Get(id string, params *stripe.EventParams) (*stripe.Event, error) {
return getC().Get(id, params)
}

// Retrieves the details of an event. Supply the unique identifier of the event, which you might have received in a webhook.
// Retrieves the details of an event if it was created in the last 30 days. Supply the unique identifier of the event, which you might have received in a webhook.
func (c Client) Get(id string, params *stripe.EventParams) (*stripe.Event, error) {
path := stripe.FormatURLPath("/v1/events/%s", id)
event := &stripe.Event{}
Expand Down
2 changes: 1 addition & 1 deletion identity_verificationreport.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ type IdentityVerificationReportSelfie struct {
// API. To configure and create VerificationReports, use the
// [VerificationSession](https://stripe.com/docs/api/identity/verification_sessions) API.
//
// Related guides: [Accessing verification results](https://stripe.com/docs/identity/verification-sessions#results).
// Related guide: [Accessing verification results](https://stripe.com/docs/identity/verification-sessions#results).
type IdentityVerificationReport struct {
APIResource
// A string to reference this user. This can be a customer ID, a session ID, or similar, and can be used to reconcile this verification with your internal systems.
Expand Down
1 change: 1 addition & 0 deletions invoice.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ const (
InvoicePaymentSettingsPaymentMethodTypeIDEAL InvoicePaymentSettingsPaymentMethodType = "ideal"
InvoicePaymentSettingsPaymentMethodTypeKonbini InvoicePaymentSettingsPaymentMethodType = "konbini"
InvoicePaymentSettingsPaymentMethodTypeLink InvoicePaymentSettingsPaymentMethodType = "link"
InvoicePaymentSettingsPaymentMethodTypeMultibanco InvoicePaymentSettingsPaymentMethodType = "multibanco"
InvoicePaymentSettingsPaymentMethodTypeP24 InvoicePaymentSettingsPaymentMethodType = "p24"
InvoicePaymentSettingsPaymentMethodTypePayNow InvoicePaymentSettingsPaymentMethodType = "paynow"
InvoicePaymentSettingsPaymentMethodTypePaypal InvoicePaymentSettingsPaymentMethodType = "paypal"
Expand Down
2 changes: 1 addition & 1 deletion paymentmethoddomain.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ type PaymentMethodDomainPaypal struct {
// A payment method domain represents a web domain that you have registered with Stripe.
// Stripe Elements use registered payment method domains to control where certain payment methods are shown.
//
// Related guides: [Payment method domains](https://stripe.com/docs/payments/payment-methods/pmd-registration).
// Related guide: [Payment method domains](https://stripe.com/docs/payments/payment-methods/pmd-registration).
type PaymentMethodDomain struct {
APIResource
// Indicates the status of a specific payment method on a payment method domain.
Expand Down
7 changes: 4 additions & 3 deletions subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ const (
SubscriptionPaymentSettingsPaymentMethodTypeIDEAL SubscriptionPaymentSettingsPaymentMethodType = "ideal"
SubscriptionPaymentSettingsPaymentMethodTypeKonbini SubscriptionPaymentSettingsPaymentMethodType = "konbini"
SubscriptionPaymentSettingsPaymentMethodTypeLink SubscriptionPaymentSettingsPaymentMethodType = "link"
SubscriptionPaymentSettingsPaymentMethodTypeMultibanco SubscriptionPaymentSettingsPaymentMethodType = "multibanco"
SubscriptionPaymentSettingsPaymentMethodTypeP24 SubscriptionPaymentSettingsPaymentMethodType = "p24"
SubscriptionPaymentSettingsPaymentMethodTypePayNow SubscriptionPaymentSettingsPaymentMethodType = "paynow"
SubscriptionPaymentSettingsPaymentMethodTypePaypal SubscriptionPaymentSettingsPaymentMethodType = "paypal"
Expand All @@ -213,7 +214,7 @@ const (
SubscriptionPaymentSettingsPaymentMethodTypeWeChatPay SubscriptionPaymentSettingsPaymentMethodType = "wechat_pay"
)

// Either `off`, or `on_subscription`. With `on_subscription` Stripe updates `subscription.default_payment_method` when a subscription payment succeeds.
// Configure whether Stripe updates `subscription.default_payment_method` when payment succeeds. Defaults to `off`.
type SubscriptionPaymentSettingsSaveDefaultPaymentMethod string

// List of values that SubscriptionPaymentSettingsSaveDefaultPaymentMethod can take
Expand Down Expand Up @@ -661,7 +662,7 @@ type SubscriptionPaymentSettingsParams struct {
PaymentMethodOptions *SubscriptionPaymentSettingsPaymentMethodOptionsParams `form:"payment_method_options"`
// The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice).
PaymentMethodTypes []*string `form:"payment_method_types"`
// Either `off`, or `on_subscription`. With `on_subscription` Stripe updates `subscription.default_payment_method` when a subscription payment succeeds.
// Configure whether Stripe updates `subscription.default_payment_method` when payment succeeds. Defaults to `off` if unspecified.
SaveDefaultPaymentMethod *string `form:"save_default_payment_method"`
}

Expand Down Expand Up @@ -950,7 +951,7 @@ type SubscriptionPaymentSettings struct {
PaymentMethodOptions *SubscriptionPaymentSettingsPaymentMethodOptions `json:"payment_method_options"`
// The list of payment method types to provide to every invoice created by the subscription. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice).
PaymentMethodTypes []SubscriptionPaymentSettingsPaymentMethodType `json:"payment_method_types"`
// Either `off`, or `on_subscription`. With `on_subscription` Stripe updates `subscription.default_payment_method` when a subscription payment succeeds.
// Configure whether Stripe updates `subscription.default_payment_method` when payment succeeds. Defaults to `off`.
SaveDefaultPaymentMethod SubscriptionPaymentSettingsSaveDefaultPaymentMethod `json:"save_default_payment_method"`
}

Expand Down
5 changes: 3 additions & 2 deletions terminal_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const (
TerminalReaderActionTypeSetReaderDisplay TerminalReaderActionType = "set_reader_display"
)

// Type of reader, one of `bbpos_wisepad3`, `stripe_m2`, `bbpos_chipper2x`, `bbpos_wisepos_e`, `verifone_P400`, `simulated_wisepos_e`, or `mobile_phone_reader`.
// Type of reader, one of `bbpos_wisepad3`, `stripe_m2`, `stripe_s700`, `bbpos_chipper2x`, `bbpos_wisepos_e`, `verifone_P400`, `simulated_wisepos_e`, or `mobile_phone_reader`.
type TerminalReaderDeviceType string

// List of values that TerminalReaderDeviceType can take
Expand All @@ -56,6 +56,7 @@ const (
TerminalReaderDeviceTypeMobilePhoneReader TerminalReaderDeviceType = "mobile_phone_reader"
TerminalReaderDeviceTypeSimulatedWisePOSE TerminalReaderDeviceType = "simulated_wisepos_e"
TerminalReaderDeviceTypeStripeM2 TerminalReaderDeviceType = "stripe_m2"
TerminalReaderDeviceTypeStripeS700 TerminalReaderDeviceType = "stripe_s700"
TerminalReaderDeviceTypeVerifoneP400 TerminalReaderDeviceType = "verifone_P400"
)

Expand Down Expand Up @@ -392,7 +393,7 @@ type TerminalReader struct {
Deleted bool `json:"deleted"`
// The current software version of the reader.
DeviceSwVersion string `json:"device_sw_version"`
// Type of reader, one of `bbpos_wisepad3`, `stripe_m2`, `bbpos_chipper2x`, `bbpos_wisepos_e`, `verifone_P400`, `simulated_wisepos_e`, or `mobile_phone_reader`.
// Type of reader, one of `bbpos_wisepad3`, `stripe_m2`, `stripe_s700`, `bbpos_chipper2x`, `bbpos_wisepos_e`, `verifone_P400`, `simulated_wisepos_e`, or `mobile_phone_reader`.
DeviceType TerminalReaderDeviceType `json:"device_type"`
// Unique identifier for the object.
ID string `json:"id"`
Expand Down

0 comments on commit 7eaa3f3

Please sign in to comment.