This release changes the pinned API version to 2025-05-28.preview.
#2324 Update generated code for beta
Billing.MeterErrorReport, GiftCards.Card, and GiftCards.Transactioncreate, list, retrieve, update, and validate methods on resource GiftCards.Cardcancel, confirm, create, list, retrieve, and update methods on resource GiftCards.Transactionprovisioning on ProductCreateParams and ProductBillingMeterErrorReportTriggeredEvent with resource Billing.MeterErrorReportgift_card_balance_insufficient, gift_card_code_exists, and gift_card_inactive on QuotePreviewInvoice.last_finalization_error and StripeErrorcredits_attributed_to_debits and legacy_prorations from enums Checkout.SessionCreateParams.subscription_data.billing_mode, InvoiceCreatePreviewParams.schedule_details.billing_mode, InvoiceCreatePreviewParams.subscription_details.billing_mode, Quote.subscription_data.billing_mode, QuoteCreateParams.subscription_data.billing_mode, QuotePreviewSubscriptionSchedule.billing_mode, Subscription.billing_mode, SubscriptionCreateParams.billing_mode, SubscriptionSchedule.billing_mode, and SubscriptionScheduleCreateParams.billing_modeCheckout.SessionUpdateParams.line_items[].quantity from emptyable(longInteger) to longIntegerCreditNote.post_payment_amount to be requiredCreditNote.pre_payment_amount to be requiredInvoiceCreatePreviewParams.subscription_details.cancel_at, SubscriptionCreateParams.cancel_at, and SubscriptionUpdateParams.cancel_at from DateTime to DateTime | enum('max_period_end'|'min_period_end')credits on OrderCreateParams, OrderUpdateParams, and Orderamount_remaining on Orderamount_credit on Order.total_detailsPaymentAttemptRecord.metadata and PaymentRecord.metadata from map(string: string) | null to map(string: string)PaymentRecordReportPaymentAttemptCanceledParams.metadata, PaymentRecordReportPaymentAttemptFailedParams.metadata, PaymentRecordReportPaymentAttemptGuaranteedParams.metadata, PaymentRecordReportPaymentAttemptParams.metadata, and PaymentRecordReportPaymentParams.metadata from map(string: string) to emptyable(map(string: string))Privacy.RedactionJob.status from string to enumPrivacy.RedactionJob.validation_behavior from string to enum('error'|'fix')Privacy.RedactionJobValidationError.code from string to enumPrivacy.RedactionJobValidationError.erroring_object from map(string: string) to RedactionResourceErroringObjectstatus_details and status on Tax.Associationmigrate method on resource Subscriptiondistance, pickup_location_name, return_location_name, and vehicle_identification_number on ChargeCaptureParams.payment_details.car_rental, ChargeUpdateParams.payment_details.car_rental, PaymentIntent.payment_details.car_rental, PaymentIntentCaptureParams.payment_details.car_rental, PaymentIntentConfirmParams.payment_details.car_rental, PaymentIntentCreateParams.payment_details.car_rental, and PaymentIntentUpdateParams.payment_details.car_rentaldriver_identification_number and driver_tax_number on ChargeCaptureParams.payment_details.car_rental.drivers[], ChargeUpdateParams.payment_details.car_rental.drivers[], PaymentIntent.payment_details.car_rental.drivers[], PaymentIntentCaptureParams.payment_details.car_rental.drivers[], PaymentIntentConfirmParams.payment_details.car_rental.drivers[], PaymentIntentCreateParams.payment_details.car_rental.drivers[], and PaymentIntentUpdateParams.payment_details.car_rental.drivers[]classic and flexible on enums Checkout.SessionCreateParams.subscription_data.billing_mode, InvoiceCreatePreviewParams.schedule_details.billing_mode, InvoiceCreatePreviewParams.subscription_details.billing_mode, Quote.subscription_data.billing_mode, QuoteCreateParams.subscription_data.billing_mode, QuotePreviewSubscriptionSchedule.billing_mode, Subscription.billing_mode, SubscriptionCreateParams.billing_mode, SubscriptionSchedule.billing_mode, and SubscriptionScheduleCreateParams.billing_modeinstitution on FinancialConnections.Accountcountries on FinancialConnections.Institutionlocation and reader on PaymentAttemptRecord.payment_method_details.affirm, PaymentAttemptRecord.payment_method_details.wechat_pay, PaymentRecord.payment_method_details.affirm, and PaymentRecord.payment_method_details.wechat_payhooks on PaymentIntentCaptureParams, PaymentIntentConfirmParams, PaymentIntentCreateParams, PaymentIntentDecrementAuthorizationParams, PaymentIntentIncrementAuthorizationParams, PaymentIntentUpdateParams, and PaymentIntentasync_workflows on PaymentIntentCaptureParams, PaymentIntentConfirmParams, PaymentIntentCreateParams, PaymentIntentDecrementAuthorizationParams, PaymentIntentIncrementAuthorizationParams, PaymentIntentUpdateParams, and PaymentIntentcard_present on PaymentIntentAmountDetailsLineItem.payment_method_optionslivemode on Privacy.RedactionJobbilling_thresholds on QuotePreviewSubscriptionSchedule.default_settings, QuotePreviewSubscriptionSchedule.phases[].items[], and QuotePreviewSubscriptionSchedule.phases[]billing_mode_details on Subscriptiontax_transaction_attempts on Tax.Associationconfirm_config on Terminal.Reader.action.confirm_payment_intent and Terminal.ReaderConfirmPaymentIntentParamsforwarding_api_upstream_error on QuotePreviewInvoice.last_finalization_errorFetched March 31, 2026