Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Codegen for openapi v2099 and proto spec .
Changelog
PaymentAttemptRecord,PaymentIntentAmountDetailsLineItem, andPaymentRecordlistandretrievemethods on resourcePaymentAttemptRecordreport_payment_attempt_canceled,report_payment_attempt_failed,report_payment_attempt_guaranteed,report_payment_attempt_informational,report_payment_attempt,report_payment,report_refund, andretrievemethods on resourcePaymentRecordlistmethod on resourcePaymentIntentAmountDetailsLineItemrepresentative_declarationonAccount.Company,AccountCreateParamsCompany,AccountModifyParamsCompany, andTokenCreateParamsAccountCompanybilling.CreditGrantCreateParams.categoryto be optionalpayment_method_configurationonbilling_portal.ConfigurationCreateParamsFeaturePaymentMethodUpdateandbilling_portal.ConfigurationModifyParamsFeaturePaymentMethodUpdatesolanaon enumCharge.PaymentMethodDetail.Crypto.networkmb_wayon enumcheckout.SessionCreateParams.excluded_payment_method_typestwintonCheckout.Session.PaymentMethodOptionandcheckout.SessionCreateParamsPaymentMethodOptionmb_wayon enumcheckout.SessionCreateParams.payment_method_typescustomon enumsConfirmationToken.PaymentMethodPreview.typeandPaymentMethod.typepayment_record_refundandtypeonCreditNote.Refund,CreditNoteCreateParamsRefund,CreditNotePreviewLinesParamsRefund, andCreditNotePreviewParamsRefundcustomer_sheetandmobile_payment_elementonCustomerSession.ComponentandCustomerSessionCreateParamsComponentcustomon enumsCustomerListPaymentMethodsParams.type,PaymentMethodCreateParams.type, andPaymentMethodListParams.typeprovideronCustomer.Taxbalance_settings.updatedandinvoice.payment_attempt_requiredon enumEvent.typeplatform_terms_of_serviceon enumsFile.purposeandFileListParams.purposeplatform_terms_of_serviceon enumFileCreateParams.purposepayment_recordonInvoiceAttachPaymentParams,InvoicePayment.Payment, andInvoicePaymentListParamsPaymentInvoicePaymentListParamsPayment.typefromliteral('payment_intent')toenum('payment_intent'|'payment_record')customon enumsInvoice.PaymentSetting.payment_method_types,InvoiceCreateParamsPaymentSetting.payment_method_types,InvoiceModifyParamsPaymentSetting.payment_method_types,Subscription.PaymentSetting.payment_method_types,SubscriptionCreateParamsPaymentSetting.payment_method_types, andSubscriptionModifyParamsPaymentSetting.payment_method_typesamount_detailsonPaymentIntentCaptureParams,PaymentIntentConfirmParams,PaymentIntentCreateParams,PaymentIntentIncrementAuthorizationParams, andPaymentIntentModifyParamspayment_detailsonPaymentIntentCaptureParams,PaymentIntentConfirmParams,PaymentIntentCreateParams,PaymentIntentIncrementAuthorizationParams,PaymentIntentModifyParams, andPaymentIntentdiscount_amount,line_items,shipping, andtaxonPaymentIntent.AmountDetailname_collectiononPaymentLinkCreateParams,PaymentLinkModifyParams, andPaymentLinkmb_wayon enumsPaymentLink.payment_method_types,PaymentLinkCreateParams.payment_method_types, andPaymentLinkModifyParams.payment_method_typescryptoonPaymentMethodConfigurationCreateParams,PaymentMethodConfigurationModifyParams,PaymentMethodConfiguration, andRefund.DestinationDetailmb_wayonPaymentMethodConfigurationCreateParams,PaymentMethodConfigurationModifyParams, andPaymentMethodConfigurationcustomonPaymentMethodCreateParamsandPaymentMethodexcluded_payment_method_typesonSetupIntentCreateParams,SetupIntentModifyParams, andSetupIntentSetupIntent.flow_directionsto be optionaltwonTax.Registration.CountryOptionandtax.RegistrationCreateParamsCountryOptiongiponTerminal.Configuration.Tipping,terminal.ConfigurationCreateParamsTipping, andterminal.ConfigurationModifyParamsTippinglast_seen_atonTerminal.Readerbalance_settings.updatedandinvoice.payment_attempt_requiredon enumsWebhookEndpointCreateParams.enabled_eventsandWebhookEndpointModifyParams.enabled_events2025-10-29.cloveron enumWebhookEndpointCreateParams.api_versiongt,gte,lt,lte, andtypesonv2.core.EventListParamsv2.core.EventListParams.object_idto be optionalbalance_settings.updatedwith resourceBalanceSettingsinvoice.payment_attempt_requiredwith resourceInvoicepayment_intent_rate_limit_exceededonInvoice.LastFinalizationError,PaymentIntent.LastPaymentError,SetupAttempt.SetupError,SetupIntent.LastSetupError, andStripeError