stripe 17.4.0-beta.1 → 17.4.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/CHANGELOG.md +78 -36
  2. package/VERSION +1 -1
  3. package/cjs/apiVersion.js +1 -1
  4. package/cjs/resources/Issuing/FraudLiabilityDebits.js +17 -0
  5. package/cjs/resources/PaymentAttemptRecords.js +17 -0
  6. package/cjs/resources/PaymentRecords.js +29 -0
  7. package/cjs/resources/TestHelpers/Issuing/Authorizations.js +4 -0
  8. package/cjs/resources.js +28 -6
  9. package/cjs/stripe.core.js +1 -1
  10. package/esm/apiVersion.js +1 -1
  11. package/esm/resources/Issuing/FraudLiabilityDebits.js +14 -0
  12. package/esm/resources/PaymentAttemptRecords.js +14 -0
  13. package/esm/resources/PaymentRecords.js +26 -0
  14. package/esm/resources/TestHelpers/Issuing/Authorizations.js +4 -0
  15. package/esm/resources.js +22 -1
  16. package/esm/stripe.core.js +1 -1
  17. package/package.json +1 -1
  18. package/types/AccountSessions.d.ts +5 -5
  19. package/types/AccountSessionsResource.d.ts +29 -6
  20. package/types/Accounts.d.ts +39 -5
  21. package/types/AccountsResource.d.ts +15 -0
  22. package/types/Billing/CreditBalanceSummaryResource.d.ts +1 -1
  23. package/types/Billing/CreditGrants.d.ts +5 -6
  24. package/types/Billing/CreditGrantsResource.d.ts +11 -11
  25. package/types/Billing/MeterEventsResource.d.ts +1 -1
  26. package/types/Capabilities.d.ts +1 -1
  27. package/types/Charges.d.ts +5 -5
  28. package/types/Checkout/Sessions.d.ts +60 -3
  29. package/types/Checkout/SessionsResource.d.ts +91 -5
  30. package/types/ConfirmationTokens.d.ts +4 -4
  31. package/types/CustomersResource.d.ts +4 -2
  32. package/types/Disputes.d.ts +1 -1
  33. package/types/EventTypes.d.ts +34 -0
  34. package/types/Events.d.ts +2 -0
  35. package/types/FileLinksResource.d.ts +1 -1
  36. package/types/Files.d.ts +1 -0
  37. package/types/FilesResource.d.ts +1 -0
  38. package/types/FundingInstructions.d.ts +49 -0
  39. package/types/Identity/VerificationReports.d.ts +1 -1
  40. package/types/Identity/VerificationSessions.d.ts +1 -1
  41. package/types/Identity/VerificationSessionsResource.d.ts +1 -1
  42. package/types/InvoicePayments.d.ts +10 -35
  43. package/types/Invoices.d.ts +9 -2
  44. package/types/InvoicesResource.d.ts +24 -11
  45. package/types/Issuing/Authorizations.d.ts +41 -1
  46. package/types/Issuing/Cardholders.d.ts +1 -1
  47. package/types/Issuing/Cards.d.ts +2 -2
  48. package/types/Issuing/FraudLiabilityDebits.d.ts +52 -0
  49. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +52 -0
  50. package/types/Orders.d.ts +2 -1
  51. package/types/OrdersResource.d.ts +4 -2
  52. package/types/PaymentAttemptRecords.d.ts +242 -0
  53. package/types/PaymentAttemptRecordsResource.d.ts +47 -0
  54. package/types/PaymentIntents.d.ts +52 -2
  55. package/types/PaymentIntentsResource.d.ts +9 -6
  56. package/types/PaymentLinks.d.ts +1 -1
  57. package/types/PaymentLinksResource.d.ts +10 -3
  58. package/types/PaymentMethods.d.ts +4 -4
  59. package/types/PaymentRecords.d.ts +259 -0
  60. package/types/PaymentRecordsResource.d.ts +455 -0
  61. package/types/Payouts.d.ts +17 -0
  62. package/types/Persons.d.ts +5 -0
  63. package/types/QuoteLines.d.ts +1 -1
  64. package/types/QuotePreviewInvoices.d.ts +9 -2
  65. package/types/QuotePreviewSubscriptionSchedules.d.ts +1 -1
  66. package/types/Refunds.d.ts +10 -0
  67. package/types/SetupAttempts.d.ts +2 -2
  68. package/types/SetupIntents.d.ts +2 -1
  69. package/types/SetupIntentsResource.d.ts +7 -4
  70. package/types/SubscriptionSchedules.d.ts +1 -1
  71. package/types/SubscriptionSchedulesResource.d.ts +2 -2
  72. package/types/Subscriptions.d.ts +4 -2
  73. package/types/SubscriptionsResource.d.ts +6 -2
  74. package/types/Tax/CalculationLineItems.d.ts +1 -0
  75. package/types/Tax/Calculations.d.ts +4 -1
  76. package/types/Tax/CalculationsResource.d.ts +2 -1
  77. package/types/Tax/Transactions.d.ts +3 -1
  78. package/types/TaxIds.d.ts +2 -1
  79. package/types/TaxIdsResource.d.ts +2 -1
  80. package/types/TaxRates.d.ts +1 -0
  81. package/types/TaxRatesResource.d.ts +2 -0
  82. package/types/TestHelpers/Issuing/AuthorizationsResource.d.ts +37 -4
  83. package/types/TokensResource.d.ts +5 -0
  84. package/types/Treasury/InboundTransfers.d.ts +1 -1
  85. package/types/WebhookEndpointsResource.d.ts +6 -1
  86. package/types/index.d.ts +21 -4
  87. package/types/lib.d.ts +1 -1
  88. package/types/test/typescriptTest.ts +3 -3
  89. package/cjs/resources/V2/Billing.js +0 -18
  90. package/cjs/resources/V2/Core.js +0 -14
  91. package/cjs/resources/V2.js +0 -14
  92. package/esm/resources/V2/Billing.js +0 -15
  93. package/esm/resources/V2/Core.js +0 -11
  94. package/esm/resources/V2.js +0 -11
  95. package/types/V2/BillingResource.d.ts +0 -14
  96. package/types/V2/CoreResource.d.ts +0 -12
  97. package/types/V2Resource.d.ts +0 -10
package/CHANGELOG.md CHANGED
@@ -1,5 +1,44 @@
1
1
  # Changelog
2
2
 
