chargebee 3.35.0 → 3.36.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 +65 -0
- package/cjs/environment.js +1 -1
- package/cjs/resources/api_endpoints.js +56 -0
- package/cjs/resources/webhook/eventType.js +2 -0
- package/cjs/schema/addon.schema.js +221 -40
- package/cjs/schema/alert.schema.js +17 -2
- package/cjs/schema/alert_status.schema.js +6 -1
- package/cjs/schema/attached_item.schema.js +101 -26
- package/cjs/schema/business_entity.schema.js +16 -5
- package/cjs/schema/business_rule.schema.js +2 -2
- package/cjs/schema/business_ruleset.schema.js +2 -2
- package/cjs/schema/comment.schema.js +15 -4
- package/cjs/schema/coupon.schema.js +218 -37
- package/cjs/schema/coupon_code.schema.js +36 -6
- package/cjs/schema/coupon_set.schema.js +108 -27
- package/cjs/schema/credit_note.schema.js +496 -105
- package/cjs/schema/credit_unit.schema.js +12 -2
- package/cjs/schema/customer.schema.js +212 -62
- package/cjs/schema/differential_price.schema.js +100 -12
- package/cjs/schema/dispute.schema.js +125 -33
- package/cjs/schema/einvoice.schema.js +27 -6
- package/cjs/schema/email_log.schema.js +15 -4
- package/cjs/schema/entitlement.schema.js +33 -4
- package/cjs/schema/entitlement_override.schema.js +17 -1
- package/cjs/schema/estimate.schema.js +581 -36
- package/cjs/schema/event.schema.js +1282 -633
- package/cjs/schema/export.schema.js +4459 -1412
- package/cjs/schema/feature.schema.js +73 -11
- package/cjs/schema/gateway_request_log.schema.js +309 -0
- package/cjs/schema/gateway_webhook_log.schema.js +257 -0
- package/cjs/schema/gift.schema.js +51 -5
- package/cjs/schema/grant_block.schema.js +45 -12
- package/cjs/schema/hosted_page.schema.js +562 -66
- package/cjs/schema/index.js +3 -0
- package/cjs/schema/invoice.schema.js +821 -121
- package/cjs/schema/item.schema.js +151 -28
- package/cjs/schema/item_entitlement.schema.js +23 -2
- package/cjs/schema/item_family.schema.js +29 -8
- package/cjs/schema/item_price.schema.js +263 -48
- package/cjs/schema/ledger_operation.schema.js +42 -15
- package/cjs/schema/metered_feature.schema.js +10 -1
- package/cjs/schema/omnichannel_one_time_order.schema.js +32 -2
- package/cjs/schema/omnichannel_subscription.schema.js +136 -30
- package/cjs/schema/order.schema.js +233 -61
- package/cjs/schema/organization_detail.schema.js +36 -0
- package/cjs/schema/payment_schedule.schema.js +39 -8
- package/cjs/schema/payment_schedule_scheme.schema.js +37 -7
- package/cjs/schema/payment_source.schema.js +360 -148
- package/cjs/schema/payment_voucher.schema.js +33 -5
- package/cjs/schema/plan.schema.js +345 -57
- package/cjs/schema/price_ramp.schema.js +79 -14
- package/cjs/schema/price_variant.schema.js +88 -18
- package/cjs/schema/pricing_page_session.schema.js +36 -2
- package/cjs/schema/promotional_credit.schema.js +27 -6
- package/cjs/schema/purchase.schema.js +204 -12
- package/cjs/schema/quote.schema.js +901 -81
- package/cjs/schema/quote_entitlement.schema.js +6 -2
- package/cjs/schema/ramp.schema.js +238 -24
- package/cjs/schema/site_migration_detail.schema.js +50 -16
- package/cjs/schema/subscription.schema.js +998 -169
- package/cjs/schema/subscription_entitlement.schema.js +9 -1
- package/cjs/schema/transaction.schema.js +780 -342
- package/cjs/schema/unbilled_charge.schema.js +141 -13
- package/cjs/schema/usage.schema.js +55 -12
- package/cjs/schema/usage_event.schema.js +13 -1
- package/cjs/schema/virtual_bank_account.schema.js +42 -10
- package/cjs/schema/webhook_endpoint.schema.js +4 -0
- package/esm/environment.js +1 -1
- package/esm/resources/api_endpoints.js +56 -0
- package/esm/resources/webhook/eventType.js +2 -0
- package/esm/schema/addon.schema.js +221 -40
- package/esm/schema/alert.schema.js +17 -2
- package/esm/schema/alert_status.schema.js +6 -1
- package/esm/schema/attached_item.schema.js +101 -26
- package/esm/schema/business_entity.schema.js +16 -5
- package/esm/schema/business_rule.schema.js +2 -2
- package/esm/schema/business_ruleset.schema.js +2 -2
- package/esm/schema/comment.schema.js +15 -4
- package/esm/schema/coupon.schema.js +218 -37
- package/esm/schema/coupon_code.schema.js +36 -6
- package/esm/schema/coupon_set.schema.js +108 -27
- package/esm/schema/credit_note.schema.js +496 -105
- package/esm/schema/credit_unit.schema.js +12 -2
- package/esm/schema/customer.schema.js +212 -62
- package/esm/schema/differential_price.schema.js +100 -12
- package/esm/schema/dispute.schema.js +125 -33
- package/esm/schema/einvoice.schema.js +27 -6
- package/esm/schema/email_log.schema.js +15 -4
- package/esm/schema/entitlement.schema.js +33 -4
- package/esm/schema/entitlement_override.schema.js +17 -1
- package/esm/schema/estimate.schema.js +581 -36
- package/esm/schema/event.schema.js +1282 -633
- package/esm/schema/export.schema.js +4459 -1412
- package/esm/schema/feature.schema.js +73 -11
- package/esm/schema/gateway_request_log.schema.js +306 -0
- package/esm/schema/gateway_webhook_log.schema.js +254 -0
- package/esm/schema/gift.schema.js +51 -5
- package/esm/schema/grant_block.schema.js +45 -12
- package/esm/schema/hosted_page.schema.js +562 -66
- package/esm/schema/index.js +3 -0
- package/esm/schema/invoice.schema.js +821 -121
- package/esm/schema/item.schema.js +151 -28
- package/esm/schema/item_entitlement.schema.js +23 -2
- package/esm/schema/item_family.schema.js +29 -8
- package/esm/schema/item_price.schema.js +263 -48
- package/esm/schema/ledger_operation.schema.js +42 -15
- package/esm/schema/metered_feature.schema.js +10 -1
- package/esm/schema/omnichannel_one_time_order.schema.js +32 -2
- package/esm/schema/omnichannel_subscription.schema.js +136 -30
- package/esm/schema/order.schema.js +233 -61
- package/esm/schema/organization_detail.schema.js +33 -0
- package/esm/schema/payment_schedule.schema.js +39 -8
- package/esm/schema/payment_schedule_scheme.schema.js +37 -7
- package/esm/schema/payment_source.schema.js +360 -148
- package/esm/schema/payment_voucher.schema.js +33 -5
- package/esm/schema/plan.schema.js +345 -57
- package/esm/schema/price_ramp.schema.js +79 -14
- package/esm/schema/price_variant.schema.js +88 -18
- package/esm/schema/pricing_page_session.schema.js +36 -2
- package/esm/schema/promotional_credit.schema.js +27 -6
- package/esm/schema/purchase.schema.js +204 -12
- package/esm/schema/quote.schema.js +901 -81
- package/esm/schema/quote_entitlement.schema.js +6 -2
- package/esm/schema/ramp.schema.js +238 -24
- package/esm/schema/site_migration_detail.schema.js +50 -16
- package/esm/schema/subscription.schema.js +998 -169
- package/esm/schema/subscription_entitlement.schema.js +9 -1
- package/esm/schema/transaction.schema.js +780 -342
- package/esm/schema/unbilled_charge.schema.js +141 -13
- package/esm/schema/usage.schema.js +55 -12
- package/esm/schema/usage_event.schema.js +13 -1
- package/esm/schema/virtual_bank_account.schema.js +42 -10
- package/esm/schema/webhook_endpoint.schema.js +4 -0
- package/package.json +1 -1
- package/types/core.d.ts +10 -6
- package/types/index.d.ts +8 -1
- package/types/resources/BillingLineItem.d.ts +10 -0
- package/types/resources/BillingMetadata.d.ts +9 -0
- package/types/resources/Content.d.ts +5 -0
- package/types/resources/Discount.d.ts +1 -0
- package/types/resources/DraftRequest.d.ts +1 -1
- package/types/resources/Estimate.d.ts +3 -0
- package/types/resources/Event.d.ts +2 -0
- package/types/resources/GatewayRequestLog.d.ts +82 -0
- package/types/resources/GatewayWebhookLog.d.ts +74 -0
- package/types/resources/GrantBlock.d.ts +5 -0
- package/types/resources/HostedPage.d.ts +18 -0
- package/types/resources/Invoice.d.ts +4 -0
- package/types/resources/OrganizationDetail.d.ts +84 -0
- package/types/resources/Subscription.d.ts +3 -0
- package/types/resources/Usage.d.ts +1 -0
- package/types/resources/WebhookEvent.d.ts +10 -0
|
@@ -7,30 +7,70 @@ const ListFeatureNameSchema = z.object({
|
|
|
7
7
|
is: z.string().min(1).optional(),
|
|
8
8
|
is_not: z.string().min(1).optional(),
|
|
9
9
|
starts_with: z.string().min(1).optional(),
|
|
10
|
-
in: z
|
|
11
|
-
|
|
10
|
+
in: z
|
|
11
|
+
.union([
|
|
12
|
+
z.array(z.string().optional()),
|
|
13
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
14
|
+
])
|
|
15
|
+
.optional(),
|
|
16
|
+
not_in: z
|
|
17
|
+
.union([
|
|
18
|
+
z.array(z.string().optional()),
|
|
19
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
20
|
+
])
|
|
21
|
+
.optional(),
|
|
12
22
|
});
|
|
13
23
|
const ListFeatureIdSchema = z.object({
|
|
14
24
|
is: z.string().min(1).optional(),
|
|
15
25
|
is_not: z.string().min(1).optional(),
|
|
16
26
|
starts_with: z.string().min(1).optional(),
|
|
17
|
-
in: z
|
|
18
|
-
|
|
27
|
+
in: z
|
|
28
|
+
.union([
|
|
29
|
+
z.array(z.string().optional()),
|
|
30
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
31
|
+
])
|
|
32
|
+
.optional(),
|
|
33
|
+
not_in: z
|
|
34
|
+
.union([
|
|
35
|
+
z.array(z.string().optional()),
|
|
36
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
37
|
+
])
|
|
38
|
+
.optional(),
|
|
19
39
|
});
|
|
20
40
|
const ListFeatureStatusSchema = z.object({
|
|
21
41
|
is: z.enum(['active', 'archived', 'draft']).optional(),
|
|
22
42
|
is_not: z.enum(['active', 'archived', 'draft']).optional(),
|
|
23
|
-
in: z
|
|
24
|
-
|
|
43
|
+
in: z
|
|
44
|
+
.union([
|
|
45
|
+
z.array(z.enum(['active', 'archived', 'draft']).optional()),
|
|
46
|
+
z.enum(['active', 'archived', 'draft']),
|
|
47
|
+
])
|
|
48
|
+
.optional(),
|
|
49
|
+
not_in: z
|
|
50
|
+
.union([
|
|
51
|
+
z.array(z.enum(['active', 'archived', 'draft']).optional()),
|
|
52
|
+
z.enum(['active', 'archived', 'draft']),
|
|
53
|
+
])
|
|
54
|
+
.optional(),
|
|
25
55
|
});
|
|
26
56
|
const ListFeatureTypeSchema = z.object({
|
|
27
57
|
is: z.enum(['switch', 'custom', 'quantity', 'range']).optional(),
|
|
28
58
|
is_not: z.enum(['switch', 'custom', 'quantity', 'range']).optional(),
|
|
29
|
-
in: z
|
|
30
|
-
|
|
59
|
+
in: z
|
|
60
|
+
.union([
|
|
61
|
+
z.array(z.enum(['switch', 'custom', 'quantity', 'range']).optional()),
|
|
62
|
+
z.enum(['switch', 'custom', 'quantity', 'range']),
|
|
63
|
+
])
|
|
64
|
+
.optional(),
|
|
65
|
+
not_in: z
|
|
66
|
+
.union([
|
|
67
|
+
z.array(z.enum(['switch', 'custom', 'quantity', 'range']).optional()),
|
|
68
|
+
z.enum(['switch', 'custom', 'quantity', 'range']),
|
|
69
|
+
])
|
|
70
|
+
.optional(),
|
|
31
71
|
});
|
|
32
72
|
const ListFeatureMeteredSchema = z.object({
|
|
33
|
-
is: z.enum(['true', 'false']).optional(),
|
|
73
|
+
is: z.union([z.boolean(), z.enum(['true', 'false'])]).optional(),
|
|
34
74
|
});
|
|
35
75
|
const ListFeatureBodySchema = z.looseObject({
|
|
36
76
|
limit: z.number().int().min(1).max(100).optional(),
|
|
@@ -43,6 +83,12 @@ const ListFeatureBodySchema = z.looseObject({
|
|
|
43
83
|
});
|
|
44
84
|
export { ListFeatureBodySchema };
|
|
45
85
|
//Feature.create
|
|
86
|
+
const CreateFeatureLevelsItemSchema = z.object({
|
|
87
|
+
name: z.string().max(100).optional(),
|
|
88
|
+
value: z.string().max(50).optional(),
|
|
89
|
+
is_unlimited: z.boolean().optional(),
|
|
90
|
+
level: z.number().int().optional(),
|
|
91
|
+
});
|
|
46
92
|
const CreateFeatureLevelsSchema = z.object({
|
|
47
93
|
name: z.array(z.string().max(100).optional()).optional(),
|
|
48
94
|
value: z.array(z.string().max(50).optional()).optional(),
|
|
@@ -55,10 +101,21 @@ const CreateFeatureBodySchema = z.looseObject({
|
|
|
55
101
|
description: z.string().max(500).optional(),
|
|
56
102
|
type: z.enum(['switch', 'custom', 'quantity', 'range']).optional(),
|
|
57
103
|
unit: z.string().max(50).optional(),
|
|
58
|
-
levels:
|
|
104
|
+
levels: z
|
|
105
|
+
.union([
|
|
106
|
+
z.array(CreateFeatureLevelsItemSchema.optional()),
|
|
107
|
+
CreateFeatureLevelsSchema,
|
|
108
|
+
])
|
|
109
|
+
.optional(),
|
|
59
110
|
});
|
|
60
111
|
export { CreateFeatureBodySchema };
|
|
61
112
|
//Feature.update
|
|
113
|
+
const UpdateFeatureLevelsItemSchema = z.object({
|
|
114
|
+
name: z.string().max(100).optional(),
|
|
115
|
+
value: z.string().max(50).optional(),
|
|
116
|
+
is_unlimited: z.boolean().optional(),
|
|
117
|
+
level: z.number().int().optional(),
|
|
118
|
+
});
|
|
62
119
|
const UpdateFeatureLevelsSchema = z.object({
|
|
63
120
|
name: z.array(z.string().max(100).optional()).optional(),
|
|
64
121
|
value: z.array(z.string().max(50).optional()).optional(),
|
|
@@ -69,6 +126,11 @@ const UpdateFeatureBodySchema = z.looseObject({
|
|
|
69
126
|
name: z.string().max(50).optional(),
|
|
70
127
|
description: z.string().max(500).optional(),
|
|
71
128
|
unit: z.string().max(50).optional(),
|
|
72
|
-
levels:
|
|
129
|
+
levels: z
|
|
130
|
+
.union([
|
|
131
|
+
z.array(UpdateFeatureLevelsItemSchema.optional()),
|
|
132
|
+
UpdateFeatureLevelsSchema,
|
|
133
|
+
])
|
|
134
|
+
.optional(),
|
|
73
135
|
});
|
|
74
136
|
export { UpdateFeatureBodySchema };
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
// Generated Zod schemas: GatewayRequestLog
|
|
2
|
+
// Actions: list
|
|
3
|
+
// Do not edit manually – regenerate via sdk-generator
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
//GatewayRequestLog.list
|
|
6
|
+
const ListGatewayRequestLogLogIdSchema = z.object({
|
|
7
|
+
in: z
|
|
8
|
+
.union([
|
|
9
|
+
z.array(z.string().optional()),
|
|
10
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
11
|
+
])
|
|
12
|
+
.optional(),
|
|
13
|
+
is_not: z.string().min(1).optional(),
|
|
14
|
+
not_in: z
|
|
15
|
+
.union([
|
|
16
|
+
z.array(z.string().optional()),
|
|
17
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
18
|
+
])
|
|
19
|
+
.optional(),
|
|
20
|
+
is: z.string().min(1).optional(),
|
|
21
|
+
});
|
|
22
|
+
const ListGatewayRequestLogGatewaySchema = z.object({
|
|
23
|
+
in: z
|
|
24
|
+
.union([
|
|
25
|
+
z.array(z.string().optional()),
|
|
26
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
27
|
+
])
|
|
28
|
+
.optional(),
|
|
29
|
+
is_not: z.string().min(1).optional(),
|
|
30
|
+
not_in: z
|
|
31
|
+
.union([
|
|
32
|
+
z.array(z.string().optional()),
|
|
33
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
34
|
+
])
|
|
35
|
+
.optional(),
|
|
36
|
+
is: z.string().min(1).optional(),
|
|
37
|
+
});
|
|
38
|
+
const ListGatewayRequestLogStatusCodeSchema = z.object({
|
|
39
|
+
in: z
|
|
40
|
+
.union([
|
|
41
|
+
z.array(z.string().optional()),
|
|
42
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
43
|
+
])
|
|
44
|
+
.optional(),
|
|
45
|
+
is_not: z.string().min(1).optional(),
|
|
46
|
+
not_in: z
|
|
47
|
+
.union([
|
|
48
|
+
z.array(z.string().optional()),
|
|
49
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
50
|
+
])
|
|
51
|
+
.optional(),
|
|
52
|
+
is: z.string().min(1).optional(),
|
|
53
|
+
});
|
|
54
|
+
const ListGatewayRequestLogMethodSchema = z.object({
|
|
55
|
+
in: z
|
|
56
|
+
.union([
|
|
57
|
+
z.array(z.string().optional()),
|
|
58
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
59
|
+
])
|
|
60
|
+
.optional(),
|
|
61
|
+
is_not: z.string().min(1).optional(),
|
|
62
|
+
not_in: z
|
|
63
|
+
.union([
|
|
64
|
+
z.array(z.string().optional()),
|
|
65
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
66
|
+
])
|
|
67
|
+
.optional(),
|
|
68
|
+
is: z.string().min(1).optional(),
|
|
69
|
+
});
|
|
70
|
+
const ListGatewayRequestLogUrlSchema = z.object({
|
|
71
|
+
in: z
|
|
72
|
+
.union([
|
|
73
|
+
z.array(z.string().optional()),
|
|
74
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
75
|
+
])
|
|
76
|
+
.optional(),
|
|
77
|
+
is_not: z.string().min(1).optional(),
|
|
78
|
+
not_in: z
|
|
79
|
+
.union([
|
|
80
|
+
z.array(z.string().optional()),
|
|
81
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
82
|
+
])
|
|
83
|
+
.optional(),
|
|
84
|
+
is: z.string().min(1).optional(),
|
|
85
|
+
});
|
|
86
|
+
const ListGatewayRequestLogCustomerHandleSchema = z.object({
|
|
87
|
+
in: z
|
|
88
|
+
.union([
|
|
89
|
+
z.array(z.string().optional()),
|
|
90
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
91
|
+
])
|
|
92
|
+
.optional(),
|
|
93
|
+
is_not: z.string().min(1).optional(),
|
|
94
|
+
not_in: z
|
|
95
|
+
.union([
|
|
96
|
+
z.array(z.string().optional()),
|
|
97
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
98
|
+
])
|
|
99
|
+
.optional(),
|
|
100
|
+
is: z.string().min(1).optional(),
|
|
101
|
+
});
|
|
102
|
+
const ListGatewayRequestLogInvoiceHandleSchema = z.object({
|
|
103
|
+
in: z
|
|
104
|
+
.union([
|
|
105
|
+
z.array(z.string().optional()),
|
|
106
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
107
|
+
])
|
|
108
|
+
.optional(),
|
|
109
|
+
is_not: z.string().min(1).optional(),
|
|
110
|
+
not_in: z
|
|
111
|
+
.union([
|
|
112
|
+
z.array(z.string().optional()),
|
|
113
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
114
|
+
])
|
|
115
|
+
.optional(),
|
|
116
|
+
is: z.string().min(1).optional(),
|
|
117
|
+
});
|
|
118
|
+
const ListGatewayRequestLogTransactionHandleSchema = z.object({
|
|
119
|
+
in: z
|
|
120
|
+
.union([
|
|
121
|
+
z.array(z.string().optional()),
|
|
122
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
123
|
+
])
|
|
124
|
+
.optional(),
|
|
125
|
+
is_not: z.string().min(1).optional(),
|
|
126
|
+
not_in: z
|
|
127
|
+
.union([
|
|
128
|
+
z.array(z.string().optional()),
|
|
129
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
130
|
+
])
|
|
131
|
+
.optional(),
|
|
132
|
+
is: z.string().min(1).optional(),
|
|
133
|
+
});
|
|
134
|
+
const ListGatewayRequestLogPaymentMethodHandleSchema = z.object({
|
|
135
|
+
in: z
|
|
136
|
+
.union([
|
|
137
|
+
z.array(z.string().optional()),
|
|
138
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
139
|
+
])
|
|
140
|
+
.optional(),
|
|
141
|
+
is_not: z.string().min(1).optional(),
|
|
142
|
+
not_in: z
|
|
143
|
+
.union([
|
|
144
|
+
z.array(z.string().optional()),
|
|
145
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
146
|
+
])
|
|
147
|
+
.optional(),
|
|
148
|
+
is: z.string().min(1).optional(),
|
|
149
|
+
});
|
|
150
|
+
const ListGatewayRequestLogGatewayCredentialHandleSchema = z.object({
|
|
151
|
+
in: z
|
|
152
|
+
.union([
|
|
153
|
+
z.array(z.string().optional()),
|
|
154
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
155
|
+
])
|
|
156
|
+
.optional(),
|
|
157
|
+
is_not: z.string().min(1).optional(),
|
|
158
|
+
not_in: z
|
|
159
|
+
.union([
|
|
160
|
+
z.array(z.string().optional()),
|
|
161
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
162
|
+
])
|
|
163
|
+
.optional(),
|
|
164
|
+
is: z.string().min(1).optional(),
|
|
165
|
+
});
|
|
166
|
+
const ListGatewayRequestLogPaymentAttemptHandleSchema = z.object({
|
|
167
|
+
in: z
|
|
168
|
+
.union([
|
|
169
|
+
z.array(z.string().optional()),
|
|
170
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
171
|
+
])
|
|
172
|
+
.optional(),
|
|
173
|
+
is_not: z.string().min(1).optional(),
|
|
174
|
+
not_in: z
|
|
175
|
+
.union([
|
|
176
|
+
z.array(z.string().optional()),
|
|
177
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
178
|
+
])
|
|
179
|
+
.optional(),
|
|
180
|
+
is: z.string().min(1).optional(),
|
|
181
|
+
});
|
|
182
|
+
const ListGatewayRequestLogPaymentIntentHandleSchema = z.object({
|
|
183
|
+
in: z
|
|
184
|
+
.union([
|
|
185
|
+
z.array(z.string().optional()),
|
|
186
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
187
|
+
])
|
|
188
|
+
.optional(),
|
|
189
|
+
is_not: z.string().min(1).optional(),
|
|
190
|
+
not_in: z
|
|
191
|
+
.union([
|
|
192
|
+
z.array(z.string().optional()),
|
|
193
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
194
|
+
])
|
|
195
|
+
.optional(),
|
|
196
|
+
is: z.string().min(1).optional(),
|
|
197
|
+
});
|
|
198
|
+
const ListGatewayRequestLogOperationNameSchema = z.object({
|
|
199
|
+
in: z
|
|
200
|
+
.union([
|
|
201
|
+
z.array(z.string().optional()),
|
|
202
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
203
|
+
])
|
|
204
|
+
.optional(),
|
|
205
|
+
is_not: z.string().min(1).optional(),
|
|
206
|
+
not_in: z
|
|
207
|
+
.union([
|
|
208
|
+
z.array(z.string().optional()),
|
|
209
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
210
|
+
])
|
|
211
|
+
.optional(),
|
|
212
|
+
is: z.string().min(1).optional(),
|
|
213
|
+
});
|
|
214
|
+
const ListGatewayRequestLogOperationTypeSchema = z.object({
|
|
215
|
+
in: z
|
|
216
|
+
.union([
|
|
217
|
+
z.array(z.string().optional()),
|
|
218
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
219
|
+
])
|
|
220
|
+
.optional(),
|
|
221
|
+
is_not: z.string().min(1).optional(),
|
|
222
|
+
not_in: z
|
|
223
|
+
.union([
|
|
224
|
+
z.array(z.string().optional()),
|
|
225
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
226
|
+
])
|
|
227
|
+
.optional(),
|
|
228
|
+
is: z.string().min(1).optional(),
|
|
229
|
+
});
|
|
230
|
+
const ListGatewayRequestLogSourceSchema = z.object({
|
|
231
|
+
in: z
|
|
232
|
+
.union([
|
|
233
|
+
z.array(z.string().optional()),
|
|
234
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
235
|
+
])
|
|
236
|
+
.optional(),
|
|
237
|
+
is_not: z.string().min(1).optional(),
|
|
238
|
+
not_in: z
|
|
239
|
+
.union([
|
|
240
|
+
z.array(z.string().optional()),
|
|
241
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
242
|
+
])
|
|
243
|
+
.optional(),
|
|
244
|
+
is: z.string().min(1).optional(),
|
|
245
|
+
});
|
|
246
|
+
const ListGatewayRequestLogInvocationTimeSchema = z.object({
|
|
247
|
+
after: z
|
|
248
|
+
.union([z.number().int(), z.string().regex(RegExp('^\\d{10}$'))])
|
|
249
|
+
.optional(),
|
|
250
|
+
before: z
|
|
251
|
+
.union([z.number().int(), z.string().regex(RegExp('^\\d{10}$'))])
|
|
252
|
+
.optional(),
|
|
253
|
+
on: z
|
|
254
|
+
.union([z.number().int(), z.string().regex(RegExp('^\\d{10}$'))])
|
|
255
|
+
.optional(),
|
|
256
|
+
between: z
|
|
257
|
+
.union([
|
|
258
|
+
z.array(z.number().int().optional()).min(2).max(2),
|
|
259
|
+
z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')),
|
|
260
|
+
])
|
|
261
|
+
.optional(),
|
|
262
|
+
});
|
|
263
|
+
const ListGatewayRequestLogResponseReceivedAtSchema = z.object({
|
|
264
|
+
after: z
|
|
265
|
+
.union([z.number().int(), z.string().regex(RegExp('^\\d{10}$'))])
|
|
266
|
+
.optional(),
|
|
267
|
+
before: z
|
|
268
|
+
.union([z.number().int(), z.string().regex(RegExp('^\\d{10}$'))])
|
|
269
|
+
.optional(),
|
|
270
|
+
on: z
|
|
271
|
+
.union([z.number().int(), z.string().regex(RegExp('^\\d{10}$'))])
|
|
272
|
+
.optional(),
|
|
273
|
+
between: z
|
|
274
|
+
.union([
|
|
275
|
+
z.array(z.number().int().optional()).min(2).max(2),
|
|
276
|
+
z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')),
|
|
277
|
+
])
|
|
278
|
+
.optional(),
|
|
279
|
+
});
|
|
280
|
+
const ListGatewayRequestLogSortBySchema = z.looseObject({
|
|
281
|
+
asc: z.enum(['invocation_time']).optional(),
|
|
282
|
+
desc: z.enum(['invocation_time']).optional(),
|
|
283
|
+
});
|
|
284
|
+
const ListGatewayRequestLogBodySchema = z.looseObject({
|
|
285
|
+
limit: z.number().int().min(1).max(100).optional(),
|
|
286
|
+
offset: z.string().max(1000).optional(),
|
|
287
|
+
log_id: ListGatewayRequestLogLogIdSchema.optional(),
|
|
288
|
+
gateway: ListGatewayRequestLogGatewaySchema.optional(),
|
|
289
|
+
status_code: ListGatewayRequestLogStatusCodeSchema.optional(),
|
|
290
|
+
method: ListGatewayRequestLogMethodSchema.optional(),
|
|
291
|
+
url: ListGatewayRequestLogUrlSchema.optional(),
|
|
292
|
+
customer_handle: ListGatewayRequestLogCustomerHandleSchema.optional(),
|
|
293
|
+
invoice_handle: ListGatewayRequestLogInvoiceHandleSchema.optional(),
|
|
294
|
+
transaction_handle: ListGatewayRequestLogTransactionHandleSchema.optional(),
|
|
295
|
+
payment_method_handle: ListGatewayRequestLogPaymentMethodHandleSchema.optional(),
|
|
296
|
+
gateway_credential_handle: ListGatewayRequestLogGatewayCredentialHandleSchema.optional(),
|
|
297
|
+
payment_attempt_handle: ListGatewayRequestLogPaymentAttemptHandleSchema.optional(),
|
|
298
|
+
payment_intent_handle: ListGatewayRequestLogPaymentIntentHandleSchema.optional(),
|
|
299
|
+
operation_name: ListGatewayRequestLogOperationNameSchema.optional(),
|
|
300
|
+
operation_type: ListGatewayRequestLogOperationTypeSchema.optional(),
|
|
301
|
+
source: ListGatewayRequestLogSourceSchema.optional(),
|
|
302
|
+
invocation_time: ListGatewayRequestLogInvocationTimeSchema.optional(),
|
|
303
|
+
response_received_at: ListGatewayRequestLogResponseReceivedAtSchema.optional(),
|
|
304
|
+
sort_by: ListGatewayRequestLogSortBySchema.optional(),
|
|
305
|
+
});
|
|
306
|
+
export { ListGatewayRequestLogBodySchema };
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
// Generated Zod schemas: GatewayWebhookLog
|
|
2
|
+
// Actions: list
|
|
3
|
+
// Do not edit manually – regenerate via sdk-generator
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
//GatewayWebhookLog.list
|
|
6
|
+
const ListGatewayWebhookLogWebhookIdSchema = z.object({
|
|
7
|
+
in: z
|
|
8
|
+
.union([
|
|
9
|
+
z.array(z.string().optional()),
|
|
10
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
11
|
+
])
|
|
12
|
+
.optional(),
|
|
13
|
+
is_not: z.string().min(1).optional(),
|
|
14
|
+
not_in: z
|
|
15
|
+
.union([
|
|
16
|
+
z.array(z.string().optional()),
|
|
17
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
18
|
+
])
|
|
19
|
+
.optional(),
|
|
20
|
+
is: z.string().min(1).optional(),
|
|
21
|
+
});
|
|
22
|
+
const ListGatewayWebhookLogGatewaySchema = z.object({
|
|
23
|
+
in: z
|
|
24
|
+
.union([
|
|
25
|
+
z.array(z.string().optional()),
|
|
26
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
27
|
+
])
|
|
28
|
+
.optional(),
|
|
29
|
+
is_not: z.string().min(1).optional(),
|
|
30
|
+
not_in: z
|
|
31
|
+
.union([
|
|
32
|
+
z.array(z.string().optional()),
|
|
33
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
34
|
+
])
|
|
35
|
+
.optional(),
|
|
36
|
+
is: z.string().min(1).optional(),
|
|
37
|
+
});
|
|
38
|
+
const ListGatewayWebhookLogStatusCodeSchema = z.object({
|
|
39
|
+
in: z
|
|
40
|
+
.union([
|
|
41
|
+
z.array(z.string().optional()),
|
|
42
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
43
|
+
])
|
|
44
|
+
.optional(),
|
|
45
|
+
is_not: z.string().min(1).optional(),
|
|
46
|
+
not_in: z
|
|
47
|
+
.union([
|
|
48
|
+
z.array(z.string().optional()),
|
|
49
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
50
|
+
])
|
|
51
|
+
.optional(),
|
|
52
|
+
is: z.string().min(1).optional(),
|
|
53
|
+
});
|
|
54
|
+
const ListGatewayWebhookLogMethodSchema = z.object({
|
|
55
|
+
in: z
|
|
56
|
+
.union([
|
|
57
|
+
z.array(z.string().optional()),
|
|
58
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
59
|
+
])
|
|
60
|
+
.optional(),
|
|
61
|
+
is_not: z.string().min(1).optional(),
|
|
62
|
+
not_in: z
|
|
63
|
+
.union([
|
|
64
|
+
z.array(z.string().optional()),
|
|
65
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
66
|
+
])
|
|
67
|
+
.optional(),
|
|
68
|
+
is: z.string().min(1).optional(),
|
|
69
|
+
});
|
|
70
|
+
const ListGatewayWebhookLogUrlSchema = z.object({
|
|
71
|
+
in: z
|
|
72
|
+
.union([
|
|
73
|
+
z.array(z.string().optional()),
|
|
74
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
75
|
+
])
|
|
76
|
+
.optional(),
|
|
77
|
+
is_not: z.string().min(1).optional(),
|
|
78
|
+
not_in: z
|
|
79
|
+
.union([
|
|
80
|
+
z.array(z.string().optional()),
|
|
81
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
82
|
+
])
|
|
83
|
+
.optional(),
|
|
84
|
+
is: z.string().min(1).optional(),
|
|
85
|
+
});
|
|
86
|
+
const ListGatewayWebhookLogIdAtGatewaySchema = z.object({
|
|
87
|
+
in: z
|
|
88
|
+
.union([
|
|
89
|
+
z.array(z.string().optional()),
|
|
90
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
91
|
+
])
|
|
92
|
+
.optional(),
|
|
93
|
+
is_not: z.string().min(1).optional(),
|
|
94
|
+
not_in: z
|
|
95
|
+
.union([
|
|
96
|
+
z.array(z.string().optional()),
|
|
97
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
98
|
+
])
|
|
99
|
+
.optional(),
|
|
100
|
+
is: z.string().min(1).optional(),
|
|
101
|
+
});
|
|
102
|
+
const ListGatewayWebhookLogCustomerHandleSchema = z.object({
|
|
103
|
+
in: z
|
|
104
|
+
.union([
|
|
105
|
+
z.array(z.string().optional()),
|
|
106
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
107
|
+
])
|
|
108
|
+
.optional(),
|
|
109
|
+
is_not: z.string().min(1).optional(),
|
|
110
|
+
not_in: z
|
|
111
|
+
.union([
|
|
112
|
+
z.array(z.string().optional()),
|
|
113
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
114
|
+
])
|
|
115
|
+
.optional(),
|
|
116
|
+
is: z.string().min(1).optional(),
|
|
117
|
+
});
|
|
118
|
+
const ListGatewayWebhookLogInvoiceHandleSchema = z.object({
|
|
119
|
+
in: z
|
|
120
|
+
.union([
|
|
121
|
+
z.array(z.string().optional()),
|
|
122
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
123
|
+
])
|
|
124
|
+
.optional(),
|
|
125
|
+
is_not: z.string().min(1).optional(),
|
|
126
|
+
not_in: z
|
|
127
|
+
.union([
|
|
128
|
+
z.array(z.string().optional()),
|
|
129
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
130
|
+
])
|
|
131
|
+
.optional(),
|
|
132
|
+
is: z.string().min(1).optional(),
|
|
133
|
+
});
|
|
134
|
+
const ListGatewayWebhookLogTransactionHandleSchema = z.object({
|
|
135
|
+
in: z
|
|
136
|
+
.union([
|
|
137
|
+
z.array(z.string().optional()),
|
|
138
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
139
|
+
])
|
|
140
|
+
.optional(),
|
|
141
|
+
is_not: z.string().min(1).optional(),
|
|
142
|
+
not_in: z
|
|
143
|
+
.union([
|
|
144
|
+
z.array(z.string().optional()),
|
|
145
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
146
|
+
])
|
|
147
|
+
.optional(),
|
|
148
|
+
is: z.string().min(1).optional(),
|
|
149
|
+
});
|
|
150
|
+
const ListGatewayWebhookLogPaymentMethodHandleSchema = z.object({
|
|
151
|
+
in: z
|
|
152
|
+
.union([
|
|
153
|
+
z.array(z.string().optional()),
|
|
154
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
155
|
+
])
|
|
156
|
+
.optional(),
|
|
157
|
+
is_not: z.string().min(1).optional(),
|
|
158
|
+
not_in: z
|
|
159
|
+
.union([
|
|
160
|
+
z.array(z.string().optional()),
|
|
161
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
162
|
+
])
|
|
163
|
+
.optional(),
|
|
164
|
+
is: z.string().min(1).optional(),
|
|
165
|
+
});
|
|
166
|
+
const ListGatewayWebhookLogGatewayCredentialHandleSchema = z.object({
|
|
167
|
+
in: z
|
|
168
|
+
.union([
|
|
169
|
+
z.array(z.string().optional()),
|
|
170
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
171
|
+
])
|
|
172
|
+
.optional(),
|
|
173
|
+
is_not: z.string().min(1).optional(),
|
|
174
|
+
not_in: z
|
|
175
|
+
.union([
|
|
176
|
+
z.array(z.string().optional()),
|
|
177
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
178
|
+
])
|
|
179
|
+
.optional(),
|
|
180
|
+
is: z.string().min(1).optional(),
|
|
181
|
+
});
|
|
182
|
+
const ListGatewayWebhookLogPaymentAttemptHandleSchema = z.object({
|
|
183
|
+
in: z
|
|
184
|
+
.union([
|
|
185
|
+
z.array(z.string().optional()),
|
|
186
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
187
|
+
])
|
|
188
|
+
.optional(),
|
|
189
|
+
is_not: z.string().min(1).optional(),
|
|
190
|
+
not_in: z
|
|
191
|
+
.union([
|
|
192
|
+
z.array(z.string().optional()),
|
|
193
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
194
|
+
])
|
|
195
|
+
.optional(),
|
|
196
|
+
is: z.string().min(1).optional(),
|
|
197
|
+
});
|
|
198
|
+
const ListGatewayWebhookLogPaymentIntentHandleSchema = z.object({
|
|
199
|
+
in: z
|
|
200
|
+
.union([
|
|
201
|
+
z.array(z.string().optional()),
|
|
202
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
203
|
+
])
|
|
204
|
+
.optional(),
|
|
205
|
+
is_not: z.string().min(1).optional(),
|
|
206
|
+
not_in: z
|
|
207
|
+
.union([
|
|
208
|
+
z.array(z.string().optional()),
|
|
209
|
+
z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
210
|
+
])
|
|
211
|
+
.optional(),
|
|
212
|
+
is: z.string().min(1).optional(),
|
|
213
|
+
});
|
|
214
|
+
const ListGatewayWebhookLogReceivedAtSchema = z.object({
|
|
215
|
+
after: z
|
|
216
|
+
.union([z.number().int(), z.string().regex(RegExp('^\\d{10}$'))])
|
|
217
|
+
.optional(),
|
|
218
|
+
before: z
|
|
219
|
+
.union([z.number().int(), z.string().regex(RegExp('^\\d{10}$'))])
|
|
220
|
+
.optional(),
|
|
221
|
+
on: z
|
|
222
|
+
.union([z.number().int(), z.string().regex(RegExp('^\\d{10}$'))])
|
|
223
|
+
.optional(),
|
|
224
|
+
between: z
|
|
225
|
+
.union([
|
|
226
|
+
z.array(z.number().int().optional()).min(2).max(2),
|
|
227
|
+
z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')),
|
|
228
|
+
])
|
|
229
|
+
.optional(),
|
|
230
|
+
});
|
|
231
|
+
const ListGatewayWebhookLogSortBySchema = z.looseObject({
|
|
232
|
+
asc: z.enum(['received_at']).optional(),
|
|
233
|
+
desc: z.enum(['received_at']).optional(),
|
|
234
|
+
});
|
|
235
|
+
const ListGatewayWebhookLogBodySchema = z.looseObject({
|
|
236
|
+
limit: z.number().int().min(1).max(100).optional(),
|
|
237
|
+
offset: z.string().max(1000).optional(),
|
|
238
|
+
webhook_id: ListGatewayWebhookLogWebhookIdSchema.optional(),
|
|
239
|
+
gateway: ListGatewayWebhookLogGatewaySchema.optional(),
|
|
240
|
+
status_code: ListGatewayWebhookLogStatusCodeSchema.optional(),
|
|
241
|
+
method: ListGatewayWebhookLogMethodSchema.optional(),
|
|
242
|
+
url: ListGatewayWebhookLogUrlSchema.optional(),
|
|
243
|
+
id_at_gateway: ListGatewayWebhookLogIdAtGatewaySchema.optional(),
|
|
244
|
+
customer_handle: ListGatewayWebhookLogCustomerHandleSchema.optional(),
|
|
245
|
+
invoice_handle: ListGatewayWebhookLogInvoiceHandleSchema.optional(),
|
|
246
|
+
transaction_handle: ListGatewayWebhookLogTransactionHandleSchema.optional(),
|
|
247
|
+
payment_method_handle: ListGatewayWebhookLogPaymentMethodHandleSchema.optional(),
|
|
248
|
+
gateway_credential_handle: ListGatewayWebhookLogGatewayCredentialHandleSchema.optional(),
|
|
249
|
+
payment_attempt_handle: ListGatewayWebhookLogPaymentAttemptHandleSchema.optional(),
|
|
250
|
+
payment_intent_handle: ListGatewayWebhookLogPaymentIntentHandleSchema.optional(),
|
|
251
|
+
received_at: ListGatewayWebhookLogReceivedAtSchema.optional(),
|
|
252
|
+
sort_by: ListGatewayWebhookLogSortBySchema.optional(),
|
|
253
|
+
});
|
|
254
|
+
export { ListGatewayWebhookLogBodySchema };
|