chargebee 3.28.0 → 3.29.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 (91) hide show
  1. package/CHANGELOG.md +91 -0
  2. package/cjs/RequestWrapper.js +0 -5
  3. package/cjs/chargebee.cjs.js +1 -1
  4. package/cjs/environment.js +1 -1
  5. package/cjs/resources/api_endpoints.js +57 -0
  6. package/cjs/resources/webhook/eventType.js +1 -0
  7. package/cjs/schema/alert.schema.js +6 -5
  8. package/cjs/schema/credit_note.schema.js +5 -0
  9. package/cjs/schema/customer.schema.js +15 -0
  10. package/cjs/schema/estimate.schema.js +9 -0
  11. package/cjs/schema/event.schema.js +4 -0
  12. package/cjs/schema/export.schema.js +20 -4
  13. package/cjs/schema/feature.schema.js +0 -1
  14. package/cjs/schema/gift.schema.js +6 -0
  15. package/cjs/schema/invoice.schema.js +33 -1
  16. package/cjs/schema/item.schema.js +1 -1
  17. package/cjs/schema/item_family.schema.js +1 -1
  18. package/cjs/schema/item_price.schema.js +1 -1
  19. package/cjs/schema/meter.schema.js +10 -0
  20. package/cjs/schema/omnichannel_subscription.schema.js +2 -2
  21. package/cjs/schema/payment_intent.schema.js +6 -0
  22. package/cjs/schema/payment_source.schema.js +21 -0
  23. package/cjs/schema/price_variant.schema.js +1 -1
  24. package/cjs/schema/purchase.schema.js +3 -0
  25. package/cjs/schema/ramp.schema.js +2 -0
  26. package/cjs/schema/recorded_purchase.schema.js +3 -0
  27. package/cjs/schema/subscription.schema.js +37 -0
  28. package/cjs/schema/transaction.schema.js +12 -0
  29. package/cjs/schema/webhook_endpoint.schema.js +2 -0
  30. package/cjs/telemetry/TelemetryAdapter.js +12 -7
  31. package/esm/RequestWrapper.js +0 -5
  32. package/esm/environment.js +1 -1
  33. package/esm/resources/api_endpoints.js +57 -0
  34. package/esm/resources/webhook/eventType.js +1 -0
  35. package/esm/schema/alert.schema.js +6 -5
  36. package/esm/schema/credit_note.schema.js +5 -0
  37. package/esm/schema/customer.schema.js +15 -0
  38. package/esm/schema/estimate.schema.js +9 -0
  39. package/esm/schema/event.schema.js +4 -0
  40. package/esm/schema/export.schema.js +20 -4
  41. package/esm/schema/feature.schema.js +0 -1
  42. package/esm/schema/gift.schema.js +6 -0
  43. package/esm/schema/invoice.schema.js +33 -1
  44. package/esm/schema/item.schema.js +1 -1
  45. package/esm/schema/item_family.schema.js +1 -1
  46. package/esm/schema/item_price.schema.js +1 -1
  47. package/esm/schema/meter.schema.js +10 -0
  48. package/esm/schema/omnichannel_subscription.schema.js +2 -2
  49. package/esm/schema/payment_intent.schema.js +6 -0
  50. package/esm/schema/payment_source.schema.js +21 -0
  51. package/esm/schema/price_variant.schema.js +1 -1
  52. package/esm/schema/purchase.schema.js +3 -0
  53. package/esm/schema/ramp.schema.js +2 -0
  54. package/esm/schema/recorded_purchase.schema.js +3 -0
  55. package/esm/schema/subscription.schema.js +37 -0
  56. package/esm/schema/transaction.schema.js +12 -0
  57. package/esm/schema/webhook_endpoint.schema.js +2 -0
  58. package/esm/telemetry/TelemetryAdapter.js +12 -7
  59. package/package.json +1 -1
  60. package/types/core.d.ts +40 -6
  61. package/types/index.d.ts +12 -8
  62. package/types/resources/Alert.d.ts +16 -3
  63. package/types/resources/AsyncResponse.d.ts +35 -0
  64. package/types/resources/AsyncResponseList.d.ts +8 -0
  65. package/types/resources/ColumnDefinition.d.ts +9 -0
  66. package/types/resources/Content.d.ts +5 -0
  67. package/types/resources/CreditNote.d.ts +15 -0
  68. package/types/resources/CreditNoteEstimate.d.ts +5 -0
  69. package/types/resources/Customer.d.ts +8 -2
  70. package/types/resources/Estimate.d.ts +11 -2
  71. package/types/resources/Event.d.ts +1 -0
  72. package/types/resources/Export.d.ts +1 -0
  73. package/types/resources/Feature.d.ts +2 -0
  74. package/types/resources/Gift.d.ts +8 -2
  75. package/types/resources/GrantBlock.d.ts +1 -1
  76. package/types/resources/Invoice.d.ts +33 -3
  77. package/types/resources/InvoiceEstimate.d.ts +5 -0
  78. package/types/resources/LedgerOperation.d.ts +1 -3
  79. package/types/resources/Meter.d.ts +42 -0
  80. package/types/resources/MeteredFeature.d.ts +70 -0
  81. package/types/resources/PaymentIntent.d.ts +37 -5
  82. package/types/resources/PaymentSource.d.ts +4 -1
  83. package/types/resources/PromotionalGrant.d.ts +1 -1
  84. package/types/resources/Purchase.d.ts +4 -1
  85. package/types/resources/Quote.d.ts +5 -0
  86. package/types/resources/QuoteLineGroup.d.ts +5 -0
  87. package/types/resources/QuotedCharge.d.ts +3 -0
  88. package/types/resources/Ramp.d.ts +4 -1
  89. package/types/resources/RecordedPurchase.d.ts +3 -0
  90. package/types/resources/Subscription.d.ts +29 -7
  91. package/types/resources/WebhookEvent.d.ts +7 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,94 @@