3
+ ## 17.4.0-beta.3 - 2024-11-14
4
+ * [#2226](https://github.com/stripe/stripe-node/pull/2226) Update generated code for beta
5
+ * Add support for `account_holder_address` and `bank_address` on `FundingInstructions.bank_transfer.financial_addresses[].iban`, `FundingInstructions.bank_transfer.financial_addresses[].sort_code`, `FundingInstructions.bank_transfer.financial_addresses[].spei`, `FundingInstructions.bank_transfer.financial_addresses[].zengin`, `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].iban`, `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].sort_code`, `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].spei`, and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].zengin`
6
+ * Add support for `account_holder_name` on `FundingInstructions.bank_transfer.financial_addresses[].spei` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].spei`
7
+ * Add support for new value `subscribe` on enum `PaymentLinkUpdateParams.submit_type`
8
+ * [#2225](https://github.com/stripe/stripe-node/pull/2225) Update generated code for beta
9
+ * Add support for `respond` test helper method on resource `Issuing.Authorization`
10
+ * Add support for `fraud_challenges` and `verified_by_fraud_challenge` on `Issuing.Authorization`
11
+
12
+ ## 17.4.0-beta.2 - 2024-11-07
13
+ * [#2219](https://github.com/stripe/stripe-node/pull/2219) Update generated code for beta
14
+ * Add support for new resources `Issuing.FraudLiabilityDebit`, `PaymentAttemptRecord`, and `PaymentRecord`
15
+ * Add support for `list` and `retrieve` methods on resources `FraudLiabilityDebit` and `PaymentAttemptRecord`
16
+ * Add support for `report_payment_attempt_canceled`, `report_payment_attempt_failed`, `report_payment_attempt_guaranteed`, `report_payment_attempt`, `report_payment`, and `retrieve` methods on resource `PaymentRecord`
17
+ * Change type of `Account.future_requirements.disabled_reason` and `Account.requirements.disabled_reason` from `string` to `enum`
18
+ * Remove support for `money_movement` on `AccountSessionCreateParams.components.financial_account.features`
19
+ * Add support for `card_management`, `card_spend_dispute_management`, `cardholder_management`, and `spend_control_management` on `AccountSessionCreateParams.components.issuing_card.features`
20
+ * Add support for `disable_stripe_user_authentication` on `AccountSessionCreateParams.components.issuing_cards_list.features`
21
+ * Change `AccountSession.components.account_management.features.disable_stripe_user_authentication`, `AccountSession.components.account_onboarding.features.disable_stripe_user_authentication`, `AccountSession.components.balances.features.disable_stripe_user_authentication`, `AccountSession.components.notification_banner.features.disable_stripe_user_authentication`, and `AccountSession.components.payouts.features.disable_stripe_user_authentication` to be required
22
+ * Add support for `adaptive_pricing` on `Checkout.SessionCreateParams` and `Checkout.Session`
23
+ * Add support for `mandate_options` on `Checkout.Session.payment_method_options.bacs_debit`, `Checkout.Session.payment_method_options.sepa_debit`, `Checkout.SessionCreateParams.payment_method_options.bacs_debit`, and `Checkout.SessionCreateParams.payment_method_options.sepa_debit`
24
+ * Add support for `request_decremental_authorization`, `request_extended_authorization`, `request_incremental_authorization`, `request_multicapture`, and `request_overcapture` on `Checkout.Session.payment_method_options.card` and `Checkout.SessionCreateParams.payment_method_options.card`
25
+ * Add support for `capture_method` on `Checkout.SessionCreateParams.payment_method_options.kakao_pay`, `Checkout.SessionCreateParams.payment_method_options.kr_card`, `Checkout.SessionCreateParams.payment_method_options.naver_pay`, `Checkout.SessionCreateParams.payment_method_options.payco`, and `Checkout.SessionCreateParams.payment_method_options.samsung_pay`
26
+ * Add support for new value `li_vat` on enums `Checkout.Session.collected_information.tax_ids[].type`, `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Order.tax_details.tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type`
27
+ * Add support for new value `li_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `OrderCreateParams.tax_details.tax_ids[].type`, `OrderUpdateParams.tax_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type`
28
+ * Add support for new values `invoice.payment_attempt_required` and `issuing_fraud_liability_debit.created` on enum `Event.type`
29
+ * Add support for `account_holder_address`, `account_holder_name`, `account_type`, and `bank_address` on `FundingInstructions.bank_transfer.financial_addresses[].aba`, `FundingInstructions.bank_transfer.financial_addresses[].swift`, `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].aba`, and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].swift`
30
+ * Add support for new value `custom` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]`
31
+ * Add support for new value `service_tax` on enums `InvoiceAddLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `InvoiceUpdateLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `Tax.Calculation.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Calculation.tax_breakdown[].tax_rate_details.tax_type`, `Tax.CalculationLineItem.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Transaction.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `TaxRate.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateUpdateParams.tax_type`
32
+ * Add support for `payment_record_data` and `payment_record` on `InvoiceAttachPaymentParams`
33
+ * Remove support for `out_of_band_payment` on `InvoiceAttachPaymentParams`
34
+ * Add support for `amount_overpaid` on `Invoice`
35
+ * Add support for `merchant_amount` and `merchant_currency` on `Issuing.AuthorizationCreateParams.testHelpers`
36
+ * Change `Issuing.AuthorizationCreateParams.testHelpers.amount` to be optional
37
+ * Add support for new value `link` on enums `PaymentIntent.payment_method_options.card.network`, `PaymentIntentConfirmParams.payment_method_options.card.network`, `PaymentIntentCreateParams.payment_method_options.card.network`, `PaymentIntentUpdateParams.payment_method_options.card.network`, `SetupIntent.payment_method_options.card.network`, `SetupIntentConfirmParams.payment_method_options.card.network`, `SetupIntentCreateParams.payment_method_options.card.network`, `SetupIntentUpdateParams.payment_method_options.card.network`, `Subscription.payment_settings.payment_method_options.card.network`, `SubscriptionCreateParams.payment_settings.payment_method_options.card.network`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.card.network`
38
+ * Add support for `submit_type` on `PaymentLinkUpdateParams`
39
+ * Change type of `Treasury.InboundTransfer.origin_payment_method` from `string` to `string | null`
40
+ * Add support for new values `invoice.payment_attempt_required` and `issuing_fraud_liability_debit.created` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`
41
+
3
42
  ## 17.4.0-beta.1 - 2024-10-29
