github stripe/stripe-node v20.4.0-alpha.3

pre-release8 hours ago
  • #2572 Update generated code for private-preview
    • Add support for new resources V2.Billing.CadenceSpendModifier, V2.Billing.OneTimeItem, and V2.Billing.RateCardCustomPricingUnitOverageRate
    • Add support for create, del, list, and retrieve methods on resource V2.Billing.RateCardCustomPricingUnitOverageRate
    • Add support for create, list, retrieve, and update methods on resource V2.Billing.OneTimeItem
    • Add support for retrieve method on resource V2.Billing.CadenceSpendModifier
    • Change EventsV2CoreHealthFraudRateIncreasedEvent.impact.realized_fraud_amount.value, EventsV2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent.impact.approved_amount.value, EventsV2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent.impact.declined_amount.value, EventsV2CoreHealthIssuingAuthorizationRequestErrorsResolvedEvent.impact.approved_amount.value, EventsV2CoreHealthIssuingAuthorizationRequestErrorsResolvedEvent.impact.declined_amount.value, EventsV2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent.impact.approved_amount.value, EventsV2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent.impact.declined_amount.value, EventsV2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent.impact.approved_amount.value, EventsV2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent.impact.declined_amount.value, V2.Billing.ServiceAction.credit_grant.amount.monetary.value, V2.Billing.ServiceAction.credit_grant_per_tenant.amount.monetary.value, V2.Billing.ServiceActionCreateParams.credit_grant.amount.monetary.value, V2.Billing.ServiceActionCreateParams.credit_grant_per_tenant.amount.monetary.value, V2.Core.Account.identity.business_details.annual_revenue.amount.value, V2.Core.Account.identity.business_details.monthly_estimated_revenue.amount.value, V2.Core.AccountCreateParams.identity.business_details.annual_revenue.amount.value, V2.Core.AccountCreateParams.identity.business_details.monthly_estimated_revenue.amount.value, V2.Core.AccountTokenCreateParams.identity.business_details.annual_revenue.amount.value, V2.Core.AccountTokenCreateParams.identity.business_details.monthly_estimated_revenue.amount.value, V2.Core.AccountUpdateParams.identity.business_details.annual_revenue.amount.value, V2.Core.AccountUpdateParams.identity.business_details.monthly_estimated_revenue.amount.value, V2.FinancialAddressCreditSimulationCreditParams.amount.value, V2.FinancialAddressGeneratedMicrodeposits.amounts[].value, V2.MoneyManagement.Adjustment.amount.value, V2.MoneyManagement.CurrencyConversion.from.amount.value, V2.MoneyManagement.CurrencyConversion.to.amount.value, V2.MoneyManagement.CurrencyConversionCreateParams.from.amount.value, V2.MoneyManagement.CurrencyConversionCreateParams.to.amount.value, V2.MoneyManagement.FinancialAccount.balance.available.value.value, V2.MoneyManagement.FinancialAccount.balance.inbound_pending.value.value, V2.MoneyManagement.FinancialAccount.balance.outbound_pending.value.value, V2.MoneyManagement.FinancialAccount.payments.starting_balance.available.value.value, V2.MoneyManagement.InboundTransfer.amount.value, V2.MoneyManagement.InboundTransfer.from.debited.value, V2.MoneyManagement.InboundTransfer.to.credited.value, V2.MoneyManagement.InboundTransferCreateParams.amount.value, V2.MoneyManagement.OutboundPayment.amount.value, V2.MoneyManagement.OutboundPayment.from.debited.value, V2.MoneyManagement.OutboundPayment.to.credited.value, V2.MoneyManagement.OutboundPaymentCreateParams.amount.value, V2.MoneyManagement.OutboundPaymentQuote.amount.value, V2.MoneyManagement.OutboundPaymentQuote.estimated_fees[].amount.value, V2.MoneyManagement.OutboundPaymentQuote.from.debited.value, V2.MoneyManagement.OutboundPaymentQuote.to.credited.value, V2.MoneyManagement.OutboundPaymentQuoteCreateParams.amount.value, V2.MoneyManagement.OutboundTransfer.amount.value, V2.MoneyManagement.OutboundTransfer.from.debited.value, V2.MoneyManagement.OutboundTransfer.to.credited.value, V2.MoneyManagement.OutboundTransferCreateParams.amount.value, V2.MoneyManagement.ReceivedCredit.amount.value, V2.MoneyManagement.ReceivedCredit.external_amount.value, V2.MoneyManagement.ReceivedDebit.amount.value, V2.MoneyManagement.ReceivedDebit.card_spend.authorization.amount.value, V2.MoneyManagement.ReceivedDebit.card_spend.card_transactions[].amount.value, V2.MoneyManagement.ReceivedDebit.external_amount.value, V2.MoneyManagement.Transaction.amount.value, V2.MoneyManagement.Transaction.balance_impact.available.value, V2.MoneyManagement.Transaction.balance_impact.inbound_pending.value, V2.MoneyManagement.Transaction.balance_impact.outbound_pending.value, V2.MoneyManagement.TransactionEntry.balance_impact.available.value, V2.MoneyManagement.TransactionEntry.balance_impact.inbound_pending.value, V2.MoneyManagement.TransactionEntry.balance_impact.outbound_pending.value, V2.Payments.OffSessionPayment.amount_capturable.value, V2.Payments.OffSessionPayment.amount_requested.value, V2.Payments.OffSessionPaymentCreateParams.amount.value, V2.Payments.SettlementAllocationIntent.amount.value, V2.Payments.SettlementAllocationIntentCreateParams.amount.value, V2.Payments.SettlementAllocationIntentSplit.amount.value, V2.Payments.SettlementAllocationIntentSplitCreateParams.amount.value, and V2.Payments.SettlementAllocationIntentUpdateParams.amount.value to be required
    • Change EventsV2CoreHealthFraudRateIncreasedEvent.impact.realized_fraud_amount.currency, EventsV2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent.impact.approved_amount.currency, EventsV2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent.impact.declined_amount.currency, EventsV2CoreHealthIssuingAuthorizationRequestErrorsResolvedEvent.impact.approved_amount.currency, EventsV2CoreHealthIssuingAuthorizationRequestErrorsResolvedEvent.impact.declined_amount.currency, EventsV2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent.impact.approved_amount.currency, EventsV2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent.impact.declined_amount.currency, EventsV2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent.impact.approved_amount.currency, EventsV2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent.impact.declined_amount.currency, V2.Billing.ServiceAction.credit_grant.amount.monetary.currency, V2.Billing.ServiceAction.credit_grant_per_tenant.amount.monetary.currency, V2.Billing.ServiceActionCreateParams.credit_grant.amount.monetary.currency, V2.Billing.ServiceActionCreateParams.credit_grant_per_tenant.amount.monetary.currency, V2.Core.Account.identity.business_details.annual_revenue.amount.currency, V2.Core.Account.identity.business_details.monthly_estimated_revenue.amount.currency, V2.Core.AccountCreateParams.identity.business_details.annual_revenue.amount.currency, V2.Core.AccountCreateParams.identity.business_details.monthly_estimated_revenue.amount.currency, V2.Core.AccountTokenCreateParams.identity.business_details.annual_revenue.amount.currency, V2.Core.AccountTokenCreateParams.identity.business_details.monthly_estimated_revenue.amount.currency, V2.Core.AccountUpdateParams.identity.business_details.annual_revenue.amount.currency, V2.Core.AccountUpdateParams.identity.business_details.monthly_estimated_revenue.amount.currency, V2.FinancialAddressCreditSimulationCreditParams.amount.currency, V2.FinancialAddressGeneratedMicrodeposits.amounts[].currency, V2.MoneyManagement.Adjustment.amount.currency, V2.MoneyManagement.CurrencyConversion.from.amount.currency, V2.MoneyManagement.CurrencyConversion.to.amount.currency, V2.MoneyManagement.CurrencyConversionCreateParams.from.amount.currency, V2.MoneyManagement.CurrencyConversionCreateParams.to.amount.currency, V2.MoneyManagement.FinancialAccount.balance.available.value.currency, V2.MoneyManagement.FinancialAccount.balance.inbound_pending.value.currency, V2.MoneyManagement.FinancialAccount.balance.outbound_pending.value.currency, V2.MoneyManagement.FinancialAccount.payments.starting_balance.available.value.currency, V2.MoneyManagement.InboundTransfer.amount.currency, V2.MoneyManagement.InboundTransfer.from.debited.currency, V2.MoneyManagement.InboundTransfer.to.credited.currency, V2.MoneyManagement.InboundTransferCreateParams.amount.currency, V2.MoneyManagement.OutboundPayment.amount.currency, V2.MoneyManagement.OutboundPayment.from.debited.currency, V2.MoneyManagement.OutboundPayment.to.credited.currency, V2.MoneyManagement.OutboundPaymentCreateParams.amount.currency, V2.MoneyManagement.OutboundPaymentQuote.amount.currency, V2.MoneyManagement.OutboundPaymentQuote.estimated_fees[].amount.currency, V2.MoneyManagement.OutboundPaymentQuote.from.debited.currency, V2.MoneyManagement.OutboundPaymentQuote.to.credited.currency, V2.MoneyManagement.OutboundPaymentQuoteCreateParams.amount.currency, V2.MoneyManagement.OutboundTransfer.amount.currency, V2.MoneyManagement.OutboundTransfer.from.debited.currency, V2.MoneyManagement.OutboundTransfer.to.credited.currency, V2.MoneyManagement.OutboundTransferCreateParams.amount.currency, V2.MoneyManagement.ReceivedCredit.amount.currency, V2.MoneyManagement.ReceivedCredit.external_amount.currency, V2.MoneyManagement.ReceivedDebit.amount.currency, V2.MoneyManagement.ReceivedDebit.card_spend.authorization.amount.currency, V2.MoneyManagement.ReceivedDebit.card_spend.card_transactions[].amount.currency, V2.MoneyManagement.ReceivedDebit.external_amount.currency, V2.MoneyManagement.Transaction.amount.currency, V2.MoneyManagement.Transaction.balance_impact.available.currency, V2.MoneyManagement.Transaction.balance_impact.inbound_pending.currency, V2.MoneyManagement.Transaction.balance_impact.outbound_pending.currency, V2.MoneyManagement.TransactionEntry.balance_impact.available.currency, V2.MoneyManagement.TransactionEntry.balance_impact.inbound_pending.currency, V2.MoneyManagement.TransactionEntry.balance_impact.outbound_pending.currency, V2.Payments.OffSessionPayment.amount_capturable.currency, V2.Payments.OffSessionPayment.amount_requested.currency, V2.Payments.OffSessionPaymentCreateParams.amount.currency, V2.Payments.SettlementAllocationIntent.amount.currency, V2.Payments.SettlementAllocationIntentCreateParams.amount.currency, V2.Payments.SettlementAllocationIntentSplit.amount.currency, V2.Payments.SettlementAllocationIntentSplitCreateParams.amount.currency, and V2.Payments.SettlementAllocationIntentUpdateParams.amount.currency to be required
    • Add support for settlement_type on ApplicationFee
    • Add support for rate_card_custom_pricing_unit_overage_rate_details on InvoiceItem.pricing and InvoiceLineItem.pricing
    • Add support for new value rate_card_custom_pricing_unit_overage_rate_details on enums InvoiceItem.pricing.type and InvoiceLineItem.pricing.type
    • Add support for default_settings on InvoiceCreatePreviewParams.schedule_details
    • Change type of QuoteUpdateParams.subscription_data_overrides[].billing_schedules from emptyable(array(billing_schedules_update_specs)) to array(billing_schedules_update_specs)
    • Add support for payment_behavior on SubscriptionResumeParams
    • Add support for effective_at and spend_modifier_rule on V2.Billing.IntentAction.apply, V2.Billing.IntentAction.remove, V2.Billing.IntentCreateParams.actions[].apply, and V2.Billing.IntentCreateParams.actions[].remove
    • Change type of V2.Billing.IntentAction.apply.type, V2.Billing.IntentAction.remove.type, V2.Billing.IntentCreateParams.actions[].apply.type, and V2.Billing.IntentCreateParams.actions[].remove.type from literal('invoice_discount_rule') to enum('invoice_discount_rule'|'spend_modifier_rule')

See the changelog for more details.

Don't miss a new stripe-node release

NewReleases is sending notifications on new releases.