This release changes the pinned API version to 2025-05-28.preview
.
-
#1509 Update generated code for beta
Breaking changes
- Remove support for deprecated previews
- Remove support for resources
billing.MeterErrorReport
,gift_cards.Card
,gift_cards.Transaction
, andprivacy.RedactionJobRootObjects
- Remove support for
create
,list
,modify
,retrieve
, andvalidate
methods on resourcegift_cards.Card
- Remove support for
cancel
,confirm
,create
,list
,modify
, andretrieve
methods on resourcegift_cards.Transaction
- Remove support for
provisioning
onProduct.CreateParams
andProduct
- Remove support for snapshot event
billing.meter_error_report.triggered
with resourcebilling.MeterErrorReport
- Remove support for error codes
gift_card_balance_insufficient
,gift_card_code_exists
, andgift_card_inactive
onQuotePreviewInvoice.LastFinalizationError
andStripeError
- Remove support for resources
- Remove support for values
credits_attributed_to_debits
andlegacy_prorations
from enumsInvoice.CreatePreviewParamsScheduleDetail.billing_mode
,Invoice.CreatePreviewParamsSubscriptionDetail.billing_mode
,Quote.CreateParamsSubscriptionDatum.billing_mode
,Quote.SubscriptionDatum.billing_mode
,QuotePreviewSubscriptionSchedule.billing_mode
,Subscription.CreateParams.billing_mode
,Subscription.billing_mode
,SubscriptionSchedule.CreateParams.billing_mode
,SubscriptionSchedule.billing_mode
, andcheckout.Session.CreateParamsSubscriptionDatum.billing_mode
- Change type of
checkout.Session.ModifyParamsLineItem.quantity
fromemptyable(longInteger)
tolongInteger
- Change
CreditNote.post_payment_amount
to be required - Change
CreditNote.pre_payment_amount
to be required - Remove support for
credits
onOrder.CreateParams
,Order.ModifyParams
, andOrder
- Remove support for
amount_remaining
onOrder
- Remove support for
amount_credit
onOrder.TotalDetail
- Change type of
PaymentAttemptRecord.metadata
andPaymentRecord.metadata
fromnullable(map(string: string))
tomap(string: string)
- Remove support for
async_workflows
onPaymentIntent.CaptureParams
,PaymentIntent.ConfirmParams
,PaymentIntent.CreateParams
,PaymentIntent.DecrementAuthorizationParams
,PaymentIntent.IncrementAuthorizationParams
,PaymentIntent.ModifyParams
, andPaymentIntent
- Change type of
PaymentRecord.ReportPaymentAttemptCanceledParams.metadata
,PaymentRecord.ReportPaymentAttemptFailedParams.metadata
,PaymentRecord.ReportPaymentAttemptGuaranteedParams.metadata
,PaymentRecord.ReportPaymentAttemptParams.metadata
, andPaymentRecord.ReportPaymentParams.metadata
frommap(string: string)
toemptyable(map(string: string))
- Change type of
Privacy.RedactionJob.objects
from$Privacy.RedactionJobRootObjects
toRedactionResourceRootObjects
- Change type of
Privacy.RedactionJob.status
fromstring
toenum
- Change type of
Privacy.RedactionJob.validation_behavior
fromstring
toenum('error'|'fix')
- Change type of
Privacy.RedactionJobValidationError.code
fromstring
toenum
- Change type of
Privacy.RedactionJobValidationError.erroring_object
frommap(string: string)
toRedactionResourceErroringObject
- Remove support for
status_details
andstatus
onTax.Association
Other changes
- Add support for
migrate
method on resourceSubscription
- Add support for
distance
,pickup_location_name
,return_location_name
, andvehicle_identification_number
onCharge.CaptureParamsPaymentDetailCarRental
,Charge.ModifyParamsPaymentDetailCarRental
,PaymentIntent.CaptureParamsPaymentDetailCarRental
,PaymentIntent.ConfirmParamsPaymentDetailCarRental
,PaymentIntent.CreateParamsPaymentDetailCarRental
,PaymentIntent.ModifyParamsPaymentDetailCarRental
, andPaymentIntent.PaymentDetail.CarRental
- Add support for
driver_identification_number
anddriver_tax_number
onCharge.CaptureParamsPaymentDetailCarRentalDriver
,Charge.ModifyParamsPaymentDetailCarRentalDriver
,PaymentIntent.CaptureParamsPaymentDetailCarRentalDriver
,PaymentIntent.ConfirmParamsPaymentDetailCarRentalDriver
,PaymentIntent.CreateParamsPaymentDetailCarRentalDriver
,PaymentIntent.ModifyParamsPaymentDetailCarRentalDriver
, andPaymentIntent.PaymentDetail.CarRental.Driver
- Add support for new values
classic
andflexible
on enumsInvoice.CreatePreviewParamsScheduleDetail.billing_mode
,Invoice.CreatePreviewParamsSubscriptionDetail.billing_mode
,Quote.CreateParamsSubscriptionDatum.billing_mode
,Quote.SubscriptionDatum.billing_mode
,QuotePreviewSubscriptionSchedule.billing_mode
,Subscription.CreateParams.billing_mode
,Subscription.billing_mode
,SubscriptionSchedule.CreateParams.billing_mode
,SubscriptionSchedule.billing_mode
, andcheckout.Session.CreateParamsSubscriptionDatum.billing_mode
- Add support for
institution
onFinancialConnections.Account
- Add support for
countries
onFinancialConnections.Institution
- Change type of
Invoice.CreatePreviewParamsSubscriptionDetail.cancel_at
,Subscription.CreateParams.cancel_at
, andSubscription.ModifyParams.cancel_at
fromDateTime
toDateTime | enum('max_period_end'|'min_period_end')
- Add support for
location
andreader
onPaymentAttemptRecord.PaymentMethodDetail.Affirm
,PaymentAttemptRecord.PaymentMethodDetail.WechatPay
,PaymentRecord.PaymentMethodDetail.Affirm
, andPaymentRecord.PaymentMethodDetail.WechatPay
- Add support for
hooks
onPaymentIntent.CaptureParams
,PaymentIntent.ConfirmParams
,PaymentIntent.CreateParams
,PaymentIntent.DecrementAuthorizationParams
,PaymentIntent.IncrementAuthorizationParams
,PaymentIntent.ModifyParams
, andPaymentIntent
- Add support for
card_present
onPaymentIntentAmountDetailsLineItem.PaymentMethodOption
- Add support for
livemode
onPrivacy.RedactionJob
- Add support for
billing_thresholds
onQuotePreviewSubscriptionSchedule.DefaultSetting
,QuotePreviewSubscriptionSchedule.Phase.Item
, andQuotePreviewSubscriptionSchedule.Phase
- Add support for
billing_mode_details
onSubscription
- Add support for
tax_transaction_attempts
onTax.Association
- Add support for
confirm_config
onTerminal.Reader.Action.ConfirmPaymentIntent
andterminal.Reader.ConfirmPaymentIntentParams
- Add support for error code
forwarding_api_upstream_error
onQuotePreviewInvoice.LastFinalizationError
- Remove support for deprecated previews