4
43
  * [#2216](https://github.com/stripe/stripe-node/pull/2216) Update generated code for beta
5
44
  * Add support for `trigger_action` method on resource `PaymentIntent`
@@ -11,42 +50,45 @@
11
50
  * Change `Dispute.enhanced_eligibility_types`, `Dispute.evidence.enhanced_evidence`, and `Dispute.evidence_details.enhanced_eligibility` to be required
12
51
  * Add support for `gopay`, `qris`, and `shopeepay` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration`
13
52
 
53
+ ## 17.3.1 - 2024-11-01
54
+ * [#2218](https://github.com/stripe/stripe-node/pull/2218) Fixed a bug where `latestapiversion` was not updated to `2024-10-28.acacia` in the last release.
55
+
14
56
  ## 17.3.0 - 2024-10-29
15
- * [#2204](https://github.com/stripe/stripe-node/pull/2204) Update generated code
16
- * Add support for new resource `V2.EventDestinations`
17
- * Add support for `create`, `retrieve`, `update`, `list`, `del`, `disable`, `enable` and `ping` methods on resource `V2.EventDestinations`
18
- * Add support for `submit_card` test helper method on resource `Issuing.Card`
19
- * Add support for `groups` on `AccountCreateParams`, `AccountUpdateParams`, and `Account`
20
- * Add support for `alma_payments`, `kakao_pay_payments`, `kr_card_payments`, `naver_pay_payments`, `payco_payments`, and `samsung_pay_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
21
- * Add support for `disable_stripe_user_authentication` on `AccountSession.components.account_management.features`, `AccountSession.components.account_onboarding.features`, `AccountSession.components.balances.features`, `AccountSession.components.notification_banner.features`, `AccountSession.components.payouts.features`, `AccountSessionCreateParams.components.account_management.features`, `AccountSessionCreateParams.components.account_onboarding.features`, `AccountSessionCreateParams.components.balances.features`, `AccountSessionCreateParams.components.notification_banner.features`, and `AccountSessionCreateParams.components.payouts.features`
22
- * Add support for `schedule_at_period_end` on `BillingPortal.Configuration.features.subscription_update`, `BillingPortal.ConfigurationCreateParams.features.subscription_update`, and `BillingPortal.ConfigurationUpdateParams.features.subscription_update`
23
- * Change `BillingPortal.ConfigurationCreateParams.business_profile` and `Refund.next_action.display_details` to be optional
24
- * Add support for `alma` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `Refund.destination_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
25
- * Add support for `kakao_pay` and `kr_card` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `Mandate.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupAttempt.payment_method_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
26
- * Add support for `naver_pay` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
27
- * Add support for `payco` and `samsung_pay` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
28
- * Add support for new values `alma`, `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `Checkout.SessionCreateParams.payment_method_types[]`, `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type`
29
- * Add support for new values `by_tin`, `ma_vat`, `md_vat`, `tz_vat`, `uz_tin`, and `uz_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type`
30
- * Add support for new values `alma`, `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `ConfirmationTokenCreateParams.testHelpers.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type`
31
- * Add support for new values `alma`, `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type`
32
- * Add support for new value `auto` on enum `CustomerUpdateParams.tax.validate_location`
33
- * Add support for new values `by_tin`, `ma_vat`, `md_vat`, `tz_vat`, `uz_tin`, and `uz_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type`
34
- * Add support for `enhanced_evidence` on `Dispute.evidence` and `DisputeUpdateParams.evidence`
35
- * Add support for `enhanced_eligibility_types` on `Dispute`
36
- * Add support for `enhanced_eligibility` on `Dispute.evidence_details`
37
- * Add support for new values `issuing_transaction.purchase_details_receipt_updated` and `refund.failed` on enum `Event.type`
38
- * Add support for `metadata` on `Forwarding.RequestCreateParams` and `Forwarding.Request`
39
- * Add support for `automatically_finalizes_at` on `InvoiceCreateParams` and `InvoiceUpdateParams`
40
- * Add support for new values `jp_credit_transfer`, `kakao_pay`, `kr_card`, `naver_pay`, and `payco` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]`
41
- * Add support for new value `retail_delivery_fee` on enums `InvoiceAddLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `InvoiceUpdateLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `Tax.Calculation.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Calculation.tax_breakdown[].tax_rate_details.tax_type`, `Tax.CalculationLineItem.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Transaction.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `TaxRate.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateUpdateParams.tax_type`
42
- * Add support for new value `alma` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]`
43
- * Add support for `amazon_pay` on `PaymentMethodDomain`
44
- * Change type of `Refund.next_action.display_details` from `RefundNextActionDisplayDetails | null` to `RefundNextActionDisplayDetails`
45
- * Add support for `flat_amount` and `rate_type` on `Tax.Calculation.tax_breakdown[].tax_rate_details` and `TaxRate`
46
- * Add support for `by`, `cr`, `ec`, `ma`, `md`, `rs`, `ru`, `tz`, and `uz` on `Tax.Registration.country_options` and `Tax.RegistrationCreateParams.country_options`
47
- * Add support for new value `state_retail_delivery_fee` on enums `Tax.Registration.country_options.us.type` and `Tax.RegistrationCreateParams.country_options.us.type`
48
- * Add support for `pln` on `Terminal.Configuration.tipping`, `Terminal.ConfigurationCreateParams.tipping`, and `Terminal.ConfigurationUpdateParams.tipping`
49
- * Add support for new values `issuing_transaction.purchase_details_receipt_updated` and `refund.failed` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`
57
+ * [#2204](https://github.com/stripe/stripe-node/pull/2204) This release changes the pinned API version to `2024-10-28.acacia`.
58
+ * Add support for new resource `V2.EventDestinations`
59
+ * Add support for `create`, `retrieve`, `update`, `list`, `del`, `disable`, `enable` and `ping` methods on resource `V2.EventDestinations`
60
+ * Add support for `submit_card` test helper method on resource `Issuing.Card`
61
+ * Add support for `groups` on `AccountCreateParams`, `AccountUpdateParams`, and `Account`
62
+ * Add support for `alma_payments`, `kakao_pay_payments`, `kr_card_payments`, `naver_pay_payments`, `payco_payments`, and `samsung_pay_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
63
+ * Add support for `disable_stripe_user_authentication` on `AccountSession.components.account_management.features`, `AccountSession.components.account_onboarding.features`, `AccountSession.components.balances.features`, `AccountSession.components.notification_banner.features`, `AccountSession.components.payouts.features`, `AccountSessionCreateParams.components.account_management.features`, `AccountSessionCreateParams.components.account_onboarding.features`, `AccountSessionCreateParams.components.balances.features`, `AccountSessionCreateParams.components.notification_banner.features`, and `AccountSessionCreateParams.components.payouts.features`
64
+ * Add support for `schedule_at_period_end` on `BillingPortal.Configuration.features.subscription_update`, `BillingPortal.ConfigurationCreateParams.features.subscription_update`, and `BillingPortal.ConfigurationUpdateParams.features.subscription_update`
65
+ * Change `BillingPortal.ConfigurationCreateParams.business_profile` and `Refund.next_action.display_details` to be optional
66
+ * Add support for `alma` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `Refund.destination_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
67
+ * Add support for `kakao_pay` and `kr_card` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `Mandate.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupAttempt.payment_method_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
68
+ * Add support for `naver_pay` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
69
+ * Add support for `payco` and `samsung_pay` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
70
+ * Add support for new values `alma`, `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `Checkout.SessionCreateParams.payment_method_types[]`, `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type`
71
+ * Add support for new values `by_tin`, `ma_vat`, `md_vat`, `tz_vat`, `uz_tin`, and `uz_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type`
72
+ * Add support for new values `alma`, `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `ConfirmationTokenCreateParams.testHelpers.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type`
73
+ * Add support for new values `alma`, `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type`
74
+ * Add support for new value `auto` on enum `CustomerUpdateParams.tax.validate_location`
75
+ * Add support for new values `by_tin`, `ma_vat`, `md_vat`, `tz_vat`, `uz_tin`, and `uz_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type`
76
+ * Add support for `enhanced_evidence` on `Dispute.evidence` and `DisputeUpdateParams.evidence`
77
+ * Add support for `enhanced_eligibility_types` on `Dispute`
78
+ * Add support for `enhanced_eligibility` on `Dispute.evidence_details`
79
+ * Add support for new values `issuing_transaction.purchase_details_receipt_updated` and `refund.failed` on enum `Event.type`
80
+ * Add support for `metadata` on `Forwarding.RequestCreateParams` and `Forwarding.Request`
81
+ * Add support for `automatically_finalizes_at` on `InvoiceCreateParams` and `InvoiceUpdateParams`
82
+ * Add support for new values `jp_credit_transfer`, `kakao_pay`, `kr_card`, `naver_pay`, and `payco` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]`
83
+ * Add support for new value `retail_delivery_fee` on enums `InvoiceAddLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `InvoiceUpdateLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `Tax.Calculation.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Calculation.tax_breakdown[].tax_rate_details.tax_type`, `Tax.CalculationLineItem.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Transaction.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `TaxRate.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateUpdateParams.tax_type`
84
+ * Add support for new value `alma` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]`
85
+ * Add support for `amazon_pay` on `PaymentMethodDomain`
86
+ * Change type of `Refund.next_action.display_details` from `RefundNextActionDisplayDetails | null` to `RefundNextActionDisplayDetails`
87
+ * Add support for `flat_amount` and `rate_type` on `Tax.Calculation.tax_breakdown[].tax_rate_details` and `TaxRate`
88
+ * Add support for `by`, `cr`, `ec`, `ma`, `md`, `rs`, `ru`, `tz`, and `uz` on `Tax.Registration.country_options` and `Tax.RegistrationCreateParams.country_options`
89
+ * Add support for new value `state_retail_delivery_fee` on enums `Tax.Registration.country_options.us.type` and `Tax.RegistrationCreateParams.country_options.us.type`
90
+ * Add support for `pln` on `Terminal.Configuration.tipping`, `Terminal.ConfigurationCreateParams.tipping`, and `Terminal.ConfigurationUpdateParams.tipping`
91
+ * Add support for new values `issuing_transaction.purchase_details_receipt_updated` and `refund.failed` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`
50
92
  * Add support for new value `2024-10-28.acacia` on enum `WebhookEndpointCreateParams.api_version`
51
93
 
52
94
  ## 17.3.0-beta.1 - 2024-10-18
@@ -76,7 +118,7 @@
76
118
 
77
119
  ## 17.2.1 - 2024-10-18
78
120
  * [#2210](https://github.com/stripe/stripe-node/pull/2210) update object tags for meter-related classes
79
-
121
+
80
122
  - fixes a bug where the `object` property of the `MeterEvent`, `MeterEventAdjustment`, and `MeterEventSession` didn't match the server.
81
123
  * [#2208](https://github.com/stripe/stripe-node/pull/2208) Update signature verification docs link
82
124
 
package/VERSION CHANGED
@@ -1 +1 @@
1
- 17.4.0-beta.1
1
+ 17.4.0-beta.3
package/cjs/apiVersion.js CHANGED
@@ -2,4 +2,4 @@
2
2
  // File generated from our OpenAPI spec
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.ApiVersion = void 0;
5
- exports.ApiVersion = '2024-10-28.acacia';
5
+ exports.ApiVersion = '2024-11-20.acacia';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.FraudLiabilityDebits = void 0;
5
+ const StripeResource_js_1 = require("../../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.FraudLiabilityDebits = StripeResource_js_1.StripeResource.extend({
8
+ retrieve: stripeMethod({
9
+ method: 'GET',
10
+ fullPath: '/v1/issuing/fraud_liability_debits/{fraud_liability_debit}',
11
+ }),
12
+ list: stripeMethod({
13
+ method: 'GET',
14
+ fullPath: '/v1/issuing/fraud_liability_debits',
15
+ methodType: 'list',
16
+ }),
17
+ });
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.PaymentAttemptRecords = void 0;
5
+ const StripeResource_js_1 = require("../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.PaymentAttemptRecords = StripeResource_js_1.StripeResource.extend({
8
+ retrieve: stripeMethod({
9
+ method: 'GET',
10
+ fullPath: '/v1/payment_attempt_records/{id}',
11
+ }),
12
+ list: stripeMethod({
13
+ method: 'GET',
14
+ fullPath: '/v1/payment_attempt_records',
15
+ methodType: 'list',
16
+ }),
17
+ });
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.PaymentRecords = void 0;
5
+ const StripeResource_js_1 = require("../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.PaymentRecords = StripeResource_js_1.StripeResource.extend({
8
+ retrieve: stripeMethod({ method: 'GET', fullPath: '/v1/payment_records/{id}' }),
9
+ reportPayment: stripeMethod({
10
+ method: 'POST',
11
+ fullPath: '/v1/payment_records/report_payment',
12
+ }),
13
+ reportPaymentAttempt: stripeMethod({
14
+ method: 'POST',
15
+ fullPath: '/v1/payment_records/{id}/report_payment_attempt',
16
+ }),
17
+ reportPaymentAttemptCanceled: stripeMethod({
18
+ method: 'POST',
19
+ fullPath: '/v1/payment_records/{id}/report_payment_attempt_canceled',
20
+ }),
21
+ reportPaymentAttemptFailed: stripeMethod({
22
+ method: 'POST',
23
+ fullPath: '/v1/payment_records/{id}/report_payment_attempt_failed',
24
+ }),
25
+ reportPaymentAttemptGuaranteed: stripeMethod({
26
+ method: 'POST',
27
+ fullPath: '/v1/payment_records/{id}/report_payment_attempt_guaranteed',
28
+ }),
29
+ });
@@ -25,6 +25,10 @@ exports.Authorizations = StripeResource_js_1.StripeResource.extend({
25
25
  method: 'POST',
26
26
  fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/increment',
27
27
  }),
28
+ respond: stripeMethod({
29
+ method: 'POST',
30
+ fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/fraud_challenges/respond',
31
+ }),
28
32
  reverse: stripeMethod({
29
33
  method: 'POST',
30
34
  fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/reverse',
package/cjs/resources.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.TaxCodes = exports.Subscriptions = exports.SubscriptionSchedules = exports.SubscriptionItems = exports.Sources = exports.ShippingRates = exports.SetupIntents = exports.SetupAttempts = exports.Reviews = exports.Refunds = exports.Quotes = exports.PromotionCodes = exports.Products = exports.Prices = exports.Plans = exports.Payouts = exports.PaymentMethods = exports.PaymentMethodDomains = exports.PaymentMethodConfigurations = exports.PaymentLinks = exports.PaymentIntents = exports.Orders = exports.OAuth = exports.Margins = exports.Mandates = exports.Invoices = exports.InvoiceRenderingTemplates = exports.InvoiceItems = exports.Files = exports.FileLinks = exports.ExchangeRates = exports.Events = exports.EphemeralKeys = exports.Disputes = exports.Customers = exports.CustomerSessions = exports.CreditNotes = exports.Coupons = exports.CountrySpecs = exports.ConfirmationTokens = exports.Charges = exports.BalanceTransactions = exports.Balance = exports.ApplicationFees = exports.ApplePayDomains = exports.Accounts = exports.AccountSessions = exports.AccountNotices = exports.AccountLinks = exports.Account = void 0;
5
- exports.Treasury = exports.TestHelpers = exports.Terminal = exports.Tax = exports.Sigma = exports.Reporting = exports.Radar = exports.Issuing = exports.Identity = exports.GiftCards = exports.Forwarding = exports.FinancialConnections = exports.Entitlements = exports.Climate = exports.Checkout = exports.Capital = exports.BillingPortal = exports.Billing = exports.Apps = exports.WebhookEndpoints = exports.V2 = exports.Transfers = exports.Topups = exports.Tokens = exports.TaxRates = exports.TaxIds = void 0;
4
+ exports.SubscriptionSchedules = exports.SubscriptionItems = exports.Sources = exports.ShippingRates = exports.SetupIntents = exports.SetupAttempts = exports.Reviews = exports.Refunds = exports.Quotes = exports.PromotionCodes = exports.Products = exports.Prices = exports.Plans = exports.Payouts = exports.PaymentRecords = exports.PaymentMethods = exports.PaymentMethodDomains = exports.PaymentMethodConfigurations = exports.PaymentLinks = exports.PaymentIntents = exports.PaymentAttemptRecords = exports.Orders = exports.OAuth = exports.Margins = exports.Mandates = exports.Invoices = exports.InvoiceRenderingTemplates = exports.InvoiceItems = exports.Files = exports.FileLinks = exports.ExchangeRates = exports.Events = exports.EphemeralKeys = exports.Disputes = exports.Customers = exports.CustomerSessions = exports.CreditNotes = exports.Coupons = exports.CountrySpecs = exports.ConfirmationTokens = exports.Charges = exports.BalanceTransactions = exports.Balance = exports.ApplicationFees = exports.ApplePayDomains = exports.Accounts = exports.AccountSessions = exports.AccountNotices = exports.AccountLinks = exports.Account = void 0;
5
+ exports.V2 = exports.Treasury = exports.TestHelpers = exports.Terminal = exports.Tax = exports.Sigma = exports.Reporting = exports.Radar = exports.Issuing = exports.Identity = exports.GiftCards = exports.Forwarding = exports.FinancialConnections = exports.Entitlements = exports.Climate = exports.Checkout = exports.Capital = exports.BillingPortal = exports.Billing = exports.Apps = exports.WebhookEndpoints = exports.Transfers = exports.Topups = exports.Tokens = exports.TaxRates = exports.TaxIds = exports.TaxCodes = exports.Subscriptions = void 0;
6
6
  const ResourceNamespace_js_1 = require("./ResourceNamespace.js");
7
7
  const Accounts_js_1 = require("./resources/FinancialConnections/Accounts.js");
8
8
  const ActiveEntitlements_js_1 = require("./resources/Entitlements/ActiveEntitlements.js");
@@ -29,18 +29,25 @@ const DebitReversals_js_1 = require("./resources/Treasury/DebitReversals.js");
29
29
  const DisputeSettlementDetails_js_1 = require("./resources/Issuing/DisputeSettlementDetails.js");
30
30
  const Disputes_js_1 = require("./resources/Issuing/Disputes.js");
31
31
  const EarlyFraudWarnings_js_1 = require("./resources/Radar/EarlyFraudWarnings.js");
32
+ const EventDestinations_js_1 = require("./resources/V2/Core/EventDestinations.js");
33
+ const Events_js_1 = require("./resources/V2/Core/Events.js");
32
34
  const Features_js_1 = require("./resources/Entitlements/Features.js");
33
35
  const FinancialAccounts_js_1 = require("./resources/Treasury/FinancialAccounts.js");
34
36
  const FinancingOffers_js_1 = require("./resources/Capital/FinancingOffers.js");
35
37
  const FinancingSummary_js_1 = require("./resources/Capital/FinancingSummary.js");
36
38
  const FinancingTransactions_js_1 = require("./resources/Capital/FinancingTransactions.js");
37
39
  const Forms_js_1 = require("./resources/Tax/Forms.js");
40
+ const FraudLiabilityDebits_js_1 = require("./resources/Issuing/FraudLiabilityDebits.js");
38
41
  const InboundTransfers_js_1 = require("./resources/TestHelpers/Treasury/InboundTransfers.js");
39
42
  const InboundTransfers_js_2 = require("./resources/Treasury/InboundTransfers.js");
40
43
  const Institutions_js_1 = require("./resources/FinancialConnections/Institutions.js");
41
44
  const Locations_js_1 = require("./resources/Terminal/Locations.js");
42
45
  const MeterEventAdjustments_js_1 = require("./resources/Billing/MeterEventAdjustments.js");
46
+ const MeterEventAdjustments_js_2 = require("./resources/V2/Billing/MeterEventAdjustments.js");
47
+ const MeterEventSession_js_1 = require("./resources/V2/Billing/MeterEventSession.js");
48
+ const MeterEventStream_js_1 = require("./resources/V2/Billing/MeterEventStream.js");
43
49
  const MeterEvents_js_1 = require("./resources/Billing/MeterEvents.js");
50
+ const MeterEvents_js_2 = require("./resources/V2/Billing/MeterEvents.js");
44
51
  const Meters_js_1 = require("./resources/Billing/Meters.js");
45
52
  const Orders_js_1 = require("./resources/Climate/Orders.js");
46
53
  const OutboundPayments_js_1 = require("./resources/TestHelpers/Treasury/OutboundPayments.js");
@@ -119,8 +126,8 @@ var Disputes_js_2 = require("./resources/Disputes.js");
119
126
  Object.defineProperty(exports, "Disputes", { enumerable: true, get: function () { return Disputes_js_2.Disputes; } });
120
127
  var EphemeralKeys_js_1 = require("./resources/EphemeralKeys.js");
121
128
  Object.defineProperty(exports, "EphemeralKeys", { enumerable: true, get: function () { return EphemeralKeys_js_1.EphemeralKeys; } });
122
- var Events_js_1 = require("./resources/Events.js");
123
- Object.defineProperty(exports, "Events", { enumerable: true, get: function () { return Events_js_1.Events; } });
129
+ var Events_js_2 = require("./resources/Events.js");
130
+ Object.defineProperty(exports, "Events", { enumerable: true, get: function () { return Events_js_2.Events; } });
124
131
  var ExchangeRates_js_1 = require("./resources/ExchangeRates.js");
125
132
  Object.defineProperty(exports, "ExchangeRates", { enumerable: true, get: function () { return ExchangeRates_js_1.ExchangeRates; } });
126
133
  var FileLinks_js_1 = require("./resources/FileLinks.js");
@@ -141,6 +148,8 @@ var OAuth_js_1 = require("./resources/OAuth.js");
141
148
  Object.defineProperty(exports, "OAuth", { enumerable: true, get: function () { return OAuth_js_1.OAuth; } });
142
149
  var Orders_js_2 = require("./resources/Orders.js");
143
150
  Object.defineProperty(exports, "Orders", { enumerable: true, get: function () { return Orders_js_2.Orders; } });
151
+ var PaymentAttemptRecords_js_1 = require("./resources/PaymentAttemptRecords.js");
152
+ Object.defineProperty(exports, "PaymentAttemptRecords", { enumerable: true, get: function () { return PaymentAttemptRecords_js_1.PaymentAttemptRecords; } });
144
153
  var PaymentIntents_js_1 = require("./resources/PaymentIntents.js");
145
154
  Object.defineProperty(exports, "PaymentIntents", { enumerable: true, get: function () { return PaymentIntents_js_1.PaymentIntents; } });
146
155
  var PaymentLinks_js_1 = require("./resources/PaymentLinks.js");
@@ -151,6 +160,8 @@ var PaymentMethodDomains_js_1 = require("./resources/PaymentMethodDomains.js");
151
160
  Object.defineProperty(exports, "PaymentMethodDomains", { enumerable: true, get: function () { return PaymentMethodDomains_js_1.PaymentMethodDomains; } });
152
161
  var PaymentMethods_js_1 = require("./resources/PaymentMethods.js");
153
162
  Object.defineProperty(exports, "PaymentMethods", { enumerable: true, get: function () { return PaymentMethods_js_1.PaymentMethods; } });
163
+ var PaymentRecords_js_1 = require("./resources/PaymentRecords.js");
164
+ Object.defineProperty(exports, "PaymentRecords", { enumerable: true, get: function () { return PaymentRecords_js_1.PaymentRecords; } });
154
165
  var Payouts_js_1 = require("./resources/Payouts.js");
155
166
  Object.defineProperty(exports, "Payouts", { enumerable: true, get: function () { return Payouts_js_1.Payouts; } });
156
167
  var Plans_js_1 = require("./resources/Plans.js");
@@ -193,8 +204,6 @@ var Topups_js_1 = require("./resources/Topups.js");
193
204
  Object.defineProperty(exports, "Topups", { enumerable: true, get: function () { return Topups_js_1.Topups; } });
194
205
  var Transfers_js_1 = require("./resources/Transfers.js");
195
206
  Object.defineProperty(exports, "Transfers", { enumerable: true, get: function () { return Transfers_js_1.Transfers; } });
196
- var V2_js_1 = require("./resources/V2.js");
197
- Object.defineProperty(exports, "V2", { enumerable: true, get: function () { return V2_js_1.V2; } });
198
207
  var WebhookEndpoints_js_1 = require("./resources/WebhookEndpoints.js");
199
208
  Object.defineProperty(exports, "WebhookEndpoints", { enumerable: true, get: function () { return WebhookEndpoints_js_1.WebhookEndpoints; } });
200
209
  exports.Apps = (0, ResourceNamespace_js_1.resourceNamespace)('apps', { Secrets: Secrets_js_1.Secrets });
@@ -252,6 +261,7 @@ exports.Issuing = (0, ResourceNamespace_js_1.resourceNamespace)('issuing', {
252
261
  CreditUnderwritingRecords: CreditUnderwritingRecords_js_1.CreditUnderwritingRecords,
253
262
  DisputeSettlementDetails: DisputeSettlementDetails_js_1.DisputeSettlementDetails,
254
263
  Disputes: Disputes_js_1.Disputes,
264
+ FraudLiabilityDebits: FraudLiabilityDebits_js_1.FraudLiabilityDebits,
255
265
  PersonalizationDesigns: PersonalizationDesigns_js_2.PersonalizationDesigns,
256
266
  PhysicalBundles: PhysicalBundles_js_1.PhysicalBundles,
257
267
  Tokens: Tokens_js_1.Tokens,
@@ -318,3 +328,15 @@ exports.Treasury = (0, ResourceNamespace_js_1.resourceNamespace)('treasury', {
318
328
  TransactionEntries: TransactionEntries_js_1.TransactionEntries,
319
329
  Transactions: Transactions_js_6.Transactions,
320
330
  });
331
+ exports.V2 = (0, ResourceNamespace_js_1.resourceNamespace)('v2', {
332
+ Billing: (0, ResourceNamespace_js_1.resourceNamespace)('billing', {
333
+ MeterEventAdjustments: MeterEventAdjustments_js_2.MeterEventAdjustments,
334
+ MeterEventSession: MeterEventSession_js_1.MeterEventSession,
335
+ MeterEventStream: MeterEventStream_js_1.MeterEventStream,
336
+ MeterEvents: MeterEvents_js_2.MeterEvents,
337
+ }),
338
+ Core: (0, ResourceNamespace_js_1.resourceNamespace)('core', {
339
+ EventDestinations: EventDestinations_js_1.EventDestinations,
340
+ Events: Events_js_1.Events,
341
+ }),
342
+ });
@@ -36,7 +36,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
36
36
  ];
37
37
  const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
38
38
  function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
39
- Stripe.PACKAGE_VERSION = '17.4.0-beta.1';
39
+ Stripe.PACKAGE_VERSION = '17.4.0-beta.3';
40
40
  Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
41
41
  Stripe.StripeResource = StripeResource_js_1.StripeResource;
42
42
  Stripe.resources = resources;
package/esm/apiVersion.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // File generated from our OpenAPI spec
2
- export const ApiVersion = '2024-10-28.acacia';
2
+ export const ApiVersion = '2024-11-20.acacia';
@@ -0,0 +1,14 @@
1
+ // File generated from our OpenAPI spec
2
+ import { StripeResource } from '../../StripeResource.js';
3
+ const stripeMethod = StripeResource.method;
4
+ export const FraudLiabilityDebits = StripeResource.extend({
5
+ retrieve: stripeMethod({
6
+ method: 'GET',
7
+ fullPath: '/v1/issuing/fraud_liability_debits/{fraud_liability_debit}',
8
+ }),
9
+ list: stripeMethod({
10
+ method: 'GET',
11
+ fullPath: '/v1/issuing/fraud_liability_debits',
12
+ methodType: 'list',
13
+ }),
14
+ });
@@ -0,0 +1,14 @@
1
+ // File generated from our OpenAPI spec
2
+ import { StripeResource } from '../StripeResource.js';
3
+ const stripeMethod = StripeResource.method;
4
+ export const PaymentAttemptRecords = StripeResource.extend({
5
+ retrieve: stripeMethod({
6
+ method: 'GET',
7
+ fullPath: '/v1/payment_attempt_records/{id}',
8
+ }),
9
+ list: stripeMethod({
10
+ method: 'GET',
11
+ fullPath: '/v1/payment_attempt_records',
12
+ methodType: 'list',
13
+ }),
14
+ });
@@ -0,0 +1,26 @@
1
+ // File generated from our OpenAPI spec
2
+ import { StripeResource } from '../StripeResource.js';
3
+ const stripeMethod = StripeResource.method;
4
+ export const PaymentRecords = StripeResource.extend({
5
+ retrieve: stripeMethod({ method: 'GET', fullPath: '/v1/payment_records/{id}' }),
6
+ reportPayment: stripeMethod({
7
+ method: 'POST',
8
+ fullPath: '/v1/payment_records/report_payment',
9
+ }),
10
+ reportPaymentAttempt: stripeMethod({
11
+ method: 'POST',
12
+ fullPath: '/v1/payment_records/{id}/report_payment_attempt',
13
+ }),
14
+ reportPaymentAttemptCanceled: stripeMethod({
15
+ method: 'POST',
16
+ fullPath: '/v1/payment_records/{id}/report_payment_attempt_canceled',
17
+ }),
18
+ reportPaymentAttemptFailed: stripeMethod({
19
+ method: 'POST',
20
+ fullPath: '/v1/payment_records/{id}/report_payment_attempt_failed',
21
+ }),
22
+ reportPaymentAttemptGuaranteed: stripeMethod({
23
+ method: 'POST',
24
+ fullPath: '/v1/payment_records/{id}/report_payment_attempt_guaranteed',
25
+ }),
26
+ });
@@ -22,6 +22,10 @@ export const Authorizations = StripeResource.extend({
22
22
  method: 'POST',
23
23
  fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/increment',
24
24
  }),
25
+ respond: stripeMethod({
26
+ method: 'POST',
27
+ fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/fraud_challenges/respond',
28
+ }),
25
29
  reverse: stripeMethod({
26
30
  method: 'POST',
27
31
  fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/reverse',
package/esm/resources.js CHANGED
@@ -25,18 +25,25 @@ import { DebitReversals as TreasuryDebitReversals } from './resources/Treasury/D
25
25
  import { DisputeSettlementDetails as IssuingDisputeSettlementDetails } from './resources/Issuing/DisputeSettlementDetails.js';
26
26
  import { Disputes as IssuingDisputes } from './resources/Issuing/Disputes.js';
27
27
  import { EarlyFraudWarnings as RadarEarlyFraudWarnings } from './resources/Radar/EarlyFraudWarnings.js';
28
+ import { EventDestinations as V2CoreEventDestinations } from './resources/V2/Core/EventDestinations.js';
29
+ import { Events as V2CoreEvents } from './resources/V2/Core/Events.js';
28
30
  import { Features as EntitlementsFeatures } from './resources/Entitlements/Features.js';
29
31
  import { FinancialAccounts as TreasuryFinancialAccounts } from './resources/Treasury/FinancialAccounts.js';
30
32
  import { FinancingOffers as CapitalFinancingOffers } from './resources/Capital/FinancingOffers.js';
31
33
  import { FinancingSummary as CapitalFinancingSummary } from './resources/Capital/FinancingSummary.js';
32
34
  import { FinancingTransactions as CapitalFinancingTransactions } from './resources/Capital/FinancingTransactions.js';
33
35
  import { Forms as TaxForms } from './resources/Tax/Forms.js';
36
+ import { FraudLiabilityDebits as IssuingFraudLiabilityDebits } from './resources/Issuing/FraudLiabilityDebits.js';
34
37
  import { InboundTransfers as TestHelpersTreasuryInboundTransfers } from './resources/TestHelpers/Treasury/InboundTransfers.js';
35
38
  import { InboundTransfers as TreasuryInboundTransfers } from './resources/Treasury/InboundTransfers.js';
36
39
  import { Institutions as FinancialConnectionsInstitutions } from './resources/FinancialConnections/Institutions.js';
37
40
  import { Locations as TerminalLocations } from './resources/Terminal/Locations.js';
38
41
  import { MeterEventAdjustments as BillingMeterEventAdjustments } from './resources/Billing/MeterEventAdjustments.js';
42
+ import { MeterEventAdjustments as V2BillingMeterEventAdjustments } from './resources/V2/Billing/MeterEventAdjustments.js';
43
+ import { MeterEventSession as V2BillingMeterEventSession } from './resources/V2/Billing/MeterEventSession.js';
44
+ import { MeterEventStream as V2BillingMeterEventStream } from './resources/V2/Billing/MeterEventStream.js';
39
45
  import { MeterEvents as BillingMeterEvents } from './resources/Billing/MeterEvents.js';
46
+ import { MeterEvents as V2BillingMeterEvents } from './resources/V2/Billing/MeterEvents.js';
40
47
  import { Meters as BillingMeters } from './resources/Billing/Meters.js';
41
48
  import { Orders as ClimateOrders } from './resources/Climate/Orders.js';
42
49
  import { OutboundPayments as TestHelpersTreasuryOutboundPayments } from './resources/TestHelpers/Treasury/OutboundPayments.js';
@@ -108,11 +115,13 @@ export { Mandates } from './resources/Mandates.js';
108
115
  export { Margins } from './resources/Margins.js';
109
116
  export { OAuth } from './resources/OAuth.js';
110
117
  export { Orders } from './resources/Orders.js';
118
+ export { PaymentAttemptRecords } from './resources/PaymentAttemptRecords.js';
111
119
  export { PaymentIntents } from './resources/PaymentIntents.js';
112
120
  export { PaymentLinks } from './resources/PaymentLinks.js';
113
121
  export { PaymentMethodConfigurations } from './resources/PaymentMethodConfigurations.js';
114
122
  export { PaymentMethodDomains } from './resources/PaymentMethodDomains.js';
115
123
  export { PaymentMethods } from './resources/PaymentMethods.js';
124
+ export { PaymentRecords } from './resources/PaymentRecords.js';
116
125
  export { Payouts } from './resources/Payouts.js';
117
126
  export { Plans } from './resources/Plans.js';
118
127
  export { Prices } from './resources/Prices.js';
@@ -134,7 +143,6 @@ export { TaxRates } from './resources/TaxRates.js';
134
143
  export { Tokens } from './resources/Tokens.js';
135
144
  export { Topups } from './resources/Topups.js';
136
145
  export { Transfers } from './resources/Transfers.js';
137
- export { V2 } from './resources/V2.js';
138
146
  export { WebhookEndpoints } from './resources/WebhookEndpoints.js';
139
147
  export const Apps = resourceNamespace('apps', { Secrets: AppsSecrets });
140
148
  export const Billing = resourceNamespace('billing', {
@@ -191,6 +199,7 @@ export const Issuing = resourceNamespace('issuing', {
191
199
  CreditUnderwritingRecords: IssuingCreditUnderwritingRecords,
192
200
  DisputeSettlementDetails: IssuingDisputeSettlementDetails,
193
201
  Disputes: IssuingDisputes,
202
+ FraudLiabilityDebits: IssuingFraudLiabilityDebits,
194
203
  PersonalizationDesigns: IssuingPersonalizationDesigns,
195
204
  PhysicalBundles: IssuingPhysicalBundles,
196
205
  Tokens: IssuingTokens,
@@ -257,3 +266,15 @@ export const Treasury = resourceNamespace('treasury', {
257
266
  TransactionEntries: TreasuryTransactionEntries,
258
267
  Transactions: TreasuryTransactions,
259
268
  });
269
+ export const V2 = resourceNamespace('v2', {
270
+ Billing: resourceNamespace('billing', {
271
+ MeterEventAdjustments: V2BillingMeterEventAdjustments,
272
+ MeterEventSession: V2BillingMeterEventSession,
273
+ MeterEventStream: V2BillingMeterEventStream,
274
+ MeterEvents: V2BillingMeterEvents,
275
+ }),
276
+ Core: resourceNamespace('core', {
277
+ EventDestinations: V2CoreEventDestinations,
278
+ Events: V2CoreEvents,
279
+ }),
280
+ });
@@ -33,7 +33,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
33
33
  ];
34
34
  const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
35
35
  export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
36
- Stripe.PACKAGE_VERSION = '17.4.0-beta.1';
36
+ Stripe.PACKAGE_VERSION = '17.4.0-beta.3';
37
37
  Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
38
38
  Stripe.StripeResource = StripeResource;
39
39
  Stripe.resources = resources;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stripe",
3
- "version": "17.4.0-beta.1",
3
+ "version": "17.4.0-beta.3",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
@@ -90,7 +90,7 @@ declare module 'stripe' {
90
90
  /**
91
91
  * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
92
92
  */
93
- disable_stripe_user_authentication?: boolean;
93
+ disable_stripe_user_authentication: boolean;
94
94
 
95
95
  /**
96
96
  * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
@@ -113,7 +113,7 @@ declare module 'stripe' {
113
113
  /**
114
114
  * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
115
115
  */
116
- disable_stripe_user_authentication?: boolean;
116
+ disable_stripe_user_authentication: boolean;
117
117
 
118
118
  /**
119
119
  * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
@@ -136,7 +136,7 @@ declare module 'stripe' {
136
136
  /**
137
137
  * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
138
138
  */
139
- disable_stripe_user_authentication?: boolean;
139
+ disable_stripe_user_authentication: boolean;
140
140
 
141
141
  /**
142
142
  * Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
@@ -226,7 +226,7 @@ declare module 'stripe' {
226
226
  /**
227
227
  * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
228
228
  */
229
- disable_stripe_user_authentication?: boolean;
229
+ disable_stripe_user_authentication: boolean;
230
230
 
231
231
  /**
232
232
  * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
@@ -315,7 +315,7 @@ declare module 'stripe' {
315
315
  /**
316
316
  * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
317
317
  */
318
- disable_stripe_user_authentication?: boolean;
318
+ disable_stripe_user_authentication: boolean;
319
319
 
320
320
  /**
321
321
  * Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.