- #2118 Update generated code for private-preview
- Add support for new resources
v2.core.AccountPersonToken,v2.core.AccountToken, andv2.moneymanagement.CurrencyConversion - Add support for
create,list, andretrievemethods on resourcev2.moneymanagement.CurrencyConversion - Add support for
createandretrievemethods on resourcesv2.core.AccountPersonTokenandv2.core.AccountToken - Add support for
effectiveAtonInvoiceCreatePreviewParams.schedule_details.amendments[],InvoiceCreatePreviewParams.schedule_details.phases[],QuoteCreateParams.lines[],QuoteLine,QuotePreviewSubscriptionSchedule.phases[],QuoteUpdateParams.lines[],SubscriptionSchedule.phases[],SubscriptionScheduleAmendParams.amendments[],SubscriptionScheduleCreateParams.phases[], andSubscriptionScheduleUpdateParams.phases[] - Add support for
trialOfferonInvoiceCreatePreviewParams.schedule_details.amendments[].item_actions[].add,InvoiceCreatePreviewParams.schedule_details.amendments[].item_actions[].set,InvoiceCreatePreviewParams.schedule_details.phases[].items[],QuoteCreateParams.lines[].actions[].add_item,QuoteCreateParams.lines[].actions[].set_items[],QuoteLine.actions[].add_item,QuoteLine.actions[].set_items[],QuotePreviewSubscriptionSchedule.phases[].items[],QuoteUpdateParams.lines[].actions[].add_item,QuoteUpdateParams.lines[].actions[].set_items[],SubscriptionSchedule.phases[].items[],SubscriptionScheduleAmendParams.amendments[].item_actions[].add,SubscriptionScheduleAmendParams.amendments[].item_actions[].set,SubscriptionScheduleCreateParams.phases[].items[], andSubscriptionScheduleUpdateParams.phases[].items[] - Add support for
amountDiscount,amountSubtotal,amountTotal,unitAmountAfterDiscount, andunitDiscountondelegatedcheckout.RequestedSession.line_item_details[] - Add support for
amountSubtotalAfterDiscountondelegatedcheckout.RequestedSession.line_item_details[]anddelegatedcheckout.RequestedSession.total_details - Change type of
InvoiceCreatePreviewParams.schedule_details.billingSchedulesfromarray(billing_schedules_update_params)toemptyable(array(billing_schedules_update_params)) - Remove support for values
amendment_end,line_ends_at,schedule_end, andupcoming_invoicefrom enumsInvoiceCreatePreviewParams.subscription_details.billing_schedules[].bill_until.type,SubscriptionCreateParams.billing_schedules[].bill_until.type,SubscriptionScheduleCreateParams.billing_schedules[].bill_until.type,SubscriptionScheduleUpdateParams.billing_schedules[].bill_until.type, andSubscriptionUpdateParams.billing_schedules[].bill_until.type - Add support for
currentTrialonInvoiceCreatePreviewParams.subscription_details.items[],SubscriptionCreateParams.items[],SubscriptionItemCreateParams,SubscriptionItemUpdateParams,SubscriptionItem, andSubscriptionUpdateParams.items[] - Change type of
QuoteCreateParams.subscription_data.billingSchedulesandQuoteCreateParams.subscription_data_overrides[].billingSchedulesfromemptyable(array(billing_schedules_create_specs))toarray(billing_schedules_create_specs) - Add support for new value
line_starton enumsQuoteCreateParams.subscription_data.phaseEffectiveAt,QuoteCreateParams.subscription_data_overrides[].phaseEffectiveAt,QuoteUpdateParams.subscription_data.phaseEffectiveAt, andQuoteUpdateParams.subscription_data_overrides[].phaseEffectiveAt - Remove support for value
phase_startfrom enumsQuoteCreateParams.subscription_data.phaseEffectiveAt,QuoteCreateParams.subscription_data_overrides[].phaseEffectiveAt,QuoteUpdateParams.subscription_data.phaseEffectiveAt, andQuoteUpdateParams.subscription_data_overrides[].phaseEffectiveAt - Change type of
Quote.subscription_data.billingSchedulesandQuote.subscription_data_overrides[].billingSchedulesfromnullable(array(SubscriptionsResourceBillingSchedules))toarray(QuotesResourceSubscriptionDataBillingSchedules) - Change type of
Quote.subscription_data.phaseEffectiveAtandQuote.subscription_data_overrides[].phaseEffectiveAtfromnullable(enum('billing_period_start'|'phase_start'))toenum('billing_period_start'|'line_start') - Change type of
QuotePreviewSubscriptionSchedule.billingSchedulesandSubscriptionSchedule.billingSchedulesfromnullable(array(SubscriptionsResourceBillingSchedules))toarray(SubscriptionsResourceBillingSchedules) - Remove support for
amendmentStart,lineStartsAt, andrelativeonSubscription.billing_schedules[].bill_from - Change type of
Subscription.billing_schedules[].bill_from.typefromenumtoliteral('timestamp') - Remove support for
amendmentEndandlineEndsAtonSubscription.billing_schedules[].bill_until - Change type of
v2.billing.ServiceAction.credit_grant.amount.monetary,v2.billing.ServiceAction.credit_grant_per_tenant.amount.monetary,v2.billing.ServiceActionCreateParams.credit_grant.amount.monetary, andv2.billing.ServiceActionCreateParams.credit_grant_per_tenant.amount.monetaryfromamounttoan object - Add support for
futureRequirementsonv2.core.Account - Add support for
konbiniPaymentsandscriptStatementDescriptoronv2.core.Account.configuration.merchant,v2.core.AccountCreateParams.configuration.merchant, andv2.core.AccountUpdateParams.configuration.merchant - Add support for
euronv2.core.Account.configuration.storer.capabilities.holds_currencies,v2.core.AccountCreateParams.configuration.storer.capabilities.holds_currencies, andv2.core.AccountUpdateParams.configuration.storer.capabilities.holds_currencies - Add support for
requirementsCollectoronv2.core.Account.defaults.responsibilities - Remove support for
collectoronv2.core.Account.requirements - Remove support for
v1EventIdonv2.core.Event - Remove support for
amountDetailsandcaptureMethodonv2.payments.OffSessionPaymentCreateParamsandv2.payments.OffSessionPayment - Change type of
v2.payments.OffSessionPayment.amountCapturablefromamounttoan object - Change type of
v2.payments.OffSessionPayment.amountRequestedfromamounttoan object - Change type of
v2.payments.OffSessionPaymentCreateParams.amountfromamounttoan object - Add support for new value
best_availableon enumv2.payments.OffSessionPaymentCreateParams.retry_details.retryStrategy - Remove support for values
heuristic,scheduled, andsmartfrom enumv2.payments.OffSessionPaymentCreateParams.retry_details.retryStrategy - Change
v2.payments.OffSessionPaymentCreateParams.retry_details.retryStrategyto be optional - Remove support for
destinationonv2.payments.OffSessionPaymentCaptureParams.transfer_data - Change
v2.payments.OffSessionPaymentCaptureParams.amountToCaptureto be optional - Add support for
createdonv2.core.EventListParams - Remove support for
gt,gte,lt, andlteonv2.core.EventListParams - Add support for
accountTokenonv2.core.AccountCreateParamsandv2.core.AccountUpdateParams - Add support for new value
ar_cuiton enumsv2.core.AccountCreateParams.identity.business_details.id_numbers[].typeandv2.core.AccountUpdateParams.identity.business_details.id_numbers[].type - Add support for new value
ar_dnion enumsv2.core.AccountCreateParams.identity.individual.id_numbers[].type,v2.core.AccountPersonCreateParams.id_numbers[].type,v2.core.AccountPersonUpdateParams.id_numbers[].type, andv2.core.AccountUpdateParams.identity.individual.id_numbers[].type - Add support for new value
future_requirementson enumsv2.core.AccountCreateParams.include,v2.core.AccountRetrieveParams.include, andv2.core.AccountUpdateParams.include - Add support for
personTokenonv2.core.AccountPersonCreateParamsandv2.core.AccountPersonUpdateParams - Add support for
impactedRequestsPercentageonEventsV2CoreHealthApiErrorFiringEvent.impact,EventsV2CoreHealthApiErrorResolvedEvent.impact,EventsV2CoreHealthApiLatencyFiringEvent.impact,EventsV2CoreHealthApiLatencyResolvedEvent.impact,EventsV2CoreHealthPaymentMethodErrorFiringEvent.impact, andEventsV2CoreHealthPaymentMethodErrorResolvedEvent.impact - Add support for
contextandrelatedObjectonEventsV2CoreHealthEventGenerationFailureResolvedEvent.impact - Remove support for
account,livemode,missingDeliveryAttempts, andrelatedObjectIdonEventsV2CoreHealthEventGenerationFailureResolvedEvent.impact - Change type of
EventsV2CoreHealthFraudRateIncreasedEvent.impact.realizedFraudAmountfromamounttoan object - Change type of
EventsV2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent.impact.approvedAmount,EventsV2CoreHealthIssuingAuthorizationRequestErrorsResolvedEvent.impact.approvedAmount,EventsV2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent.impact.approvedAmount, andEventsV2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent.impact.approvedAmountfromamounttoan object - Change type of
EventsV2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent.impact.declinedAmount,EventsV2CoreHealthIssuingAuthorizationRequestErrorsResolvedEvent.impact.declinedAmount,EventsV2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent.impact.declinedAmount, andEventsV2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent.impact.declinedAmountfromamounttoan object - Add support for thin events
V2PaymentsOffSessionPaymentAttemptFailedEventandV2PaymentsOffSessionPaymentAttemptStartedEventwith related objectv2.payments.OffSessionPayment - Remove support for thin event
V1AccountUpdatedEventwith related objectAccount - Remove support for thin events
V1ApplicationFeeCreatedEventandV1ApplicationFeeRefundedEventwith related objectApplicationFee - Remove support for thin events
V1BillingPortalConfigurationCreatedEventandV1BillingPortalConfigurationUpdatedEventwith related objectbillingportal.Configuration - Remove support for thin event
V1CapabilityUpdatedEventwith related objectCapability - Remove support for thin events
V1ChargeCapturedEvent,V1ChargeExpiredEvent,V1ChargeFailedEvent,V1ChargePendingEvent,V1ChargeRefundedEvent,V1ChargeSucceededEvent, andV1ChargeUpdatedEventwith related objectCharge - Remove support for thin events
V1ChargeDisputeClosedEvent,V1ChargeDisputeCreatedEvent,V1ChargeDisputeFundsReinstatedEvent,V1ChargeDisputeFundsWithdrawnEvent, andV1ChargeDisputeUpdatedEventwith related objectDispute - Remove support for thin events
V1ChargeRefundUpdatedEvent,V1RefundCreatedEvent,V1RefundFailedEvent, andV1RefundUpdatedEventwith related objectRefund - Remove support for thin events
V1CheckoutSessionAsyncPaymentFailedEvent,V1CheckoutSessionAsyncPaymentSucceededEvent,V1CheckoutSessionCompletedEvent, andV1CheckoutSessionExpiredEventwith related objectcheckout.Session - Remove support for thin events
V1ClimateOrderCanceledEvent,V1ClimateOrderCreatedEvent,V1ClimateOrderDelayedEvent,V1ClimateOrderDeliveredEvent, andV1ClimateOrderProductSubstitutedEventwith related objectclimate.Order - Remove support for thin events
V1ClimateProductCreatedEventandV1ClimateProductPricingUpdatedEventwith related objectclimate.Product - Remove support for thin events
V1CouponCreatedEvent,V1CouponDeletedEvent, andV1CouponUpdatedEventwith related objectCoupon - Remove support for thin events
V1CreditNoteCreatedEvent,V1CreditNoteUpdatedEvent, andV1CreditNoteVoidedEventwith related objectCreditNote - Remove support for thin events
V1CustomerCreatedEvent,V1CustomerDeletedEvent, andV1CustomerUpdatedEventwith related objectCustomer - Remove support for thin events
V1CustomerSubscriptionCreatedEvent,V1CustomerSubscriptionDeletedEvent,V1CustomerSubscriptionPausedEvent,V1CustomerSubscriptionPendingUpdateAppliedEvent,V1CustomerSubscriptionPendingUpdateExpiredEvent,V1CustomerSubscriptionResumedEvent,V1CustomerSubscriptionTrialWillEndEvent, andV1CustomerSubscriptionUpdatedEventwith related objectSubscription - Remove support for thin events
V1CustomerTaxIdCreatedEvent,V1CustomerTaxIdDeletedEvent, andV1CustomerTaxIdUpdatedEventwith related objectTaxId - Remove support for thin event
V1FileCreatedEventwith related objectFile - Remove support for thin events
V1FinancialConnectionsAccountCreatedEvent,V1FinancialConnectionsAccountDeactivatedEvent,V1FinancialConnectionsAccountDisconnectedEvent,V1FinancialConnectionsAccountReactivatedEvent,V1FinancialConnectionsAccountRefreshedBalanceEvent,V1FinancialConnectionsAccountRefreshedOwnershipEvent, andV1FinancialConnectionsAccountRefreshedTransactionsEventwith related objectfinancialconnections.Account - Remove support for thin events
V1IdentityVerificationSessionCanceledEvent,V1IdentityVerificationSessionCreatedEvent,V1IdentityVerificationSessionProcessingEvent,V1IdentityVerificationSessionRedactedEvent,V1IdentityVerificationSessionRequiresInputEvent, andV1IdentityVerificationSessionVerifiedEventwith related objectidentity.VerificationSession - Remove support for thin events
V1InvoiceCreatedEvent,V1InvoiceDeletedEvent,V1InvoiceFinalizationFailedEvent,V1InvoiceFinalizedEvent,V1InvoiceMarkedUncollectibleEvent,V1InvoiceOverdueEvent,V1InvoiceOverpaidEvent,V1InvoicePaidEvent,V1InvoicePaymentActionRequiredEvent,V1InvoicePaymentFailedEvent,V1InvoicePaymentSucceededEvent,V1InvoiceSentEvent,V1InvoiceUpcomingEvent,V1InvoiceUpdatedEvent,V1InvoiceVoidedEvent, andV1InvoiceWillBeDueEventwith related objectInvoice - Remove support for thin event
V1InvoicePaymentPaidEventwith related objectInvoicePayment - Remove support for thin events
V1InvoiceitemCreatedEventandV1InvoiceitemDeletedEventwith related objectInvoiceItem - Remove support for thin events
V1IssuingAuthorizationCreatedEvent,V1IssuingAuthorizationRequestEvent, andV1IssuingAuthorizationUpdatedEventwith related objectissuing.Authorization - Remove support for thin events
V1IssuingCardCreatedEventandV1IssuingCardUpdatedEventwith related objectissuing.Card - Remove support for thin events
V1IssuingCardholderCreatedEventandV1IssuingCardholderUpdatedEventwith related objectissuing.Cardholder - Remove support for thin events
V1IssuingDisputeClosedEvent,V1IssuingDisputeCreatedEvent,V1IssuingDisputeFundsReinstatedEvent,V1IssuingDisputeFundsRescindedEvent,V1IssuingDisputeSubmittedEvent, andV1IssuingDisputeUpdatedEventwith related objectissuing.Dispute - Remove support for thin events
V1IssuingPersonalizationDesignActivatedEvent,V1IssuingPersonalizationDesignDeactivatedEvent,V1IssuingPersonalizationDesignRejectedEvent, andV1IssuingPersonalizationDesignUpdatedEventwith related objectissuing.PersonalizationDesign - Remove support for thin events
V1IssuingTokenCreatedEventandV1IssuingTokenUpdatedEventwith related objectissuing.Token - Remove support for thin events
V1IssuingTransactionCreatedEvent,V1IssuingTransactionPurchaseDetailsReceiptUpdatedEvent, andV1IssuingTransactionUpdatedEventwith related objectissuing.Transaction - Remove support for thin event
V1MandateUpdatedEventwith related objectMandate - Remove support for thin events
V1PaymentIntentAmountCapturableUpdatedEvent,V1PaymentIntentCanceledEvent,V1PaymentIntentCreatedEvent,V1PaymentIntentPartiallyFundedEvent,V1PaymentIntentPaymentFailedEvent,V1PaymentIntentProcessingEvent,V1PaymentIntentRequiresActionEvent, andV1PaymentIntentSucceededEventwith related objectPaymentIntent - Remove support for thin events
V1PaymentLinkCreatedEventandV1PaymentLinkUpdatedEventwith related objectPaymentLink - Remove support for thin events
V1PaymentMethodAttachedEvent,V1PaymentMethodAutomaticallyUpdatedEvent,V1PaymentMethodDetachedEvent, andV1PaymentMethodUpdatedEventwith related objectPaymentMethod - Remove support for thin events
V1PayoutCanceledEvent,V1PayoutCreatedEvent,V1PayoutFailedEvent,V1PayoutPaidEvent,V1PayoutReconciliationCompletedEvent, andV1PayoutUpdatedEventwith related objectPayout - Remove support for thin events
V1PersonCreatedEvent,V1PersonDeletedEvent, andV1PersonUpdatedEventwith related objectPerson - Remove support for thin events
V1PlanCreatedEvent,V1PlanDeletedEvent, andV1PlanUpdatedEventwith related objectPlan - Remove support for thin events
V1PriceCreatedEvent,V1PriceDeletedEvent, andV1PriceUpdatedEventwith related objectPrice - Remove support for thin events
V1ProductCreatedEvent,V1ProductDeletedEvent, andV1ProductUpdatedEventwith related objectProduct - Remove support for thin events
V1PromotionCodeCreatedEventandV1PromotionCodeUpdatedEventwith related objectPromotionCode - Remove support for thin events
V1QuoteAcceptedEvent,V1QuoteCanceledEvent,V1QuoteCreatedEvent, andV1QuoteFinalizedEventwith related objectQuote - Remove support for thin events
V1RadarEarlyFraudWarningCreatedEventandV1RadarEarlyFraudWarningUpdatedEventwith related objectradar.EarlyFraudWarning - Remove support for thin events
V1ReviewClosedEventandV1ReviewOpenedEventwith related objectReview - Remove support for thin events
V1SetupIntentCanceledEvent,V1SetupIntentCreatedEvent,V1SetupIntentRequiresActionEvent,V1SetupIntentSetupFailedEvent, andV1SetupIntentSucceededEventwith related objectSetupIntent - Remove support for thin event
V1SigmaScheduledQueryRunCreatedEventwith related objectsigma.ScheduledQueryRun - Remove support for thin events
V1SourceCanceledEvent,V1SourceChargeableEvent,V1SourceFailedEvent, andV1SourceRefundAttributesRequiredEventwith related objectSource - Remove support for thin events
V1SubscriptionScheduleAbortedEvent,V1SubscriptionScheduleCanceledEvent,V1SubscriptionScheduleCompletedEvent,V1SubscriptionScheduleCreatedEvent,V1SubscriptionScheduleExpiringEvent,V1SubscriptionScheduleReleasedEvent, andV1SubscriptionScheduleUpdatedEventwith related objectSubscriptionSchedule - Remove support for thin events
V1TaxRateCreatedEventandV1TaxRateUpdatedEventwith related objectTaxRate - Remove support for thin events
V1TerminalReaderActionFailedEvent,V1TerminalReaderActionSucceededEvent, andV1TerminalReaderActionUpdatedEventwith related objectterminal.Reader - Remove support for thin events
V1TestHelpersTestClockAdvancingEvent,V1TestHelpersTestClockCreatedEvent,V1TestHelpersTestClockDeletedEvent,V1TestHelpersTestClockInternalFailureEvent, andV1TestHelpersTestClockReadyEventwith related objecttesthelpers.TestClock - Remove support for thin events
V1TopupCanceledEvent,V1TopupCreatedEvent,V1TopupFailedEvent,V1TopupReversedEvent, andV1TopupSucceededEventwith related objectTopup - Remove support for thin events
V1TransferCreatedEvent,V1TransferReversedEvent, andV1TransferUpdatedEventwith related objectTransfer
- Add support for new resources