chargebee 3.34.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 +172 -0
- package/cjs/environment.js +1 -1
- package/cjs/resources/api_endpoints.js +174 -2
- package/cjs/resources/webhook/eventType.js +23 -1
- package/cjs/schema/business_entity.schema.js +28 -2
- 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 +1 -0
- package/cjs/schema/credit_unit.schema.js +2 -2
- package/cjs/schema/einvoice.schema.js +2 -2
- package/cjs/schema/entitlement.schema.js +4 -4
- package/cjs/schema/estimate.schema.js +4 -4
- package/cjs/schema/event.schema.js +104 -4
- package/cjs/schema/export.schema.js +7 -7
- package/cjs/schema/hosted_page.schema.js +2 -2
- package/cjs/schema/index.js +3 -0
- package/cjs/schema/invoice.schema.js +24 -4
- 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 +2 -2
- package/cjs/schema/omnichannel_one_time_order.schema.js +12 -4
- package/cjs/schema/omnichannel_subscription.schema.js +18 -10
- package/cjs/schema/payment_source.schema.js +15 -0
- package/cjs/schema/price_ramp.schema.js +88 -0
- package/cjs/schema/price_variant.schema.js +1 -1
- package/cjs/schema/purchase.schema.js +6 -0
- package/cjs/schema/quote.schema.js +6 -6
- package/cjs/schema/ramp.schema.js +10 -6
- package/cjs/schema/retry_segment.schema.js +12 -0
- package/cjs/schema/subscription.schema.js +4 -4
- package/cjs/schema/usage.schema.js +5 -0
- package/cjs/schema/usage_summary.schema.js +1 -0
- package/cjs/schema/webhook_endpoint.schema.js +46 -2
- package/esm/environment.js +1 -1
- package/esm/resources/api_endpoints.js +174 -2
- package/esm/resources/webhook/eventType.js +23 -1
- package/esm/schema/business_entity.schema.js +27 -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 +1 -0
- package/esm/schema/credit_unit.schema.js +2 -2
- package/esm/schema/einvoice.schema.js +2 -2
- package/esm/schema/entitlement.schema.js +4 -4
- package/esm/schema/estimate.schema.js +4 -4
- package/esm/schema/event.schema.js +104 -4
- package/esm/schema/export.schema.js +7 -7
- package/esm/schema/hosted_page.schema.js +2 -2
- package/esm/schema/index.js +3 -0
- package/esm/schema/invoice.schema.js +23 -3
- 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 +2 -2
- package/esm/schema/omnichannel_one_time_order.schema.js +12 -4
- package/esm/schema/omnichannel_subscription.schema.js +18 -10
- package/esm/schema/payment_source.schema.js +15 -0
- package/esm/schema/price_ramp.schema.js +85 -0
- package/esm/schema/price_variant.schema.js +1 -1
- package/esm/schema/purchase.schema.js +6 -0
- package/esm/schema/quote.schema.js +6 -6
- package/esm/schema/ramp.schema.js +10 -6
- package/esm/schema/retry_segment.schema.js +9 -0
- package/esm/schema/subscription.schema.js +4 -4
- package/esm/schema/usage.schema.js +5 -0
- package/esm/schema/usage_summary.schema.js +1 -0
- package/esm/schema/webhook_endpoint.schema.js +46 -2
- package/package.json +1 -1
- package/types/core.d.ts +53 -68
- package/types/index.d.ts +22 -1
- package/types/resources/BusinessEntity.d.ts +52 -0
- 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 +18 -1
- package/types/resources/CreditNote.d.ts +1 -0
- package/types/resources/CustomData.d.ts +14 -0
- package/types/resources/DraftEstimate.d.ts +13 -0
- package/types/resources/DraftRequest.d.ts +45 -0
- package/types/resources/EmailAttachment.d.ts +16 -0
- package/types/resources/EmailConversation.d.ts +18 -0
- package/types/resources/EmailLog.d.ts +1 -0
- package/types/resources/EmailMessage.d.ts +40 -0
- package/types/resources/Event.d.ts +23 -1
- package/types/resources/Execution.d.ts +12 -0
- package/types/resources/GatewayPaymentMethodToken.d.ts +2 -2
- package/types/resources/GroupByAttribute.d.ts +15 -0
- package/types/resources/GroupByRecommendation.d.ts +10 -0
- package/types/resources/Invoice.d.ts +15 -0
- package/types/resources/ItemPrice.d.ts +1 -0
- package/types/resources/LedgerAccountBalance.d.ts +19 -0
- 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 +4 -1
- package/types/resources/PaymentSchedule.d.ts +1 -1
- package/types/resources/PaymentScheduleEstimate.d.ts +1 -1
- package/types/resources/PaymentSource.d.ts +19 -0
- package/types/resources/PreferenceVariant.d.ts +10 -0
- package/types/resources/PriceRamp.d.ts +113 -0
- package/types/resources/PrivateNote.d.ts +18 -0
- package/types/resources/Purchase.d.ts +6 -0
- package/types/resources/Ramp.d.ts +6 -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/Transaction.d.ts +4 -0
- package/types/resources/Usage.d.ts +6 -0
- package/types/resources/UsageSummary.d.ts +2 -0
- package/types/resources/WebhookEvent.d.ts +149 -5
- package/types/resources/AppliedBusinessRule.d.ts +0 -15
|
@@ -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
|
-
is: zod_1.z.string().min(1).optional(),
|
|
11
10
|
in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
11
|
+
is: zod_1.z.string().min(1).optional(),
|
|
12
12
|
});
|
|
13
13
|
const ListEntitlementEntityTypeSchema = zod_1.z.object({
|
|
14
|
-
|
|
14
|
+
in: zod_1.z
|
|
15
15
|
.enum(['plan', 'addon', 'charge', 'plan_price', 'addon_price'])
|
|
16
16
|
.optional(),
|
|
17
|
-
|
|
17
|
+
is: 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
|
-
is: zod_1.z.string().min(1).optional(),
|
|
23
22
|
in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
23
|
+
is: zod_1.z.string().min(1).optional(),
|
|
24
24
|
});
|
|
25
25
|
const ListEntitlementBodySchema = zod_1.z.looseObject({
|
|
26
26
|
limit: zod_1.z.number().int().min(1).max(100).optional(),
|
|
@@ -284,7 +284,7 @@ const CreateSubItemEstimateEstimateSubscriptionItemsSchema = zod_1.z.object({
|
|
|
284
284
|
billing_cycles: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
|
|
285
285
|
trial_end: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
|
|
286
286
|
service_period_days: zod_1.z
|
|
287
|
-
.array(zod_1.z.number().int().min(1).max(
|
|
287
|
+
.array(zod_1.z.number().int().min(1).max(4000).optional())
|
|
288
288
|
.optional(),
|
|
289
289
|
charge_on_event: zod_1.z
|
|
290
290
|
.array(zod_1.z
|
|
@@ -550,7 +550,7 @@ const CreateSubItemForCustomerEstimateEstimateSubscriptionItemsSchema = zod_1.z.
|
|
|
550
550
|
billing_cycles: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
|
|
551
551
|
trial_end: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
|
|
552
552
|
service_period_days: zod_1.z
|
|
553
|
-
.array(zod_1.z.number().int().min(1).max(
|
|
553
|
+
.array(zod_1.z.number().int().min(1).max(4000).optional())
|
|
554
554
|
.optional(),
|
|
555
555
|
charge_on_event: zod_1.z
|
|
556
556
|
.array(zod_1.z
|
|
@@ -835,7 +835,7 @@ const UpdateSubscriptionForItemsEstimateSubscriptionItemsSchema = zod_1.z.object
|
|
|
835
835
|
billing_cycles: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
|
|
836
836
|
trial_end: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
|
|
837
837
|
service_period_days: zod_1.z
|
|
838
|
-
.array(zod_1.z.number().int().min(1).max(
|
|
838
|
+
.array(zod_1.z.number().int().min(1).max(4000).optional())
|
|
839
839
|
.optional(),
|
|
840
840
|
charge_on_event: zod_1.z
|
|
841
841
|
.array(zod_1.z
|
|
@@ -1023,7 +1023,7 @@ const CancelSubscriptionForItemsEstimateSubscriptionItemsSchema = zod_1.z.object
|
|
|
1023
1023
|
unit_price: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
|
|
1024
1024
|
unit_price_in_decimal: zod_1.z.array(zod_1.z.string().max(39).optional()).optional(),
|
|
1025
1025
|
service_period_days: zod_1.z
|
|
1026
|
-
.array(zod_1.z.number().int().min(1).max(
|
|
1026
|
+
.array(zod_1.z.number().int().min(1).max(4000).optional())
|
|
1027
1027
|
.optional(),
|
|
1028
1028
|
});
|
|
1029
1029
|
const CancelSubscriptionForItemsEstimateBodySchema = zod_1.z.looseObject({
|
|
@@ -134,6 +134,7 @@ const ListEventEventTypeSchema = zod_1.z.object({
|
|
|
134
134
|
'payment_schedules_updated',
|
|
135
135
|
'payment_schedule_scheme_created',
|
|
136
136
|
'payment_schedule_scheme_deleted',
|
|
137
|
+
'payment_schedules_cancelled',
|
|
137
138
|
'subscription_renewal_reminder',
|
|
138
139
|
'add_usages_reminder',
|
|
139
140
|
'payment_due_reminder',
|
|
@@ -144,6 +145,7 @@ const ListEventEventTypeSchema = zod_1.z.object({
|
|
|
144
145
|
'payment_failed',
|
|
145
146
|
'dunning_updated',
|
|
146
147
|
'payment_refunded',
|
|
148
|
+
'refund_failed',
|
|
147
149
|
'payment_initiated',
|
|
148
150
|
'refund_initiated',
|
|
149
151
|
'netd_payment_due_reminder',
|
|
@@ -295,6 +297,9 @@ const ListEventEventTypeSchema = zod_1.z.object({
|
|
|
295
297
|
'alert_status_changed',
|
|
296
298
|
'omnichannel_subscription_item_updated',
|
|
297
299
|
'omnichannel_subscription_item_recovered',
|
|
300
|
+
'price_ramp_created',
|
|
301
|
+
'price_ramp_updated',
|
|
302
|
+
'price_ramp_deleted',
|
|
298
303
|
'omnichannel_subscription_item_mrr_updated',
|
|
299
304
|
'ledger_account_balance_updated',
|
|
300
305
|
'grant_blocks_created',
|
|
@@ -309,12 +314,29 @@ const ListEventEventTypeSchema = zod_1.z.object({
|
|
|
309
314
|
'vault_token_created',
|
|
310
315
|
'vault_token_updated',
|
|
311
316
|
'vault_token_deleted',
|
|
312
|
-
'
|
|
317
|
+
'chargeback_initiated',
|
|
318
|
+
'chargeback_won',
|
|
319
|
+
'chargeback_lost',
|
|
313
320
|
'business_ruleset_created',
|
|
314
321
|
'business_ruleset_updated',
|
|
315
322
|
'business_ruleset_activated',
|
|
316
323
|
'business_ruleset_deactivated',
|
|
317
324
|
'business_ruleset_deleted',
|
|
325
|
+
'collections_reminder_sequence_created',
|
|
326
|
+
'collections_reminder_sequence_paused',
|
|
327
|
+
'collections_reminder_sequence_resumed',
|
|
328
|
+
'collections_reminder_sequence_completed',
|
|
329
|
+
'collections_payment_promise_created',
|
|
330
|
+
'collections_payment_promise_updated',
|
|
331
|
+
'collections_payment_promise_fulfilled',
|
|
332
|
+
'collections_payment_promise_cancelled',
|
|
333
|
+
'collections_payment_promise_broken',
|
|
334
|
+
'collections_dispute_created',
|
|
335
|
+
'collections_dispute_updated',
|
|
336
|
+
'collections_dispute_resolved',
|
|
337
|
+
'collections_dispute_withdrawn',
|
|
338
|
+
'email_message_received',
|
|
339
|
+
'private_note_added',
|
|
318
340
|
])
|
|
319
341
|
.optional(),
|
|
320
342
|
is_not: zod_1.z
|
|
@@ -383,6 +405,7 @@ const ListEventEventTypeSchema = zod_1.z.object({
|
|
|
383
405
|
'payment_schedules_updated',
|
|
384
406
|
'payment_schedule_scheme_created',
|
|
385
407
|
'payment_schedule_scheme_deleted',
|
|
408
|
+
'payment_schedules_cancelled',
|
|
386
409
|
'subscription_renewal_reminder',
|
|
387
410
|
'add_usages_reminder',
|
|
388
411
|
'payment_due_reminder',
|
|
@@ -393,6 +416,7 @@ const ListEventEventTypeSchema = zod_1.z.object({
|
|
|
393
416
|
'payment_failed',
|
|
394
417
|
'dunning_updated',
|
|
395
418
|
'payment_refunded',
|
|
419
|
+
'refund_failed',
|
|
396
420
|
'payment_initiated',
|
|
397
421
|
'refund_initiated',
|
|
398
422
|
'netd_payment_due_reminder',
|
|
@@ -544,6 +568,9 @@ const ListEventEventTypeSchema = zod_1.z.object({
|
|
|
544
568
|
'alert_status_changed',
|
|
545
569
|
'omnichannel_subscription_item_updated',
|
|
546
570
|
'omnichannel_subscription_item_recovered',
|
|
571
|
+
'price_ramp_created',
|
|
572
|
+
'price_ramp_updated',
|
|
573
|
+
'price_ramp_deleted',
|
|
547
574
|
'omnichannel_subscription_item_mrr_updated',
|
|
548
575
|
'ledger_account_balance_updated',
|
|
549
576
|
'grant_blocks_created',
|
|
@@ -558,12 +585,29 @@ const ListEventEventTypeSchema = zod_1.z.object({
|
|
|
558
585
|
'vault_token_created',
|
|
559
586
|
'vault_token_updated',
|
|
560
587
|
'vault_token_deleted',
|
|
561
|
-
'
|
|
588
|
+
'chargeback_initiated',
|
|
589
|
+
'chargeback_won',
|
|
590
|
+
'chargeback_lost',
|
|
562
591
|
'business_ruleset_created',
|
|
563
592
|
'business_ruleset_updated',
|
|
564
593
|
'business_ruleset_activated',
|
|
565
594
|
'business_ruleset_deactivated',
|
|
566
595
|
'business_ruleset_deleted',
|
|
596
|
+
'collections_reminder_sequence_created',
|
|
597
|
+
'collections_reminder_sequence_paused',
|
|
598
|
+
'collections_reminder_sequence_resumed',
|
|
599
|
+
'collections_reminder_sequence_completed',
|
|
600
|
+
'collections_payment_promise_created',
|
|
601
|
+
'collections_payment_promise_updated',
|
|
602
|
+
'collections_payment_promise_fulfilled',
|
|
603
|
+
'collections_payment_promise_cancelled',
|
|
604
|
+
'collections_payment_promise_broken',
|
|
605
|
+
'collections_dispute_created',
|
|
606
|
+
'collections_dispute_updated',
|
|
607
|
+
'collections_dispute_resolved',
|
|
608
|
+
'collections_dispute_withdrawn',
|
|
609
|
+
'email_message_received',
|
|
610
|
+
'private_note_added',
|
|
567
611
|
])
|
|
568
612
|
.optional(),
|
|
569
613
|
in: zod_1.z
|
|
@@ -632,6 +676,7 @@ const ListEventEventTypeSchema = zod_1.z.object({
|
|
|
632
676
|
'payment_schedules_updated',
|
|
633
677
|
'payment_schedule_scheme_created',
|
|
634
678
|
'payment_schedule_scheme_deleted',
|
|
679
|
+
'payment_schedules_cancelled',
|
|
635
680
|
'subscription_renewal_reminder',
|
|
636
681
|
'add_usages_reminder',
|
|
637
682
|
'payment_due_reminder',
|
|
@@ -642,6 +687,7 @@ const ListEventEventTypeSchema = zod_1.z.object({
|
|
|
642
687
|
'payment_failed',
|
|
643
688
|
'dunning_updated',
|
|
644
689
|
'payment_refunded',
|
|
690
|
+
'refund_failed',
|
|
645
691
|
'payment_initiated',
|
|
646
692
|
'refund_initiated',
|
|
647
693
|
'netd_payment_due_reminder',
|
|
@@ -793,6 +839,9 @@ const ListEventEventTypeSchema = zod_1.z.object({
|
|
|
793
839
|
'alert_status_changed',
|
|
794
840
|
'omnichannel_subscription_item_updated',
|
|
795
841
|
'omnichannel_subscription_item_recovered',
|
|
842
|
+
'price_ramp_created',
|
|
843
|
+
'price_ramp_updated',
|
|
844
|
+
'price_ramp_deleted',
|
|
796
845
|
'omnichannel_subscription_item_mrr_updated',
|
|
797
846
|
'ledger_account_balance_updated',
|
|
798
847
|
'grant_blocks_created',
|
|
@@ -807,12 +856,29 @@ const ListEventEventTypeSchema = zod_1.z.object({
|
|
|
807
856
|
'vault_token_created',
|
|
808
857
|
'vault_token_updated',
|
|
809
858
|
'vault_token_deleted',
|
|
810
|
-
'
|
|
859
|
+
'chargeback_initiated',
|
|
860
|
+
'chargeback_won',
|
|
861
|
+
'chargeback_lost',
|
|
811
862
|
'business_ruleset_created',
|
|
812
863
|
'business_ruleset_updated',
|
|
813
864
|
'business_ruleset_activated',
|
|
814
865
|
'business_ruleset_deactivated',
|
|
815
866
|
'business_ruleset_deleted',
|
|
867
|
+
'collections_reminder_sequence_created',
|
|
868
|
+
'collections_reminder_sequence_paused',
|
|
869
|
+
'collections_reminder_sequence_resumed',
|
|
870
|
+
'collections_reminder_sequence_completed',
|
|
871
|
+
'collections_payment_promise_created',
|
|
872
|
+
'collections_payment_promise_updated',
|
|
873
|
+
'collections_payment_promise_fulfilled',
|
|
874
|
+
'collections_payment_promise_cancelled',
|
|
875
|
+
'collections_payment_promise_broken',
|
|
876
|
+
'collections_dispute_created',
|
|
877
|
+
'collections_dispute_updated',
|
|
878
|
+
'collections_dispute_resolved',
|
|
879
|
+
'collections_dispute_withdrawn',
|
|
880
|
+
'email_message_received',
|
|
881
|
+
'private_note_added',
|
|
816
882
|
])
|
|
817
883
|
.optional(),
|
|
818
884
|
not_in: zod_1.z
|
|
@@ -881,6 +947,7 @@ const ListEventEventTypeSchema = zod_1.z.object({
|
|
|
881
947
|
'payment_schedules_updated',
|
|
882
948
|
'payment_schedule_scheme_created',
|
|
883
949
|
'payment_schedule_scheme_deleted',
|
|
950
|
+
'payment_schedules_cancelled',
|
|
884
951
|
'subscription_renewal_reminder',
|
|
885
952
|
'add_usages_reminder',
|
|
886
953
|
'payment_due_reminder',
|
|
@@ -891,6 +958,7 @@ const ListEventEventTypeSchema = zod_1.z.object({
|
|
|
891
958
|
'payment_failed',
|
|
892
959
|
'dunning_updated',
|
|
893
960
|
'payment_refunded',
|
|
961
|
+
'refund_failed',
|
|
894
962
|
'payment_initiated',
|
|
895
963
|
'refund_initiated',
|
|
896
964
|
'netd_payment_due_reminder',
|
|
@@ -1042,6 +1110,9 @@ const ListEventEventTypeSchema = zod_1.z.object({
|
|
|
1042
1110
|
'alert_status_changed',
|
|
1043
1111
|
'omnichannel_subscription_item_updated',
|
|
1044
1112
|
'omnichannel_subscription_item_recovered',
|
|
1113
|
+
'price_ramp_created',
|
|
1114
|
+
'price_ramp_updated',
|
|
1115
|
+
'price_ramp_deleted',
|
|
1045
1116
|
'omnichannel_subscription_item_mrr_updated',
|
|
1046
1117
|
'ledger_account_balance_updated',
|
|
1047
1118
|
'grant_blocks_created',
|
|
@@ -1056,12 +1127,29 @@ const ListEventEventTypeSchema = zod_1.z.object({
|
|
|
1056
1127
|
'vault_token_created',
|
|
1057
1128
|
'vault_token_updated',
|
|
1058
1129
|
'vault_token_deleted',
|
|
1059
|
-
'
|
|
1130
|
+
'chargeback_initiated',
|
|
1131
|
+
'chargeback_won',
|
|
1132
|
+
'chargeback_lost',
|
|
1060
1133
|
'business_ruleset_created',
|
|
1061
1134
|
'business_ruleset_updated',
|
|
1062
1135
|
'business_ruleset_activated',
|
|
1063
1136
|
'business_ruleset_deactivated',
|
|
1064
1137
|
'business_ruleset_deleted',
|
|
1138
|
+
'collections_reminder_sequence_created',
|
|
1139
|
+
'collections_reminder_sequence_paused',
|
|
1140
|
+
'collections_reminder_sequence_resumed',
|
|
1141
|
+
'collections_reminder_sequence_completed',
|
|
1142
|
+
'collections_payment_promise_created',
|
|
1143
|
+
'collections_payment_promise_updated',
|
|
1144
|
+
'collections_payment_promise_fulfilled',
|
|
1145
|
+
'collections_payment_promise_cancelled',
|
|
1146
|
+
'collections_payment_promise_broken',
|
|
1147
|
+
'collections_dispute_created',
|
|
1148
|
+
'collections_dispute_updated',
|
|
1149
|
+
'collections_dispute_resolved',
|
|
1150
|
+
'collections_dispute_withdrawn',
|
|
1151
|
+
'email_message_received',
|
|
1152
|
+
'private_note_added',
|
|
1065
1153
|
])
|
|
1066
1154
|
.optional(),
|
|
1067
1155
|
});
|
|
@@ -1079,6 +1167,9 @@ const ListEventSourceSchema = zod_1.z.object({
|
|
|
1079
1167
|
'migration',
|
|
1080
1168
|
'bulk_operation',
|
|
1081
1169
|
'external_service',
|
|
1170
|
+
'mcp',
|
|
1171
|
+
'copilot',
|
|
1172
|
+
'agent',
|
|
1082
1173
|
])
|
|
1083
1174
|
.optional(),
|
|
1084
1175
|
is_not: zod_1.z
|
|
@@ -1094,6 +1185,9 @@ const ListEventSourceSchema = zod_1.z.object({
|
|
|
1094
1185
|
'migration',
|
|
1095
1186
|
'bulk_operation',
|
|
1096
1187
|
'external_service',
|
|
1188
|
+
'mcp',
|
|
1189
|
+
'copilot',
|
|
1190
|
+
'agent',
|
|
1097
1191
|
])
|
|
1098
1192
|
.optional(),
|
|
1099
1193
|
in: zod_1.z
|
|
@@ -1109,6 +1203,9 @@ const ListEventSourceSchema = zod_1.z.object({
|
|
|
1109
1203
|
'migration',
|
|
1110
1204
|
'bulk_operation',
|
|
1111
1205
|
'external_service',
|
|
1206
|
+
'mcp',
|
|
1207
|
+
'copilot',
|
|
1208
|
+
'agent',
|
|
1112
1209
|
])
|
|
1113
1210
|
.optional(),
|
|
1114
1211
|
not_in: zod_1.z
|
|
@@ -1124,6 +1221,9 @@ const ListEventSourceSchema = zod_1.z.object({
|
|
|
1124
1221
|
'migration',
|
|
1125
1222
|
'bulk_operation',
|
|
1126
1223
|
'external_service',
|
|
1224
|
+
'mcp',
|
|
1225
|
+
'copilot',
|
|
1226
|
+
'agent',
|
|
1127
1227
|
])
|
|
1128
1228
|
.optional(),
|
|
1129
1229
|
});
|
|
@@ -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
|
-
is: zod_1.z.string().min(1).optional(),
|
|
1106
1105
|
in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
1106
|
+
is: zod_1.z.string().min(1).optional(),
|
|
1107
1107
|
});
|
|
1108
1108
|
const CouponsExportIdSchema = zod_1.z.object({
|
|
1109
1109
|
is: zod_1.z.string().min(1).optional(),
|
|
@@ -3002,8 +3002,8 @@ const OrdersExportBodySchema = zod_1.z.looseObject({
|
|
|
3002
3002
|
exports.OrdersExportBodySchema = OrdersExportBodySchema;
|
|
3003
3003
|
//Export.itemFamilies
|
|
3004
3004
|
const ItemFamiliesExportBusinessEntityIdSchema = zod_1.z.object({
|
|
3005
|
-
is: zod_1.z.string().min(1).optional(),
|
|
3006
3005
|
is_present: zod_1.z.enum(['true', 'false']).optional(),
|
|
3006
|
+
is: zod_1.z.string().min(1).optional(),
|
|
3007
3007
|
});
|
|
3008
3008
|
const ItemFamiliesExportIncludeSiteLevelResourcesSchema = zod_1.z.object({
|
|
3009
3009
|
is: zod_1.z.enum(['true', 'false']).optional(),
|
|
@@ -3041,8 +3041,8 @@ const ItemFamiliesExportBodySchema = zod_1.z.looseObject({
|
|
|
3041
3041
|
exports.ItemFamiliesExportBodySchema = ItemFamiliesExportBodySchema;
|
|
3042
3042
|
//Export.items
|
|
3043
3043
|
const ItemsExportBusinessEntityIdSchema = zod_1.z.object({
|
|
3044
|
-
is: zod_1.z.string().min(1).optional(),
|
|
3045
3044
|
is_present: zod_1.z.enum(['true', 'false']).optional(),
|
|
3045
|
+
is: zod_1.z.string().min(1).optional(),
|
|
3046
3046
|
});
|
|
3047
3047
|
const ItemsExportIncludeSiteLevelResourcesSchema = zod_1.z.object({
|
|
3048
3048
|
is: zod_1.z.enum(['true', 'false']).optional(),
|
|
@@ -3157,8 +3157,8 @@ const ItemPricesExportCurrencyCodeSchema = zod_1.z.object({
|
|
|
3157
3157
|
not_in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
3158
3158
|
});
|
|
3159
3159
|
const ItemPricesExportBusinessEntityIdSchema = zod_1.z.object({
|
|
3160
|
-
is: zod_1.z.string().min(1).optional(),
|
|
3161
3160
|
is_present: zod_1.z.enum(['true', 'false']).optional(),
|
|
3161
|
+
is: zod_1.z.string().min(1).optional(),
|
|
3162
3162
|
});
|
|
3163
3163
|
const ItemPricesExportIncludeSiteLevelResourcesSchema = zod_1.z.object({
|
|
3164
3164
|
is: zod_1.z.enum(['true', 'false']).optional(),
|
|
@@ -3418,8 +3418,8 @@ const DifferentialPricesExportBodySchema = zod_1.z.looseObject({
|
|
|
3418
3418
|
exports.DifferentialPricesExportBodySchema = DifferentialPricesExportBodySchema;
|
|
3419
3419
|
//Export.priceVariants
|
|
3420
3420
|
const PriceVariantsExportBusinessEntityIdSchema = zod_1.z.object({
|
|
3421
|
-
is: zod_1.z.string().min(1).optional(),
|
|
3422
3421
|
is_present: zod_1.z.enum(['true', 'false']).optional(),
|
|
3422
|
+
is: zod_1.z.string().min(1).optional(),
|
|
3423
3423
|
});
|
|
3424
3424
|
const PriceVariantsExportIncludeSiteLevelResourcesSchema = zod_1.z.object({
|
|
3425
3425
|
is: zod_1.z.enum(['true', 'false']).optional(),
|
|
@@ -3473,12 +3473,12 @@ const PriceVariantsExportBodySchema = zod_1.z.looseObject({
|
|
|
3473
3473
|
exports.PriceVariantsExportBodySchema = PriceVariantsExportBodySchema;
|
|
3474
3474
|
//Export.ramps
|
|
3475
3475
|
const RampsExportStatusSchema = zod_1.z.object({
|
|
3476
|
-
is: zod_1.z.enum(['scheduled', 'succeeded', 'failed', 'draft']).optional(),
|
|
3477
3476
|
in: zod_1.z.enum(['scheduled', 'succeeded', 'failed', 'draft']).optional(),
|
|
3477
|
+
is: zod_1.z.enum(['scheduled', 'succeeded', 'failed', 'draft']).optional(),
|
|
3478
3478
|
});
|
|
3479
3479
|
const RampsExportSubscriptionIdSchema = zod_1.z.object({
|
|
3480
|
-
is: zod_1.z.string().min(1).optional(),
|
|
3481
3480
|
in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
3481
|
+
is: zod_1.z.string().min(1).optional(),
|
|
3482
3482
|
});
|
|
3483
3483
|
const RampsExportEffectiveFromSchema = zod_1.z.object({
|
|
3484
3484
|
after: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
@@ -752,7 +752,7 @@ const CheckoutNewForItemsHostedPageSubscriptionItemsSchema = zod_1.z.object({
|
|
|
752
752
|
billing_cycles: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
|
|
753
753
|
trial_end: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
|
|
754
754
|
service_period_days: zod_1.z
|
|
755
|
-
.array(zod_1.z.number().int().min(1).max(
|
|
755
|
+
.array(zod_1.z.number().int().min(1).max(4000).optional())
|
|
756
756
|
.optional(),
|
|
757
757
|
charge_on_event: zod_1.z
|
|
758
758
|
.array(zod_1.z
|
|
@@ -1125,7 +1125,7 @@ const CheckoutExistingForItemsHostedPageSubscriptionItemsSchema = zod_1.z.object
|
|
|
1125
1125
|
billing_cycles: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
|
|
1126
1126
|
trial_end: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
|
|
1127
1127
|
service_period_days: zod_1.z
|
|
1128
|
-
.array(zod_1.z.number().int().min(1).max(
|
|
1128
|
+
.array(zod_1.z.number().int().min(1).max(4000).optional())
|
|
1129
1129
|
.optional(),
|
|
1130
1130
|
charge_on_event: zod_1.z
|
|
1131
1131
|
.array(zod_1.z
|
package/cjs/schema/index.js
CHANGED
|
@@ -24,6 +24,7 @@ __exportStar(require("./business_entity.schema.js"), exports);
|
|
|
24
24
|
__exportStar(require("./business_rule.schema.js"), exports);
|
|
25
25
|
__exportStar(require("./business_ruleset.schema.js"), exports);
|
|
26
26
|
__exportStar(require("./card.schema.js"), exports);
|
|
27
|
+
__exportStar(require("./collections_payment_promise.schema.js"), exports);
|
|
27
28
|
__exportStar(require("./comment.schema.js"), exports);
|
|
28
29
|
__exportStar(require("./coupon.schema.js"), exports);
|
|
29
30
|
__exportStar(require("./coupon_code.schema.js"), exports);
|
|
@@ -71,6 +72,7 @@ __exportStar(require("./payment_voucher.schema.js"), exports);
|
|
|
71
72
|
__exportStar(require("./personalized_offer.schema.js"), exports);
|
|
72
73
|
__exportStar(require("./plan.schema.js"), exports);
|
|
73
74
|
__exportStar(require("./portal_session.schema.js"), exports);
|
|
75
|
+
__exportStar(require("./price_ramp.schema.js"), exports);
|
|
74
76
|
__exportStar(require("./price_variant.schema.js"), exports);
|
|
75
77
|
__exportStar(require("./pricing_page_session.schema.js"), exports);
|
|
76
78
|
__exportStar(require("./promotional_credit.schema.js"), exports);
|
|
@@ -81,6 +83,7 @@ __exportStar(require("./quote_entitlement.schema.js"), exports);
|
|
|
81
83
|
__exportStar(require("./ramp.schema.js"), exports);
|
|
82
84
|
__exportStar(require("./recorded_purchase.schema.js"), exports);
|
|
83
85
|
__exportStar(require("./resource_migration.schema.js"), exports);
|
|
86
|
+
__exportStar(require("./retry_segment.schema.js"), exports);
|
|
84
87
|
__exportStar(require("./site_migration_detail.schema.js"), exports);
|
|
85
88
|
__exportStar(require("./subscription.schema.js"), exports);
|
|
86
89
|
__exportStar(require("./subscription_entitlement.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, voidBeforeCapture, 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, removePaymentScheduleScheme
|
|
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.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;
|
|
6
|
+
exports.RemovePaymentScheduleSchemeInvoiceBodySchema = 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({
|
|
@@ -1073,6 +1073,21 @@ const ImportInvoiceInvoiceLineItemsSchema = zod_1.z.object({
|
|
|
1073
1073
|
tax10_amount: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
|
|
1074
1074
|
is_partial_tax_applied: zod_1.z.array(zod_1.z.boolean().optional()).optional(),
|
|
1075
1075
|
taxable_amount: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
|
|
1076
|
+
tax_exempt_reason: zod_1.z
|
|
1077
|
+
.array(zod_1.z
|
|
1078
|
+
.enum([
|
|
1079
|
+
'region_non_taxable',
|
|
1080
|
+
'export',
|
|
1081
|
+
'customer_exempt',
|
|
1082
|
+
'product_exempt',
|
|
1083
|
+
'zero_rated',
|
|
1084
|
+
'reverse_charge',
|
|
1085
|
+
'high_value_physical_goods',
|
|
1086
|
+
'zero_value_item',
|
|
1087
|
+
'tax_not_configured_external_provider',
|
|
1088
|
+
])
|
|
1089
|
+
.optional())
|
|
1090
|
+
.optional(),
|
|
1076
1091
|
proration_mode: zod_1.z
|
|
1077
1092
|
.array(zod_1.z
|
|
1078
1093
|
.enum(['reset', 'delta', 'service_period_revision', 'adjusted_term'])
|
|
@@ -1484,12 +1499,12 @@ const PdfInvoiceBodySchema = zod_1.z.looseObject({
|
|
|
1484
1499
|
exports.PdfInvoiceBodySchema = PdfInvoiceBodySchema;
|
|
1485
1500
|
//Invoice.listPaymentReferenceNumbers
|
|
1486
1501
|
const ListPaymentReferenceNumbersInvoiceIdSchema = zod_1.z.object({
|
|
1487
|
-
is: zod_1.z.string().min(1).optional(),
|
|
1488
1502
|
in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
1503
|
+
is: zod_1.z.string().min(1).optional(),
|
|
1489
1504
|
});
|
|
1490
1505
|
const ListPaymentReferenceNumbersInvoiceNumberSchema = zod_1.z.object({
|
|
1491
|
-
is: zod_1.z.string().min(1).optional(),
|
|
1492
1506
|
in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
1507
|
+
is: zod_1.z.string().min(1).optional(),
|
|
1493
1508
|
});
|
|
1494
1509
|
const ListPaymentReferenceNumbersInvoicePaymentReferenceNumberItemSchema = zod_1.z.object({
|
|
1495
1510
|
number: ListPaymentReferenceNumbersInvoiceNumberSchema.optional(),
|
|
@@ -1814,3 +1829,8 @@ const ApplyPaymentScheduleSchemeInvoiceBodySchema = zod_1.z.looseObject({
|
|
|
1814
1829
|
amount: zod_1.z.number().int().min(0).optional(),
|
|
1815
1830
|
});
|
|
1816
1831
|
exports.ApplyPaymentScheduleSchemeInvoiceBodySchema = ApplyPaymentScheduleSchemeInvoiceBodySchema;
|
|
1832
|
+
//Invoice.removePaymentScheduleScheme
|
|
1833
|
+
const RemovePaymentScheduleSchemeInvoiceBodySchema = zod_1.z.looseObject({
|
|
1834
|
+
comment: zod_1.z.string().max(300).optional(),
|
|
1835
|
+
});
|
|
1836
|
+
exports.RemovePaymentScheduleSchemeInvoiceBodySchema = RemovePaymentScheduleSchemeInvoiceBodySchema;
|
|
@@ -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(),
|
|
@@ -256,8 +256,8 @@ const ListItemPriceUpdatedAtSchema = zod_1.z.object({
|
|
|
256
256
|
between: zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
|
|
257
257
|
});
|
|
258
258
|
const ListItemPriceBusinessEntityIdSchema = zod_1.z.object({
|
|
259
|
-
is: zod_1.z.string().min(1).optional(),
|
|
260
259
|
is_present: zod_1.z.enum(['true', 'false']).optional(),
|
|
260
|
+
is: zod_1.z.string().min(1).optional(),
|
|
261
261
|
});
|
|
262
262
|
const ListItemPriceIncludeSiteLevelResourcesSchema = zod_1.z.object({
|
|
263
263
|
is: zod_1.z.enum(['true', 'false']).optional(),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Generated Zod schemas: LedgerAccountBalance
|
|
3
|
-
// Actions: listLedgerAccountBalances
|
|
3
|
+
// Actions: listLedgerAccountBalances, updateOverdraftLimit
|
|
4
4
|
// Do not edit manually – regenerate via sdk-generator
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ListLedgerAccountBalancesLedgerAccountBalanceBodySchema = void 0;
|
|
6
|
+
exports.UpdateOverdraftLimitLedgerAccountBalanceBodySchema = exports.ListLedgerAccountBalancesLedgerAccountBalanceBodySchema = void 0;
|
|
7
7
|
const zod_1 = require("zod");
|
|
8
8
|
//LedgerAccountBalance.listLedgerAccountBalances
|
|
9
9
|
const ListLedgerAccountBalancesLedgerAccountBalanceSubscriptionIdSchema = zod_1.z.object({
|
|
@@ -19,3 +19,12 @@ const ListLedgerAccountBalancesLedgerAccountBalanceBodySchema = zod_1.z.looseObj
|
|
|
19
19
|
unit_id: ListLedgerAccountBalancesLedgerAccountBalanceUnitIdSchema.optional(),
|
|
20
20
|
});
|
|
21
21
|
exports.ListLedgerAccountBalancesLedgerAccountBalanceBodySchema = ListLedgerAccountBalancesLedgerAccountBalanceBodySchema;
|
|
22
|
+
//LedgerAccountBalance.updateOverdraftLimit
|
|
23
|
+
const UpdateOverdraftLimitLedgerAccountBalanceBodySchema = zod_1.z.looseObject({
|
|
24
|
+
subscription_id: zod_1.z.string().max(50),
|
|
25
|
+
unit_id: zod_1.z.string().max(50),
|
|
26
|
+
is_unlimited: zod_1.z.boolean(),
|
|
27
|
+
limit: zod_1.z.string().max(36).optional(),
|
|
28
|
+
change_reason: zod_1.z.string().max(255).optional(),
|
|
29
|
+
});
|
|
30
|
+
exports.UpdateOverdraftLimitLedgerAccountBalanceBodySchema = UpdateOverdraftLimitLedgerAccountBalanceBodySchema;
|
|
@@ -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
|
+
in: zod_1.z
|
|
23
23
|
.enum([
|
|
24
24
|
'allocation',
|
|
25
25
|
'capture',
|
|
@@ -33,7 +33,7 @@ const ListLedgerOperationsLedgerOperationTypeSchema = zod_1.z.object({
|
|
|
33
33
|
'overdraft_settlement',
|
|
34
34
|
])
|
|
35
35
|
.optional(),
|
|
36
|
-
|
|
36
|
+
is: zod_1.z
|
|
37
37
|
.enum([
|
|
38
38
|
'allocation',
|
|
39
39
|
'capture',
|
|
@@ -7,10 +7,18 @@ exports.ListOmnichannelOneTimeOrderBodySchema = void 0;
|
|
|
7
7
|
const zod_1 = require("zod");
|
|
8
8
|
//OmnichannelOneTimeOrder.list
|
|
9
9
|
const ListOmnichannelOneTimeOrderSourceSchema = zod_1.z.object({
|
|
10
|
-
is: zod_1.z
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
is: zod_1.z
|
|
11
|
+
.enum(['apple_app_store', 'google_play_store', 'roku', 'amazon_app_store'])
|
|
12
|
+
.optional(),
|
|
13
|
+
is_not: zod_1.z
|
|
14
|
+
.enum(['apple_app_store', 'google_play_store', 'roku', 'amazon_app_store'])
|
|
15
|
+
.optional(),
|
|
16
|
+
in: zod_1.z
|
|
17
|
+
.enum(['apple_app_store', 'google_play_store', 'roku', 'amazon_app_store'])
|
|
18
|
+
.optional(),
|
|
19
|
+
not_in: zod_1.z
|
|
20
|
+
.enum(['apple_app_store', 'google_play_store', 'roku', 'amazon_app_store'])
|
|
21
|
+
.optional(),
|
|
14
22
|
});
|
|
15
23
|
const ListOmnichannelOneTimeOrderCustomerIdSchema = zod_1.z.object({
|
|
16
24
|
is: zod_1.z.string().min(1).optional(),
|
|
@@ -7,10 +7,18 @@ exports.MoveOmnichannelSubscriptionBodySchema = exports.OmnichannelTransactionsf
|
|
|
7
7
|
const zod_1 = require("zod");
|
|
8
8
|
//OmnichannelSubscription.list
|
|
9
9
|
const ListOmnichannelSubscriptionSourceSchema = zod_1.z.object({
|
|
10
|
-
is: zod_1.z
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
is: zod_1.z
|
|
11
|
+
.enum(['apple_app_store', 'google_play_store', 'roku', 'amazon_app_store'])
|
|
12
|
+
.optional(),
|
|
13
|
+
is_not: zod_1.z
|
|
14
|
+
.enum(['apple_app_store', 'google_play_store', 'roku', 'amazon_app_store'])
|
|
15
|
+
.optional(),
|
|
16
|
+
in: zod_1.z
|
|
17
|
+
.enum(['apple_app_store', 'google_play_store', 'roku', 'amazon_app_store'])
|
|
18
|
+
.optional(),
|
|
19
|
+
not_in: zod_1.z
|
|
20
|
+
.enum(['apple_app_store', 'google_play_store', 'roku', 'amazon_app_store'])
|
|
21
|
+
.optional(),
|
|
14
22
|
});
|
|
15
23
|
const ListOmnichannelSubscriptionCustomerIdSchema = zod_1.z.object({
|
|
16
24
|
is: zod_1.z.string().min(1).optional(),
|
|
@@ -34,16 +42,16 @@ const ListOmnichannelSubscriptionIdAtSourceSchema = zod_1.z.object({
|
|
|
34
42
|
not_in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
35
43
|
});
|
|
36
44
|
const ListOmnichannelSubscriptionUpdatedAtSchema = zod_1.z.object({
|
|
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
45
|
between: zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
|
|
46
|
+
before: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
47
|
+
on: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
48
|
+
after: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
41
49
|
});
|
|
42
50
|
const ListOmnichannelSubscriptionPurchasedAtSchema = zod_1.z.object({
|
|
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
51
|
between: zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
|
|
52
|
+
before: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
53
|
+
on: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
54
|
+
after: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
47
55
|
});
|
|
48
56
|
const ListOmnichannelSubscriptionSortBySchema = zod_1.z.looseObject({
|
|
49
57
|
asc: zod_1.z.enum(['created_at', 'updated_at']).optional(),
|