chargebee 3.30.1 → 3.32.0

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 (89) hide show
  1. package/CHANGELOG.md +77 -0
  2. package/README.md +14 -0
  3. package/cjs/RequestWrapper.js +12 -1
  4. package/cjs/chargebee.cjs.js +1 -0
  5. package/cjs/createChargebee.js +5 -1
  6. package/cjs/environment.js +1 -1
  7. package/cjs/resources/api_endpoints.js +84 -2
  8. package/cjs/resources/webhook/eventType.js +4 -0
  9. package/cjs/schema/coupon.schema.js +1 -1
  10. package/cjs/schema/credit_note.schema.js +7 -2
  11. package/cjs/schema/credit_unit.schema.js +2 -2
  12. package/cjs/schema/entitlement.schema.js +4 -4
  13. package/cjs/schema/entitlement_override.schema.js +1 -1
  14. package/cjs/schema/estimate.schema.js +2 -2
  15. package/cjs/schema/event.schema.js +16 -0
  16. package/cjs/schema/export.schema.js +35 -3
  17. package/cjs/schema/hosted_page.schema.js +1 -0
  18. package/cjs/schema/index.js +1 -0
  19. package/cjs/schema/invoice.schema.js +11 -4
  20. package/cjs/schema/ledger_operation.schema.js +2 -2
  21. package/cjs/schema/meter.schema.js +1 -1
  22. package/cjs/schema/omnichannel_subscription.schema.js +6 -2
  23. package/cjs/schema/payment_intent.schema.js +4 -0
  24. package/cjs/schema/payment_source.schema.js +9 -2
  25. package/cjs/schema/pricing_page_session.schema.js +1 -1
  26. package/cjs/schema/quote.schema.js +60 -0
  27. package/cjs/schema/quote_entitlement.schema.js +25 -0
  28. package/cjs/schema/ramp.schema.js +2 -2
  29. package/cjs/schema/subscription.schema.js +2 -2
  30. package/cjs/schema/webhook_endpoint.schema.js +8 -0
  31. package/cjs/telemetry/index.js +13 -1
  32. package/cjs/telemetry/sdkTelemetryEmitter.js +64 -0
  33. package/cjs/telemetry/sdkTelemetryFeature.js +22 -0
  34. package/cjs/telemetry/sdkTelemetryHeader.js +15 -0
  35. package/cjs/telemetry/sdkTelemetryHeaderBuilder.js +34 -0
  36. package/cjs/telemetry/sdkTelemetryState.js +36 -0
  37. package/esm/RequestWrapper.js +13 -2
  38. package/esm/chargebee.esm.js +1 -1
  39. package/esm/createChargebee.js +5 -1
  40. package/esm/environment.js +1 -1
  41. package/esm/resources/api_endpoints.js +84 -2
  42. package/esm/resources/webhook/eventType.js +4 -0
  43. package/esm/schema/coupon.schema.js +1 -1
  44. package/esm/schema/credit_note.schema.js +6 -1
  45. package/esm/schema/credit_unit.schema.js +2 -2
  46. package/esm/schema/entitlement.schema.js +4 -4
  47. package/esm/schema/entitlement_override.schema.js +1 -1
  48. package/esm/schema/estimate.schema.js +2 -2
  49. package/esm/schema/event.schema.js +16 -0
  50. package/esm/schema/export.schema.js +34 -2
  51. package/esm/schema/hosted_page.schema.js +1 -0
  52. package/esm/schema/index.js +1 -0
  53. package/esm/schema/invoice.schema.js +10 -3
  54. package/esm/schema/ledger_operation.schema.js +2 -2
  55. package/esm/schema/meter.schema.js +1 -1
  56. package/esm/schema/omnichannel_subscription.schema.js +6 -2
  57. package/esm/schema/payment_intent.schema.js +4 -0
  58. package/esm/schema/payment_source.schema.js +8 -1
  59. package/esm/schema/pricing_page_session.schema.js +1 -1
  60. package/esm/schema/quote.schema.js +60 -0
  61. package/esm/schema/quote_entitlement.schema.js +22 -0
  62. package/esm/schema/ramp.schema.js +2 -2
  63. package/esm/schema/subscription.schema.js +2 -2
  64. package/esm/schema/webhook_endpoint.schema.js +8 -0
  65. package/esm/telemetry/index.js +5 -0
  66. package/esm/telemetry/sdkTelemetryEmitter.js +61 -0
  67. package/esm/telemetry/sdkTelemetryFeature.js +19 -0
  68. package/esm/telemetry/sdkTelemetryHeader.js +12 -0
  69. package/esm/telemetry/sdkTelemetryHeaderBuilder.js +31 -0
  70. package/esm/telemetry/sdkTelemetryState.js +32 -0
  71. package/package.json +5 -9
  72. package/types/core.d.ts +78 -3
  73. package/types/index.d.ts +15 -2
  74. package/types/resources/Content.d.ts +4 -0
  75. package/types/resources/CreditNote.d.ts +14 -0
  76. package/types/resources/Event.d.ts +4 -0
  77. package/types/resources/Export.d.ts +20 -0
  78. package/types/resources/GatewayPaymentMethodToken.d.ts +15 -0
  79. package/types/resources/HostedPage.d.ts +1 -0
  80. package/types/resources/Invoice.d.ts +17 -1
  81. package/types/resources/OmnichannelSubscriptionItemMetric.d.ts +18 -0
  82. package/types/resources/PaymentIntent.d.ts +14 -11
  83. package/types/resources/PaymentSource.d.ts +17 -0
  84. package/types/resources/PricingPageSession.d.ts +1 -1
  85. package/types/resources/Quote.d.ts +45 -0
  86. package/types/resources/QuoteEntitlement.d.ts +49 -0
  87. package/types/resources/QuotedRamp.d.ts +1 -0
  88. package/types/resources/VaultedPaymentMethod.d.ts +28 -0
  89. package/types/resources/WebhookEvent.d.ts +24 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,80 @@
