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
|
@@ -1,7 +1,33 @@
|
|
|
1
1
|
// Generated Zod schemas: BusinessEntity
|
|
2
|
-
// Actions: createTransfers, getTransfers
|
|
2
|
+
// Actions: create, list, update, createTransfers, getTransfers
|
|
3
3
|
// Do not edit manually – regenerate via sdk-generator
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
+
//BusinessEntity.create
|
|
6
|
+
const CreateBusinessEntityBodySchema = z.looseObject({
|
|
7
|
+
name: z.string().max(100),
|
|
8
|
+
status: z.enum(['active', 'inactive']),
|
|
9
|
+
});
|
|
10
|
+
export { CreateBusinessEntityBodySchema };
|
|
11
|
+
//BusinessEntity.list
|
|
12
|
+
const ListBusinessEntityNameSchema = z.object({
|
|
13
|
+
is: z.string().min(1).optional(),
|
|
14
|
+
is_not: z.string().min(1).optional(),
|
|
15
|
+
starts_with: z.string().min(1).optional(),
|
|
16
|
+
is_present: z.enum(['true', 'false']).optional(),
|
|
17
|
+
});
|
|
18
|
+
const ListBusinessEntityBodySchema = z.looseObject({
|
|
19
|
+
limit: z.number().int().min(1).max(100).optional(),
|
|
20
|
+
offset: z.string().max(1000).optional(),
|
|
21
|
+
include_deleted: z.boolean().default(false).optional(),
|
|
22
|
+
name: ListBusinessEntityNameSchema.optional(),
|
|
23
|
+
});
|
|
24
|
+
export { ListBusinessEntityBodySchema };
|
|
25
|
+
//BusinessEntity.update
|
|
26
|
+
const UpdateBusinessEntityBodySchema = z.looseObject({
|
|
27
|
+
name: z.string().max(100).optional(),
|
|
28
|
+
status: z.enum(['active', 'inactive']).optional(),
|
|
29
|
+
});
|
|
30
|
+
export { UpdateBusinessEntityBodySchema };
|
|
5
31
|
//BusinessEntity.createTransfers
|
|
6
32
|
const CreateTransfersBusinessEntityBodySchema = z.looseObject({
|
|
7
33
|
active_resource_ids: z.array(z.string().max(50).optional()),
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// Generated Zod schemas: BusinessRule
|
|
2
|
+
// Actions: create, updateDraft, list, applyRules
|
|
3
|
+
// Do not edit manually – regenerate via sdk-generator
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
//BusinessRule.create
|
|
6
|
+
const CreateBusinessRuleStructuredExpressionSchema = z.looseObject({});
|
|
7
|
+
const CreateBusinessRuleBodySchema = z.looseObject({
|
|
8
|
+
id: z.string().max(100).optional(),
|
|
9
|
+
name: z.string().max(500),
|
|
10
|
+
description: z.string().max(1000).optional(),
|
|
11
|
+
tags: z.array(z.string().optional()).optional(),
|
|
12
|
+
structured_expression: CreateBusinessRuleStructuredExpressionSchema,
|
|
13
|
+
actions_on_success: z.array(z.string().optional()).optional(),
|
|
14
|
+
});
|
|
15
|
+
export { CreateBusinessRuleBodySchema };
|
|
16
|
+
//BusinessRule.updateDraft
|
|
17
|
+
const UpdateDraftBusinessRuleStructuredExpressionSchema = z.looseObject({});
|
|
18
|
+
const UpdateDraftBusinessRuleBodySchema = z.looseObject({
|
|
19
|
+
name: z.string().max(500),
|
|
20
|
+
description: z.string().max(1000).optional(),
|
|
21
|
+
tags: z.array(z.string().optional()).optional(),
|
|
22
|
+
structured_expression: UpdateDraftBusinessRuleStructuredExpressionSchema,
|
|
23
|
+
actions_on_success: z.array(z.string().optional()).optional(),
|
|
24
|
+
});
|
|
25
|
+
export { UpdateDraftBusinessRuleBodySchema };
|
|
26
|
+
//BusinessRule.list
|
|
27
|
+
const ListBusinessRuleDraftSchema = z.object({
|
|
28
|
+
is: z.enum(['true', 'false']).optional(),
|
|
29
|
+
});
|
|
30
|
+
const ListBusinessRuleActiveSchema = z.object({
|
|
31
|
+
is: z.enum(['true', 'false']).optional(),
|
|
32
|
+
});
|
|
33
|
+
const ListBusinessRuleBodySchema = z.looseObject({
|
|
34
|
+
limit: z.number().int().min(1).max(100).optional(),
|
|
35
|
+
offset: z.string().max(1000).optional(),
|
|
36
|
+
draft: ListBusinessRuleDraftSchema.optional(),
|
|
37
|
+
active: ListBusinessRuleActiveSchema.optional(),
|
|
38
|
+
});
|
|
39
|
+
export { ListBusinessRuleBodySchema };
|
|
40
|
+
//BusinessRule.applyRules
|
|
41
|
+
const ApplyRulesBusinessRuleStructuredExpressionSchema = z.looseObject({});
|
|
42
|
+
const ApplyRulesBusinessRuleContextSchema = z.looseObject({});
|
|
43
|
+
const ApplyRulesBusinessRuleBodySchema = z.looseObject({
|
|
44
|
+
evaluate: z.boolean().optional(),
|
|
45
|
+
rule_id: z.string().optional(),
|
|
46
|
+
ruleset_id: z.string().optional(),
|
|
47
|
+
skip_failed_rules: z.boolean().optional(),
|
|
48
|
+
structured_expression: ApplyRulesBusinessRuleStructuredExpressionSchema.optional(),
|
|
49
|
+
context: ApplyRulesBusinessRuleContextSchema.optional(),
|
|
50
|
+
});
|
|
51
|
+
export { ApplyRulesBusinessRuleBodySchema };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
// Generated Zod schemas: BusinessRuleset
|
|
2
|
+
// Actions: create, update, addRules, removeRules, listRules, list
|
|
3
|
+
// Do not edit manually – regenerate via sdk-generator
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
//BusinessRuleset.create
|
|
6
|
+
const CreateBusinessRulesetBodySchema = z.looseObject({
|
|
7
|
+
id: z.string().max(100).optional(),
|
|
8
|
+
name: z.string().max(500),
|
|
9
|
+
description: z.string().max(1000).optional(),
|
|
10
|
+
execute_mode: z
|
|
11
|
+
.enum([
|
|
12
|
+
'stop_on_first_true',
|
|
13
|
+
'stop_on_first_false',
|
|
14
|
+
'execute_all',
|
|
15
|
+
'execute_all_true',
|
|
16
|
+
])
|
|
17
|
+
.optional(),
|
|
18
|
+
rules: z.array(z.string().optional()).optional(),
|
|
19
|
+
});
|
|
20
|
+
export { CreateBusinessRulesetBodySchema };
|
|
21
|
+
//BusinessRuleset.update
|
|
22
|
+
const UpdateBusinessRulesetBodySchema = z.looseObject({
|
|
23
|
+
name: z.string().max(500),
|
|
24
|
+
description: z.string().max(1000).optional(),
|
|
25
|
+
execute_mode: z
|
|
26
|
+
.enum([
|
|
27
|
+
'stop_on_first_true',
|
|
28
|
+
'stop_on_first_false',
|
|
29
|
+
'execute_all',
|
|
30
|
+
'execute_all_true',
|
|
31
|
+
])
|
|
32
|
+
.optional(),
|
|
33
|
+
rules: z.array(z.string().optional()).optional(),
|
|
34
|
+
});
|
|
35
|
+
export { UpdateBusinessRulesetBodySchema };
|
|
36
|
+
//BusinessRuleset.addRules
|
|
37
|
+
const AddRulesBusinessRulesetBodySchema = z.looseObject({
|
|
38
|
+
rules: z.array(z.string().optional()).optional(),
|
|
39
|
+
});
|
|
40
|
+
export { AddRulesBusinessRulesetBodySchema };
|
|
41
|
+
//BusinessRuleset.removeRules
|
|
42
|
+
const RemoveRulesBusinessRulesetBodySchema = z.looseObject({
|
|
43
|
+
rules: z.array(z.string().optional()).optional(),
|
|
44
|
+
});
|
|
45
|
+
export { RemoveRulesBusinessRulesetBodySchema };
|
|
46
|
+
//BusinessRuleset.listRules
|
|
47
|
+
const ListRulesBusinessRulesetActiveSchema = z.object({
|
|
48
|
+
is: z.enum(['true', 'false']).optional(),
|
|
49
|
+
});
|
|
50
|
+
const ListRulesBusinessRulesetBodySchema = z.looseObject({
|
|
51
|
+
limit: z.number().int().min(1).max(100).optional(),
|
|
52
|
+
offset: z.string().max(1000).optional(),
|
|
53
|
+
active: ListRulesBusinessRulesetActiveSchema.optional(),
|
|
54
|
+
});
|
|
55
|
+
export { ListRulesBusinessRulesetBodySchema };
|
|
56
|
+
//BusinessRuleset.list
|
|
57
|
+
const ListBusinessRulesetActiveSchema = z.object({
|
|
58
|
+
is: z.enum(['true', 'false']).optional(),
|
|
59
|
+
});
|
|
60
|
+
const ListBusinessRulesetBodySchema = z.looseObject({
|
|
61
|
+
limit: z.number().int().min(1).max(100).optional(),
|
|
62
|
+
offset: z.string().max(1000).optional(),
|
|
63
|
+
active: ListBusinessRulesetActiveSchema.optional(),
|
|
64
|
+
});
|
|
65
|
+
export { ListBusinessRulesetBodySchema };
|
|
@@ -68,6 +68,7 @@ const UpdateCardForCustomerCardBodySchema = z.looseObject({
|
|
|
68
68
|
'tempus',
|
|
69
69
|
'moyasar',
|
|
70
70
|
'payway',
|
|
71
|
+
'payu',
|
|
71
72
|
])
|
|
72
73
|
.optional(),
|
|
73
74
|
gateway_account_id: z.string().max(50).optional(),
|
|
@@ -79,7 +80,7 @@ const UpdateCardForCustomerCardBodySchema = z.looseObject({
|
|
|
79
80
|
expiry_year: z.number().int(),
|
|
80
81
|
cvv: z.string().max(520).optional(),
|
|
81
82
|
preferred_scheme: z
|
|
82
|
-
.enum(['cartes_bancaires', 'mastercard', 'visa'])
|
|
83
|
+
.enum(['cartes_bancaires', 'mastercard', 'visa', 'dankort'])
|
|
83
84
|
.optional(),
|
|
84
85
|
billing_addr1: z.string().max(150).optional(),
|
|
85
86
|
billing_addr2: z.string().max(150).optional(),
|
|
@@ -150,6 +151,7 @@ const SwitchGatewayForCustomerCardBodySchema = z.looseObject({
|
|
|
150
151
|
'tempus',
|
|
151
152
|
'moyasar',
|
|
152
153
|
'payway',
|
|
154
|
+
'payu',
|
|
153
155
|
])
|
|
154
156
|
.optional(),
|
|
155
157
|
gateway_account_id: z.string().max(50),
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// Generated Zod schemas: CollectionsPaymentPromise
|
|
2
|
+
// Actions: listCollectionsPaymentPromises, createCollectionsPaymentPromise, updateCollectionsPaymentPromise
|
|
3
|
+
// Do not edit manually – regenerate via sdk-generator
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
//CollectionsPaymentPromise.listCollectionsPaymentPromises
|
|
6
|
+
const ListCollectionsPaymentPromisesCollectionsPaymentPromiseCustomerIdSchema = z.object({
|
|
7
|
+
is: z.string().min(1).optional(),
|
|
8
|
+
});
|
|
9
|
+
const ListCollectionsPaymentPromisesCollectionsPaymentPromiseInvoiceIdSchema = z.object({
|
|
10
|
+
is: z.string().min(1).optional(),
|
|
11
|
+
});
|
|
12
|
+
const ListCollectionsPaymentPromisesCollectionsPaymentPromiseStatusSchema = z.object({
|
|
13
|
+
is: z.enum(['active', 'fulfilled', 'broken', 'cancelled']).optional(),
|
|
14
|
+
});
|
|
15
|
+
const ListCollectionsPaymentPromisesCollectionsPaymentPromiseBodySchema = z.looseObject({
|
|
16
|
+
limit: z.number().int().min(1).max(100).optional(),
|
|
17
|
+
offset: z.string().max(1000).optional(),
|
|
18
|
+
customer_id: ListCollectionsPaymentPromisesCollectionsPaymentPromiseCustomerIdSchema.optional(),
|
|
19
|
+
invoice_id: ListCollectionsPaymentPromisesCollectionsPaymentPromiseInvoiceIdSchema.optional(),
|
|
20
|
+
status: ListCollectionsPaymentPromisesCollectionsPaymentPromiseStatusSchema.optional(),
|
|
21
|
+
});
|
|
22
|
+
export { ListCollectionsPaymentPromisesCollectionsPaymentPromiseBodySchema };
|
|
23
|
+
//CollectionsPaymentPromise.createCollectionsPaymentPromise
|
|
24
|
+
const CreateCollectionsPaymentPromiseCollectionsPaymentPromiseBodySchema = z.looseObject({
|
|
25
|
+
customer_id: z.string().max(100),
|
|
26
|
+
invoice_id: z.string().max(100).optional(),
|
|
27
|
+
amount: z.number().int(),
|
|
28
|
+
currency_code: z.string().max(3).optional(),
|
|
29
|
+
promised_on: z.number().int(),
|
|
30
|
+
reason: z.string().max(500).optional(),
|
|
31
|
+
promised_by: z.string().max(254).optional(),
|
|
32
|
+
});
|
|
33
|
+
export { CreateCollectionsPaymentPromiseCollectionsPaymentPromiseBodySchema };
|
|
34
|
+
//CollectionsPaymentPromise.updateCollectionsPaymentPromise
|
|
35
|
+
const UpdateCollectionsPaymentPromiseCollectionsPaymentPromiseBodySchema = z.looseObject({
|
|
36
|
+
promised_on: z.number().int().optional(),
|
|
37
|
+
reason: z.string().max(500).optional(),
|
|
38
|
+
promised_by: z.string().max(254).optional(),
|
|
39
|
+
});
|
|
40
|
+
export { UpdateCollectionsPaymentPromiseCollectionsPaymentPromiseBodySchema };
|
|
@@ -20,6 +20,7 @@ const CreateCommentBodySchema = z.looseObject({
|
|
|
20
20
|
'item',
|
|
21
21
|
'item_price',
|
|
22
22
|
'price_variant',
|
|
23
|
+
'task',
|
|
23
24
|
]),
|
|
24
25
|
entity_id: z.string().max(100),
|
|
25
26
|
notes: z.string().max(1000),
|
|
@@ -57,6 +58,7 @@ const ListCommentBodySchema = z.looseObject({
|
|
|
57
58
|
'item',
|
|
58
59
|
'item_price',
|
|
59
60
|
'price_variant',
|
|
61
|
+
'task',
|
|
60
62
|
])
|
|
61
63
|
.optional(),
|
|
62
64
|
entity_id: z.string().max(100).optional(),
|
|
@@ -256,8 +256,8 @@ const ListCouponCurrencyCodeSchema = z.object({
|
|
|
256
256
|
not_in: z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
257
257
|
});
|
|
258
258
|
const ListCouponApplicableItemPriceIdsSchema = z.object({
|
|
259
|
-
is: z.string().min(1).optional(),
|
|
260
259
|
in: z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
260
|
+
is: z.string().min(1).optional(),
|
|
261
261
|
});
|
|
262
262
|
const ListCouponBodySchema = z.looseObject({
|
|
263
263
|
limit: z.number().int().min(1).max(100).optional(),
|
|
@@ -92,10 +92,12 @@ const RecordRefundCreditNoteTransactionSchema = z.object({
|
|
|
92
92
|
'app_store',
|
|
93
93
|
'play_store',
|
|
94
94
|
'custom',
|
|
95
|
-
'dana',
|
|
96
|
-
'touch_n_go',
|
|
97
95
|
'tamara',
|
|
98
96
|
'qpay',
|
|
97
|
+
'blik',
|
|
98
|
+
'fpx',
|
|
99
|
+
'wero',
|
|
100
|
+
'p24',
|
|
99
101
|
]),
|
|
100
102
|
reference_number: z.string().max(100).optional(),
|
|
101
103
|
custom_payment_method_id: z.string().max(50).optional(),
|
|
@@ -410,6 +412,8 @@ const ImportCreditNoteCreditNoteLineItemsSchema = z.object({
|
|
|
410
412
|
tax9_amount: z.array(z.number().int().min(0).optional()).optional(),
|
|
411
413
|
tax10_name: z.array(z.string().max(50).optional()).optional(),
|
|
412
414
|
tax10_amount: z.array(z.number().int().min(0).optional()).optional(),
|
|
415
|
+
is_partial_tax_applied: z.array(z.boolean().optional()).optional(),
|
|
416
|
+
taxable_amount: z.array(z.number().int().min(0).optional()).optional(),
|
|
413
417
|
proration_mode: z
|
|
414
418
|
.array(z
|
|
415
419
|
.enum(['reset', 'delta', 'service_period_revision', 'adjusted_term'])
|
|
@@ -481,10 +485,12 @@ const ImportCreditNoteCreditNoteLinkedRefundsSchema = z.object({
|
|
|
481
485
|
'app_store',
|
|
482
486
|
'play_store',
|
|
483
487
|
'custom',
|
|
484
|
-
'dana',
|
|
485
|
-
'touch_n_go',
|
|
486
488
|
'tamara',
|
|
487
489
|
'qpay',
|
|
490
|
+
'blik',
|
|
491
|
+
'fpx',
|
|
492
|
+
'wero',
|
|
493
|
+
'p24',
|
|
488
494
|
])
|
|
489
495
|
.optional()),
|
|
490
496
|
date: z.array(z.number().int().optional()),
|
|
@@ -499,6 +505,7 @@ const ImportCreditNoteCreditNoteBodySchema = z.looseObject({
|
|
|
499
505
|
currency_code: z.string().max(3).optional(),
|
|
500
506
|
create_reason_code: z.string().max(100),
|
|
501
507
|
date: z.number().int(),
|
|
508
|
+
customer_notes: z.string().max(2000).optional(),
|
|
502
509
|
status: z.enum(['adjusted', 'refunded', 'refund_due', 'voided']).optional(),
|
|
503
510
|
total: z.number().int().min(0).optional(),
|
|
504
511
|
refunded_at: z.number().int().optional(),
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
//CreditUnit.list
|
|
6
6
|
const ListCreditUnitStatusSchema = z.object({
|
|
7
|
-
is: z.enum(['active', 'archived']).optional(),
|
|
8
7
|
in: z.enum(['active', 'archived']).optional(),
|
|
8
|
+
is: z.enum(['active', 'archived']).optional(),
|
|
9
9
|
});
|
|
10
10
|
const ListCreditUnitIdSchema = z.object({
|
|
11
|
-
is: z.string().min(1).optional(),
|
|
12
11
|
in: z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
12
|
+
is: z.string().min(1).optional(),
|
|
13
13
|
});
|
|
14
14
|
const ListCreditUnitBodySchema = z.looseObject({
|
|
15
15
|
limit: z.number().int().min(1).max(100).optional(),
|
|
@@ -67,6 +67,7 @@ const CreateCustomerCardSchema = z.object({
|
|
|
67
67
|
'tempus',
|
|
68
68
|
'moyasar',
|
|
69
69
|
'payway',
|
|
70
|
+
'payu',
|
|
70
71
|
])
|
|
71
72
|
.optional(),
|
|
72
73
|
gateway_account_id: z.string().max(50).optional(),
|
|
@@ -78,7 +79,7 @@ const CreateCustomerCardSchema = z.object({
|
|
|
78
79
|
expiry_year: z.number().int().optional(),
|
|
79
80
|
cvv: z.string().max(520).optional(),
|
|
80
81
|
preferred_scheme: z
|
|
81
|
-
.enum(['cartes_bancaires', 'mastercard', 'visa'])
|
|
82
|
+
.enum(['cartes_bancaires', 'mastercard', 'visa', 'dankort'])
|
|
82
83
|
.optional(),
|
|
83
84
|
billing_addr1: z.string().max(150).optional(),
|
|
84
85
|
billing_addr2: z.string().max(150).optional(),
|
|
@@ -169,6 +170,19 @@ const CreateCustomerPaymentMethodSchema = z.object({
|
|
|
169
170
|
'touch_n_go',
|
|
170
171
|
'tamara',
|
|
171
172
|
'qpay',
|
|
173
|
+
'ovo',
|
|
174
|
+
'momo',
|
|
175
|
+
'mercado_pago',
|
|
176
|
+
'nequi',
|
|
177
|
+
'nupay',
|
|
178
|
+
'picpay',
|
|
179
|
+
'thai_qr',
|
|
180
|
+
'blik',
|
|
181
|
+
'fpx',
|
|
182
|
+
'wero',
|
|
183
|
+
'p24',
|
|
184
|
+
'affirm_pay',
|
|
185
|
+
'rakuten_pay',
|
|
172
186
|
])
|
|
173
187
|
.optional(),
|
|
174
188
|
gateway: z
|
|
@@ -232,6 +246,7 @@ const CreateCustomerPaymentMethodSchema = z.object({
|
|
|
232
246
|
'tempus',
|
|
233
247
|
'moyasar',
|
|
234
248
|
'payway',
|
|
249
|
+
'payu',
|
|
235
250
|
])
|
|
236
251
|
.optional(),
|
|
237
252
|
gateway_account_id: z.string().max(50).optional(),
|
|
@@ -298,6 +313,19 @@ const CreateCustomerPaymentIntentSchema = z.object({
|
|
|
298
313
|
'touch_n_go',
|
|
299
314
|
'tamara',
|
|
300
315
|
'qpay',
|
|
316
|
+
'ovo',
|
|
317
|
+
'momo',
|
|
318
|
+
'mercado_pago',
|
|
319
|
+
'nequi',
|
|
320
|
+
'nupay',
|
|
321
|
+
'picpay',
|
|
322
|
+
'thai_qr',
|
|
323
|
+
'blik',
|
|
324
|
+
'fpx',
|
|
325
|
+
'wero',
|
|
326
|
+
'p24',
|
|
327
|
+
'affirm_pay',
|
|
328
|
+
'rakuten_pay',
|
|
301
329
|
])
|
|
302
330
|
.optional(),
|
|
303
331
|
reference_id: z.string().max(65000).optional(),
|
|
@@ -333,7 +361,7 @@ const CreateCustomerBodySchema = z.looseObject({
|
|
|
333
361
|
registered_for_gst: z.boolean().optional(),
|
|
334
362
|
is_einvoice_enabled: z.boolean().optional(),
|
|
335
363
|
einvoicing_method: z.enum(['automatic', 'manual', 'site_default']).optional(),
|
|
336
|
-
taxability: z.enum(['taxable', 'exempt']).optional(),
|
|
364
|
+
taxability: z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
|
|
337
365
|
exemption_details: z.array(z.string().optional()).optional(),
|
|
338
366
|
customer_type: z
|
|
339
367
|
.enum(['residential', 'business', 'senior_citizen', 'industrial'])
|
|
@@ -390,6 +418,7 @@ const CreateCustomerBodySchema = z.looseObject({
|
|
|
390
418
|
consolidated_invoicing: z.boolean().optional(),
|
|
391
419
|
token_id: z.string().max(40).optional(),
|
|
392
420
|
business_entity_id: z.string().max(50).optional(),
|
|
421
|
+
brand_id: z.string().max(50).optional(),
|
|
393
422
|
created_from_ip: z.string().max(50).optional(),
|
|
394
423
|
invoice_notes: z.string().max(2000).optional(),
|
|
395
424
|
card: CreateCustomerCardSchema.optional(),
|
|
@@ -446,10 +475,10 @@ const ListCustomerAutoCollectionSchema = z.object({
|
|
|
446
475
|
not_in: z.enum(['on', 'off']).optional(),
|
|
447
476
|
});
|
|
448
477
|
const ListCustomerTaxabilitySchema = z.object({
|
|
449
|
-
is: z.enum(['taxable', 'exempt']).optional(),
|
|
450
|
-
is_not: z.enum(['taxable', 'exempt']).optional(),
|
|
451
|
-
in: z.enum(['taxable', 'exempt']).optional(),
|
|
452
|
-
not_in: z.enum(['taxable', 'exempt']).optional(),
|
|
478
|
+
is: z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
|
|
479
|
+
is_not: z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
|
|
480
|
+
in: z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
|
|
481
|
+
not_in: z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
|
|
453
482
|
});
|
|
454
483
|
const ListCustomerCreatedAtSchema = z.object({
|
|
455
484
|
after: z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
@@ -608,7 +637,7 @@ const UpdateCustomerBodySchema = z.looseObject({
|
|
|
608
637
|
auto_collection: z.enum(['on', 'off']).optional(),
|
|
609
638
|
allow_direct_debit: z.boolean().default(false).optional(),
|
|
610
639
|
net_term_days: z.number().int().optional(),
|
|
611
|
-
taxability: z.enum(['taxable', 'exempt']).optional(),
|
|
640
|
+
taxability: z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
|
|
612
641
|
exemption_details: z.array(z.string().optional()).optional(),
|
|
613
642
|
customer_type: z
|
|
614
643
|
.enum(['residential', 'business', 'senior_citizen', 'industrial'])
|
|
@@ -724,6 +753,19 @@ const UpdatePaymentMethodCustomerPaymentMethodSchema = z.object({
|
|
|
724
753
|
'touch_n_go',
|
|
725
754
|
'tamara',
|
|
726
755
|
'qpay',
|
|
756
|
+
'ovo',
|
|
757
|
+
'momo',
|
|
758
|
+
'mercado_pago',
|
|
759
|
+
'nequi',
|
|
760
|
+
'nupay',
|
|
761
|
+
'picpay',
|
|
762
|
+
'thai_qr',
|
|
763
|
+
'blik',
|
|
764
|
+
'fpx',
|
|
765
|
+
'wero',
|
|
766
|
+
'p24',
|
|
767
|
+
'affirm_pay',
|
|
768
|
+
'rakuten_pay',
|
|
727
769
|
]),
|
|
728
770
|
gateway: z
|
|
729
771
|
.enum([
|
|
@@ -786,6 +828,7 @@ const UpdatePaymentMethodCustomerPaymentMethodSchema = z.object({
|
|
|
786
828
|
'tempus',
|
|
787
829
|
'moyasar',
|
|
788
830
|
'payway',
|
|
831
|
+
'payu',
|
|
789
832
|
])
|
|
790
833
|
.optional(),
|
|
791
834
|
gateway_account_id: z.string().max(50).optional(),
|
|
@@ -944,10 +987,12 @@ const RecordExcessPaymentCustomerTransactionSchema = z.object({
|
|
|
944
987
|
'app_store',
|
|
945
988
|
'play_store',
|
|
946
989
|
'custom',
|
|
947
|
-
'dana',
|
|
948
|
-
'touch_n_go',
|
|
949
990
|
'tamara',
|
|
950
991
|
'qpay',
|
|
992
|
+
'blik',
|
|
993
|
+
'fpx',
|
|
994
|
+
'wero',
|
|
995
|
+
'p24',
|
|
951
996
|
]),
|
|
952
997
|
reference_number: z.string().max(100).optional(),
|
|
953
998
|
custom_payment_method_id: z.string().max(50).optional(),
|
|
@@ -1016,6 +1061,19 @@ const CollectPaymentCustomerPaymentMethodSchema = z.object({
|
|
|
1016
1061
|
'touch_n_go',
|
|
1017
1062
|
'tamara',
|
|
1018
1063
|
'qpay',
|
|
1064
|
+
'ovo',
|
|
1065
|
+
'momo',
|
|
1066
|
+
'mercado_pago',
|
|
1067
|
+
'nequi',
|
|
1068
|
+
'nupay',
|
|
1069
|
+
'picpay',
|
|
1070
|
+
'thai_qr',
|
|
1071
|
+
'blik',
|
|
1072
|
+
'fpx',
|
|
1073
|
+
'wero',
|
|
1074
|
+
'p24',
|
|
1075
|
+
'affirm_pay',
|
|
1076
|
+
'rakuten_pay',
|
|
1019
1077
|
])
|
|
1020
1078
|
.optional(),
|
|
1021
1079
|
gateway_account_id: z.string().max(50).optional(),
|
|
@@ -1032,7 +1090,7 @@ const CollectPaymentCustomerCardSchema = z.object({
|
|
|
1032
1090
|
expiry_year: z.number().int().optional(),
|
|
1033
1091
|
cvv: z.string().max(520).optional(),
|
|
1034
1092
|
preferred_scheme: z
|
|
1035
|
-
.enum(['cartes_bancaires', 'mastercard', 'visa'])
|
|
1093
|
+
.enum(['cartes_bancaires', 'mastercard', 'visa', 'dankort'])
|
|
1036
1094
|
.optional(),
|
|
1037
1095
|
billing_addr1: z.string().max(150).optional(),
|
|
1038
1096
|
billing_addr2: z.string().max(150).optional(),
|
|
@@ -1101,6 +1159,19 @@ const CollectPaymentCustomerPaymentIntentSchema = z.object({
|
|
|
1101
1159
|
'touch_n_go',
|
|
1102
1160
|
'tamara',
|
|
1103
1161
|
'qpay',
|
|
1162
|
+
'ovo',
|
|
1163
|
+
'momo',
|
|
1164
|
+
'mercado_pago',
|
|
1165
|
+
'nequi',
|
|
1166
|
+
'nupay',
|
|
1167
|
+
'picpay',
|
|
1168
|
+
'thai_qr',
|
|
1169
|
+
'blik',
|
|
1170
|
+
'fpx',
|
|
1171
|
+
'wero',
|
|
1172
|
+
'p24',
|
|
1173
|
+
'affirm_pay',
|
|
1174
|
+
'rakuten_pay',
|
|
1104
1175
|
])
|
|
1105
1176
|
.optional(),
|
|
1106
1177
|
gw_payment_method_id: z.string().max(65000).optional(),
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
// Generated Zod schemas: Dispute
|
|
2
|
+
// Actions: list
|
|
3
|
+
// Do not edit manually – regenerate via sdk-generator
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
//Dispute.list
|
|
6
|
+
const ListDisputeIdSchema = z.object({
|
|
7
|
+
is: z.string().min(1).optional(),
|
|
8
|
+
is_not: z.string().min(1).optional(),
|
|
9
|
+
starts_with: z.string().min(1).optional(),
|
|
10
|
+
in: z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
11
|
+
not_in: z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
12
|
+
});
|
|
13
|
+
const ListDisputeStatusSchema = z.object({
|
|
14
|
+
is: z
|
|
15
|
+
.enum([
|
|
16
|
+
'initiated',
|
|
17
|
+
'funds_withdrawn',
|
|
18
|
+
'in_review',
|
|
19
|
+
'cancelled',
|
|
20
|
+
'lost',
|
|
21
|
+
'won',
|
|
22
|
+
])
|
|
23
|
+
.optional(),
|
|
24
|
+
is_not: z
|
|
25
|
+
.enum([
|
|
26
|
+
'initiated',
|
|
27
|
+
'funds_withdrawn',
|
|
28
|
+
'in_review',
|
|
29
|
+
'cancelled',
|
|
30
|
+
'lost',
|
|
31
|
+
'won',
|
|
32
|
+
])
|
|
33
|
+
.optional(),
|
|
34
|
+
in: z
|
|
35
|
+
.enum([
|
|
36
|
+
'initiated',
|
|
37
|
+
'funds_withdrawn',
|
|
38
|
+
'in_review',
|
|
39
|
+
'cancelled',
|
|
40
|
+
'lost',
|
|
41
|
+
'won',
|
|
42
|
+
])
|
|
43
|
+
.optional(),
|
|
44
|
+
not_in: z
|
|
45
|
+
.enum([
|
|
46
|
+
'initiated',
|
|
47
|
+
'funds_withdrawn',
|
|
48
|
+
'in_review',
|
|
49
|
+
'cancelled',
|
|
50
|
+
'lost',
|
|
51
|
+
'won',
|
|
52
|
+
])
|
|
53
|
+
.optional(),
|
|
54
|
+
});
|
|
55
|
+
const ListDisputeTypeSchema = z.object({
|
|
56
|
+
is: z.enum(['chargeback', 'inquiry']).optional(),
|
|
57
|
+
is_not: z.enum(['chargeback', 'inquiry']).optional(),
|
|
58
|
+
in: z.enum(['chargeback', 'inquiry']).optional(),
|
|
59
|
+
not_in: z.enum(['chargeback', 'inquiry']).optional(),
|
|
60
|
+
});
|
|
61
|
+
const ListDisputeCustomerIdSchema = z.object({
|
|
62
|
+
is: z.string().min(1).optional(),
|
|
63
|
+
is_not: z.string().min(1).optional(),
|
|
64
|
+
starts_with: z.string().min(1).optional(),
|
|
65
|
+
in: z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
66
|
+
not_in: z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
67
|
+
});
|
|
68
|
+
const ListDisputeTransactionIdSchema = z.object({
|
|
69
|
+
is: z.string().min(1).optional(),
|
|
70
|
+
is_not: z.string().min(1).optional(),
|
|
71
|
+
starts_with: z.string().min(1).optional(),
|
|
72
|
+
in: z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
73
|
+
not_in: z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
74
|
+
});
|
|
75
|
+
const ListDisputeAmountSchema = z.object({
|
|
76
|
+
is: z.string().regex(RegExp('^-?\\d+$')).optional(),
|
|
77
|
+
is_not: z.string().regex(RegExp('^-?\\d+$')).optional(),
|
|
78
|
+
lt: z.string().regex(RegExp('^-?\\d+$')).optional(),
|
|
79
|
+
lte: z.string().regex(RegExp('^-?\\d+$')).optional(),
|
|
80
|
+
gt: z.string().regex(RegExp('^-?\\d+$')).optional(),
|
|
81
|
+
gte: z.string().regex(RegExp('^-?\\d+$')).optional(),
|
|
82
|
+
between: z.string().regex(RegExp('^\\[-?\\d+,-?\\d+\\]$')).optional(),
|
|
83
|
+
});
|
|
84
|
+
const ListDisputeCreatedAtSchema = z.object({
|
|
85
|
+
after: z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
86
|
+
before: z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
87
|
+
on: z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
88
|
+
between: z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
|
|
89
|
+
});
|
|
90
|
+
const ListDisputeBodySchema = z.looseObject({
|
|
91
|
+
limit: z.number().int().min(1).max(100).optional(),
|
|
92
|
+
offset: z.string().max(1000).optional(),
|
|
93
|
+
id: ListDisputeIdSchema.optional(),
|
|
94
|
+
status: ListDisputeStatusSchema.optional(),
|
|
95
|
+
type: ListDisputeTypeSchema.optional(),
|
|
96
|
+
customer_id: ListDisputeCustomerIdSchema.optional(),
|
|
97
|
+
transaction_id: ListDisputeTransactionIdSchema.optional(),
|
|
98
|
+
amount: ListDisputeAmountSchema.optional(),
|
|
99
|
+
created_at: ListDisputeCreatedAtSchema.optional(),
|
|
100
|
+
});
|
|
101
|
+
export { ListDisputeBodySchema };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// Generated Zod schemas: Einvoice
|
|
2
|
+
// Actions: listEinvoices
|
|
3
|
+
// Do not edit manually – regenerate via sdk-generator
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
//Einvoice.listEinvoices
|
|
6
|
+
const ListEinvoicesEinvoiceIdSchema = z.object({
|
|
7
|
+
in: z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
8
|
+
is: z.string().min(1).optional(),
|
|
9
|
+
});
|
|
10
|
+
const ListEinvoicesEinvoiceReferenceIdSchema = z.object({
|
|
11
|
+
in: z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
12
|
+
is: z.string().min(1).optional(),
|
|
13
|
+
});
|
|
14
|
+
const ListEinvoicesEinvoiceUpdatedAtSchema = z.object({
|
|
15
|
+
after: z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
16
|
+
before: z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
17
|
+
on: z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
18
|
+
between: z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
|
|
19
|
+
});
|
|
20
|
+
const ListEinvoicesEinvoiceSortBySchema = z.looseObject({
|
|
21
|
+
asc: z.enum(['updated_at']).optional(),
|
|
22
|
+
desc: z.enum(['updated_at']).optional(),
|
|
23
|
+
});
|
|
24
|
+
const ListEinvoicesEinvoiceBodySchema = z.looseObject({
|
|
25
|
+
limit: z.number().int().min(1).max(100).optional(),
|
|
26
|
+
offset: z.string().max(1000).optional(),
|
|
27
|
+
id: ListEinvoicesEinvoiceIdSchema.optional(),
|
|
28
|
+
reference_id: ListEinvoicesEinvoiceReferenceIdSchema.optional(),
|
|
29
|
+
updated_at: ListEinvoicesEinvoiceUpdatedAtSchema.optional(),
|
|
30
|
+
sort_by: ListEinvoicesEinvoiceSortBySchema.optional(),
|
|
31
|
+
invoice_id: z.string().max(50).optional(),
|
|
32
|
+
credit_note_id: z.string().max(50).optional(),
|
|
33
|
+
});
|
|
34
|
+
export { ListEinvoicesEinvoiceBodySchema };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Generated Zod schemas: EmailLog
|
|
2
|
+
// Actions: emailLogsForCustomer
|
|
3
|
+
// Do not edit manually – regenerate via sdk-generator
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
//EmailLog.emailLogsForCustomer
|
|
6
|
+
const EmailLogsForCustomerEmailLogSentOnSchema = z.object({
|
|
7
|
+
after: z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
8
|
+
before: z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
9
|
+
on: z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
10
|
+
between: z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
|
|
11
|
+
});
|
|
12
|
+
const EmailLogsForCustomerEmailLogBusinessEntityIdSchema = z.object({
|
|
13
|
+
is: z.string().min(1).optional(),
|
|
14
|
+
});
|
|
15
|
+
const EmailLogsForCustomerEmailLogBrandIdSchema = z.object({
|
|
16
|
+
is: z.string().min(1).optional(),
|
|
17
|
+
});
|
|
18
|
+
const EmailLogsForCustomerEmailLogBodySchema = z.looseObject({
|
|
19
|
+
limit: z.number().int().min(1).max(100).optional(),
|
|
20
|
+
offset: z.string().max(1000).optional(),
|
|
21
|
+
sent_on: EmailLogsForCustomerEmailLogSentOnSchema.optional(),
|
|
22
|
+
business_entity_id: EmailLogsForCustomerEmailLogBusinessEntityIdSchema.optional(),
|
|
23
|
+
brand_id: EmailLogsForCustomerEmailLogBrandIdSchema.optional(),
|
|
24
|
+
});
|
|
25
|
+
export { EmailLogsForCustomerEmailLogBodySchema };
|