1
+ ### v3.29.0 (2026-07-21)
2
+ * * *
3
+ ### New Resources:
4
+ - [`AsyncResponse`](https://apidocs.chargebee.com/docs/api/async_responses) has been added.
5
+ - [`AsyncResponseList`](https://apidocs.chargebee.com/docs/api/async_response_lists) has been added.
6
+ - [`ColumnDefinition`](https://apidocs.chargebee.com/docs/api/column_definitions) has been added.
7
+ - [`Meter`](https://apidocs.chargebee.com/docs/api/meters) has been added.
8
+ - [`MeteredFeature`](https://apidocs.chargebee.com/docs/api/metered_features) has been added.
9
+
10
+
11
+ ### New Attributes:
12
+ - [`currency_code`](https://apidocs.chargebee.com/docs/api/alerts/alert-object#currency_code) has been added to [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
13
+ - [`threshold`](https://apidocs.chargebee.com/docs/api/alerts/alert-object#threshold) has been added to [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
14
+ - [`filter_conditions`](https://apidocs.chargebee.com/docs/api/alerts/alert-object#filter_conditions) has been added to [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
15
+ - [`exchange_rates`](https://apidocs.chargebee.com/docs/api/credit_notes/credit-note-object#exchange_rates) has been added to [`CreditNote`](https://apidocs.chargebee.com/docs/api/credit_notes).
16
+ - [`metered`](https://apidocs.chargebee.com/docs/api/features/feature-object#metered) has been added to [`Feature`](https://apidocs.chargebee.com/docs/api/features).
17
+ - [`exchange_rates`](https://apidocs.chargebee.com/docs/api/invoices/invoice-object#exchange_rates) has been added to [`Invoice`](https://apidocs.chargebee.com/docs/api/invoices).
18
+ - [`payment_intent_metadata`](https://apidocs.chargebee.com/docs/api/payment_intents/payment-intent-object#payment_intent_metadata) has been added to [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents).
19
+
20
+
21
+ ### New Parameters:
22
+ - [`metered`](https://apidocs.chargebee.com/docs/api/features/list-features#metered) has been added as query parameter to [`list_features`](https://apidocs.chargebee.com/docs/api/features/list-features) in [`Feature`](https://apidocs.chargebee.com/docs/api/features).
23
+ - [`decommissioned`](https://apidocs.chargebee.com/docs/api/subscriptions/list-subscriptions#decommissioned) has been added as query parameter to [`list_subscriptions`](https://apidocs.chargebee.com/docs/api/subscriptions/list-subscriptions) in [`Subscription`](https://apidocs.chargebee.com/docs/api/subscriptions).
24
+ - [`currency_code`](https://apidocs.chargebee.com/docs/api/alerts/create-an-alert#currency_code) has been added as request body parameter to [`create_an_alert`](https://apidocs.chargebee.com/docs/api/alerts/create-an-alert) in [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
25
+ - [`line_items.proration_mode`](https://apidocs.chargebee.com/docs/api/credit_notes/import-credit-note#line_items_proration_mode) has been added as request body parameter to [`import_credit_note`](https://apidocs.chargebee.com/docs/api/credit_notes/import-credit-note) in [`CreditNote`](https://apidocs.chargebee.com/docs/api/credit_notes).
26
+ - [`item_prices.description`](https://apidocs.chargebee.com/docs/api/estimates/create-invoice-for-items-estimate#item_prices_description) has been added as request body parameter to [`create_invoice_for_items_estimate`](https://apidocs.chargebee.com/docs/api/estimates/create-invoice-for-items-estimate) in [`Estimate`](https://apidocs.chargebee.com/docs/api/estimates).
27
+ - [`item_prices.entity_description`](https://apidocs.chargebee.com/docs/api/estimates/create-invoice-for-items-estimate#item_prices_entity_description) has been added as request body parameter to [`create_invoice_for_items_estimate`](https://apidocs.chargebee.com/docs/api/estimates/create-invoice-for-items-estimate) in [`Estimate`](https://apidocs.chargebee.com/docs/api/estimates).
28
+ - [`charges.entity_description`](https://apidocs.chargebee.com/docs/api/estimates/create-invoice-for-items-estimate#charges_entity_description) has been added as request body parameter to [`create_invoice_for_items_estimate`](https://apidocs.chargebee.com/docs/api/estimates/create-invoice-for-items-estimate) in [`Estimate`](https://apidocs.chargebee.com/docs/api/estimates).
29
+ - [`subscription.decommissioned`](https://apidocs.chargebee.com/docs/api/exports/export-subscriptions#subscription_decommissioned) has been added as request body parameter to [`export_subscriptions`](https://apidocs.chargebee.com/docs/api/exports/export-subscriptions) in [`Export`](https://apidocs.chargebee.com/docs/api/exports).
30
+ - [`item_prices.description`](https://apidocs.chargebee.com/docs/api/invoices/create-invoice-for-items-and-one-time-charges#item_prices_description) has been added as request body parameter to [`create_invoice_for_items_and_one-time_charges`](https://apidocs.chargebee.com/docs/api/invoices/create-invoice-for-items-and-one-time-charges) in [`Invoice`](https://apidocs.chargebee.com/docs/api/invoices).
31
+ - [`item_prices.entity_description`](https://apidocs.chargebee.com/docs/api/invoices/create-invoice-for-items-and-one-time-charges#item_prices_entity_description) has been added as request body parameter to [`create_invoice_for_items_and_one-time_charges`](https://apidocs.chargebee.com/docs/api/invoices/create-invoice-for-items-and-one-time-charges) in [`Invoice`](https://apidocs.chargebee.com/docs/api/invoices).
32
+ - [`charges.entity_description`](https://apidocs.chargebee.com/docs/api/invoices/create-invoice-for-items-and-one-time-charges#charges_entity_description) has been added as request body parameter to [`create_invoice_for_items_and_one-time_charges`](https://apidocs.chargebee.com/docs/api/invoices/create-invoice-for-items-and-one-time-charges) in [`Invoice`](https://apidocs.chargebee.com/docs/api/invoices).
33
+ - [`create_pending_invoice`](https://apidocs.chargebee.com/docs/api/invoices/create-invoice-for-items-and-one-time-charges#create_pending_invoice) has been added as request body parameter to [`create_invoice_for_items_and_one-time_charges`](https://apidocs.chargebee.com/docs/api/invoices/create-invoice-for-items-and-one-time-charges) in [`Invoice`](https://apidocs.chargebee.com/docs/api/invoices).
34
+ - [`line_items.proration_mode`](https://apidocs.chargebee.com/docs/api/invoices/import-invoice#line_items_proration_mode) has been added as request body parameter to [`import_invoice`](https://apidocs.chargebee.com/docs/api/invoices/import-invoice) in [`Invoice`](https://apidocs.chargebee.com/docs/api/invoices).
35
+ - [`paid_at`](https://apidocs.chargebee.com/docs/api/invoices/import-invoice#paid_at) has been added as request body parameter to [`import_invoice`](https://apidocs.chargebee.com/docs/api/invoices/import-invoice) in [`Invoice`](https://apidocs.chargebee.com/docs/api/invoices).
36
+ - [`discounts_to_add.quantity`](https://apidocs.chargebee.com/docs/api/ramps/create-a-ramp#discounts_to_add_quantity) has been added as request body parameter to [`create_a_ramp`](https://apidocs.chargebee.com/docs/api/ramps/create-a-ramp) in [`Ramp`](https://apidocs.chargebee.com/docs/api/ramps).
37
+ - [`discounts_to_add.quantity`](https://apidocs.chargebee.com/docs/api/ramps/update-a-subscription-ramp#discounts_to_add_quantity) has been added as request body parameter to [`update_a_subscription_ramp`](https://apidocs.chargebee.com/docs/api/ramps/update-a-subscription-ramp) in [`Ramp`](https://apidocs.chargebee.com/docs/api/ramps).
38
+ - [`customer.email`](https://apidocs.chargebee.com/docs/api/recorded_purchases/record-a-purchase#customer_email) has been added as request body parameter to [`record_a_purchase`](https://apidocs.chargebee.com/docs/api/recorded_purchases/record-a-purchase) in [`RecordedPurchase`](https://apidocs.chargebee.com/docs/api/recorded_purchases).
39
+ - [`customer.first_name`](https://apidocs.chargebee.com/docs/api/recorded_purchases/record-a-purchase#customer_first_name) has been added as request body parameter to [`record_a_purchase`](https://apidocs.chargebee.com/docs/api/recorded_purchases/record-a-purchase) in [`RecordedPurchase`](https://apidocs.chargebee.com/docs/api/recorded_purchases).
40
+ - [`customer.last_name`](https://apidocs.chargebee.com/docs/api/recorded_purchases/record-a-purchase#customer_last_name) has been added as request body parameter to [`record_a_purchase`](https://apidocs.chargebee.com/docs/api/recorded_purchases/record-a-purchase) in [`RecordedPurchase`](https://apidocs.chargebee.com/docs/api/recorded_purchases).
41
+
42
+
43
+ ### Parameter Updates:
44
+ - [`metered_feature_id`](https://apidocs.chargebee.com/docs/api/alerts/create-an-alert#metered_feature_id) has been changed from required to optional in [`create_an_alert`](https://apidocs.chargebee.com/docs/api/alerts/create-an-alert) of [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
45
+
46
+
47
+ ### New Events:
48
+ - [`payment_source_business_entity_changed`](https://apidocs.chargebee.com/docs/api/events/webhook/payment_source_business_entity_changed) has been added.
49
+
50
+
51
+ ### Deleted Attributes:
52
+ - `start_balance` has been removed from [`LedgerOperation`](https://apidocs.chargebee.com/docs/api/ledger_operations).
53
+ - `end_balance` has been removed from [`LedgerOperation`](https://apidocs.chargebee.com/docs/api/ledger_operations).
54
+
55
+
56
+ ### New Enums:
57
+ - `real_time_payments` has been added as a new value enum `DunningType`.
58
+ - `payment_source_business_entity_changed` has been added as a new value enum `EventType`.
59
+ - `paynow`, `bizum`, and `promptpay` have been added as new values enum `PaymentMethod`.
60
+ - `paynow`, `bizum`, and `promptpay` have been added as new values enum `PaymentMethodType`.
61
+ - `active`, `archived`, and `deleted` have been added as new values enum `Status`.
62
+ - `zero_rated`, `region_non_taxable`, `product_exempt`, `high_value_physical_goods`, `zero_value_item`, and `tax_not_configured_external_provider` have been added as new values enum `TaxOverrideReason`.
63
+ - `paynow`, `bizum`, `promptpay`, `simple`, `compound`, and `spend_exceeded` have been added as new values enum `Type`.
64
+ - `success` and `failed` have been added as new values to enum attribute [`status`](https://apidocs.chargebee.com/docs/api/async_responses/async-response-object#status) in [`AsyncResponse`](https://apidocs.chargebee.com/docs/api/async_responses).
65
+ - `number` and `string` have been added as new values to enum attribute [`data_type`](https://apidocs.chargebee.com/docs/api/column_definitions/column-definition-object#data_type) in [`ColumnDefinition`](https://apidocs.chargebee.com/docs/api/column_definitions).
66
+ - `simple` and `compound` have been added as new values to enum attribute [`type`](https://apidocs.chargebee.com/docs/api/meters/meter-object#type) in [`Meter`](https://apidocs.chargebee.com/docs/api/meters).
67
+ - `active`, `archived`, and `deleted` have been added as new values to enum attribute [`status`](https://apidocs.chargebee.com/docs/api/meters/meter-object#status) in [`Meter`](https://apidocs.chargebee.com/docs/api/meters).
68
+ - `paynow`, `bizum`, and `promptpay` have been added as new values to enum attribute [`payment_method_type`](https://apidocs.chargebee.com/docs/api/payment_intents/payment-intent-object#payment_method_type) in [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents).
69
+ - `paynow`, `bizum`, and `promptpay` have been added as new values to enum attribute [`active_payment_attempt.payment_method_type`](https://apidocs.chargebee.com/docs/api/payment_intents/payment-intent-object#active_payment_attempt_payment_method_type) in [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents).
70
+ - `cb_js`, `components_fields`, `checkout_v3`, `paynow_v3`, `portal_v3`, `gift_v3`, `checkout_v4`, `payment_component`, `pc_inapp_v4`, and `pc_fpc_v4` 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).
71
+ - `adjusted_term`, `service_period_revision`, `delta`, and `reset` have been added as new values to enum request body parameter `line_items.proration_mode` in [`import_credit_note`](https://apidocs.chargebee.com/docs/api/credit_notes/import-credit-note) of [`CreditNote`](https://apidocs.chargebee.com/docs/api/credit_notes).
72
+ - `true` and `false` have been added as new values to enum query parameter `metered.is` in [`list_features`](https://apidocs.chargebee.com/docs/api/features/list-features) of [`Feature`](https://apidocs.chargebee.com/docs/api/features).
73
+ - `adjusted_term`, `service_period_revision`, `delta`, and `reset` have been added as new values to enum request body parameter `line_items.proration_mode` in [`import_invoice`](https://apidocs.chargebee.com/docs/api/invoices/import-invoice) of [`Invoice`](https://apidocs.chargebee.com/docs/api/invoices).
74
+ - `updated_at`, `name`, `created_at`, and `id` have been added as new values to enum query parameter `sort_by.asc` in [`list_all_available_meters`](https://apidocs.chargebee.com/docs/api/meters/list-all-available-meters) of [`Meter`](https://apidocs.chargebee.com/docs/api/meters).
75
+ - `updated_at`, `name`, `created_at`, and `id` have been added as new values to enum query parameter `sort_by.desc` in [`list_all_available_meters`](https://apidocs.chargebee.com/docs/api/meters/list-all-available-meters) of [`Meter`](https://apidocs.chargebee.com/docs/api/meters).
76
+ - `number` and `string` have been added as new values to enum request body parameter `column_definitions.data_type` in [`create_a_metered_feature`](https://apidocs.chargebee.com/docs/api/metered_features/create-a-metered-feature) of [`MeteredFeature`](https://apidocs.chargebee.com/docs/api/metered_features).
77
+ - `paynow`, `bizum`, and `promptpay` have been added as new values to enum request body parameter `payment_method_type` in [`update_a_payment_intent`](https://apidocs.chargebee.com/docs/api/payment_intents/update-a-payment-intent) of [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents).
78
+ - `paynow`, `bizum`, and `promptpay` have been added as new values to enum request body parameter `payment_method_type` in [`create_a_payment_intent`](https://apidocs.chargebee.com/docs/api/payment_intents/create-a-payment-intent) of [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents).
79
+ - `true` and `false` have been added as new values to enum query parameter `decommissioned.is` in [`list_subscriptions`](https://apidocs.chargebee.com/docs/api/subscriptions/list-subscriptions) of [`Subscription`](https://apidocs.chargebee.com/docs/api/subscriptions).
80
+
81
+
82
+
83
+ ### v3.28.1 (2026-07-16)
84
+ * * *
85
+ ### Bug Fixes:
86
+ - Stopped setting the `Content-Length` header manually in `RequestWrapper`. `fetch`/undici already derives the correct value from the request `body`, so the manual header was redundant. When `FetchHttpClient` re-wraps the request (`new Request(request, { signal })`), some Node builds re-append the body-derived value, producing a comma-joined `"N, N"`. undici (>= 7.28) validates `Content-Length` with a strict all-digit check and rejects that value with `InvalidArgumentError: invalid content-length header`, failing the request before it reaches Chargebee. The header is now left to the platform. This is distinct from the value-correctness fix in v3.24.1 (issue #119). Verified on Node 18/20/22/24 and Cloudflare Workers (`workerd`), where the runtime emits the correct UTF-8 byte-length `Content-Length` on the wire.
87
+
88
+ ### Tests:
89
+ - POST requests no longer set a `Content-Length` header on the outgoing `Request` (ASCII form-urlencoded and multi-byte JSON bodies), guarding against the duplicate-header regression while preserving body integrity.
90
+
91
+
1
92
  ### v3.28.0 (2026-06-30)
2
93
  * * *
3
94
 
@@ -142,11 +142,6 @@ class RequestWrapper {
142
142
  : (0, util_js_1.encodeParams)(requestParams, undefined, undefined, undefined, jsonKeys);
143
143
  }
144
144
  const requestHeaders = Object.assign(Object.assign({}, this.httpHeaders), telemetryHeaders);
145
- if (data && data.length) {
146
- (0, util_js_1.extend)(true, requestHeaders, {
147
- 'Content-Length': node_buffer_1.Buffer.byteLength(data, 'utf8'),
148
- });
149
- }
150
145
  const contentType = this.apiCall.isJsonRequest
151
146
  ? 'application/json;charset=UTF-8'
152
147
  : 'application/x-www-form-urlencoded; charset=utf-8';
@@ -4,8 +4,8 @@ const createChargebee_js_1 = require("./createChargebee.js");
4
4
  const FetchClient_js_1 = require("./net/FetchClient.js");
5
5
  const handler_js_1 = require("./resources/webhook/handler.js");
6
6
  const auth_js_1 = require("./resources/webhook/auth.js");
7
- const index_js_1 = require("./telemetry/index.js");
8
7
  const chargebeeZodValidationError_js_1 = require("./chargebeeZodValidationError.js");
8
+ const index_js_1 = require("./telemetry/index.js");
9
9
  const httpClient = new FetchClient_js_1.FetchHttpClient();
10
10
  const Chargebee = (0, createChargebee_js_1.CreateChargebee)(httpClient);
11
11
  module.exports = Chargebee;
@@ -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.28.0',
14
+ clientVersion: 'v3.29.0',
15
15
  port: DEFAULT_PORT,
16
16
  timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT,
17
17
  exportWaitInMillis: DEFAULT_EXPORT_WAIT,
@@ -2,6 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Endpoints = void 0;
4
4
  exports.Endpoints = {
5
+ asyncResponseList: [],
6
+ asyncResponse: [],
5
7
  subscription: [
6
8
  [
7
9
  'create',
@@ -4800,6 +4802,7 @@ exports.Endpoints = {
4800
4802
  ],
4801
4803
  omnichannelOneTimeOrderItem: [],
4802
4804
  rule: [['retrieve', 'GET', '/rules', null, true, null, false, {}, {}]],
4805
+ meter: [['list', 'GET', '/meters', null, false, null, false, {}, {}]],
4803
4806
  usageEvent: [
4804
4807
  [
4805
4808
  'create',
@@ -4828,6 +4831,60 @@ exports.Endpoints = {
4828
4831
  {},
4829
4832
  ],
4830
4833
  ],
4834
+ meteredFeature: [
4835
+ [
4836
+ 'create',
4837
+ 'POST',
4838
+ '/metered_features',
4839
+ null,
4840
+ false,
4841
+ null,
4842
+ false,
4843
+ {},
4844
+ {
4845
+ isIdempotent: true,
4846
+ },
4847
+ ],
4848
+ [
4849
+ 'archive',
4850
+ 'POST',
4851
+ '/metered_features',
4852
+ '/archive_command',
4853
+ true,
4854
+ null,
4855
+ false,
4856
+ {},
4857
+ {
4858
+ isIdempotent: true,
4859
+ },
4860
+ ],
4861
+ [
4862
+ 'reactivate',
4863
+ 'POST',
4864
+ '/metered_features',
4865
+ '/reactivate_command',
4866
+ true,
4867
+ null,
4868
+ false,
4869
+ {},
4870
+ {
4871
+ isIdempotent: true,
4872
+ },
4873
+ ],
4874
+ [
4875
+ 'delete',
4876
+ 'POST',
4877
+ '/metered_features',
4878
+ '/delete',
4879
+ true,
4880
+ null,
4881
+ false,
4882
+ {},
4883
+ {
4884
+ isIdempotent: true,
4885
+ },
4886
+ ],
4887
+ ],
4831
4888
  usageFile: [
4832
4889
  [
4833
4890
  'uploadUrl',
@@ -139,6 +139,7 @@ var WebhookEventType;
139
139
  WebhookEventType["PaymentSchedulesCreated"] = "payment_schedules_created";
140
140
  WebhookEventType["PaymentSchedulesUpdated"] = "payment_schedules_updated";
141
141
  WebhookEventType["PaymentSourceAdded"] = "payment_source_added";
142
+ WebhookEventType["PaymentSourceBusinessEntityChanged"] = "payment_source_business_entity_changed";
142
143
  WebhookEventType["PaymentSourceDeleted"] = "payment_source_deleted";
143
144
  WebhookEventType["PaymentSourceExpired"] = "payment_source_expired";
144
145
  WebhookEventType["PaymentSourceExpiring"] = "payment_source_expiring";
@@ -7,7 +7,7 @@ exports.ApplicationAlertsforsubscriptionAlertBodySchema = exports.UpdateAlertBod
7
7
  const zod_1 = require("zod");
8
8
  //Alert.create
9
9
  const CreateAlertThresholdSchema = zod_1.z.object({
10
- mode: zod_1.z.enum(['absolute', 'percentage']),
10
+ mode: zod_1.z.enum(['absolute', 'percentage']).optional(),
11
11
  value: zod_1.z.number(),
12
12
  });
13
13
  const CreateAlertFilterConditionsSchema = zod_1.z.object({
@@ -16,10 +16,11 @@ const CreateAlertFilterConditionsSchema = zod_1.z.object({
16
16
  value: zod_1.z.array(zod_1.z.string().max(50).optional()).optional(),
17
17
  });
18
18
  const CreateAlertBodySchema = zod_1.z.looseObject({
19
- type: zod_1.z.enum(['usage_exceeded']),
19
+ type: zod_1.z.enum(['usage_exceeded', 'spend_exceeded']),
20
20
  name: zod_1.z.string().max(50),
21
21
  description: zod_1.z.string().max(65000).optional(),
22
- metered_feature_id: zod_1.z.string().max(50),
22
+ metered_feature_id: zod_1.z.string().max(50).optional(),
23
+ currency_code: zod_1.z.string().max(3).optional(),
23
24
  subscription_id: zod_1.z.string().max(50).optional(),
24
25
  meta: zod_1.z.string().max(65000).optional(),
25
26
  threshold: CreateAlertThresholdSchema.optional(),
@@ -31,7 +32,7 @@ const ListAlertIdSchema = zod_1.z.object({
31
32
  in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
32
33
  });
33
34
  const ListAlertTypeSchema = zod_1.z.object({
34
- is: zod_1.z.enum(['usage_exceeded']).optional(),
35
+ is: zod_1.z.enum(['usage_exceeded', 'spend_exceeded']).optional(),
35
36
  });
36
37
  const ListAlertSubscriptionIdSchema = zod_1.z.object({
37
38
  is: zod_1.z.string().min(1).optional(),
@@ -63,7 +64,7 @@ const ApplicationAlertsforsubscriptionAlertStatusSchema = zod_1.z.object({
63
64
  is: zod_1.z.enum(['enabled', 'disabled']).optional(),
64
65
  });
65
66
  const ApplicationAlertsforsubscriptionAlertTypeSchema = zod_1.z.object({
66
- is: zod_1.z.enum(['usage_exceeded']).optional(),
67
+ is: zod_1.z.enum(['usage_exceeded', 'spend_exceeded']).optional(),
67
68
  });
68
69
  const ApplicationAlertsforsubscriptionAlertBodySchema = zod_1.z.looseObject({
69
70
  limit: zod_1.z.number().int().min(1).max(100).optional(),
@@ -404,6 +404,11 @@ const ImportCreditNoteCreditNoteLineItemsSchema = zod_1.z.object({
404
404
  tax9_amount: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
405
405
  tax10_name: zod_1.z.array(zod_1.z.string().max(50).optional()).optional(),
406
406
  tax10_amount: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
407
+ proration_mode: zod_1.z
408
+ .array(zod_1.z
409
+ .enum(['reset', 'delta', 'service_period_revision', 'adjusted_term'])
410
+ .optional())
411
+ .optional(),
407
412
  });
408
413
  const ImportCreditNoteCreditNoteLineItemTiersSchema = zod_1.z.object({
409
414
  line_item_id: zod_1.z.array(zod_1.z.string().max(40).optional()),
@@ -165,6 +165,9 @@ const CreateCustomerPaymentMethodSchema = zod_1.z.object({
165
165
  'paypay',
166
166
  'gcash',
167
167
  'south_korean_cards',
168
+ 'paynow',
169
+ 'bizum',
170
+ 'promptpay',
168
171
  ])
169
172
  .optional(),
170
173
  gateway: zod_1.z
@@ -287,6 +290,9 @@ const CreateCustomerPaymentIntentSchema = zod_1.z.object({
287
290
  'paypay',
288
291
  'gcash',
289
292
  'south_korean_cards',
293
+ 'paynow',
294
+ 'bizum',
295
+ 'promptpay',
290
296
  ])
291
297
  .optional(),
292
298
  reference_id: zod_1.z.string().max(65000).optional(),
@@ -706,6 +712,9 @@ const UpdatePaymentMethodCustomerPaymentMethodSchema = zod_1.z.object({
706
712
  'paypay',
707
713
  'gcash',
708
714
  'south_korean_cards',
715
+ 'paynow',
716
+ 'bizum',
717
+ 'promptpay',
709
718
  ]),
710
719
  gateway: zod_1.z
711
720
  .enum([
@@ -987,6 +996,9 @@ const CollectPaymentCustomerPaymentMethodSchema = zod_1.z.object({
987
996
  'paypay',
988
997
  'gcash',
989
998
  'south_korean_cards',
999
+ 'paynow',
1000
+ 'bizum',
1001
+ 'promptpay',
990
1002
  ])
991
1003
  .optional(),
992
1004
  gateway_account_id: zod_1.z.string().max(50).optional(),
@@ -1065,6 +1077,9 @@ const CollectPaymentCustomerPaymentIntentSchema = zod_1.z.object({
1065
1077
  'paypay',
1066
1078
  'gcash',
1067
1079
  'south_korean_cards',
1080
+ 'paynow',
1081
+ 'bizum',
1082
+ 'promptpay',
1068
1083
  ])
1069
1084
  .optional(),
1070
1085
  gw_payment_method_id: zod_1.z.string().max(65000).optional(),
@@ -1154,6 +1154,9 @@ const GiftSubscriptionEstimatePaymentIntentSchema = zod_1.z.object({
1154
1154
  'paypay',
1155
1155
  'gcash',
1156
1156
  'south_korean_cards',
1157
+ 'paynow',
1158
+ 'bizum',
1159
+ 'promptpay',
1157
1160
  ])
1158
1161
  .optional(),
1159
1162
  reference_id: zod_1.z.string().max(65000).optional(),
@@ -1270,6 +1273,9 @@ const GiftSubscriptionForItemsEstimatePaymentIntentSchema = zod_1.z.object({
1270
1273
  'paypay',
1271
1274
  'gcash',
1272
1275
  'south_korean_cards',
1276
+ 'paynow',
1277
+ 'bizum',
1278
+ 'promptpay',
1273
1279
  ])
1274
1280
  .optional(),
1275
1281
  reference_id: zod_1.z.string().max(65000).optional(),
@@ -1446,6 +1452,8 @@ const CreateInvoiceForItemsEstimateItemPricesSchema = zod_1.z.object({
1446
1452
  unit_price_in_decimal: zod_1.z.array(zod_1.z.string().max(39).optional()).optional(),
1447
1453
  date_from: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
1448
1454
  date_to: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
1455
+ description: zod_1.z.array(zod_1.z.string().max(250).optional()).optional(),
1456
+ entity_description: zod_1.z.array(zod_1.z.string().max(500).optional()).optional(),
1449
1457
  });
1450
1458
  const CreateInvoiceForItemsEstimateItemTiersSchema = zod_1.z.object({
1451
1459
  item_price_id: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
@@ -1476,6 +1484,7 @@ const CreateInvoiceForItemsEstimateChargesSchema = zod_1.z.object({
1476
1484
  avalara_service_type: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
1477
1485
  date_from: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
1478
1486
  date_to: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
1487
+ entity_description: zod_1.z.array(zod_1.z.string().max(500).optional()).optional(),
1479
1488
  });
1480
1489
  const CreateInvoiceForItemsEstimateNotesToRemoveSchema = zod_1.z.object({
1481
1490
  entity_type: zod_1.z
@@ -231,6 +231,7 @@ const ListEventEventTypeSchema = zod_1.z.object({
231
231
  'business_entity_deleted',
232
232
  'customer_business_entity_changed',
233
233
  'subscription_business_entity_changed',
234
+ 'payment_source_business_entity_changed',
234
235
  'purchase_created',
235
236
  'voucher_created',
236
237
  'voucher_expired',
@@ -457,6 +458,7 @@ const ListEventEventTypeSchema = zod_1.z.object({
457
458
  'business_entity_deleted',
458
459
  'customer_business_entity_changed',
459
460
  'subscription_business_entity_changed',
461
+ 'payment_source_business_entity_changed',
460
462
  'purchase_created',
461
463
  'voucher_created',
462
464
  'voucher_expired',
@@ -683,6 +685,7 @@ const ListEventEventTypeSchema = zod_1.z.object({
683
685
  'business_entity_deleted',
684
686
  'customer_business_entity_changed',
685
687
  'subscription_business_entity_changed',
688
+ 'payment_source_business_entity_changed',
686
689
  'purchase_created',
687
690
  'voucher_created',
688
691
  'voucher_expired',
@@ -909,6 +912,7 @@ const ListEventEventTypeSchema = zod_1.z.object({
909
912
  'business_entity_deleted',
910
913
  'customer_business_entity_changed',
911
914
  'subscription_business_entity_changed',
915
+ 'payment_source_business_entity_changed',
912
916
  'purchase_created',
913
917
  'voucher_created',
914
918
  'voucher_expired',
@@ -1643,6 +1643,9 @@ const SubscriptionsExportChannelSchema = zod_1.z.object({
1643
1643
  in: zod_1.z.enum(['web', 'app_store', 'play_store']).optional(),
1644
1644
  not_in: zod_1.z.enum(['web', 'app_store', 'play_store']).optional(),
1645
1645
  });
1646
+ const SubscriptionsExportDecommissionedSchema = zod_1.z.object({
1647
+ is: zod_1.z.enum(['true', 'false']).optional(),
1648
+ });
1646
1649
  const SubscriptionsExportPlanIdSchema = zod_1.z.object({
1647
1650
  is: zod_1.z.string().min(1).optional(),
1648
1651
  is_not: zod_1.z.string().min(1).optional(),
@@ -1665,6 +1668,7 @@ const SubscriptionsExportSubscriptionItemSchema = zod_1.z.object({
1665
1668
  offline_payment_method: SubscriptionsExportOfflinePaymentMethodSchema.optional(),
1666
1669
  auto_close_invoices: SubscriptionsExportAutoCloseInvoicesSchema.optional(),
1667
1670
  channel: SubscriptionsExportChannelSchema.optional(),
1671
+ decommissioned: SubscriptionsExportDecommissionedSchema.optional(),
1668
1672
  plan_id: SubscriptionsExportPlanIdSchema.optional(),
1669
1673
  });
1670
1674
  const SubscriptionsExportBodySchema = zod_1.z.looseObject({
@@ -2128,6 +2132,9 @@ const TransactionsExportPaymentMethodSchema = zod_1.z.object({
2128
2132
  'paypay',
2129
2133
  'gcash',
2130
2134
  'south_korean_cards',
2135
+ 'paynow',
2136
+ 'bizum',
2137
+ 'promptpay',
2131
2138
  ])
2132
2139
  .optional(),
2133
2140
  is_not: zod_1.z
@@ -2189,6 +2196,9 @@ const TransactionsExportPaymentMethodSchema = zod_1.z.object({
2189
2196
  'paypay',
2190
2197
  'gcash',
2191
2198
  'south_korean_cards',
2199
+ 'paynow',
2200
+ 'bizum',
2201
+ 'promptpay',
2192
2202
  ])
2193
2203
  .optional(),
2194
2204
  in: zod_1.z
@@ -2250,6 +2260,9 @@ const TransactionsExportPaymentMethodSchema = zod_1.z.object({
2250
2260
  'paypay',
2251
2261
  'gcash',
2252
2262
  'south_korean_cards',
2263
+ 'paynow',
2264
+ 'bizum',
2265
+ 'promptpay',
2253
2266
  ])
2254
2267
  .optional(),
2255
2268
  not_in: zod_1.z
@@ -2311,6 +2324,9 @@ const TransactionsExportPaymentMethodSchema = zod_1.z.object({
2311
2324
  'paypay',
2312
2325
  'gcash',
2313
2326
  'south_korean_cards',
2327
+ 'paynow',
2328
+ 'bizum',
2329
+ 'promptpay',
2314
2330
  ])
2315
2331
  .optional(),
2316
2332
  });
@@ -2914,8 +2930,8 @@ const OrdersExportBodySchema = zod_1.z.looseObject({
2914
2930
  exports.OrdersExportBodySchema = OrdersExportBodySchema;
2915
2931
  //Export.itemFamilies
2916
2932
  const ItemFamiliesExportBusinessEntityIdSchema = zod_1.z.object({
2917
- is: zod_1.z.string().min(1).optional(),
2918
2933
  is_present: zod_1.z.enum(['true', 'false']).optional(),
2934
+ is: zod_1.z.string().min(1).optional(),
2919
2935
  });
2920
2936
  const ItemFamiliesExportIncludeSiteLevelResourcesSchema = zod_1.z.object({
2921
2937
  is: zod_1.z.enum(['true', 'false']).optional(),
@@ -2953,8 +2969,8 @@ const ItemFamiliesExportBodySchema = zod_1.z.looseObject({
2953
2969
  exports.ItemFamiliesExportBodySchema = ItemFamiliesExportBodySchema;
2954
2970
  //Export.items
2955
2971
  const ItemsExportBusinessEntityIdSchema = zod_1.z.object({
2956
- is: zod_1.z.string().min(1).optional(),
2957
2972
  is_present: zod_1.z.enum(['true', 'false']).optional(),
2973
+ is: zod_1.z.string().min(1).optional(),
2958
2974
  });
2959
2975
  const ItemsExportIncludeSiteLevelResourcesSchema = zod_1.z.object({
2960
2976
  is: zod_1.z.enum(['true', 'false']).optional(),
@@ -3069,8 +3085,8 @@ const ItemPricesExportCurrencyCodeSchema = zod_1.z.object({
3069
3085
  not_in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
3070
3086
  });
3071
3087
  const ItemPricesExportBusinessEntityIdSchema = zod_1.z.object({
3072
- is: zod_1.z.string().min(1).optional(),
3073
3088
  is_present: zod_1.z.enum(['true', 'false']).optional(),
3089
+ is: zod_1.z.string().min(1).optional(),
3074
3090
  });
3075
3091
  const ItemPricesExportIncludeSiteLevelResourcesSchema = zod_1.z.object({
3076
3092
  is: zod_1.z.enum(['true', 'false']).optional(),
@@ -3330,8 +3346,8 @@ const DifferentialPricesExportBodySchema = zod_1.z.looseObject({
3330
3346
  exports.DifferentialPricesExportBodySchema = DifferentialPricesExportBodySchema;
3331
3347
  //Export.priceVariants
3332
3348
  const PriceVariantsExportBusinessEntityIdSchema = zod_1.z.object({
3333
- is: zod_1.z.string().min(1).optional(),
3334
3349
  is_present: zod_1.z.enum(['true', 'false']).optional(),
3350
+ is: zod_1.z.string().min(1).optional(),
3335
3351
  });
3336
3352
  const PriceVariantsExportIncludeSiteLevelResourcesSchema = zod_1.z.object({
3337
3353
  is: zod_1.z.enum(['true', 'false']).optional(),
@@ -58,7 +58,6 @@ const CreateFeatureBodySchema = zod_1.z.looseObject({
58
58
  description: zod_1.z.string().max(500).optional(),
59
59
  type: zod_1.z.enum(['switch', 'custom', 'quantity', 'range']).optional(),
60
60
  unit: zod_1.z.string().max(50).optional(),
61
- metered: zod_1.z.boolean().optional(),
62
61
  levels: CreateFeatureLevelsSchema.optional(),
63
62
  });
64
63
  exports.CreateFeatureBodySchema = CreateFeatureBodySchema;
@@ -70,6 +70,9 @@ const CreateGiftPaymentIntentSchema = zod_1.z.object({
70
70
  'paypay',
71
71
  'gcash',
72
72
  'south_korean_cards',
73
+ 'paynow',
74
+ 'bizum',
75
+ 'promptpay',
73
76
  ])
74
77
  .optional(),
75
78
  reference_id: zod_1.z.string().max(65000).optional(),
@@ -184,6 +187,9 @@ const CreateForItemsGiftPaymentIntentSchema = zod_1.z.object({
184
187
  'paypay',
185
188
  'gcash',
186
189
  'south_korean_cards',
190
+ 'paynow',
191
+ 'bizum',
192
+ 'promptpay',
187
193
  ])
188
194
  .optional(),
189
195
  reference_id: zod_1.z.string().max(65000).optional(),
@@ -185,6 +185,9 @@ const CreateInvoicePaymentMethodSchema = zod_1.z.object({
185
185
  'paypay',
186
186
  'gcash',
187
187
  'south_korean_cards',
188
+ 'paynow',
189
+ 'bizum',
190
+ 'promptpay',
188
191
  ])
189
192
  .optional(),
190
193
  gateway: zod_1.z
@@ -307,6 +310,9 @@ const CreateInvoicePaymentIntentSchema = zod_1.z.object({
307
310
  'paypay',
308
311
  'gcash',
309
312
  'south_korean_cards',
313
+ 'paynow',
314
+ 'bizum',
315
+ 'promptpay',
310
316
  ])
311
317
  .optional(),
312
318
  reference_id: zod_1.z.string().max(65000).optional(),
@@ -561,6 +567,9 @@ const CreateForChargeItemsAndChargesInvoicePaymentMethodSchema = zod_1.z.object(
561
567
  'paypay',
562
568
  'gcash',
563
569
  'south_korean_cards',
570
+ 'paynow',
571
+ 'bizum',
572
+ 'promptpay',
564
573
  ])
565
574
  .optional(),
566
575
  gateway: zod_1.z
@@ -683,6 +692,9 @@ const CreateForChargeItemsAndChargesInvoicePaymentIntentSchema = zod_1.z.object(
683
692
  'paypay',
684
693
  'gcash',
685
694
  'south_korean_cards',
695
+ 'paynow',
696
+ 'bizum',
697
+ 'promptpay',
686
698
  ])
687
699
  .optional(),
688
700
  reference_id: zod_1.z.string().max(65000).optional(),
@@ -697,6 +709,8 @@ const CreateForChargeItemsAndChargesInvoiceItemPricesSchema = zod_1.z.object({
697
709
  unit_price_in_decimal: zod_1.z.array(zod_1.z.string().max(39).optional()).optional(),
698
710
  date_from: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
699
711
  date_to: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
712
+ description: zod_1.z.array(zod_1.z.string().max(250).optional()).optional(),
713
+ entity_description: zod_1.z.array(zod_1.z.string().max(500).optional()).optional(),
700
714
  });
701
715
  const CreateForChargeItemsAndChargesInvoiceItemTiersSchema = zod_1.z.object({
702
716
  item_price_id: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
@@ -712,6 +726,7 @@ const CreateForChargeItemsAndChargesInvoiceItemTiersSchema = zod_1.z.object({
712
726
  package_size: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
713
727
  });
714
728
  const CreateForChargeItemsAndChargesInvoiceChargesSchema = zod_1.z.object({
729
+ entity_description: zod_1.z.array(zod_1.z.string().max(500).optional()).optional(),
715
730
  amount: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
716
731
  amount_in_decimal: zod_1.z.array(zod_1.z.string().max(39).optional()).optional(),
717
732
  description: zod_1.z.array(zod_1.z.string().max(250).optional()).optional(),
@@ -769,6 +784,7 @@ const CreateForChargeItemsAndChargesInvoiceBodySchema = zod_1.z.looseObject({
769
784
  auto_collection: zod_1.z.enum(['on', 'off']).optional(),
770
785
  net_term_days: zod_1.z.number().int().optional(),
771
786
  invoice_date: zod_1.z.number().int().optional(),
787
+ create_pending_invoice: zod_1.z.boolean().optional(),
772
788
  token_id: zod_1.z.string().max(40).optional(),
773
789
  replace_primary_payment_source: zod_1.z.boolean().default(false).optional(),
774
790
  retain_payment_source: zod_1.z.boolean().default(true).optional(),
@@ -983,6 +999,11 @@ const ImportInvoiceInvoiceLineItemsSchema = zod_1.z.object({
983
999
  tax9_amount: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
984
1000
  tax10_name: zod_1.z.array(zod_1.z.string().max(50).optional()).optional(),
985
1001
  tax10_amount: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
1002
+ proration_mode: zod_1.z
1003
+ .array(zod_1.z
1004
+ .enum(['reset', 'delta', 'service_period_revision', 'adjusted_term'])
1005
+ .optional())
1006
+ .optional(),
986
1007
  created_at: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
987
1008
  });
988
1009
  const ImportInvoiceInvoicePaymentReferenceNumbersSchema = zod_1.z.object({
@@ -1100,7 +1121,17 @@ const ImportInvoiceInvoiceBodySchema = zod_1.z.looseObject({
1100
1121
  po_number: zod_1.z.string().max(100).optional(),
1101
1122
  price_type: zod_1.z.enum(['tax_exclusive', 'tax_inclusive']).optional(),
1102
1123
  tax_override_reason: zod_1.z
1103
- .enum(['id_exempt', 'customer_exempt', 'export'])
1124
+ .enum([
1125
+ 'zero_rated',
1126
+ 'id_exempt',
1127
+ 'customer_exempt',
1128
+ 'region_non_taxable',
1129
+ 'product_exempt',
1130
+ 'export',
1131
+ 'high_value_physical_goods',
1132
+ 'zero_value_item',
1133
+ 'tax_not_configured_external_provider',
1134
+ ])
1104
1135
  .optional(),
1105
1136
  vat_number: zod_1.z.string().max(20).optional(),
1106
1137
  vat_number_prefix: zod_1.z.string().max(10).optional(),
@@ -1119,6 +1150,7 @@ const ImportInvoiceInvoiceBodySchema = zod_1.z.looseObject({
1119
1150
  net_term_days: zod_1.z.number().int().optional(),
1120
1151
  has_advance_charges: zod_1.z.boolean().default(false).optional(),
1121
1152
  use_for_proration: zod_1.z.boolean().default(false).optional(),
1153
+ paid_at: zod_1.z.number().int().optional(),
1122
1154
  credit_note: ImportInvoiceInvoiceCreditNoteSchema.optional(),
1123
1155
  billing_address: ImportInvoiceInvoiceBillingAddressSchema.optional(),
1124
1156
  shipping_address: ImportInvoiceInvoiceShippingAddressSchema.optional(),
@@ -158,8 +158,8 @@ const ListItemChannelSchema = zod_1.z.object({
158
158
  not_in: zod_1.z.enum(['web', 'app_store', 'play_store']).optional(),
159
159
  });
160
160
  const ListItemBusinessEntityIdSchema = zod_1.z.object({
161
- is: zod_1.z.string().min(1).optional(),
162
161
  is_present: zod_1.z.enum(['true', 'false']).optional(),
162
+ is: zod_1.z.string().min(1).optional(),
163
163
  });
164
164
  const ListItemIncludeSiteLevelResourcesSchema = zod_1.z.object({
165
165
  is: zod_1.z.enum(['true', 'false']).optional(),
@@ -33,8 +33,8 @@ const ListItemFamilyUpdatedAtSchema = zod_1.z.object({
33
33
  between: zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
34
34
  });
35
35
  const ListItemFamilyBusinessEntityIdSchema = zod_1.z.object({
36
- is: zod_1.z.string().min(1).optional(),
37
36
  is_present: zod_1.z.enum(['true', 'false']).optional(),
37
+ is: zod_1.z.string().min(1).optional(),
38
38
  });
39
39
  const ListItemFamilyIncludeSiteLevelResourcesSchema = zod_1.z.object({
40
40
  is: zod_1.z.enum(['true', 'false']).optional(),