chargebee 3.33.0 → 3.35.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 +362 -0
- package/cjs/environment.js +1 -1
- package/cjs/resources/api_endpoints.js +496 -3
- package/cjs/resources/webhook/eventType.js +36 -0
- package/cjs/schema/business_entity.schema.js +28 -2
- package/cjs/schema/business_rule.schema.js +54 -0
- package/cjs/schema/business_ruleset.schema.js +68 -0
- package/cjs/schema/card.schema.js +3 -1
- package/cjs/schema/collections_payment_promise.schema.js +43 -0
- package/cjs/schema/comment.schema.js +2 -0
- package/cjs/schema/coupon.schema.js +1 -1
- package/cjs/schema/credit_note.schema.js +11 -4
- package/cjs/schema/credit_unit.schema.js +2 -2
- package/cjs/schema/customer.schema.js +81 -10
- package/cjs/schema/dispute.schema.js +104 -0
- package/cjs/schema/einvoice.schema.js +37 -0
- package/cjs/schema/email_log.schema.js +28 -0
- package/cjs/schema/entitlement.schema.js +4 -4
- package/cjs/schema/estimate.schema.js +39 -10
- package/cjs/schema/event.schema.js +156 -0
- package/cjs/schema/export.schema.js +75 -19
- package/cjs/schema/feature.schema.js +2 -2
- package/cjs/schema/gift.schema.js +26 -0
- package/cjs/schema/hosted_page.schema.js +26 -6
- package/cjs/schema/index.js +9 -0
- package/cjs/schema/invoice.schema.js +98 -14
- package/cjs/schema/item.schema.js +1 -1
- package/cjs/schema/item_family.schema.js +1 -1
- package/cjs/schema/item_price.schema.js +1 -1
- package/cjs/schema/ledger_account_balance.schema.js +11 -2
- package/cjs/schema/ledger_operation.schema.js +6 -2
- package/cjs/schema/meter.schema.js +1 -1
- package/cjs/schema/metered_feature.schema.js +1 -1
- package/cjs/schema/omnichannel_one_time_order.schema.js +12 -4
- package/cjs/schema/omnichannel_subscription.schema.js +16 -8
- package/cjs/schema/payment_intent.schema.js +27 -0
- package/cjs/schema/payment_schedule.schema.js +36 -0
- package/cjs/schema/payment_schedule_scheme.schema.js +23 -2
- package/cjs/schema/payment_source.schema.js +118 -1
- package/cjs/schema/price_ramp.schema.js +88 -0
- package/cjs/schema/price_variant.schema.js +1 -1
- package/cjs/schema/pricing_page_session.schema.js +1 -0
- package/cjs/schema/promotional_grant.schema.js +2 -0
- package/cjs/schema/purchase.schema.js +20 -1
- package/cjs/schema/quote.schema.js +6 -6
- package/cjs/schema/ramp.schema.js +18 -6
- package/cjs/schema/retry_segment.schema.js +12 -0
- package/cjs/schema/subscription.schema.js +179 -16
- package/cjs/schema/transaction.schema.js +60 -2
- package/cjs/schema/usage.schema.js +5 -0
- package/cjs/schema/usage_summary.schema.js +1 -0
- package/cjs/schema/webhook_endpoint.schema.js +72 -0
- package/esm/environment.js +1 -1
- package/esm/resources/api_endpoints.js +496 -3
- package/esm/resources/webhook/eventType.js +36 -0
- package/esm/schema/business_entity.schema.js +27 -1
- package/esm/schema/business_rule.schema.js +51 -0
- package/esm/schema/business_ruleset.schema.js +65 -0
- package/esm/schema/card.schema.js +3 -1
- package/esm/schema/collections_payment_promise.schema.js +40 -0
- package/esm/schema/comment.schema.js +2 -0
- package/esm/schema/coupon.schema.js +1 -1
- package/esm/schema/credit_note.schema.js +11 -4
- package/esm/schema/credit_unit.schema.js +2 -2
- package/esm/schema/customer.schema.js +81 -10
- package/esm/schema/dispute.schema.js +101 -0
- package/esm/schema/einvoice.schema.js +34 -0
- package/esm/schema/email_log.schema.js +25 -0
- package/esm/schema/entitlement.schema.js +4 -4
- package/esm/schema/estimate.schema.js +39 -10
- package/esm/schema/event.schema.js +156 -0
- package/esm/schema/export.schema.js +75 -19
- package/esm/schema/feature.schema.js +2 -2
- package/esm/schema/gift.schema.js +26 -0
- package/esm/schema/hosted_page.schema.js +26 -6
- package/esm/schema/index.js +9 -0
- package/esm/schema/invoice.schema.js +97 -13
- package/esm/schema/item.schema.js +1 -1
- package/esm/schema/item_family.schema.js +1 -1
- package/esm/schema/item_price.schema.js +1 -1
- package/esm/schema/ledger_account_balance.schema.js +10 -1
- package/esm/schema/ledger_operation.schema.js +6 -2
- package/esm/schema/meter.schema.js +1 -1
- package/esm/schema/metered_feature.schema.js +1 -1
- package/esm/schema/omnichannel_one_time_order.schema.js +12 -4
- package/esm/schema/omnichannel_subscription.schema.js +16 -8
- package/esm/schema/payment_intent.schema.js +27 -0
- package/esm/schema/payment_schedule.schema.js +33 -0
- package/esm/schema/payment_schedule_scheme.schema.js +22 -1
- package/esm/schema/payment_source.schema.js +118 -1
- package/esm/schema/price_ramp.schema.js +85 -0
- package/esm/schema/price_variant.schema.js +1 -1
- package/esm/schema/pricing_page_session.schema.js +1 -0
- package/esm/schema/promotional_grant.schema.js +2 -0
- package/esm/schema/purchase.schema.js +20 -1
- package/esm/schema/quote.schema.js +6 -6
- package/esm/schema/ramp.schema.js +18 -6
- package/esm/schema/retry_segment.schema.js +9 -0
- package/esm/schema/subscription.schema.js +179 -16
- package/esm/schema/transaction.schema.js +60 -2
- package/esm/schema/usage.schema.js +5 -0
- package/esm/schema/usage_summary.schema.js +1 -0
- package/esm/schema/webhook_endpoint.schema.js +72 -0
- package/package.json +1 -1
- package/types/core.d.ts +135 -72
- package/types/index.d.ts +36 -0
- package/types/resources/AppliedRule.d.ts +14 -0
- package/types/resources/ApplyRule.d.ts +28 -0
- package/types/resources/BusinessEntity.d.ts +52 -0
- package/types/resources/BusinessRule.d.ts +161 -0
- package/types/resources/BusinessRuleset.d.ts +165 -0
- package/types/resources/BusinessRulesetRule.d.ts +9 -0
- package/types/resources/Card.d.ts +1 -1
- package/types/resources/Citation.d.ts +13 -0
- package/types/resources/CollectionsDispute.d.ts +24 -0
- package/types/resources/CollectionsPaymentPromise.d.ts +93 -0
- package/types/resources/CollectionsReminderSequence.d.ts +35 -0
- package/types/resources/Comment.d.ts +2 -1
- package/types/resources/Content.d.ts +26 -0
- package/types/resources/CreditNote.d.ts +13 -0
- package/types/resources/CustomData.d.ts +14 -0
- package/types/resources/CustomDataSchema.d.ts +15 -0
- package/types/resources/Customer.d.ts +42 -5
- package/types/resources/Dispute.d.ts +65 -0
- package/types/resources/DraftEstimate.d.ts +13 -0
- package/types/resources/DraftRequest.d.ts +45 -0
- package/types/resources/Einvoice.d.ts +64 -1
- package/types/resources/EmailAttachment.d.ts +16 -0
- package/types/resources/EmailConversation.d.ts +18 -0
- package/types/resources/EmailLog.d.ts +46 -0
- package/types/resources/EmailMessage.d.ts +40 -0
- package/types/resources/Estimate.d.ts +31 -2
- package/types/resources/Event.d.ts +37 -0
- package/types/resources/Execution.d.ts +12 -0
- package/types/resources/GatewayPaymentMethodToken.d.ts +2 -2
- package/types/resources/Gift.d.ts +28 -2
- package/types/resources/GrantBlock.d.ts +26 -7
- package/types/resources/GroupByAttribute.d.ts +15 -0
- package/types/resources/GroupByRecommendation.d.ts +10 -0
- package/types/resources/HostedPage.d.ts +11 -0
- package/types/resources/Invoice.d.ts +57 -4
- package/types/resources/ItemPrice.d.ts +1 -0
- package/types/resources/LedgerAccountBalance.d.ts +19 -0
- package/types/resources/LedgerEntry.d.ts +4 -4
- package/types/resources/LedgerOperation.d.ts +15 -8
- package/types/resources/Meter.d.ts +1 -0
- package/types/resources/MeteredFeature.d.ts +1 -0
- package/types/resources/OmnichannelOneTimeOrder.d.ts +5 -1
- package/types/resources/OmnichannelSubscription.d.ts +6 -1
- package/types/resources/OmnichannelSubscriptionItem.d.ts +9 -2
- package/types/resources/PaymentIntent.d.ts +72 -5
- package/types/resources/PaymentSchedule.d.ts +39 -2
- package/types/resources/PaymentScheduleEstimate.d.ts +2 -1
- package/types/resources/PaymentScheduleScheme.d.ts +17 -1
- package/types/resources/PaymentSource.d.ts +50 -2
- package/types/resources/PreferenceVariant.d.ts +10 -0
- package/types/resources/PriceRamp.d.ts +113 -0
- package/types/resources/PricingPageSession.d.ts +1 -0
- package/types/resources/PrivateNote.d.ts +18 -0
- package/types/resources/PromotionalGrant.d.ts +2 -0
- package/types/resources/Purchase.d.ts +20 -1
- package/types/resources/QuotedSubscription.d.ts +1 -0
- package/types/resources/Ramp.d.ts +18 -0
- package/types/resources/RampInterval.d.ts +12 -0
- package/types/resources/RecordedPurchase.d.ts +5 -1
- package/types/resources/RetrySegment.d.ts +36 -0
- package/types/resources/Subscription.d.ts +110 -11
- package/types/resources/ThirdPartyPaymentMethod.d.ts +1 -0
- package/types/resources/Transaction.d.ts +9 -0
- package/types/resources/Usage.d.ts +6 -0
- package/types/resources/UsageSummary.d.ts +2 -0
- package/types/resources/WebhookEvent.d.ts +214 -0
|
@@ -384,10 +384,10 @@ const RevenueRecognitionExportAutoCollectionSchema = z.object({
|
|
|
384
384
|
not_in: z.enum(['on', 'off']).optional(),
|
|
385
385
|
});
|
|
386
386
|
const RevenueRecognitionExportTaxabilitySchema = z.object({
|
|
387
|
-
is: z.enum(['taxable', 'exempt']).optional(),
|
|
388
|
-
is_not: z.enum(['taxable', 'exempt']).optional(),
|
|
389
|
-
in: z.enum(['taxable', 'exempt']).optional(),
|
|
390
|
-
not_in: z.enum(['taxable', 'exempt']).optional(),
|
|
387
|
+
is: z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
|
|
388
|
+
is_not: z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
|
|
389
|
+
in: z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
|
|
390
|
+
not_in: z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
|
|
391
391
|
});
|
|
392
392
|
const RevenueRecognitionExportCustomerItemSchema = z.object({
|
|
393
393
|
id: RevenueRecognitionExportIdSchema.optional(),
|
|
@@ -831,10 +831,10 @@ const DeferredRevenueExportAutoCollectionSchema = z.object({
|
|
|
831
831
|
not_in: z.enum(['on', 'off']).optional(),
|
|
832
832
|
});
|
|
833
833
|
const DeferredRevenueExportTaxabilitySchema = z.object({
|
|
834
|
-
is: z.enum(['taxable', 'exempt']).optional(),
|
|
835
|
-
is_not: z.enum(['taxable', 'exempt']).optional(),
|
|
836
|
-
in: z.enum(['taxable', 'exempt']).optional(),
|
|
837
|
-
not_in: z.enum(['taxable', 'exempt']).optional(),
|
|
834
|
+
is: z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
|
|
835
|
+
is_not: z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
|
|
836
|
+
in: z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
|
|
837
|
+
not_in: z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
|
|
838
838
|
});
|
|
839
839
|
const DeferredRevenueExportCustomerItemSchema = z.object({
|
|
840
840
|
id: DeferredRevenueExportIdSchema.optional(),
|
|
@@ -1099,8 +1099,8 @@ const CouponsExportCurrencyCodeSchema = z.object({
|
|
|
1099
1099
|
not_in: z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
1100
1100
|
});
|
|
1101
1101
|
const CouponsExportApplicableItemPriceIdsSchema = z.object({
|
|
1102
|
-
is: z.string().min(1).optional(),
|
|
1103
1102
|
in: z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
1103
|
+
is: z.string().min(1).optional(),
|
|
1104
1104
|
});
|
|
1105
1105
|
const CouponsExportIdSchema = z.object({
|
|
1106
1106
|
is: z.string().min(1).optional(),
|
|
@@ -1250,10 +1250,10 @@ const CustomersExportAutoCollectionSchema = z.object({
|
|
|
1250
1250
|
not_in: z.enum(['on', 'off']).optional(),
|
|
1251
1251
|
});
|
|
1252
1252
|
const CustomersExportTaxabilitySchema = z.object({
|
|
1253
|
-
is: z.enum(['taxable', 'exempt']).optional(),
|
|
1254
|
-
is_not: z.enum(['taxable', 'exempt']).optional(),
|
|
1255
|
-
in: z.enum(['taxable', 'exempt']).optional(),
|
|
1256
|
-
not_in: z.enum(['taxable', 'exempt']).optional(),
|
|
1253
|
+
is: z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
|
|
1254
|
+
is_not: z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
|
|
1255
|
+
in: z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
|
|
1256
|
+
not_in: z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
|
|
1257
1257
|
});
|
|
1258
1258
|
const CustomersExportCreatedAtSchema = z.object({
|
|
1259
1259
|
after: z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
@@ -2136,6 +2136,19 @@ const TransactionsExportPaymentMethodSchema = z.object({
|
|
|
2136
2136
|
'touch_n_go',
|
|
2137
2137
|
'tamara',
|
|
2138
2138
|
'qpay',
|
|
2139
|
+
'ovo',
|
|
2140
|
+
'momo',
|
|
2141
|
+
'mercado_pago',
|
|
2142
|
+
'nequi',
|
|
2143
|
+
'nupay',
|
|
2144
|
+
'picpay',
|
|
2145
|
+
'thai_qr',
|
|
2146
|
+
'blik',
|
|
2147
|
+
'fpx',
|
|
2148
|
+
'wero',
|
|
2149
|
+
'p24',
|
|
2150
|
+
'affirm_pay',
|
|
2151
|
+
'rakuten_pay',
|
|
2139
2152
|
])
|
|
2140
2153
|
.optional(),
|
|
2141
2154
|
is_not: z
|
|
@@ -2204,6 +2217,19 @@ const TransactionsExportPaymentMethodSchema = z.object({
|
|
|
2204
2217
|
'touch_n_go',
|
|
2205
2218
|
'tamara',
|
|
2206
2219
|
'qpay',
|
|
2220
|
+
'ovo',
|
|
2221
|
+
'momo',
|
|
2222
|
+
'mercado_pago',
|
|
2223
|
+
'nequi',
|
|
2224
|
+
'nupay',
|
|
2225
|
+
'picpay',
|
|
2226
|
+
'thai_qr',
|
|
2227
|
+
'blik',
|
|
2228
|
+
'fpx',
|
|
2229
|
+
'wero',
|
|
2230
|
+
'p24',
|
|
2231
|
+
'affirm_pay',
|
|
2232
|
+
'rakuten_pay',
|
|
2207
2233
|
])
|
|
2208
2234
|
.optional(),
|
|
2209
2235
|
in: z
|
|
@@ -2272,6 +2298,19 @@ const TransactionsExportPaymentMethodSchema = z.object({
|
|
|
2272
2298
|
'touch_n_go',
|
|
2273
2299
|
'tamara',
|
|
2274
2300
|
'qpay',
|
|
2301
|
+
'ovo',
|
|
2302
|
+
'momo',
|
|
2303
|
+
'mercado_pago',
|
|
2304
|
+
'nequi',
|
|
2305
|
+
'nupay',
|
|
2306
|
+
'picpay',
|
|
2307
|
+
'thai_qr',
|
|
2308
|
+
'blik',
|
|
2309
|
+
'fpx',
|
|
2310
|
+
'wero',
|
|
2311
|
+
'p24',
|
|
2312
|
+
'affirm_pay',
|
|
2313
|
+
'rakuten_pay',
|
|
2275
2314
|
])
|
|
2276
2315
|
.optional(),
|
|
2277
2316
|
not_in: z
|
|
@@ -2340,6 +2379,19 @@ const TransactionsExportPaymentMethodSchema = z.object({
|
|
|
2340
2379
|
'touch_n_go',
|
|
2341
2380
|
'tamara',
|
|
2342
2381
|
'qpay',
|
|
2382
|
+
'ovo',
|
|
2383
|
+
'momo',
|
|
2384
|
+
'mercado_pago',
|
|
2385
|
+
'nequi',
|
|
2386
|
+
'nupay',
|
|
2387
|
+
'picpay',
|
|
2388
|
+
'thai_qr',
|
|
2389
|
+
'blik',
|
|
2390
|
+
'fpx',
|
|
2391
|
+
'wero',
|
|
2392
|
+
'p24',
|
|
2393
|
+
'affirm_pay',
|
|
2394
|
+
'rakuten_pay',
|
|
2343
2395
|
])
|
|
2344
2396
|
.optional(),
|
|
2345
2397
|
});
|
|
@@ -2406,6 +2458,7 @@ const TransactionsExportGatewaySchema = z.object({
|
|
|
2406
2458
|
'tempus',
|
|
2407
2459
|
'moyasar',
|
|
2408
2460
|
'payway',
|
|
2461
|
+
'payu',
|
|
2409
2462
|
'not_applicable',
|
|
2410
2463
|
])
|
|
2411
2464
|
.optional(),
|
|
@@ -2471,6 +2524,7 @@ const TransactionsExportGatewaySchema = z.object({
|
|
|
2471
2524
|
'tempus',
|
|
2472
2525
|
'moyasar',
|
|
2473
2526
|
'payway',
|
|
2527
|
+
'payu',
|
|
2474
2528
|
'not_applicable',
|
|
2475
2529
|
])
|
|
2476
2530
|
.optional(),
|
|
@@ -2536,6 +2590,7 @@ const TransactionsExportGatewaySchema = z.object({
|
|
|
2536
2590
|
'tempus',
|
|
2537
2591
|
'moyasar',
|
|
2538
2592
|
'payway',
|
|
2593
|
+
'payu',
|
|
2539
2594
|
'not_applicable',
|
|
2540
2595
|
])
|
|
2541
2596
|
.optional(),
|
|
@@ -2601,6 +2656,7 @@ const TransactionsExportGatewaySchema = z.object({
|
|
|
2601
2656
|
'tempus',
|
|
2602
2657
|
'moyasar',
|
|
2603
2658
|
'payway',
|
|
2659
|
+
'payu',
|
|
2604
2660
|
'not_applicable',
|
|
2605
2661
|
])
|
|
2606
2662
|
.optional(),
|
|
@@ -2943,8 +2999,8 @@ const OrdersExportBodySchema = z.looseObject({
|
|
|
2943
2999
|
export { OrdersExportBodySchema };
|
|
2944
3000
|
//Export.itemFamilies
|
|
2945
3001
|
const ItemFamiliesExportBusinessEntityIdSchema = z.object({
|
|
2946
|
-
is: z.string().min(1).optional(),
|
|
2947
3002
|
is_present: z.enum(['true', 'false']).optional(),
|
|
3003
|
+
is: z.string().min(1).optional(),
|
|
2948
3004
|
});
|
|
2949
3005
|
const ItemFamiliesExportIncludeSiteLevelResourcesSchema = z.object({
|
|
2950
3006
|
is: z.enum(['true', 'false']).optional(),
|
|
@@ -2982,8 +3038,8 @@ const ItemFamiliesExportBodySchema = z.looseObject({
|
|
|
2982
3038
|
export { ItemFamiliesExportBodySchema };
|
|
2983
3039
|
//Export.items
|
|
2984
3040
|
const ItemsExportBusinessEntityIdSchema = z.object({
|
|
2985
|
-
is: z.string().min(1).optional(),
|
|
2986
3041
|
is_present: z.enum(['true', 'false']).optional(),
|
|
3042
|
+
is: z.string().min(1).optional(),
|
|
2987
3043
|
});
|
|
2988
3044
|
const ItemsExportIncludeSiteLevelResourcesSchema = z.object({
|
|
2989
3045
|
is: z.enum(['true', 'false']).optional(),
|
|
@@ -3098,8 +3154,8 @@ const ItemPricesExportCurrencyCodeSchema = z.object({
|
|
|
3098
3154
|
not_in: z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
3099
3155
|
});
|
|
3100
3156
|
const ItemPricesExportBusinessEntityIdSchema = z.object({
|
|
3101
|
-
is: z.string().min(1).optional(),
|
|
3102
3157
|
is_present: z.enum(['true', 'false']).optional(),
|
|
3158
|
+
is: z.string().min(1).optional(),
|
|
3103
3159
|
});
|
|
3104
3160
|
const ItemPricesExportIncludeSiteLevelResourcesSchema = z.object({
|
|
3105
3161
|
is: z.enum(['true', 'false']).optional(),
|
|
@@ -3359,8 +3415,8 @@ const DifferentialPricesExportBodySchema = z.looseObject({
|
|
|
3359
3415
|
export { DifferentialPricesExportBodySchema };
|
|
3360
3416
|
//Export.priceVariants
|
|
3361
3417
|
const PriceVariantsExportBusinessEntityIdSchema = z.object({
|
|
3362
|
-
is: z.string().min(1).optional(),
|
|
3363
3418
|
is_present: z.enum(['true', 'false']).optional(),
|
|
3419
|
+
is: z.string().min(1).optional(),
|
|
3364
3420
|
});
|
|
3365
3421
|
const PriceVariantsExportIncludeSiteLevelResourcesSchema = z.object({
|
|
3366
3422
|
is: z.enum(['true', 'false']).optional(),
|
|
@@ -3414,12 +3470,12 @@ const PriceVariantsExportBodySchema = z.looseObject({
|
|
|
3414
3470
|
export { PriceVariantsExportBodySchema };
|
|
3415
3471
|
//Export.ramps
|
|
3416
3472
|
const RampsExportStatusSchema = z.object({
|
|
3417
|
-
is: z.enum(['scheduled', 'succeeded', 'failed', 'draft']).optional(),
|
|
3418
3473
|
in: z.enum(['scheduled', 'succeeded', 'failed', 'draft']).optional(),
|
|
3474
|
+
is: z.enum(['scheduled', 'succeeded', 'failed', 'draft']).optional(),
|
|
3419
3475
|
});
|
|
3420
3476
|
const RampsExportSubscriptionIdSchema = z.object({
|
|
3421
|
-
is: z.string().min(1).optional(),
|
|
3422
3477
|
in: z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
3478
|
+
is: z.string().min(1).optional(),
|
|
3423
3479
|
});
|
|
3424
3480
|
const RampsExportEffectiveFromSchema = z.object({
|
|
3425
3481
|
after: z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
@@ -44,7 +44,7 @@ const ListFeatureBodySchema = z.looseObject({
|
|
|
44
44
|
export { ListFeatureBodySchema };
|
|
45
45
|
//Feature.create
|
|
46
46
|
const CreateFeatureLevelsSchema = z.object({
|
|
47
|
-
name: z.array(z.string().max(
|
|
47
|
+
name: z.array(z.string().max(100).optional()).optional(),
|
|
48
48
|
value: z.array(z.string().max(50).optional()).optional(),
|
|
49
49
|
is_unlimited: z.array(z.boolean().optional()).optional(),
|
|
50
50
|
level: z.array(z.number().int().optional()).optional(),
|
|
@@ -60,7 +60,7 @@ const CreateFeatureBodySchema = z.looseObject({
|
|
|
60
60
|
export { CreateFeatureBodySchema };
|
|
61
61
|
//Feature.update
|
|
62
62
|
const UpdateFeatureLevelsSchema = z.object({
|
|
63
|
-
name: z.array(z.string().max(
|
|
63
|
+
name: z.array(z.string().max(100).optional()).optional(),
|
|
64
64
|
value: z.array(z.string().max(50).optional()).optional(),
|
|
65
65
|
is_unlimited: z.array(z.boolean().optional()).optional(),
|
|
66
66
|
level: z.array(z.number().int().optional()).optional(),
|
|
@@ -74,6 +74,19 @@ const CreateGiftPaymentIntentSchema = z.object({
|
|
|
74
74
|
'touch_n_go',
|
|
75
75
|
'tamara',
|
|
76
76
|
'qpay',
|
|
77
|
+
'ovo',
|
|
78
|
+
'momo',
|
|
79
|
+
'mercado_pago',
|
|
80
|
+
'nequi',
|
|
81
|
+
'nupay',
|
|
82
|
+
'picpay',
|
|
83
|
+
'thai_qr',
|
|
84
|
+
'blik',
|
|
85
|
+
'fpx',
|
|
86
|
+
'wero',
|
|
87
|
+
'p24',
|
|
88
|
+
'affirm_pay',
|
|
89
|
+
'rakuten_pay',
|
|
77
90
|
])
|
|
78
91
|
.optional(),
|
|
79
92
|
reference_id: z.string().max(65000).optional(),
|
|
@@ -195,6 +208,19 @@ const CreateForItemsGiftPaymentIntentSchema = z.object({
|
|
|
195
208
|
'touch_n_go',
|
|
196
209
|
'tamara',
|
|
197
210
|
'qpay',
|
|
211
|
+
'ovo',
|
|
212
|
+
'momo',
|
|
213
|
+
'mercado_pago',
|
|
214
|
+
'nequi',
|
|
215
|
+
'nupay',
|
|
216
|
+
'picpay',
|
|
217
|
+
'thai_qr',
|
|
218
|
+
'blik',
|
|
219
|
+
'fpx',
|
|
220
|
+
'wero',
|
|
221
|
+
'p24',
|
|
222
|
+
'affirm_pay',
|
|
223
|
+
'rakuten_pay',
|
|
198
224
|
])
|
|
199
225
|
.optional(),
|
|
200
226
|
reference_id: z.string().max(65000).optional(),
|
|
@@ -49,7 +49,7 @@ const CheckoutNewHostedPageCustomerSchema = z.looseObject({
|
|
|
49
49
|
company: z.string().max(250).optional(),
|
|
50
50
|
phone: z.string().max(50).optional(),
|
|
51
51
|
locale: z.string().max(50).optional(),
|
|
52
|
-
taxability: z.enum(['taxable', 'exempt']).optional(),
|
|
52
|
+
taxability: z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
|
|
53
53
|
vat_number: z.string().max(20).optional(),
|
|
54
54
|
vat_number_prefix: z.string().max(10).optional(),
|
|
55
55
|
consolidated_invoicing: z.boolean().optional(),
|
|
@@ -116,6 +116,7 @@ const CheckoutNewHostedPageCardSchema = z.object({
|
|
|
116
116
|
'tempus',
|
|
117
117
|
'moyasar',
|
|
118
118
|
'payway',
|
|
119
|
+
'payu',
|
|
119
120
|
])
|
|
120
121
|
.optional(),
|
|
121
122
|
gateway_account_id: z.string().max(50).optional(),
|
|
@@ -224,7 +225,7 @@ const CheckoutOneTimeHostedPageCustomerSchema = z.looseObject({
|
|
|
224
225
|
company: z.string().max(250).optional(),
|
|
225
226
|
phone: z.string().max(50).optional(),
|
|
226
227
|
locale: z.string().max(50).optional(),
|
|
227
|
-
taxability: z.enum(['taxable', 'exempt']).optional(),
|
|
228
|
+
taxability: z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
|
|
228
229
|
vat_number: z.string().max(20).optional(),
|
|
229
230
|
vat_number_prefix: z.string().max(10).optional(),
|
|
230
231
|
consolidated_invoicing: z.boolean().optional(),
|
|
@@ -294,6 +295,7 @@ const CheckoutOneTimeHostedPageCardSchema = z.object({
|
|
|
294
295
|
'tempus',
|
|
295
296
|
'moyasar',
|
|
296
297
|
'payway',
|
|
298
|
+
'payu',
|
|
297
299
|
])
|
|
298
300
|
.optional(),
|
|
299
301
|
gateway_account_id: z.string().max(50).optional(),
|
|
@@ -388,7 +390,7 @@ const CheckoutOneTimeForItemsHostedPageCustomerSchema = z.looseObject({
|
|
|
388
390
|
company: z.string().max(250).optional(),
|
|
389
391
|
phone: z.string().max(50).optional(),
|
|
390
392
|
locale: z.string().max(50).optional(),
|
|
391
|
-
taxability: z.enum(['taxable', 'exempt']).optional(),
|
|
393
|
+
taxability: z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
|
|
392
394
|
vat_number: z.string().max(20).optional(),
|
|
393
395
|
vat_number_prefix: z.string().max(10).optional(),
|
|
394
396
|
einvoicing_method: z.enum(['automatic', 'manual', 'site_default']).optional(),
|
|
@@ -462,6 +464,7 @@ const CheckoutOneTimeForItemsHostedPageCardSchema = z.object({
|
|
|
462
464
|
'tempus',
|
|
463
465
|
'moyasar',
|
|
464
466
|
'payway',
|
|
467
|
+
'payu',
|
|
465
468
|
])
|
|
466
469
|
.optional(),
|
|
467
470
|
gateway_account_id: z.string().max(50).optional(),
|
|
@@ -559,6 +562,7 @@ const CheckoutOneTimeForItemsHostedPageEntityIdentifiersSchema = z.object({
|
|
|
559
562
|
});
|
|
560
563
|
const CheckoutOneTimeForItemsHostedPageBodySchema = z.looseObject({
|
|
561
564
|
business_entity_id: z.string().max(50).optional(),
|
|
565
|
+
brand_id: z.string().max(50).optional(),
|
|
562
566
|
layout: z.enum(['in_app', 'full_page']).optional(),
|
|
563
567
|
invoice_note: z.string().max(2000).optional(),
|
|
564
568
|
coupon: z.string().max(100).optional(),
|
|
@@ -621,7 +625,7 @@ const CheckoutNewForItemsHostedPageCustomerSchema = z.looseObject({
|
|
|
621
625
|
company: z.string().max(250).optional(),
|
|
622
626
|
phone: z.string().max(50).optional(),
|
|
623
627
|
locale: z.string().max(50).optional(),
|
|
624
|
-
taxability: z.enum(['taxable', 'exempt']).optional(),
|
|
628
|
+
taxability: z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
|
|
625
629
|
vat_number: z.string().max(20).optional(),
|
|
626
630
|
vat_number_prefix: z.string().max(10).optional(),
|
|
627
631
|
is_einvoice_enabled: z.boolean().optional(),
|
|
@@ -691,6 +695,7 @@ const CheckoutNewForItemsHostedPageCardSchema = z.object({
|
|
|
691
695
|
'tempus',
|
|
692
696
|
'moyasar',
|
|
693
697
|
'payway',
|
|
698
|
+
'payu',
|
|
694
699
|
])
|
|
695
700
|
.optional(),
|
|
696
701
|
gateway_account_id: z.string().max(50).optional(),
|
|
@@ -744,7 +749,7 @@ const CheckoutNewForItemsHostedPageSubscriptionItemsSchema = z.object({
|
|
|
744
749
|
billing_cycles: z.array(z.number().int().min(0).optional()).optional(),
|
|
745
750
|
trial_end: z.array(z.number().int().optional()).optional(),
|
|
746
751
|
service_period_days: z
|
|
747
|
-
.array(z.number().int().min(1).max(
|
|
752
|
+
.array(z.number().int().min(1).max(4000).optional())
|
|
748
753
|
.optional(),
|
|
749
754
|
charge_on_event: z
|
|
750
755
|
.array(z
|
|
@@ -803,6 +808,7 @@ const CheckoutNewForItemsHostedPageEntityIdentifiersSchema = z.object({
|
|
|
803
808
|
const CheckoutNewForItemsHostedPageBodySchema = z.looseObject({
|
|
804
809
|
layout: z.enum(['in_app', 'full_page']).optional(),
|
|
805
810
|
business_entity_id: z.string().max(50).optional(),
|
|
811
|
+
brand_id: z.string().max(50).optional(),
|
|
806
812
|
billing_cycles: z.number().int().min(0).optional(),
|
|
807
813
|
mandatory_items_to_remove: z.array(z.string().max(100).optional()).optional(),
|
|
808
814
|
terms_to_charge: z.number().int().min(1).optional(),
|
|
@@ -928,6 +934,7 @@ const CheckoutExistingHostedPageCardSchema = z.object({
|
|
|
928
934
|
'tempus',
|
|
929
935
|
'moyasar',
|
|
930
936
|
'payway',
|
|
937
|
+
'payu',
|
|
931
938
|
])
|
|
932
939
|
.optional(),
|
|
933
940
|
gateway_account_id: z.string().max(50).optional(),
|
|
@@ -1097,6 +1104,7 @@ const CheckoutExistingForItemsHostedPageCardSchema = z.object({
|
|
|
1097
1104
|
'tempus',
|
|
1098
1105
|
'moyasar',
|
|
1099
1106
|
'payway',
|
|
1107
|
+
'payu',
|
|
1100
1108
|
])
|
|
1101
1109
|
.optional(),
|
|
1102
1110
|
gateway_account_id: z.string().max(50).optional(),
|
|
@@ -1114,7 +1122,7 @@ const CheckoutExistingForItemsHostedPageSubscriptionItemsSchema = z.object({
|
|
|
1114
1122
|
billing_cycles: z.array(z.number().int().min(0).optional()).optional(),
|
|
1115
1123
|
trial_end: z.array(z.number().int().optional()).optional(),
|
|
1116
1124
|
service_period_days: z
|
|
1117
|
-
.array(z.number().int().min(1).max(
|
|
1125
|
+
.array(z.number().int().min(1).max(4000).optional())
|
|
1118
1126
|
.optional(),
|
|
1119
1127
|
charge_on_event: z
|
|
1120
1128
|
.array(z
|
|
@@ -1174,6 +1182,7 @@ const CheckoutExistingForItemsHostedPageEntityIdentifiersSchema = z.object({
|
|
|
1174
1182
|
});
|
|
1175
1183
|
const CheckoutExistingForItemsHostedPageBodySchema = z.looseObject({
|
|
1176
1184
|
layout: z.enum(['in_app', 'full_page']).optional(),
|
|
1185
|
+
brand_id: z.string().max(50).optional(),
|
|
1177
1186
|
mandatory_items_to_remove: z.array(z.string().max(100).optional()).optional(),
|
|
1178
1187
|
replace_items_list: z.boolean().default(false).optional(),
|
|
1179
1188
|
invoice_date: z.number().int().optional(),
|
|
@@ -1272,6 +1281,7 @@ const UpdateCardHostedPageCardSchema = z.object({
|
|
|
1272
1281
|
'tempus',
|
|
1273
1282
|
'moyasar',
|
|
1274
1283
|
'payway',
|
|
1284
|
+
'payu',
|
|
1275
1285
|
])
|
|
1276
1286
|
.optional(),
|
|
1277
1287
|
gateway_account_id: z.string().max(50).optional(),
|
|
@@ -1354,6 +1364,7 @@ const UpdatePaymentMethodHostedPageCardSchema = z.object({
|
|
|
1354
1364
|
'tempus',
|
|
1355
1365
|
'moyasar',
|
|
1356
1366
|
'payway',
|
|
1367
|
+
'payu',
|
|
1357
1368
|
])
|
|
1358
1369
|
.optional(),
|
|
1359
1370
|
gateway_account_id: z.string().max(50).optional(),
|
|
@@ -1434,12 +1445,14 @@ const ManagePaymentSourcesHostedPageCardSchema = z.object({
|
|
|
1434
1445
|
'tempus',
|
|
1435
1446
|
'moyasar',
|
|
1436
1447
|
'payway',
|
|
1448
|
+
'payu',
|
|
1437
1449
|
])
|
|
1438
1450
|
.optional(),
|
|
1439
1451
|
gateway_account_id: z.string().max(50).optional(),
|
|
1440
1452
|
});
|
|
1441
1453
|
const ManagePaymentSourcesHostedPageBodySchema = z.looseObject({
|
|
1442
1454
|
business_entity_id: z.string().max(50).optional(),
|
|
1455
|
+
brand_id: z.string().max(50).optional(),
|
|
1443
1456
|
redirect_url: z.string().max(250).optional(),
|
|
1444
1457
|
customer: ManagePaymentSourcesHostedPageCustomerSchema.optional(),
|
|
1445
1458
|
card: ManagePaymentSourcesHostedPageCardSchema.optional(),
|
|
@@ -1511,11 +1524,13 @@ const CollectNowHostedPageCardSchema = z.object({
|
|
|
1511
1524
|
'tempus',
|
|
1512
1525
|
'moyasar',
|
|
1513
1526
|
'payway',
|
|
1527
|
+
'payu',
|
|
1514
1528
|
])
|
|
1515
1529
|
.optional(),
|
|
1516
1530
|
gateway_account_id: z.string().max(50).optional(),
|
|
1517
1531
|
});
|
|
1518
1532
|
const CollectNowHostedPageBodySchema = z.looseObject({
|
|
1533
|
+
brand_id: z.string().max(50).optional(),
|
|
1519
1534
|
redirect_url: z.string().max(250).optional(),
|
|
1520
1535
|
currency_code: z.string().max(3).optional(),
|
|
1521
1536
|
payment_method_save_policy: z.enum(['always', 'ask', 'never']).optional(),
|
|
@@ -1528,6 +1543,7 @@ const AcceptQuoteHostedPageQuoteSchema = z.object({
|
|
|
1528
1543
|
id: z.string().max(50),
|
|
1529
1544
|
});
|
|
1530
1545
|
const AcceptQuoteHostedPageBodySchema = z.looseObject({
|
|
1546
|
+
brand_id: z.string().max(50).optional(),
|
|
1531
1547
|
redirect_url: z.string().max(250).optional(),
|
|
1532
1548
|
layout: z.enum(['in_app', 'full_page']).optional(),
|
|
1533
1549
|
quote: AcceptQuoteHostedPageQuoteSchema.optional(),
|
|
@@ -1538,6 +1554,7 @@ const ExtendSubscriptionHostedPageSubscriptionSchema = z.object({
|
|
|
1538
1554
|
id: z.string().max(50),
|
|
1539
1555
|
});
|
|
1540
1556
|
const ExtendSubscriptionHostedPageBodySchema = z.looseObject({
|
|
1557
|
+
brand_id: z.string().max(50).optional(),
|
|
1541
1558
|
expiry: z.number().int().min(1).max(500).optional(),
|
|
1542
1559
|
billing_cycle: z.number().int().min(1).optional(),
|
|
1543
1560
|
subscription: ExtendSubscriptionHostedPageSubscriptionSchema.optional(),
|
|
@@ -1589,6 +1606,7 @@ const CheckoutGiftForItemsHostedPageItemTiersSchema = z.object({
|
|
|
1589
1606
|
const CheckoutGiftForItemsHostedPageBodySchema = z.looseObject({
|
|
1590
1607
|
layout: z.enum(['in_app', 'full_page']).optional(),
|
|
1591
1608
|
business_entity_id: z.string().max(50).optional(),
|
|
1609
|
+
brand_id: z.string().max(50).optional(),
|
|
1592
1610
|
redirect_url: z.string().max(250).optional(),
|
|
1593
1611
|
coupon_ids: z.array(z.string().max(100).optional()).optional(),
|
|
1594
1612
|
gifter: CheckoutGiftForItemsHostedPageGifterSchema.optional(),
|
|
@@ -1604,6 +1622,7 @@ const ClaimGiftHostedPageCustomerSchema = z.object({
|
|
|
1604
1622
|
locale: z.string().max(50).optional(),
|
|
1605
1623
|
});
|
|
1606
1624
|
const ClaimGiftHostedPageBodySchema = z.looseObject({
|
|
1625
|
+
brand_id: z.string().max(50).optional(),
|
|
1607
1626
|
redirect_url: z.string().max(250).optional(),
|
|
1608
1627
|
gift: ClaimGiftHostedPageGiftSchema.optional(),
|
|
1609
1628
|
customer: ClaimGiftHostedPageCustomerSchema.optional(),
|
|
@@ -1746,6 +1765,7 @@ const PreCancelHostedPageSubscriptionSchema = z.object({
|
|
|
1746
1765
|
id: z.string().max(50),
|
|
1747
1766
|
});
|
|
1748
1767
|
const PreCancelHostedPageBodySchema = z.looseObject({
|
|
1768
|
+
brand_id: z.string().max(50).optional(),
|
|
1749
1769
|
pass_thru_content: z.string().max(2048).optional(),
|
|
1750
1770
|
cancel_url: z.string().max(250).optional(),
|
|
1751
1771
|
redirect_url: z.string().max(250).optional(),
|
package/esm/schema/index.js
CHANGED
|
@@ -5,7 +5,10 @@ export * from './alert.schema.js';
|
|
|
5
5
|
export * from './alert_status.schema.js';
|
|
6
6
|
export * from './attached_item.schema.js';
|
|
7
7
|
export * from './business_entity.schema.js';
|
|
8
|
+
export * from './business_rule.schema.js';
|
|
9
|
+
export * from './business_ruleset.schema.js';
|
|
8
10
|
export * from './card.schema.js';
|
|
11
|
+
export * from './collections_payment_promise.schema.js';
|
|
9
12
|
export * from './comment.schema.js';
|
|
10
13
|
export * from './coupon.schema.js';
|
|
11
14
|
export * from './coupon_code.schema.js';
|
|
@@ -16,6 +19,9 @@ export * from './currency.schema.js';
|
|
|
16
19
|
export * from './customer.schema.js';
|
|
17
20
|
export * from './customer_entitlement.schema.js';
|
|
18
21
|
export * from './differential_price.schema.js';
|
|
22
|
+
export * from './dispute.schema.js';
|
|
23
|
+
export * from './einvoice.schema.js';
|
|
24
|
+
export * from './email_log.schema.js';
|
|
19
25
|
export * from './entitlement.schema.js';
|
|
20
26
|
export * from './entitlement_override.schema.js';
|
|
21
27
|
export * from './estimate.schema.js';
|
|
@@ -43,12 +49,14 @@ export * from './omnichannel_subscription.schema.js';
|
|
|
43
49
|
export * from './omnichannel_subscription_item.schema.js';
|
|
44
50
|
export * from './order.schema.js';
|
|
45
51
|
export * from './payment_intent.schema.js';
|
|
52
|
+
export * from './payment_schedule.schema.js';
|
|
46
53
|
export * from './payment_schedule_scheme.schema.js';
|
|
47
54
|
export * from './payment_source.schema.js';
|
|
48
55
|
export * from './payment_voucher.schema.js';
|
|
49
56
|
export * from './personalized_offer.schema.js';
|
|
50
57
|
export * from './plan.schema.js';
|
|
51
58
|
export * from './portal_session.schema.js';
|
|
59
|
+
export * from './price_ramp.schema.js';
|
|
52
60
|
export * from './price_variant.schema.js';
|
|
53
61
|
export * from './pricing_page_session.schema.js';
|
|
54
62
|
export * from './promotional_credit.schema.js';
|
|
@@ -59,6 +67,7 @@ export * from './quote_entitlement.schema.js';
|
|
|
59
67
|
export * from './ramp.schema.js';
|
|
60
68
|
export * from './recorded_purchase.schema.js';
|
|
61
69
|
export * from './resource_migration.schema.js';
|
|
70
|
+
export * from './retry_segment.schema.js';
|
|
62
71
|
export * from './site_migration_detail.schema.js';
|
|
63
72
|
export * from './subscription.schema.js';
|
|
64
73
|
export * from './subscription_entitlement.schema.js';
|