Skip to content

Commit

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

* Update generated code for v1233

* Update generated code for v1235

* Update generated code for v1238

* Update generated code for v1243

* Update generated code for v1244

* Update generated code for v1245

* Update generated code for v1246

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] authored Sep 5, 2024
1 parent 2d5f629 commit 11cc1c3
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 11 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1230
v1246
4 changes: 4 additions & 0 deletions billing_alert.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ func (p *BillingAlertListParams) AddExpand(f string) {
type BillingAlertFilterParams struct {
// Limit the scope to this alert only to this customer.
Customer *string `form:"customer"`
// Limit the scope of this rated usage alert to this subscription.
Subscription *string `form:"subscription"`
// Limit the scope of this rated usage alert to this subscription item.
SubscriptionItem *string `form:"subscription_item"`
}

// The configuration of the usage threshold.
Expand Down
6 changes: 3 additions & 3 deletions checkout_session.go
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ const (
CheckoutSessionPaymentStatusUnpaid CheckoutSessionPaymentStatus = "unpaid"
)

// This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://stripe.com/docs/payments/checkout/custom-redirect-behavior) of embedded sessions. Defaults to `always`.
// This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://stripe.com/docs/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`.
type CheckoutSessionRedirectOnCompletion string

// List of values that CheckoutSessionRedirectOnCompletion can take
Expand Down Expand Up @@ -2201,7 +2201,7 @@ type CheckoutSessionParams struct {
// We recommend that you review your privacy policy and check with your legal contacts
// before using this feature. Learn more about [collecting phone numbers with Checkout](https://stripe.com/docs/payments/checkout/phone-numbers).
PhoneNumberCollection *CheckoutSessionPhoneNumberCollectionParams `form:"phone_number_collection"`
// This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://stripe.com/docs/payments/checkout/custom-redirect-behavior) of embedded sessions. Defaults to `always`.
// This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://stripe.com/docs/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`.
RedirectOnCompletion *string `form:"redirect_on_completion"`
// The URL to redirect your customer back to after they authenticate or cancel their payment on the
// payment method's app or site. This parameter is required if ui_mode is `embedded`
Expand Down Expand Up @@ -3140,7 +3140,7 @@ type CheckoutSession struct {
PhoneNumberCollection *CheckoutSessionPhoneNumberCollection `json:"phone_number_collection"`
// The ID of the original expired Checkout Session that triggered the recovery flow.
RecoveredFrom string `json:"recovered_from"`
// This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://stripe.com/docs/payments/checkout/custom-redirect-behavior) of embedded sessions. Defaults to `always`.
// This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://stripe.com/docs/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`.
RedirectOnCompletion CheckoutSessionRedirectOnCompletion `json:"redirect_on_completion"`
// Applies to Checkout Sessions with `ui_mode: embedded`. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site.
ReturnURL string `json:"return_url"`
Expand Down
12 changes: 6 additions & 6 deletions invoice.go
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ type InvoiceUpcomingInvoiceItemPeriodParams struct {
Start *int64 `form:"start"`
}

// List of invoice items to add or update in the upcoming invoice preview.
// List of invoice items to add or update in the upcoming invoice preview (up to 250).
type InvoiceUpcomingInvoiceItemParams struct {
// The integer amount in cents (or local equivalent) of previewed invoice item.
Amount *int64 `form:"amount"`
Expand Down Expand Up @@ -1164,7 +1164,7 @@ type InvoiceUpcomingParams struct {
Discounts []*InvoiceDiscountParams `form:"discounts"`
// Specifies which fields in the response should be expanded.
Expand []*string `form:"expand"`
// List of invoice items to add or update in the upcoming invoice preview.
// List of invoice items to add or update in the upcoming invoice preview (up to 250).
InvoiceItems []*InvoiceUpcomingInvoiceItemParams `form:"invoice_items"`
// The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
Issuer *InvoiceUpcomingIssuerParams `form:"issuer"`
Expand Down Expand Up @@ -1323,7 +1323,7 @@ type InvoiceUpcomingLinesInvoiceItemPriceDataParams struct {
UnitAmountDecimal *float64 `form:"unit_amount_decimal,high_precision"`
}

// List of invoice items to add or update in the upcoming invoice preview.
// List of invoice items to add or update in the upcoming invoice preview (up to 250).
type InvoiceUpcomingLinesInvoiceItemParams struct {
// The integer amount in cents (or local equivalent) of previewed invoice item.
Amount *int64 `form:"amount"`
Expand Down Expand Up @@ -1837,7 +1837,7 @@ type InvoiceUpcomingLinesParams struct {
Discounts []*InvoiceUpcomingLinesDiscountParams `form:"discounts"`
// Specifies which fields in the response should be expanded.
Expand []*string `form:"expand"`
// List of invoice items to add or update in the upcoming invoice preview.
// List of invoice items to add or update in the upcoming invoice preview (up to 250).
InvoiceItems []*InvoiceUpcomingLinesInvoiceItemParams `form:"invoice_items"`
// The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
Issuer *InvoiceUpcomingLinesIssuerParams `form:"issuer"`
Expand Down Expand Up @@ -2388,7 +2388,7 @@ type InvoiceCreatePreviewInvoiceItemPriceDataParams struct {
UnitAmountDecimal *float64 `form:"unit_amount_decimal,high_precision"`
}

// List of invoice items to add or update in the upcoming invoice preview.
// List of invoice items to add or update in the upcoming invoice preview (up to 250).
type InvoiceCreatePreviewInvoiceItemParams struct {
// The integer amount in cents (or local equivalent) of previewed invoice item.
Amount *int64 `form:"amount"`
Expand Down Expand Up @@ -2833,7 +2833,7 @@ type InvoiceCreatePreviewParams struct {
Discounts []*InvoiceCreatePreviewDiscountParams `form:"discounts"`
// Specifies which fields in the response should be expanded.
Expand []*string `form:"expand"`
// List of invoice items to add or update in the upcoming invoice preview.
// List of invoice items to add or update in the upcoming invoice preview (up to 250).
InvoiceItems []*InvoiceCreatePreviewInvoiceItemParams `form:"invoice_items"`
// The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
Issuer *InvoiceCreatePreviewIssuerParams `form:"issuer"`
Expand Down
3 changes: 3 additions & 0 deletions paymentintent.go
Original file line number Diff line number Diff line change
Expand Up @@ -2404,6 +2404,9 @@ type PaymentIntentConfirmRadarOptionsParams struct {
// after those actions are completed. Your server needs to then
// explicitly re-confirm the PaymentIntent to initiate the next payment
// attempt.
// There is a variable upper limit on how many times a PaymentIntent can be confirmed.
// After this limit is reached, any further calls to this endpoint will
// transition the PaymentIntent to the canceled state.
type PaymentIntentConfirmParams struct {
Params `form:"*"`
// Controls when the funds will be captured from the customer's account.
Expand Down
6 changes: 6 additions & 0 deletions paymentintent/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ func (c Client) Capture(id string, params *stripe.PaymentIntentCaptureParams) (*
// after those actions are completed. Your server needs to then
// explicitly re-confirm the PaymentIntent to initiate the next payment
// attempt.
// There is a variable upper limit on how many times a PaymentIntent can be confirmed.
// After this limit is reached, any further calls to this endpoint will
// transition the PaymentIntent to the canceled state.
func Confirm(id string, params *stripe.PaymentIntentConfirmParams) (*stripe.PaymentIntent, error) {
return getC().Confirm(id, params)
}
Expand All @@ -208,6 +211,9 @@ func Confirm(id string, params *stripe.PaymentIntentConfirmParams) (*stripe.Paym
// after those actions are completed. Your server needs to then
// explicitly re-confirm the PaymentIntent to initiate the next payment
// attempt.
// There is a variable upper limit on how many times a PaymentIntent can be confirmed.
// After this limit is reached, any further calls to this endpoint will
// transition the PaymentIntent to the canceled state.
func (c Client) Confirm(id string, params *stripe.PaymentIntentConfirmParams) (*stripe.PaymentIntent, error) {
path := stripe.FormatURLPath("/v1/payment_intents/%s/confirm", id)
paymentintent := &stripe.PaymentIntent{}
Expand Down
2 changes: 1 addition & 1 deletion transfer.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ type Transfer struct {
Reversals *TransferReversalList `json:"reversals"`
// Whether the transfer has been fully reversed. If the transfer is only partially reversed, this attribute will still be false.
Reversed bool `json:"reversed"`
// ID of the charge or payment that was used to fund the transfer. If null, the transfer was funded from the available balance.
// ID of the charge that was used to fund the transfer. If null, the transfer was funded from the available balance.
SourceTransaction *Charge `json:"source_transaction"`
// The source balance this transfer came from. One of `card`, `fpx`, or `bank_account`.
SourceType TransferSourceType `json:"source_type"`
Expand Down

0 comments on commit 11cc1c3

Please sign in to comment.