chargebee 3.30.0 → 3.31.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.
- package/CHANGELOG.md +74 -0
- package/cjs/environment.js +1 -1
- package/cjs/resources/api_endpoints.js +84 -2
- package/cjs/resources/webhook/eventType.js +4 -0
- package/cjs/schema/coupon.schema.js +1 -1
- package/cjs/schema/credit_note.schema.js +7 -2
- package/cjs/schema/credit_unit.schema.js +2 -2
- package/cjs/schema/entitlement.schema.js +4 -4
- package/cjs/schema/entitlement_override.schema.js +1 -1
- package/cjs/schema/estimate.schema.js +2 -2
- package/cjs/schema/event.schema.js +16 -0
- package/cjs/schema/export.schema.js +35 -3
- package/cjs/schema/hosted_page.schema.js +1 -0
- package/cjs/schema/index.js +1 -0
- package/cjs/schema/invoice.schema.js +11 -4
- package/cjs/schema/ledger_operation.schema.js +2 -2
- package/cjs/schema/meter.schema.js +1 -1
- package/cjs/schema/omnichannel_subscription.schema.js +6 -2
- package/cjs/schema/payment_intent.schema.js +4 -0
- package/cjs/schema/payment_source.schema.js +9 -2
- package/cjs/schema/pricing_page_session.schema.js +1 -1
- package/cjs/schema/quote.schema.js +60 -0
- package/cjs/schema/quote_entitlement.schema.js +25 -0
- package/cjs/schema/ramp.schema.js +2 -2
- package/cjs/schema/subscription.schema.js +2 -2
- package/cjs/schema/webhook_endpoint.schema.js +8 -0
- package/cjs/util.js +12 -2
- package/esm/environment.js +1 -1
- package/esm/resources/api_endpoints.js +84 -2
- package/esm/resources/webhook/eventType.js +4 -0
- package/esm/schema/coupon.schema.js +1 -1
- package/esm/schema/credit_note.schema.js +6 -1
- package/esm/schema/credit_unit.schema.js +2 -2
- package/esm/schema/entitlement.schema.js +4 -4
- package/esm/schema/entitlement_override.schema.js +1 -1
- package/esm/schema/estimate.schema.js +2 -2
- package/esm/schema/event.schema.js +16 -0
- package/esm/schema/export.schema.js +34 -2
- package/esm/schema/hosted_page.schema.js +1 -0
- package/esm/schema/index.js +1 -0
- package/esm/schema/invoice.schema.js +10 -3
- package/esm/schema/ledger_operation.schema.js +2 -2
- package/esm/schema/meter.schema.js +1 -1
- package/esm/schema/omnichannel_subscription.schema.js +6 -2
- package/esm/schema/payment_intent.schema.js +4 -0
- package/esm/schema/payment_source.schema.js +8 -1
- package/esm/schema/pricing_page_session.schema.js +1 -1
- package/esm/schema/quote.schema.js +60 -0
- package/esm/schema/quote_entitlement.schema.js +22 -0
- package/esm/schema/ramp.schema.js +2 -2
- package/esm/schema/subscription.schema.js +2 -2
- package/esm/schema/webhook_endpoint.schema.js +8 -0
- package/esm/util.js +12 -2
- package/package.json +2 -2
- package/types/core.d.ts +78 -3
- package/types/index.d.ts +6 -0
- package/types/resources/Content.d.ts +4 -0
- package/types/resources/CreditNote.d.ts +14 -0
- package/types/resources/Event.d.ts +4 -0
- package/types/resources/Export.d.ts +20 -0
- package/types/resources/GatewayPaymentMethodToken.d.ts +15 -0
- package/types/resources/HostedPage.d.ts +1 -0
- package/types/resources/Invoice.d.ts +17 -1
- package/types/resources/OmnichannelSubscriptionItemMetric.d.ts +18 -0
- package/types/resources/PaymentIntent.d.ts +14 -11
- package/types/resources/PaymentSource.d.ts +17 -0
- package/types/resources/PricingPageSession.d.ts +1 -1
- package/types/resources/Quote.d.ts +45 -0
- package/types/resources/QuoteEntitlement.d.ts +49 -0
- package/types/resources/QuotedRamp.d.ts +1 -0
- package/types/resources/VaultedPaymentMethod.d.ts +28 -0
- package/types/resources/WebhookEvent.d.ts +24 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,77 @@
|
|
|
1
|
+
### v3.31.0 (2026-08-19)
|
|
2
|
+
* * *
|
|
3
|
+
### New Resources:
|
|
4
|
+
- [`GatewayPaymentMethodToken`](https://apidocs.chargebee.com/docs/api/gateway_payment_method_tokens) has been added.
|
|
5
|
+
- [`OmnichannelSubscriptionItemMetric`](https://apidocs.chargebee.com/docs/api/omnichannel_subscription_item_metrics) has been added.
|
|
6
|
+
- [`QuoteEntitlement`](https://apidocs.chargebee.com/docs/api/quote_entitlements) has been added.
|
|
7
|
+
- [`VaultedPaymentMethod`](https://apidocs.chargebee.com/docs/api/vaulted_payment_methods) has been added.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### New Actions:
|
|
11
|
+
- [`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).
|
|
12
|
+
- [`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).
|
|
13
|
+
- [`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).
|
|
14
|
+
- [`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).
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### New Attributes:
|
|
18
|
+
- [`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).
|
|
19
|
+
- [`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).
|
|
20
|
+
- [`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).
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### New Parameters:
|
|
24
|
+
- [`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).
|
|
25
|
+
- [`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).
|
|
26
|
+
- [`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).
|
|
27
|
+
- [`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).
|
|
28
|
+
- [`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).
|
|
29
|
+
- [`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).
|
|
30
|
+
- [`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).
|
|
31
|
+
- [`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).
|
|
32
|
+
- [`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).
|
|
33
|
+
- [`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).
|
|
34
|
+
- [`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).
|
|
35
|
+
- [`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).
|
|
36
|
+
- [`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).
|
|
37
|
+
- [`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).
|
|
38
|
+
- [`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).
|
|
39
|
+
- [`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).
|
|
40
|
+
- [`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).
|
|
41
|
+
- [`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).
|
|
42
|
+
- [`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).
|
|
43
|
+
- [`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).
|
|
44
|
+
- [`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).
|
|
45
|
+
- [`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).
|
|
46
|
+
- [`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).
|
|
47
|
+
- [`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).
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### New Events:
|
|
51
|
+
- [`vault_token_updated`](https://apidocs.chargebee.com/docs/api/events/webhook/vault_token_updated) has been added.
|
|
52
|
+
- [`vault_token_deleted`](https://apidocs.chargebee.com/docs/api/events/webhook/vault_token_deleted) has been added.
|
|
53
|
+
- [`omnichannel_subscription_item_mrr_updated`](https://apidocs.chargebee.com/docs/api/events/webhook/omnichannel_subscription_item_mrr_updated) has been added.
|
|
54
|
+
- [`vault_token_created`](https://apidocs.chargebee.com/docs/api/events/webhook/vault_token_created) has been added.
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### New Enums:
|
|
58
|
+
- `consumption_based` has been added as a new value enum `CreditOptionForCurrentTermCharges`.
|
|
59
|
+
- `omnichannel_subscription_item_metric` has been added as a new value enum `EntityType`.
|
|
60
|
+
- `omnichannel_subscription_item_mrr_updated`, `vault_token_created`, `vault_token_updated`, and `vault_token_deleted` have been added as new values enum `EventType`.
|
|
61
|
+
- `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`.
|
|
62
|
+
- `void` and `write_off` have been added as new values enum `InvoiceAction`.
|
|
63
|
+
- `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).
|
|
64
|
+
- `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).
|
|
65
|
+
- `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).
|
|
66
|
+
- `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).
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
### v3.30.1 (2026-08-11)
|
|
71
|
+
* * *
|
|
72
|
+
### Bug Fixes:
|
|
73
|
+
- Filter operators `in`, `not_in` and `between` are now sent as a single form field on POST requests, matching the behaviour on list requests. Filters on export operations, such as `subscription[updated_at][between]`, were index-encoded and therefore ignored by the API.
|
|
74
|
+
|
|
1
75
|
### v3.30.0 (2026-07-30)
|
|
2
76
|
* * *
|
|
3
77
|
### New Resources:
|
package/cjs/environment.js
CHANGED
|
@@ -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.
|
|
14
|
+
clientVersion: 'v3.31.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
|
-
|
|
14
|
+
is: zod_1.z
|
|
15
15
|
.enum(['plan', 'addon', 'charge', 'plan_price', 'addon_price'])
|
|
16
16
|
.optional(),
|
|
17
|
-
|
|
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(
|
|
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;
|
package/cjs/schema/index.js
CHANGED
|
@@ -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);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Generated Zod schemas: Invoice
|
|
3
|
-
// Actions: create, createForChargeItemsAndCharges, charge, chargeAddon, createForChargeItem, stopDunning, pauseDunning, resumeDunning, importInvoice, applyPayments, deleteLineItems, applyCredits, list, invoicesForCustomer, invoicesForSubscription, retrieve, pdf, listPaymentReferenceNumbers, addCharge, addAddonCharge, addChargeItem, close, collectPayment, recordPayment, recordTaxWithheld, removeTaxWithheld, refund, recordRefund, removePayment, removeCreditNote, voidInvoice, writeOff, delete, updateDetails, applyPaymentScheduleScheme
|
|
3
|
+
// Actions: create, createForChargeItemsAndCharges, charge, chargeAddon, createForChargeItem, stopDunning, pauseDunning, resumeDunning, importInvoice, applyPayments, deleteLineItems, applyCredits, list, invoicesForCustomer, invoicesForSubscription, retrieve, pdf, listPaymentReferenceNumbers, addCharge, addAddonCharge, addChargeItem, close, collectPayment, recordPayment, recordTaxWithheld, removeTaxWithheld, refund, recordRefund, removePayment, removeCreditNote, voidInvoice, writeOff, voidBeforeCapture, delete, updateDetails, applyPaymentScheduleScheme
|
|
4
4
|
// Do not edit manually – regenerate via sdk-generator
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ApplyPaymentScheduleSchemeInvoiceBodySchema = exports.UpdateDetailsInvoiceBodySchema = exports.DeleteInvoiceBodySchema = exports.WriteOffInvoiceBodySchema = exports.VoidInvoiceInvoiceBodySchema = exports.RemoveCreditNoteInvoiceBodySchema = exports.RemovePaymentInvoiceBodySchema = exports.RecordRefundInvoiceBodySchema = exports.RefundInvoiceBodySchema = exports.RemoveTaxWithheldInvoiceBodySchema = exports.RecordTaxWithheldInvoiceBodySchema = exports.RecordPaymentInvoiceBodySchema = exports.CollectPaymentInvoiceBodySchema = exports.CloseInvoiceBodySchema = exports.AddChargeItemInvoiceBodySchema = exports.AddAddonChargeInvoiceBodySchema = exports.AddChargeInvoiceBodySchema = exports.ListPaymentReferenceNumbersInvoiceBodySchema = exports.PdfInvoiceBodySchema = exports.RetrieveInvoiceBodySchema = exports.InvoicesForSubscriptionInvoiceBodySchema = exports.InvoicesForCustomerInvoiceBodySchema = exports.ListInvoiceBodySchema = exports.ApplyCreditsInvoiceBodySchema = exports.DeleteLineItemsInvoiceBodySchema = exports.ApplyPaymentsInvoiceBodySchema = exports.ImportInvoiceInvoiceBodySchema = exports.ResumeDunningInvoiceBodySchema = exports.PauseDunningInvoiceBodySchema = exports.StopDunningInvoiceBodySchema = exports.CreateForChargeItemInvoiceBodySchema = exports.ChargeAddonInvoiceBodySchema = exports.ChargeInvoiceBodySchema = exports.CreateForChargeItemsAndChargesInvoiceBodySchema = exports.CreateInvoiceBodySchema = void 0;
|
|
6
|
+
exports.ApplyPaymentScheduleSchemeInvoiceBodySchema = exports.UpdateDetailsInvoiceBodySchema = exports.DeleteInvoiceBodySchema = exports.VoidBeforeCaptureInvoiceBodySchema = exports.WriteOffInvoiceBodySchema = exports.VoidInvoiceInvoiceBodySchema = exports.RemoveCreditNoteInvoiceBodySchema = exports.RemovePaymentInvoiceBodySchema = exports.RecordRefundInvoiceBodySchema = exports.RefundInvoiceBodySchema = exports.RemoveTaxWithheldInvoiceBodySchema = exports.RecordTaxWithheldInvoiceBodySchema = exports.RecordPaymentInvoiceBodySchema = exports.CollectPaymentInvoiceBodySchema = exports.CloseInvoiceBodySchema = exports.AddChargeItemInvoiceBodySchema = exports.AddAddonChargeInvoiceBodySchema = exports.AddChargeInvoiceBodySchema = exports.ListPaymentReferenceNumbersInvoiceBodySchema = exports.PdfInvoiceBodySchema = exports.RetrieveInvoiceBodySchema = exports.InvoicesForSubscriptionInvoiceBodySchema = exports.InvoicesForCustomerInvoiceBodySchema = exports.ListInvoiceBodySchema = exports.ApplyCreditsInvoiceBodySchema = exports.DeleteLineItemsInvoiceBodySchema = exports.ApplyPaymentsInvoiceBodySchema = exports.ImportInvoiceInvoiceBodySchema = exports.ResumeDunningInvoiceBodySchema = exports.PauseDunningInvoiceBodySchema = exports.StopDunningInvoiceBodySchema = exports.CreateForChargeItemInvoiceBodySchema = exports.ChargeAddonInvoiceBodySchema = exports.ChargeInvoiceBodySchema = exports.CreateForChargeItemsAndChargesInvoiceBodySchema = exports.CreateInvoiceBodySchema = void 0;
|
|
7
7
|
const zod_1 = require("zod");
|
|
8
8
|
//Invoice.create
|
|
9
9
|
const CreateInvoiceShippingAddressSchema = zod_1.z.object({
|
|
@@ -1424,12 +1424,12 @@ const PdfInvoiceBodySchema = zod_1.z.looseObject({
|
|
|
1424
1424
|
exports.PdfInvoiceBodySchema = PdfInvoiceBodySchema;
|
|
1425
1425
|
//Invoice.listPaymentReferenceNumbers
|
|
1426
1426
|
const ListPaymentReferenceNumbersInvoiceIdSchema = zod_1.z.object({
|
|
1427
|
-
in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
1428
1427
|
is: zod_1.z.string().min(1).optional(),
|
|
1428
|
+
in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
1429
1429
|
});
|
|
1430
1430
|
const ListPaymentReferenceNumbersInvoiceNumberSchema = zod_1.z.object({
|
|
1431
|
-
in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
1432
1431
|
is: zod_1.z.string().min(1).optional(),
|
|
1432
|
+
in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
1433
1433
|
});
|
|
1434
1434
|
const ListPaymentReferenceNumbersInvoicePaymentReferenceNumberItemSchema = zod_1.z.object({
|
|
1435
1435
|
number: ListPaymentReferenceNumbersInvoiceNumberSchema.optional(),
|
|
@@ -1682,6 +1682,13 @@ const WriteOffInvoiceBodySchema = zod_1.z.looseObject({
|
|
|
1682
1682
|
comment: zod_1.z.string().max(300).optional(),
|
|
1683
1683
|
});
|
|
1684
1684
|
exports.WriteOffInvoiceBodySchema = WriteOffInvoiceBodySchema;
|
|
1685
|
+
//Invoice.voidBeforeCapture
|
|
1686
|
+
const VoidBeforeCaptureInvoiceBodySchema = zod_1.z.looseObject({
|
|
1687
|
+
comment: zod_1.z.string().max(300).optional(),
|
|
1688
|
+
void_reason_code: zod_1.z.string().max(100).optional(),
|
|
1689
|
+
invoice_action: zod_1.z.enum(['void', 'write_off']).optional(),
|
|
1690
|
+
});
|
|
1691
|
+
exports.VoidBeforeCaptureInvoiceBodySchema = VoidBeforeCaptureInvoiceBodySchema;
|
|
1685
1692
|
//Invoice.delete
|
|
1686
1693
|
const DeleteInvoiceBodySchema = zod_1.z.looseObject({
|
|
1687
1694
|
comment: zod_1.z.string().max(300).optional(),
|
|
@@ -19,7 +19,7 @@ const ListLedgerOperationsLedgerOperationCreatedAtSchema = zod_1.z.object({
|
|
|
19
19
|
between: zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
|
|
20
20
|
});
|
|
21
21
|
const ListLedgerOperationsLedgerOperationTypeSchema = zod_1.z.object({
|
|
22
|
-
|
|
22
|
+
is: zod_1.z
|
|
23
23
|
.enum([
|
|
24
24
|
'allocation',
|
|
25
25
|
'capture',
|
|
@@ -32,7 +32,7 @@ const ListLedgerOperationsLedgerOperationTypeSchema = zod_1.z.object({
|
|
|
32
32
|
'adjustment',
|
|
33
33
|
])
|
|
34
34
|
.optional(),
|
|
35
|
-
|
|
35
|
+
in: zod_1.z
|
|
36
36
|
.enum([
|
|
37
37
|
'allocation',
|
|
38
38
|
'capture',
|
|
@@ -7,8 +7,8 @@ exports.ListMeterBodySchema = void 0;
|
|
|
7
7
|
const zod_1 = require("zod");
|
|
8
8
|
//Meter.list
|
|
9
9
|
const ListMeterNameSchema = zod_1.z.object({
|
|
10
|
-
starts_with: zod_1.z.string().min(1).optional(),
|
|
11
10
|
is: zod_1.z.string().min(1).optional(),
|
|
11
|
+
starts_with: zod_1.z.string().min(1).optional(),
|
|
12
12
|
});
|
|
13
13
|
const ListMeterSortBySchema = zod_1.z.looseObject({
|
|
14
14
|
asc: zod_1.z.enum(['id', 'name', 'created_at', 'updated_at']).optional(),
|
|
@@ -34,12 +34,16 @@ const ListOmnichannelSubscriptionIdAtSourceSchema = zod_1.z.object({
|
|
|
34
34
|
not_in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
35
35
|
});
|
|
36
36
|
const ListOmnichannelSubscriptionUpdatedAtSchema = zod_1.z.object({
|
|
37
|
-
before: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
38
37
|
after: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
38
|
+
on: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
39
|
+
before: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
40
|
+
between: zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
|
|
39
41
|
});
|
|
40
42
|
const ListOmnichannelSubscriptionPurchasedAtSchema = zod_1.z.object({
|
|
41
|
-
before: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
42
43
|
after: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
44
|
+
on: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
45
|
+
before: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
46
|
+
between: zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
|
|
43
47
|
});
|
|
44
48
|
const ListOmnichannelSubscriptionSortBySchema = zod_1.z.looseObject({
|
|
45
49
|
asc: zod_1.z.enum(['created_at', 'updated_at']).optional(),
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.UpdatePaymentIntentBodySchema = exports.CreatePaymentIntentBodySchema = void 0;
|
|
7
7
|
const zod_1 = require("zod");
|
|
8
8
|
//PaymentIntent.create
|
|
9
|
+
const CreatePaymentIntentPaymentMethodOptionsSchema = zod_1.z.looseObject({});
|
|
9
10
|
const CreatePaymentIntentBodySchema = zod_1.z.looseObject({
|
|
10
11
|
business_entity_id: zod_1.z.string().max(50).optional(),
|
|
11
12
|
customer_id: zod_1.z.string().max(50).optional(),
|
|
@@ -72,9 +73,11 @@ const CreatePaymentIntentBodySchema = zod_1.z.looseObject({
|
|
|
72
73
|
.optional(),
|
|
73
74
|
success_url: zod_1.z.string().max(250).optional(),
|
|
74
75
|
failure_url: zod_1.z.string().max(250).optional(),
|
|
76
|
+
payment_method_options: CreatePaymentIntentPaymentMethodOptionsSchema.optional(),
|
|
75
77
|
});
|
|
76
78
|
exports.CreatePaymentIntentBodySchema = CreatePaymentIntentBodySchema;
|
|
77
79
|
//PaymentIntent.update
|
|
80
|
+
const UpdatePaymentIntentPaymentMethodOptionsSchema = zod_1.z.looseObject({});
|
|
78
81
|
const UpdatePaymentIntentBodySchema = zod_1.z.looseObject({
|
|
79
82
|
amount: zod_1.z.number().int().min(0).optional(),
|
|
80
83
|
currency_code: zod_1.z.string().max(3).optional(),
|
|
@@ -137,5 +140,6 @@ const UpdatePaymentIntentBodySchema = zod_1.z.looseObject({
|
|
|
137
140
|
.optional(),
|
|
138
141
|
success_url: zod_1.z.string().max(250).optional(),
|
|
139
142
|
failure_url: zod_1.z.string().max(250).optional(),
|
|
143
|
+
payment_method_options: UpdatePaymentIntentPaymentMethodOptionsSchema.optional(),
|
|
140
144
|
});
|
|
141
145
|
exports.UpdatePaymentIntentBodySchema = UpdatePaymentIntentBodySchema;
|