1
+ ### v3.32.0 (2026-09-08)
2
+ * * *
3
+ ### New Features
4
+ * Added anonymous SDK telemetry. On the first API call of a client instance, the SDK may attach an `x-chargebee-sdk-telemetry` header listing enabled feature codes (`telemetryAdapter`, custom HTTP client, retry config). Later calls on the same client do not send the header again. A default client with no optional features sends no telemetry header.
5
+ * Disable SDK telemetry with `sdkTelemetryEnabled: false`.
6
+ * Exported `SDK_TELEMETRY_HEADER_NAME` from the CJS and ESM entry points.
7
+
8
+
9
+ ### v3.31.0 (2026-08-19)
10
+ * * *
11
+ ### New Resources:
12
+ - [`GatewayPaymentMethodToken`](https://apidocs.chargebee.com/docs/api/gateway_payment_method_tokens) has been added.
13
+ - [`OmnichannelSubscriptionItemMetric`](https://apidocs.chargebee.com/docs/api/omnichannel_subscription_item_metrics) has been added.
14
+ - [`QuoteEntitlement`](https://apidocs.chargebee.com/docs/api/quote_entitlements) has been added.
15
+ - [`VaultedPaymentMethod`](https://apidocs.chargebee.com/docs/api/vaulted_payment_methods) has been added.
16
+
17
+
18
+ ### New Actions:
19
+ - [`update_credit_note_details`](https://apidocs.chargebee.com/docs/api/credit_notes/update-credit-note-details) has been added to [`CreditNote`](https://apidocs.chargebee.com/docs/api/credit_notes).
20
+ - [`export_subscription_ramps`](https://apidocs.chargebee.com/docs/api/exports/export-subscription-ramps) has been added to [`Export`](https://apidocs.chargebee.com/docs/api/exports).
21
+ - [`void_authorizations_before_capture`](https://apidocs.chargebee.com/docs/api/invoices/void-authorizations-before-capture) has been added to [`Invoice`](https://apidocs.chargebee.com/docs/api/invoices).
22
+ - [`list_gateway_payment_method_tokens_for_a_payment_source`](https://apidocs.chargebee.com/docs/api/payment_sources/list-gateway-payment-method-tokens-for-a-payment-source) has been added to [`PaymentSource`](https://apidocs.chargebee.com/docs/api/payment_sources).
23
+
24
+
25
+ ### New Attributes:
26
+ - [`payment_method_options`](https://apidocs.chargebee.com/docs/api/payment_intents/payment-intent-object#payment_method_options) has been added to [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents).
27
+ - [`vault_token`](https://apidocs.chargebee.com/docs/api/payment_sources/payment-source-object#vault_token) has been added to [`PaymentSource`](https://apidocs.chargebee.com/docs/api/payment_sources).
28
+ - [`has_entitlements`](https://apidocs.chargebee.com/docs/api/quotes/quote-object#has_entitlements) has been added to [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
29
+
30
+
31
+ ### New Parameters:
32
+ - [`updated_at.on`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions#updated_at_on) has been added as query parameter to [`list_omnichannel_subscriptions`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions) in [`OmnichannelSubscription`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions).
33
+ - [`updated_at.between`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions#updated_at_between) has been added as query parameter to [`list_omnichannel_subscriptions`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions) in [`OmnichannelSubscription`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions).
34
+ - [`purchased_at.on`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions#purchased_at_on) has been added as query parameter to [`list_omnichannel_subscriptions`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions) in [`OmnichannelSubscription`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions).
35
+ - [`purchased_at.between`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions#purchased_at_between) has been added as query parameter to [`list_omnichannel_subscriptions`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions/list-omnichannel-subscriptions) in [`OmnichannelSubscription`](https://apidocs.chargebee.com/docs/api/omnichannel_subscriptions).
36
+ - [`limit`](https://apidocs.chargebee.com/docs/api/payment_sources/list-gateway-payment-method-tokens-for-a-payment-source#limit) has been added as query parameter to [`list_gateway_payment_method_tokens_for_a_payment_source`](https://apidocs.chargebee.com/docs/api/payment_sources/list-gateway-payment-method-tokens-for-a-payment-source) in [`PaymentSource`](https://apidocs.chargebee.com/docs/api/payment_sources).
37
+ - [`offset`](https://apidocs.chargebee.com/docs/api/payment_sources/list-gateway-payment-method-tokens-for-a-payment-source#offset) has been added as query parameter to [`list_gateway_payment_method_tokens_for_a_payment_source`](https://apidocs.chargebee.com/docs/api/payment_sources/list-gateway-payment-method-tokens-for-a-payment-source) in [`PaymentSource`](https://apidocs.chargebee.com/docs/api/payment_sources).
38
+ - [`include_deleted`](https://apidocs.chargebee.com/docs/api/payment_sources/list-gateway-payment-method-tokens-for-a-payment-source#include_deleted) has been added as query parameter to [`list_gateway_payment_method_tokens_for_a_payment_source`](https://apidocs.chargebee.com/docs/api/payment_sources/list-gateway-payment-method-tokens-for-a-payment-source) in [`PaymentSource`](https://apidocs.chargebee.com/docs/api/payment_sources).
39
+ - [`comment`](https://apidocs.chargebee.com/docs/api/credit_notes/update-credit-note-details#comment) has been added as request body parameter to [`update_credit_note_details`](https://apidocs.chargebee.com/docs/api/credit_notes/update-credit-note-details) in [`CreditNote`](https://apidocs.chargebee.com/docs/api/credit_notes).
40
+ - [`ramp`](https://apidocs.chargebee.com/docs/api/exports/export-subscription-ramps#ramp) has been added as request body parameter to [`export_subscription_ramps`](https://apidocs.chargebee.com/docs/api/exports/export-subscription-ramps) in [`Export`](https://apidocs.chargebee.com/docs/api/exports).
41
+ - [`export_type`](https://apidocs.chargebee.com/docs/api/exports/export-subscription-ramps#export_type) has been added as request body parameter to [`export_subscription_ramps`](https://apidocs.chargebee.com/docs/api/exports/export-subscription-ramps) in [`Export`](https://apidocs.chargebee.com/docs/api/exports).
42
+ - [`locale`](https://apidocs.chargebee.com/docs/api/hosted_pages/create-a-pre-cancel-hosted-page#locale) has been added as request body parameter to [`create_a_pre-cancel_hosted_page`](https://apidocs.chargebee.com/docs/api/hosted_pages/create-a-pre-cancel-hosted-page) in [`HostedPage`](https://apidocs.chargebee.com/docs/api/hosted_pages).
43
+ - [`comment`](https://apidocs.chargebee.com/docs/api/invoices/void-authorizations-before-capture#comment) has been added as request body parameter to [`void_authorizations_before_capture`](https://apidocs.chargebee.com/docs/api/invoices/void-authorizations-before-capture) in [`Invoice`](https://apidocs.chargebee.com/docs/api/invoices).
44
+ - [`void_reason_code`](https://apidocs.chargebee.com/docs/api/invoices/void-authorizations-before-capture#void_reason_code) has been added as request body parameter to [`void_authorizations_before_capture`](https://apidocs.chargebee.com/docs/api/invoices/void-authorizations-before-capture) in [`Invoice`](https://apidocs.chargebee.com/docs/api/invoices).
45
+ - [`invoice_action`](https://apidocs.chargebee.com/docs/api/invoices/void-authorizations-before-capture#invoice_action) has been added as request body parameter to [`void_authorizations_before_capture`](https://apidocs.chargebee.com/docs/api/invoices/void-authorizations-before-capture) in [`Invoice`](https://apidocs.chargebee.com/docs/api/invoices).
46
+ - [`payment_method_options`](https://apidocs.chargebee.com/docs/api/payment_intents/update-a-payment-intent#payment_method_options) has been added as request body parameter to [`update_a_payment_intent`](https://apidocs.chargebee.com/docs/api/payment_intents/update-a-payment-intent) in [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents).
47
+ - [`payment_method_options`](https://apidocs.chargebee.com/docs/api/payment_intents/create-a-payment-intent#payment_method_options) has been added as request body parameter to [`create_a_payment_intent`](https://apidocs.chargebee.com/docs/api/payment_intents/create-a-payment-intent) in [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents).
48
+ - [`subscription_items.description`](https://apidocs.chargebee.com/docs/api/quotes/create-a-quote-for-a-new-subscription-items#subscription_items_description) has been added as request body parameter to [`create_a_quote_for_a_new_subscription_items`](https://apidocs.chargebee.com/docs/api/quotes/create-a-quote-for-a-new-subscription-items) in [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
49
+ - [`entitlement_overrides`](https://apidocs.chargebee.com/docs/api/quotes/create-a-quote-for-a-new-subscription-items#entitlement_overrides) has been added as request body parameter to [`create_a_quote_for_a_new_subscription_items`](https://apidocs.chargebee.com/docs/api/quotes/create-a-quote-for-a-new-subscription-items) in [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
50
+ - [`subscription_items.description`](https://apidocs.chargebee.com/docs/api/quotes/edit-update-subscription-quote-for-items#subscription_items_description) has been added as request body parameter to [`edit_update_subscription_quote_for_items`](https://apidocs.chargebee.com/docs/api/quotes/edit-update-subscription-quote-for-items) in [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
51
+ - [`entitlement_overrides`](https://apidocs.chargebee.com/docs/api/quotes/edit-update-subscription-quote-for-items#entitlement_overrides) has been added as request body parameter to [`edit_update_subscription_quote_for_items`](https://apidocs.chargebee.com/docs/api/quotes/edit-update-subscription-quote-for-items) in [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
52
+ - [`subscription_items.description`](https://apidocs.chargebee.com/docs/api/quotes/edit-create-subscription-quote-for-items#subscription_items_description) has been added as request body parameter to [`edit_create_subscription_quote_for_items`](https://apidocs.chargebee.com/docs/api/quotes/edit-create-subscription-quote-for-items) in [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
53
+ - [`entitlement_overrides`](https://apidocs.chargebee.com/docs/api/quotes/edit-create-subscription-quote-for-items#entitlement_overrides) has been added as request body parameter to [`edit_create_subscription_quote_for_items`](https://apidocs.chargebee.com/docs/api/quotes/edit-create-subscription-quote-for-items) in [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
54
+ - [`subscription_items.description`](https://apidocs.chargebee.com/docs/api/quotes/create-a-quote-for-update-subscription-items#subscription_items_description) has been added as request body parameter to [`create_a_quote_for_update_subscription_items`](https://apidocs.chargebee.com/docs/api/quotes/create-a-quote-for-update-subscription-items) in [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
55
+ - [`entitlement_overrides`](https://apidocs.chargebee.com/docs/api/quotes/create-a-quote-for-update-subscription-items#entitlement_overrides) has been added as request body parameter to [`create_a_quote_for_update_subscription_items`](https://apidocs.chargebee.com/docs/api/quotes/create-a-quote-for-update-subscription-items) in [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
56
+
57
+
58
+ ### New Events:
59
+ - [`vault_token_updated`](https://apidocs.chargebee.com/docs/api/events/webhook/vault_token_updated) has been added.
60
+ - [`vault_token_deleted`](https://apidocs.chargebee.com/docs/api/events/webhook/vault_token_deleted) has been added.
61
+ - [`omnichannel_subscription_item_mrr_updated`](https://apidocs.chargebee.com/docs/api/events/webhook/omnichannel_subscription_item_mrr_updated) has been added.
62
+ - [`vault_token_created`](https://apidocs.chargebee.com/docs/api/events/webhook/vault_token_created) has been added.
63
+
64
+
65
+ ### New Enums:
66
+ - `consumption_based` has been added as a new value enum `CreditOptionForCurrentTermCharges`.
67
+ - `omnichannel_subscription_item_metric` has been added as a new value enum `EntityType`.
68
+ - `omnichannel_subscription_item_mrr_updated`, `vault_token_created`, `vault_token_updated`, and `vault_token_deleted` have been added as new values enum `EventType`.
69
+ - `chargebee`, `chargebee_payments`, `adyen`, `stripe`, `wepay`, `braintree`, `authorize_net`, `paypal_pro`, `pin`, `eway`, `eway_rapid`, `worldpay`, `balanced_payments`, `beanstream`, `bluepay`, `elavon`, `first_data_global`, `hdfc`, `migs`, `nmi`, `ogone`, `paymill`, `paypal_payflow_pro`, `sage_pay`, `tco`, `wirecard`, `amazon_payments`, `paypal_express_checkout`, `gocardless`, `orbital`, `moneris_us`, `moneris`, `bluesnap`, `cybersource`, `vantiv`, `checkout_com`, `paypal`, `ingenico_direct`, `exact`, `mollie`, `quickbooks`, `razorpay`, `global_payments`, `bank_of_america`, `ecentric`, `metrics_global`, `windcave`, `pay_com`, `ebanx`, `dlocal`, `nuvei`, `solidgate`, `paystack`, `jp_morgan`, `deutsche_bank`, `ezidebit`, `twikey`, `tempus`, `moyasar`, `payway`, and `not_applicable` have been added as new values enum `GatewayName`.
70
+ - `void` and `write_off` have been added as new values enum `InvoiceAction`.
71
+ - `active`, `inactive`, and `pending_verification` have been added as new values to enum attribute [`status`](https://apidocs.chargebee.com/docs/api/gateway_payment_method_tokens/gateway-payment-method-token-object#status) in [`GatewayPaymentMethodToken`](https://apidocs.chargebee.com/docs/api/gateway_payment_method_tokens).
72
+ - `payment_method_helper`, `card_components`, `checkout`, `collect_now`, `portal`, and `payment_components` have been added as new values to enum attribute [`payment_intent_metadata.source`](https://apidocs.chargebee.com/docs/api/payment_intents/payment-intent-object#payment_intent_metadata_source) in [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents).
73
+ - `plan_price`, `addon_price`, `charge_price`, and `charge` have been added as new values to enum attribute [`entity_type`](https://apidocs.chargebee.com/docs/api/quote_entitlements/quote-entitlement-object#entity_type) in [`QuoteEntitlement`](https://apidocs.chargebee.com/docs/api/quote_entitlements).
74
+ - `upsert` and `remove` have been added as new values to enum attribute [`action_type`](https://apidocs.chargebee.com/docs/api/quote_entitlements/quote-entitlement-object#action_type) in [`QuoteEntitlement`](https://apidocs.chargebee.com/docs/api/quote_entitlements).
75
+
76
+
77
+
1
78
  ### v3.30.1 (2026-08-11)
2
79
  * * *
3
80
  ### Bug Fixes:
package/README.md CHANGED
@@ -602,6 +602,20 @@ const chargebee = new Chargebee({
602
602
 
603
603
  These examples demonstrate how to implement and inject custom clients using `axios` and `ky`, respectively.
604
604
 
605
+ ### SDK telemetry
606
+
607
+ By default, the library sends anonymous usage telemetry to Chargebee. This helps us improve the SDK and API.
608
+
609
+ You can disable this behavior if you prefer:
610
+
611
+ ```javascript
612
+ const chargebee = new Chargebee({
613
+ site: 'your-site',
614
+ apiKey: 'your-api-key',
615
+ sdkTelemetryEnabled: false,
616
+ });
617
+ ```
618
+
605
619
  ### Telemetry (OpenTelemetry)
606
620
 
607
621
  Optional. Pass a `telemetryAdapter` when you want Chargebee API calls traced in your observability stack (Datadog, Splunk, Honeycomb, Jaeger, etc.). The SDK ships a ready-to-use OpenTelemetry adapter, so for most setups you only need to add `@opentelemetry/api` and wire the adapter on the client.
@@ -68,6 +68,15 @@ class RequestWrapper {
68
68
  if (this.envArg.telemetryAdapter !== undefined) {
69
69
  _env.telemetryAdapter = this.envArg.telemetryAdapter;
70
70
  }
71
+ if (this.envArg.sdkTelemetryState !== undefined) {
72
+ _env.sdkTelemetryState = this.envArg.sdkTelemetryState;
73
+ }
74
+ if (this.envArg.sdkTelemetryEnabled !== undefined) {
75
+ _env.sdkTelemetryEnabled = this.envArg.sdkTelemetryEnabled;
76
+ }
77
+ if (this.envArg.httpClientIsCustom !== undefined) {
78
+ _env.httpClientIsCustom = this.envArg.httpClientIsCustom;
79
+ }
71
80
  const env = _env;
72
81
  const retryConfig = Object.assign({ enabled: false, maxRetries: 3, delayMs: 200, retryOn: [500, 502, 503, 504] }, env.retryConfig);
73
82
  const urlIdParam = this.apiCall.hasIdInUrl ? this.args[0] : null;
@@ -142,6 +151,7 @@ class RequestWrapper {
142
151
  : (0, util_js_1.encodeParams)(requestParams, undefined, undefined, undefined, jsonKeys);
143
152
  }
144
153
  const requestHeaders = Object.assign(Object.assign({}, this.httpHeaders), telemetryHeaders);
154
+ (0, index_js_1.attachSdkTelemetryHeader)(env, requestHeaders);
145
155
  const contentType = this.apiCall.isJsonRequest
146
156
  ? 'application/json;charset=UTF-8'
147
157
  : 'application/x-www-form-urlencoded; charset=utf-8';
@@ -264,9 +274,10 @@ class RequestWrapper {
264
274
  throw err;
265
275
  }
266
276
  };
267
- const promise = telemetryAdapter !== undefined
277
+ const executeCall = () => telemetryAdapter !== undefined
268
278
  ? runWithTelemetry(telemetryAdapter)
269
279
  : withRetry(0, requestStartTime);
280
+ const promise = executeCall();
270
281
  return (0, util_js_1.callbackifyPromise)(promise);
271
282
  }
272
283
  _createHeaders(httpHeaders) {
@@ -21,5 +21,6 @@ module.exports.WebhookAuthenticationError = handler_js_1.WebhookAuthenticationEr
21
21
  module.exports.WebhookPayloadValidationError = handler_js_1.WebhookPayloadValidationError;
22
22
  module.exports.WebhookPayloadParseError = handler_js_1.WebhookPayloadParseError;
23
23
  module.exports.TelemetryAttributeKeys = index_js_1.TelemetryAttributeKeys;
24
+ module.exports.SDK_TELEMETRY_HEADER_NAME = index_js_1.SDK_TELEMETRY_HEADER_NAME;
24
25
  // Export validation error class
25
26
  module.exports.ChargebeeZodValidationError = chargebeeZodValidationError_js_1.ChargebeeZodValidationError;
@@ -18,14 +18,18 @@ const api_endpoints_js_1 = require("./resources/api_endpoints.js");
18
18
  const util_js_1 = require("./util.js");
19
19
  const asyncApiSupport_js_1 = require("./asyncApiSupport.js");
20
20
  const handler_js_1 = require("./resources/webhook/handler.js");
21
+ const index_js_1 = require("./telemetry/index.js");
21
22
  const CreateChargebee = (httpClient) => {
22
23
  const Chargebee = function (conf) {
23
24
  this._env = Object.assign({}, environment_js_1.Environment);
24
- const { telemetryAdapter, httpClient: configHttpClient } = conf, confToMerge = __rest(conf, ["telemetryAdapter", "httpClient"]);
25
+ const { telemetryAdapter, httpClient: configHttpClient, sdkTelemetryEnabled } = conf, confToMerge = __rest(conf, ["telemetryAdapter", "httpClient", "sdkTelemetryEnabled"]);
25
26
  (0, util_js_1.extend)(true, this._env, confToMerge);
26
27
  // @ts-ignore
27
28
  this._env.httpClient =
28
29
  configHttpClient != null ? configHttpClient : httpClient;
30
+ this._env.sdkTelemetryState = new index_js_1.SdkTelemetryState();
31
+ this._env.sdkTelemetryEnabled = sdkTelemetryEnabled !== false;
32
+ this._env.httpClientIsCustom = configHttpClient != null;
29
33
  if (telemetryAdapter !== undefined) {
30
34
  this._env.telemetryAdapter = telemetryAdapter;
31
35
  }
@@ -11,7 +11,7 @@ exports.Environment = {
11
11
  hostSuffix: '.chargebee.com',
12
12
  apiPath: '/api/v2',
13
13
  timeout: DEFAULT_TIME_OUT,
14
- clientVersion: 'v3.30.1',
14
+ clientVersion: 'v3.32.0',
15
15
  port: DEFAULT_PORT,
16
16
  timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT,
17
17
  exportWaitInMillis: DEFAULT_EXPORT_WAIT,
@@ -947,6 +947,17 @@ exports.Endpoints = {
947
947
  isIdempotent: true,
948
948
  },
949
949
  ],
950
+ [
951
+ 'listGatewayTokensForPaymentSource',
952
+ 'GET',
953
+ '/payment_sources',
954
+ '/gateway_payment_method_tokens',
955
+ true,
956
+ null,
957
+ false,
958
+ {},
959
+ {},
960
+ ],
950
961
  ['retrieve', 'GET', '/payment_sources', null, true, null, false, {}, {}],
951
962
  ['list', 'GET', '/payment_sources', null, false, null, false, {}, {}],
952
963
  [
@@ -1002,7 +1013,21 @@ exports.Endpoints = {
1002
1013
  },
1003
1014
  ],
1004
1015
  ],
1016
+ gatewayPaymentMethodToken: [],
1005
1017
  thirdPartyPaymentMethod: [],
1018
+ vaultedPaymentMethod: [
1019
+ [
1020
+ 'retrieve',
1021
+ 'GET',
1022
+ '/vaulted_payment_methods',
1023
+ null,
1024
+ true,
1025
+ null,
1026
+ false,
1027
+ {},
1028
+ {},
1029
+ ],
1030
+ ],
1006
1031
  virtualBankAccount: [
1007
1032
  [
1008
1033
  'createUsingPermanentToken',
@@ -1594,6 +1619,19 @@ exports.Endpoints = {
1594
1619
  isIdempotent: true,
1595
1620
  },
1596
1621
  ],
1622
+ [
1623
+ 'voidBeforeCapture',
1624
+ 'POST',
1625
+ '/invoices',
1626
+ '/void_before_capture',
1627
+ true,
1628
+ null,
1629
+ false,
1630
+ {},
1631
+ {
1632
+ isIdempotent: true,
1633
+ },
1634
+ ],
1597
1635
  [
1598
1636
  'delete',
1599
1637
  'POST',
@@ -1778,6 +1816,19 @@ exports.Endpoints = {
1778
1816
  isIdempotent: true,
1779
1817
  },
1780
1818
  ],
1819
+ [
1820
+ 'update',
1821
+ 'POST',
1822
+ '/credit_notes',
1823
+ '/update',
1824
+ true,
1825
+ null,
1826
+ false,
1827
+ {},
1828
+ {
1829
+ isIdempotent: true,
1830
+ },
1831
+ ],
1781
1832
  [
1782
1833
  'removeTaxWithheldRefund',
1783
1834
  'POST',
@@ -3034,6 +3085,19 @@ exports.Endpoints = {
3034
3085
  quotedDeltaRamp: [],
3035
3086
  billingConfiguration: [],
3036
3087
  quoteLineGroup: [],
3088
+ quoteEntitlement: [
3089
+ [
3090
+ 'listQuoteEntitlements',
3091
+ 'GET',
3092
+ '/quotes',
3093
+ '/quote_entitlements',
3094
+ true,
3095
+ null,
3096
+ false,
3097
+ {},
3098
+ {},
3099
+ ],
3100
+ ],
3037
3101
  cpqQuoteSignature: [],
3038
3102
  plan: [
3039
3103
  [
@@ -3809,6 +3873,19 @@ exports.Endpoints = {
3809
3873
  isIdempotent: true,
3810
3874
  },
3811
3875
  ],
3876
+ [
3877
+ 'ramps',
3878
+ 'POST',
3879
+ '/exports',
3880
+ '/ramps',
3881
+ false,
3882
+ null,
3883
+ false,
3884
+ {},
3885
+ {
3886
+ isIdempotent: true,
3887
+ },
3888
+ ],
3812
3889
  ],
3813
3890
  paymentIntent: [
3814
3891
  [
@@ -3819,7 +3896,9 @@ exports.Endpoints = {
3819
3896
  false,
3820
3897
  null,
3821
3898
  false,
3822
- {},
3899
+ {
3900
+ payment_method_options: 0,
3901
+ },
3823
3902
  {
3824
3903
  isIdempotent: true,
3825
3904
  },
@@ -3832,7 +3911,9 @@ exports.Endpoints = {
3832
3911
  true,
3833
3912
  null,
3834
3913
  false,
3835
- {},
3914
+ {
3915
+ payment_method_options: 0,
3916
+ },
3836
3917
  {
3837
3918
  isIdempotent: true,
3838
3919
  },
@@ -4753,6 +4834,7 @@ exports.Endpoints = {
4753
4834
  ],
4754
4835
  ],
4755
4836
  omnichannelSubscriptionItemScheduledChange: [],
4837
+ omnichannelSubscriptionItemMetric: [],
4756
4838
  omnichannelSubscription: [
4757
4839
  [
4758
4840
  'retrieve',
@@ -109,6 +109,7 @@ var WebhookEventType;
109
109
  WebhookEventType["OmnichannelSubscriptionItemExpired"] = "omnichannel_subscription_item_expired";
110
110
  WebhookEventType["OmnichannelSubscriptionItemGracePeriodExpired"] = "omnichannel_subscription_item_grace_period_expired";
111
111
  WebhookEventType["OmnichannelSubscriptionItemGracePeriodStarted"] = "omnichannel_subscription_item_grace_period_started";
112
+ WebhookEventType["OmnichannelSubscriptionItemMrrUpdated"] = "omnichannel_subscription_item_mrr_updated";
112
113
  WebhookEventType["OmnichannelSubscriptionItemPauseScheduled"] = "omnichannel_subscription_item_pause_scheduled";
113
114
  WebhookEventType["OmnichannelSubscriptionItemPaused"] = "omnichannel_subscription_item_paused";
114
115
  WebhookEventType["OmnichannelSubscriptionItemReactivated"] = "omnichannel_subscription_item_reactivated";
@@ -234,6 +235,9 @@ var WebhookEventType;
234
235
  WebhookEventType["VariantCreated"] = "variant_created";
235
236
  WebhookEventType["VariantDeleted"] = "variant_deleted";
236
237
  WebhookEventType["VariantUpdated"] = "variant_updated";
238
+ WebhookEventType["VaultTokenCreated"] = "vault_token_created";
239
+ WebhookEventType["VaultTokenDeleted"] = "vault_token_deleted";
240
+ WebhookEventType["VaultTokenUpdated"] = "vault_token_updated";
237
241
  WebhookEventType["VirtualBankAccountAdded"] = "virtual_bank_account_added";
238
242
  WebhookEventType["VirtualBankAccountDeleted"] = "virtual_bank_account_deleted";
239
243
  WebhookEventType["VirtualBankAccountUpdated"] = "virtual_bank_account_updated";
@@ -259,8 +259,8 @@ const ListCouponCurrencyCodeSchema = zod_1.z.object({
259
259
  not_in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
260
260
  });
261
261
  const ListCouponApplicableItemPriceIdsSchema = zod_1.z.object({
262
- in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
263
262
  is: zod_1.z.string().min(1).optional(),
263
+ in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
264
264
  });
265
265
  const ListCouponBodySchema = zod_1.z.looseObject({
266
266
  limit: zod_1.z.number().int().min(1).max(100).optional(),
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  // Generated Zod schemas: CreditNote
3
- // Actions: create, retrieve, pdf, refund, recordRefund, voidCreditNote, list, creditNotesForCustomer, delete, removeTaxWithheldRefund, importCreditNote
3
+ // Actions: create, retrieve, pdf, refund, recordRefund, voidCreditNote, list, creditNotesForCustomer, delete, update, removeTaxWithheldRefund, importCreditNote
4
4
  // Do not edit manually – regenerate via sdk-generator
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ImportCreditNoteCreditNoteBodySchema = exports.RemoveTaxWithheldRefundCreditNoteBodySchema = exports.DeleteCreditNoteBodySchema = exports.CreditNotesForCustomerCreditNoteBodySchema = exports.ListCreditNoteBodySchema = exports.VoidCreditNoteCreditNoteBodySchema = exports.RecordRefundCreditNoteBodySchema = exports.RefundCreditNoteBodySchema = exports.PdfCreditNoteBodySchema = exports.RetrieveCreditNoteBodySchema = exports.CreateCreditNoteBodySchema = void 0;
6
+ exports.ImportCreditNoteCreditNoteBodySchema = exports.RemoveTaxWithheldRefundCreditNoteBodySchema = exports.UpdateCreditNoteBodySchema = exports.DeleteCreditNoteBodySchema = exports.CreditNotesForCustomerCreditNoteBodySchema = exports.ListCreditNoteBodySchema = exports.VoidCreditNoteCreditNoteBodySchema = exports.RecordRefundCreditNoteBodySchema = exports.RefundCreditNoteBodySchema = exports.PdfCreditNoteBodySchema = exports.RetrieveCreditNoteBodySchema = exports.CreateCreditNoteBodySchema = void 0;
7
7
  const zod_1 = require("zod");
8
8
  //CreditNote.create
9
9
  const CreateCreditNoteLineItemsSchema = zod_1.z.object({
@@ -340,6 +340,11 @@ const DeleteCreditNoteBodySchema = zod_1.z.looseObject({
340
340
  comment: zod_1.z.string().max(300).optional(),
341
341
  });
342
342
  exports.DeleteCreditNoteBodySchema = DeleteCreditNoteBodySchema;
343
+ //CreditNote.update
344
+ const UpdateCreditNoteBodySchema = zod_1.z.looseObject({
345
+ comment: zod_1.z.string().max(300).optional(),
346
+ });
347
+ exports.UpdateCreditNoteBodySchema = UpdateCreditNoteBodySchema;
343
348
  //CreditNote.removeTaxWithheldRefund
344
349
  const RemoveTaxWithheldRefundCreditNoteTaxWithheldSchema = zod_1.z.object({
345
350
  id: zod_1.z.string().max(40),
@@ -7,12 +7,12 @@ exports.UpdateCreditUnitBodySchema = exports.CreateCreditUnitBodySchema = export
7
7
  const zod_1 = require("zod");
8
8
  //CreditUnit.list
9
9
  const ListCreditUnitStatusSchema = zod_1.z.object({
10
- in: zod_1.z.enum(['active', 'archived']).optional(),
11
10
  is: zod_1.z.enum(['active', 'archived']).optional(),
11
+ in: zod_1.z.enum(['active', 'archived']).optional(),
12
12
  });
13
13
  const ListCreditUnitIdSchema = zod_1.z.object({
14
- in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
15
14
  is: zod_1.z.string().min(1).optional(),
15
+ in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
16
16
  });
17
17
  const ListCreditUnitBodySchema = zod_1.z.looseObject({
18
18
  limit: zod_1.z.number().int().min(1).max(100).optional(),
@@ -7,20 +7,20 @@ exports.CreateEntitlementBodySchema = exports.ListEntitlementBodySchema = void 0
7
7
  const zod_1 = require("zod");
8
8
  //Entitlement.list
9
9
  const ListEntitlementFeatureIdSchema = zod_1.z.object({
10
- in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
11
10
  is: zod_1.z.string().min(1).optional(),
11
+ in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
12
12
  });
13
13
  const ListEntitlementEntityTypeSchema = zod_1.z.object({
14
- in: zod_1.z
14
+ is: zod_1.z
15
15
  .enum(['plan', 'addon', 'charge', 'plan_price', 'addon_price'])
16
16
  .optional(),
17
- is: zod_1.z
17
+ in: zod_1.z
18
18
  .enum(['plan', 'addon', 'charge', 'plan_price', 'addon_price'])
19
19
  .optional(),
20
20
  });
21
21
  const ListEntitlementEntityIdSchema = zod_1.z.object({
22
- in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
23
22
  is: zod_1.z.string().min(1).optional(),
23
+ in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
24
24
  });
25
25
  const ListEntitlementBodySchema = zod_1.z.looseObject({
26
26
  limit: zod_1.z.number().int().min(1).max(100).optional(),
@@ -8,7 +8,7 @@ const zod_1 = require("zod");
8
8
  //EntitlementOverride.addEntitlementOverrideForSubscription
9
9
  const AddEntitlementOverrideForSubscriptionEntitlementOverrideEntitlementOverridesSchema = zod_1.z.object({
10
10
  feature_id: zod_1.z.array(zod_1.z.string().max(50).optional()),
11
- entity_id: zod_1.z.array(zod_1.z.string().max(50).optional()).optional(),
11
+ entity_id: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
12
12
  entity_type: zod_1.z
13
13
  .array(zod_1.z
14
14
  .enum(['plan_price', 'addon_price', 'charge', 'charge_price'])
@@ -990,7 +990,7 @@ const CancelSubscriptionEstimateBodySchema = zod_1.z.looseObject({
990
990
  end_of_term: zod_1.z.boolean().default(false).optional(),
991
991
  cancel_at: zod_1.z.number().int().optional(),
992
992
  credit_option_for_current_term_charges: zod_1.z
993
- .enum(['none', 'prorate', 'full'])
993
+ .enum(['none', 'prorate', 'full', 'consumption_based'])
994
994
  .optional(),
995
995
  unbilled_charges_option: zod_1.z.enum(['invoice', 'delete']).optional(),
996
996
  account_receivables_handling: zod_1.z
@@ -1035,7 +1035,7 @@ const CancelSubscriptionForItemsEstimateBodySchema = zod_1.z.looseObject({
1035
1035
  end_of_term: zod_1.z.boolean().default(false).optional(),
1036
1036
  cancel_at: zod_1.z.number().int().optional(),
1037
1037
  credit_option_for_current_term_charges: zod_1.z
1038
- .enum(['none', 'prorate', 'full'])
1038
+ .enum(['none', 'prorate', 'full', 'consumption_based'])
1039
1039
  .optional(),
1040
1040
  unbilled_charges_option: zod_1.z.enum(['invoice', 'delete']).optional(),
1041
1041
  account_receivables_handling: zod_1.z
@@ -293,10 +293,14 @@ const ListEventEventTypeSchema = zod_1.z.object({
293
293
  'alert_status_changed',
294
294
  'omnichannel_subscription_item_updated',
295
295
  'omnichannel_subscription_item_recovered',
296
+ 'omnichannel_subscription_item_mrr_updated',
296
297
  'ledger_account_balance_updated',
297
298
  'grant_blocks_created',
298
299
  'grant_blocks_updated',
299
300
  'ledger_updated',
301
+ 'vault_token_created',
302
+ 'vault_token_updated',
303
+ 'vault_token_deleted',
300
304
  ])
301
305
  .optional(),
302
306
  is_not: zod_1.z
@@ -524,10 +528,14 @@ const ListEventEventTypeSchema = zod_1.z.object({
524
528
  'alert_status_changed',
525
529
  'omnichannel_subscription_item_updated',
526
530
  'omnichannel_subscription_item_recovered',
531
+ 'omnichannel_subscription_item_mrr_updated',
527
532
  'ledger_account_balance_updated',
528
533
  'grant_blocks_created',
529
534
  'grant_blocks_updated',
530
535
  'ledger_updated',
536
+ 'vault_token_created',
537
+ 'vault_token_updated',
538
+ 'vault_token_deleted',
531
539
  ])
532
540
  .optional(),
533
541
  in: zod_1.z
@@ -755,10 +763,14 @@ const ListEventEventTypeSchema = zod_1.z.object({
755
763
  'alert_status_changed',
756
764
  'omnichannel_subscription_item_updated',
757
765
  'omnichannel_subscription_item_recovered',
766
+ 'omnichannel_subscription_item_mrr_updated',
758
767
  'ledger_account_balance_updated',
759
768
  'grant_blocks_created',
760
769
  'grant_blocks_updated',
761
770
  'ledger_updated',
771
+ 'vault_token_created',
772
+ 'vault_token_updated',
773
+ 'vault_token_deleted',
762
774
  ])
763
775
  .optional(),
764
776
  not_in: zod_1.z
@@ -986,10 +998,14 @@ const ListEventEventTypeSchema = zod_1.z.object({
986
998
  'alert_status_changed',
987
999
  'omnichannel_subscription_item_updated',
988
1000
  'omnichannel_subscription_item_recovered',
1001
+ 'omnichannel_subscription_item_mrr_updated',
989
1002
  'ledger_account_balance_updated',
990
1003
  'grant_blocks_created',
991
1004
  'grant_blocks_updated',
992
1005
  'ledger_updated',
1006
+ 'vault_token_created',
1007
+ 'vault_token_updated',
1008
+ 'vault_token_deleted',
993
1009
  ])
994
1010
  .optional(),
995
1011
  });
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  // Generated Zod schemas: Export
3
- // Actions: revenueRecognition, deferredRevenue, plans, addons, coupons, customers, subscriptions, invoices, creditNotes, transactions, orders, itemFamilies, items, itemPrices, attachedItems, differentialPrices, priceVariants
3
+ // Actions: revenueRecognition, deferredRevenue, plans, addons, coupons, customers, subscriptions, invoices, creditNotes, transactions, orders, itemFamilies, items, itemPrices, attachedItems, differentialPrices, priceVariants, ramps
4
4
  // Do not edit manually – regenerate via sdk-generator
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.PriceVariantsExportBodySchema = exports.DifferentialPricesExportBodySchema = exports.AttachedItemsExportBodySchema = exports.ItemPricesExportBodySchema = exports.ItemsExportBodySchema = exports.ItemFamiliesExportBodySchema = exports.OrdersExportBodySchema = exports.TransactionsExportBodySchema = exports.CreditNotesExportBodySchema = exports.InvoicesExportBodySchema = exports.SubscriptionsExportBodySchema = exports.CustomersExportBodySchema = exports.CouponsExportBodySchema = exports.AddonsExportBodySchema = exports.PlansExportBodySchema = exports.DeferredRevenueExportBodySchema = exports.RevenueRecognitionExportBodySchema = void 0;
6
+ exports.RampsExportBodySchema = exports.PriceVariantsExportBodySchema = exports.DifferentialPricesExportBodySchema = exports.AttachedItemsExportBodySchema = exports.ItemPricesExportBodySchema = exports.ItemsExportBodySchema = exports.ItemFamiliesExportBodySchema = exports.OrdersExportBodySchema = exports.TransactionsExportBodySchema = exports.CreditNotesExportBodySchema = exports.InvoicesExportBodySchema = exports.SubscriptionsExportBodySchema = exports.CustomersExportBodySchema = exports.CouponsExportBodySchema = exports.AddonsExportBodySchema = exports.PlansExportBodySchema = exports.DeferredRevenueExportBodySchema = exports.RevenueRecognitionExportBodySchema = void 0;
7
7
  const zod_1 = require("zod");
8
8
  //Export.revenueRecognition
9
9
  const RevenueRecognitionExportPaymentOwnerSchema = zod_1.z.object({
@@ -1102,8 +1102,8 @@ const CouponsExportCurrencyCodeSchema = zod_1.z.object({
1102
1102
  not_in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
1103
1103
  });
1104
1104
  const CouponsExportApplicableItemPriceIdsSchema = zod_1.z.object({
1105
- in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
1106
1105
  is: zod_1.z.string().min(1).optional(),
1106
+ in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
1107
1107
  });
1108
1108
  const CouponsExportIdSchema = zod_1.z.object({
1109
1109
  is: zod_1.z.string().min(1).optional(),
@@ -3415,3 +3415,35 @@ const PriceVariantsExportBodySchema = zod_1.z.looseObject({
3415
3415
  .optional(),
3416
3416
  });
3417
3417
  exports.PriceVariantsExportBodySchema = PriceVariantsExportBodySchema;
3418
+ //Export.ramps
3419
+ const RampsExportStatusSchema = zod_1.z.object({
3420
+ is: zod_1.z.enum(['scheduled', 'succeeded', 'failed', 'draft']).optional(),
3421
+ in: zod_1.z.enum(['scheduled', 'succeeded', 'failed', 'draft']).optional(),
3422
+ });
3423
+ const RampsExportSubscriptionIdSchema = zod_1.z.object({
3424
+ is: zod_1.z.string().min(1).optional(),
3425
+ in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
3426
+ });
3427
+ const RampsExportEffectiveFromSchema = zod_1.z.object({
3428
+ after: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
3429
+ before: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
3430
+ on: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
3431
+ between: zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
3432
+ });
3433
+ const RampsExportUpdatedAtSchema = zod_1.z.object({
3434
+ after: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
3435
+ before: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
3436
+ on: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
3437
+ between: zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
3438
+ });
3439
+ const RampsExportRampItemSchema = zod_1.z.object({
3440
+ status: RampsExportStatusSchema.optional(),
3441
+ subscription_id: RampsExportSubscriptionIdSchema.optional(),
3442
+ effective_from: RampsExportEffectiveFromSchema.optional(),
3443
+ updated_at: RampsExportUpdatedAtSchema.optional(),
3444
+ });
3445
+ const RampsExportBodySchema = zod_1.z.looseObject({
3446
+ export_type: zod_1.z.enum(['data', 'import_friendly_data']).optional(),
3447
+ ramp: zod_1.z.array(RampsExportRampItemSchema.optional()).optional(),
3448
+ });
3449
+ exports.RampsExportBodySchema = RampsExportBodySchema;
@@ -1752,6 +1752,7 @@ const PreCancelHostedPageBodySchema = zod_1.z.looseObject({
1752
1752
  pass_thru_content: zod_1.z.string().max(2048).optional(),
1753
1753
  cancel_url: zod_1.z.string().max(250).optional(),
1754
1754
  redirect_url: zod_1.z.string().max(250).optional(),
1755
+ locale: zod_1.z.string().max(50).optional(),
1755
1756
  subscription: PreCancelHostedPageSubscriptionSchema.optional(),
1756
1757
  });
1757
1758
  exports.PreCancelHostedPageBodySchema = PreCancelHostedPageBodySchema;
@@ -71,6 +71,7 @@ __exportStar(require("./promotional_credit.schema.js"), exports);
71
71
  __exportStar(require("./promotional_grant.schema.js"), exports);
72
72
  __exportStar(require("./purchase.schema.js"), exports);
73
73
  __exportStar(require("./quote.schema.js"), exports);
74
+ __exportStar(require("./quote_entitlement.schema.js"), exports);
74
75
  __exportStar(require("./ramp.schema.js"), exports);
75
76
  __exportStar(require("./recorded_purchase.schema.js"), exports);
76
77
  __exportStar(require("./resource_migration.schema.js"), exports);