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
|
@@ -10,30 +10,70 @@ const ListFeatureNameSchema = zod_1.z.object({
|
|
|
10
10
|
is: zod_1.z.string().min(1).optional(),
|
|
11
11
|
is_not: zod_1.z.string().min(1).optional(),
|
|
12
12
|
starts_with: zod_1.z.string().min(1).optional(),
|
|
13
|
-
in: zod_1.z
|
|
14
|
-
|
|
13
|
+
in: zod_1.z
|
|
14
|
+
.union([
|
|
15
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
16
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
17
|
+
])
|
|
18
|
+
.optional(),
|
|
19
|
+
not_in: zod_1.z
|
|
20
|
+
.union([
|
|
21
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
22
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
23
|
+
])
|
|
24
|
+
.optional(),
|
|
15
25
|
});
|
|
16
26
|
const ListFeatureIdSchema = zod_1.z.object({
|
|
17
27
|
is: zod_1.z.string().min(1).optional(),
|
|
18
28
|
is_not: zod_1.z.string().min(1).optional(),
|
|
19
29
|
starts_with: zod_1.z.string().min(1).optional(),
|
|
20
|
-
in: zod_1.z
|
|
21
|
-
|
|
30
|
+
in: zod_1.z
|
|
31
|
+
.union([
|
|
32
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
33
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
34
|
+
])
|
|
35
|
+
.optional(),
|
|
36
|
+
not_in: zod_1.z
|
|
37
|
+
.union([
|
|
38
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
39
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
40
|
+
])
|
|
41
|
+
.optional(),
|
|
22
42
|
});
|
|
23
43
|
const ListFeatureStatusSchema = zod_1.z.object({
|
|
24
44
|
is: zod_1.z.enum(['active', 'archived', 'draft']).optional(),
|
|
25
45
|
is_not: zod_1.z.enum(['active', 'archived', 'draft']).optional(),
|
|
26
|
-
in: zod_1.z
|
|
27
|
-
|
|
46
|
+
in: zod_1.z
|
|
47
|
+
.union([
|
|
48
|
+
zod_1.z.array(zod_1.z.enum(['active', 'archived', 'draft']).optional()),
|
|
49
|
+
zod_1.z.enum(['active', 'archived', 'draft']),
|
|
50
|
+
])
|
|
51
|
+
.optional(),
|
|
52
|
+
not_in: zod_1.z
|
|
53
|
+
.union([
|
|
54
|
+
zod_1.z.array(zod_1.z.enum(['active', 'archived', 'draft']).optional()),
|
|
55
|
+
zod_1.z.enum(['active', 'archived', 'draft']),
|
|
56
|
+
])
|
|
57
|
+
.optional(),
|
|
28
58
|
});
|
|
29
59
|
const ListFeatureTypeSchema = zod_1.z.object({
|
|
30
60
|
is: zod_1.z.enum(['switch', 'custom', 'quantity', 'range']).optional(),
|
|
31
61
|
is_not: zod_1.z.enum(['switch', 'custom', 'quantity', 'range']).optional(),
|
|
32
|
-
in: zod_1.z
|
|
33
|
-
|
|
62
|
+
in: zod_1.z
|
|
63
|
+
.union([
|
|
64
|
+
zod_1.z.array(zod_1.z.enum(['switch', 'custom', 'quantity', 'range']).optional()),
|
|
65
|
+
zod_1.z.enum(['switch', 'custom', 'quantity', 'range']),
|
|
66
|
+
])
|
|
67
|
+
.optional(),
|
|
68
|
+
not_in: zod_1.z
|
|
69
|
+
.union([
|
|
70
|
+
zod_1.z.array(zod_1.z.enum(['switch', 'custom', 'quantity', 'range']).optional()),
|
|
71
|
+
zod_1.z.enum(['switch', 'custom', 'quantity', 'range']),
|
|
72
|
+
])
|
|
73
|
+
.optional(),
|
|
34
74
|
});
|
|
35
75
|
const ListFeatureMeteredSchema = zod_1.z.object({
|
|
36
|
-
is: zod_1.z.enum(['true', 'false']).optional(),
|
|
76
|
+
is: zod_1.z.union([zod_1.z.boolean(), zod_1.z.enum(['true', 'false'])]).optional(),
|
|
37
77
|
});
|
|
38
78
|
const ListFeatureBodySchema = zod_1.z.looseObject({
|
|
39
79
|
limit: zod_1.z.number().int().min(1).max(100).optional(),
|
|
@@ -46,6 +86,12 @@ const ListFeatureBodySchema = zod_1.z.looseObject({
|
|
|
46
86
|
});
|
|
47
87
|
exports.ListFeatureBodySchema = ListFeatureBodySchema;
|
|
48
88
|
//Feature.create
|
|
89
|
+
const CreateFeatureLevelsItemSchema = zod_1.z.object({
|
|
90
|
+
name: zod_1.z.string().max(100).optional(),
|
|
91
|
+
value: zod_1.z.string().max(50).optional(),
|
|
92
|
+
is_unlimited: zod_1.z.boolean().optional(),
|
|
93
|
+
level: zod_1.z.number().int().optional(),
|
|
94
|
+
});
|
|
49
95
|
const CreateFeatureLevelsSchema = zod_1.z.object({
|
|
50
96
|
name: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
|
|
51
97
|
value: zod_1.z.array(zod_1.z.string().max(50).optional()).optional(),
|
|
@@ -58,10 +104,21 @@ const CreateFeatureBodySchema = zod_1.z.looseObject({
|
|
|
58
104
|
description: zod_1.z.string().max(500).optional(),
|
|
59
105
|
type: zod_1.z.enum(['switch', 'custom', 'quantity', 'range']).optional(),
|
|
60
106
|
unit: zod_1.z.string().max(50).optional(),
|
|
61
|
-
levels:
|
|
107
|
+
levels: zod_1.z
|
|
108
|
+
.union([
|
|
109
|
+
zod_1.z.array(CreateFeatureLevelsItemSchema.optional()),
|
|
110
|
+
CreateFeatureLevelsSchema,
|
|
111
|
+
])
|
|
112
|
+
.optional(),
|
|
62
113
|
});
|
|
63
114
|
exports.CreateFeatureBodySchema = CreateFeatureBodySchema;
|
|
64
115
|
//Feature.update
|
|
116
|
+
const UpdateFeatureLevelsItemSchema = zod_1.z.object({
|
|
117
|
+
name: zod_1.z.string().max(100).optional(),
|
|
118
|
+
value: zod_1.z.string().max(50).optional(),
|
|
119
|
+
is_unlimited: zod_1.z.boolean().optional(),
|
|
120
|
+
level: zod_1.z.number().int().optional(),
|
|
121
|
+
});
|
|
65
122
|
const UpdateFeatureLevelsSchema = zod_1.z.object({
|
|
66
123
|
name: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
|
|
67
124
|
value: zod_1.z.array(zod_1.z.string().max(50).optional()).optional(),
|
|
@@ -72,6 +129,11 @@ const UpdateFeatureBodySchema = zod_1.z.looseObject({
|
|
|
72
129
|
name: zod_1.z.string().max(50).optional(),
|
|
73
130
|
description: zod_1.z.string().max(500).optional(),
|
|
74
131
|
unit: zod_1.z.string().max(50).optional(),
|
|
75
|
-
levels:
|
|
132
|
+
levels: zod_1.z
|
|
133
|
+
.union([
|
|
134
|
+
zod_1.z.array(UpdateFeatureLevelsItemSchema.optional()),
|
|
135
|
+
UpdateFeatureLevelsSchema,
|
|
136
|
+
])
|
|
137
|
+
.optional(),
|
|
76
138
|
});
|
|
77
139
|
exports.UpdateFeatureBodySchema = UpdateFeatureBodySchema;
|
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Generated Zod schemas: GatewayRequestLog
|
|
3
|
+
// Actions: list
|
|
4
|
+
// Do not edit manually – regenerate via sdk-generator
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ListGatewayRequestLogBodySchema = void 0;
|
|
7
|
+
const zod_1 = require("zod");
|
|
8
|
+
//GatewayRequestLog.list
|
|
9
|
+
const ListGatewayRequestLogLogIdSchema = zod_1.z.object({
|
|
10
|
+
in: zod_1.z
|
|
11
|
+
.union([
|
|
12
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
13
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
14
|
+
])
|
|
15
|
+
.optional(),
|
|
16
|
+
is_not: zod_1.z.string().min(1).optional(),
|
|
17
|
+
not_in: zod_1.z
|
|
18
|
+
.union([
|
|
19
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
20
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
21
|
+
])
|
|
22
|
+
.optional(),
|
|
23
|
+
is: zod_1.z.string().min(1).optional(),
|
|
24
|
+
});
|
|
25
|
+
const ListGatewayRequestLogGatewaySchema = zod_1.z.object({
|
|
26
|
+
in: zod_1.z
|
|
27
|
+
.union([
|
|
28
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
29
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
30
|
+
])
|
|
31
|
+
.optional(),
|
|
32
|
+
is_not: zod_1.z.string().min(1).optional(),
|
|
33
|
+
not_in: zod_1.z
|
|
34
|
+
.union([
|
|
35
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
36
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
37
|
+
])
|
|
38
|
+
.optional(),
|
|
39
|
+
is: zod_1.z.string().min(1).optional(),
|
|
40
|
+
});
|
|
41
|
+
const ListGatewayRequestLogStatusCodeSchema = zod_1.z.object({
|
|
42
|
+
in: zod_1.z
|
|
43
|
+
.union([
|
|
44
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
45
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
46
|
+
])
|
|
47
|
+
.optional(),
|
|
48
|
+
is_not: zod_1.z.string().min(1).optional(),
|
|
49
|
+
not_in: zod_1.z
|
|
50
|
+
.union([
|
|
51
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
52
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
53
|
+
])
|
|
54
|
+
.optional(),
|
|
55
|
+
is: zod_1.z.string().min(1).optional(),
|
|
56
|
+
});
|
|
57
|
+
const ListGatewayRequestLogMethodSchema = zod_1.z.object({
|
|
58
|
+
in: zod_1.z
|
|
59
|
+
.union([
|
|
60
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
61
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
62
|
+
])
|
|
63
|
+
.optional(),
|
|
64
|
+
is_not: zod_1.z.string().min(1).optional(),
|
|
65
|
+
not_in: zod_1.z
|
|
66
|
+
.union([
|
|
67
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
68
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
69
|
+
])
|
|
70
|
+
.optional(),
|
|
71
|
+
is: zod_1.z.string().min(1).optional(),
|
|
72
|
+
});
|
|
73
|
+
const ListGatewayRequestLogUrlSchema = zod_1.z.object({
|
|
74
|
+
in: zod_1.z
|
|
75
|
+
.union([
|
|
76
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
77
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
78
|
+
])
|
|
79
|
+
.optional(),
|
|
80
|
+
is_not: zod_1.z.string().min(1).optional(),
|
|
81
|
+
not_in: zod_1.z
|
|
82
|
+
.union([
|
|
83
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
84
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
85
|
+
])
|
|
86
|
+
.optional(),
|
|
87
|
+
is: zod_1.z.string().min(1).optional(),
|
|
88
|
+
});
|
|
89
|
+
const ListGatewayRequestLogCustomerHandleSchema = zod_1.z.object({
|
|
90
|
+
in: zod_1.z
|
|
91
|
+
.union([
|
|
92
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
93
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
94
|
+
])
|
|
95
|
+
.optional(),
|
|
96
|
+
is_not: zod_1.z.string().min(1).optional(),
|
|
97
|
+
not_in: zod_1.z
|
|
98
|
+
.union([
|
|
99
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
100
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
101
|
+
])
|
|
102
|
+
.optional(),
|
|
103
|
+
is: zod_1.z.string().min(1).optional(),
|
|
104
|
+
});
|
|
105
|
+
const ListGatewayRequestLogInvoiceHandleSchema = zod_1.z.object({
|
|
106
|
+
in: zod_1.z
|
|
107
|
+
.union([
|
|
108
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
109
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
110
|
+
])
|
|
111
|
+
.optional(),
|
|
112
|
+
is_not: zod_1.z.string().min(1).optional(),
|
|
113
|
+
not_in: zod_1.z
|
|
114
|
+
.union([
|
|
115
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
116
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
117
|
+
])
|
|
118
|
+
.optional(),
|
|
119
|
+
is: zod_1.z.string().min(1).optional(),
|
|
120
|
+
});
|
|
121
|
+
const ListGatewayRequestLogTransactionHandleSchema = zod_1.z.object({
|
|
122
|
+
in: zod_1.z
|
|
123
|
+
.union([
|
|
124
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
125
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
126
|
+
])
|
|
127
|
+
.optional(),
|
|
128
|
+
is_not: zod_1.z.string().min(1).optional(),
|
|
129
|
+
not_in: zod_1.z
|
|
130
|
+
.union([
|
|
131
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
132
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
133
|
+
])
|
|
134
|
+
.optional(),
|
|
135
|
+
is: zod_1.z.string().min(1).optional(),
|
|
136
|
+
});
|
|
137
|
+
const ListGatewayRequestLogPaymentMethodHandleSchema = zod_1.z.object({
|
|
138
|
+
in: zod_1.z
|
|
139
|
+
.union([
|
|
140
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
141
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
142
|
+
])
|
|
143
|
+
.optional(),
|
|
144
|
+
is_not: zod_1.z.string().min(1).optional(),
|
|
145
|
+
not_in: zod_1.z
|
|
146
|
+
.union([
|
|
147
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
148
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
149
|
+
])
|
|
150
|
+
.optional(),
|
|
151
|
+
is: zod_1.z.string().min(1).optional(),
|
|
152
|
+
});
|
|
153
|
+
const ListGatewayRequestLogGatewayCredentialHandleSchema = zod_1.z.object({
|
|
154
|
+
in: zod_1.z
|
|
155
|
+
.union([
|
|
156
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
157
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
158
|
+
])
|
|
159
|
+
.optional(),
|
|
160
|
+
is_not: zod_1.z.string().min(1).optional(),
|
|
161
|
+
not_in: zod_1.z
|
|
162
|
+
.union([
|
|
163
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
164
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
165
|
+
])
|
|
166
|
+
.optional(),
|
|
167
|
+
is: zod_1.z.string().min(1).optional(),
|
|
168
|
+
});
|
|
169
|
+
const ListGatewayRequestLogPaymentAttemptHandleSchema = zod_1.z.object({
|
|
170
|
+
in: zod_1.z
|
|
171
|
+
.union([
|
|
172
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
173
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
174
|
+
])
|
|
175
|
+
.optional(),
|
|
176
|
+
is_not: zod_1.z.string().min(1).optional(),
|
|
177
|
+
not_in: zod_1.z
|
|
178
|
+
.union([
|
|
179
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
180
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
181
|
+
])
|
|
182
|
+
.optional(),
|
|
183
|
+
is: zod_1.z.string().min(1).optional(),
|
|
184
|
+
});
|
|
185
|
+
const ListGatewayRequestLogPaymentIntentHandleSchema = zod_1.z.object({
|
|
186
|
+
in: zod_1.z
|
|
187
|
+
.union([
|
|
188
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
189
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
190
|
+
])
|
|
191
|
+
.optional(),
|
|
192
|
+
is_not: zod_1.z.string().min(1).optional(),
|
|
193
|
+
not_in: zod_1.z
|
|
194
|
+
.union([
|
|
195
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
196
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
197
|
+
])
|
|
198
|
+
.optional(),
|
|
199
|
+
is: zod_1.z.string().min(1).optional(),
|
|
200
|
+
});
|
|
201
|
+
const ListGatewayRequestLogOperationNameSchema = zod_1.z.object({
|
|
202
|
+
in: zod_1.z
|
|
203
|
+
.union([
|
|
204
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
205
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
206
|
+
])
|
|
207
|
+
.optional(),
|
|
208
|
+
is_not: zod_1.z.string().min(1).optional(),
|
|
209
|
+
not_in: zod_1.z
|
|
210
|
+
.union([
|
|
211
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
212
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
213
|
+
])
|
|
214
|
+
.optional(),
|
|
215
|
+
is: zod_1.z.string().min(1).optional(),
|
|
216
|
+
});
|
|
217
|
+
const ListGatewayRequestLogOperationTypeSchema = zod_1.z.object({
|
|
218
|
+
in: zod_1.z
|
|
219
|
+
.union([
|
|
220
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
221
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
222
|
+
])
|
|
223
|
+
.optional(),
|
|
224
|
+
is_not: zod_1.z.string().min(1).optional(),
|
|
225
|
+
not_in: zod_1.z
|
|
226
|
+
.union([
|
|
227
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
228
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
229
|
+
])
|
|
230
|
+
.optional(),
|
|
231
|
+
is: zod_1.z.string().min(1).optional(),
|
|
232
|
+
});
|
|
233
|
+
const ListGatewayRequestLogSourceSchema = zod_1.z.object({
|
|
234
|
+
in: zod_1.z
|
|
235
|
+
.union([
|
|
236
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
237
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
238
|
+
])
|
|
239
|
+
.optional(),
|
|
240
|
+
is_not: zod_1.z.string().min(1).optional(),
|
|
241
|
+
not_in: zod_1.z
|
|
242
|
+
.union([
|
|
243
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
244
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
245
|
+
])
|
|
246
|
+
.optional(),
|
|
247
|
+
is: zod_1.z.string().min(1).optional(),
|
|
248
|
+
});
|
|
249
|
+
const ListGatewayRequestLogInvocationTimeSchema = zod_1.z.object({
|
|
250
|
+
after: zod_1.z
|
|
251
|
+
.union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
|
|
252
|
+
.optional(),
|
|
253
|
+
before: zod_1.z
|
|
254
|
+
.union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
|
|
255
|
+
.optional(),
|
|
256
|
+
on: zod_1.z
|
|
257
|
+
.union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
|
|
258
|
+
.optional(),
|
|
259
|
+
between: zod_1.z
|
|
260
|
+
.union([
|
|
261
|
+
zod_1.z.array(zod_1.z.number().int().optional()).min(2).max(2),
|
|
262
|
+
zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')),
|
|
263
|
+
])
|
|
264
|
+
.optional(),
|
|
265
|
+
});
|
|
266
|
+
const ListGatewayRequestLogResponseReceivedAtSchema = zod_1.z.object({
|
|
267
|
+
after: zod_1.z
|
|
268
|
+
.union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
|
|
269
|
+
.optional(),
|
|
270
|
+
before: zod_1.z
|
|
271
|
+
.union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
|
|
272
|
+
.optional(),
|
|
273
|
+
on: zod_1.z
|
|
274
|
+
.union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
|
|
275
|
+
.optional(),
|
|
276
|
+
between: zod_1.z
|
|
277
|
+
.union([
|
|
278
|
+
zod_1.z.array(zod_1.z.number().int().optional()).min(2).max(2),
|
|
279
|
+
zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')),
|
|
280
|
+
])
|
|
281
|
+
.optional(),
|
|
282
|
+
});
|
|
283
|
+
const ListGatewayRequestLogSortBySchema = zod_1.z.looseObject({
|
|
284
|
+
asc: zod_1.z.enum(['invocation_time']).optional(),
|
|
285
|
+
desc: zod_1.z.enum(['invocation_time']).optional(),
|
|
286
|
+
});
|
|
287
|
+
const ListGatewayRequestLogBodySchema = zod_1.z.looseObject({
|
|
288
|
+
limit: zod_1.z.number().int().min(1).max(100).optional(),
|
|
289
|
+
offset: zod_1.z.string().max(1000).optional(),
|
|
290
|
+
log_id: ListGatewayRequestLogLogIdSchema.optional(),
|
|
291
|
+
gateway: ListGatewayRequestLogGatewaySchema.optional(),
|
|
292
|
+
status_code: ListGatewayRequestLogStatusCodeSchema.optional(),
|
|
293
|
+
method: ListGatewayRequestLogMethodSchema.optional(),
|
|
294
|
+
url: ListGatewayRequestLogUrlSchema.optional(),
|
|
295
|
+
customer_handle: ListGatewayRequestLogCustomerHandleSchema.optional(),
|
|
296
|
+
invoice_handle: ListGatewayRequestLogInvoiceHandleSchema.optional(),
|
|
297
|
+
transaction_handle: ListGatewayRequestLogTransactionHandleSchema.optional(),
|
|
298
|
+
payment_method_handle: ListGatewayRequestLogPaymentMethodHandleSchema.optional(),
|
|
299
|
+
gateway_credential_handle: ListGatewayRequestLogGatewayCredentialHandleSchema.optional(),
|
|
300
|
+
payment_attempt_handle: ListGatewayRequestLogPaymentAttemptHandleSchema.optional(),
|
|
301
|
+
payment_intent_handle: ListGatewayRequestLogPaymentIntentHandleSchema.optional(),
|
|
302
|
+
operation_name: ListGatewayRequestLogOperationNameSchema.optional(),
|
|
303
|
+
operation_type: ListGatewayRequestLogOperationTypeSchema.optional(),
|
|
304
|
+
source: ListGatewayRequestLogSourceSchema.optional(),
|
|
305
|
+
invocation_time: ListGatewayRequestLogInvocationTimeSchema.optional(),
|
|
306
|
+
response_received_at: ListGatewayRequestLogResponseReceivedAtSchema.optional(),
|
|
307
|
+
sort_by: ListGatewayRequestLogSortBySchema.optional(),
|
|
308
|
+
});
|
|
309
|
+
exports.ListGatewayRequestLogBodySchema = ListGatewayRequestLogBodySchema;
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Generated Zod schemas: GatewayWebhookLog
|
|
3
|
+
// Actions: list
|
|
4
|
+
// Do not edit manually – regenerate via sdk-generator
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ListGatewayWebhookLogBodySchema = void 0;
|
|
7
|
+
const zod_1 = require("zod");
|
|
8
|
+
//GatewayWebhookLog.list
|
|
9
|
+
const ListGatewayWebhookLogWebhookIdSchema = zod_1.z.object({
|
|
10
|
+
in: zod_1.z
|
|
11
|
+
.union([
|
|
12
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
13
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
14
|
+
])
|
|
15
|
+
.optional(),
|
|
16
|
+
is_not: zod_1.z.string().min(1).optional(),
|
|
17
|
+
not_in: zod_1.z
|
|
18
|
+
.union([
|
|
19
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
20
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
21
|
+
])
|
|
22
|
+
.optional(),
|
|
23
|
+
is: zod_1.z.string().min(1).optional(),
|
|
24
|
+
});
|
|
25
|
+
const ListGatewayWebhookLogGatewaySchema = zod_1.z.object({
|
|
26
|
+
in: zod_1.z
|
|
27
|
+
.union([
|
|
28
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
29
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
30
|
+
])
|
|
31
|
+
.optional(),
|
|
32
|
+
is_not: zod_1.z.string().min(1).optional(),
|
|
33
|
+
not_in: zod_1.z
|
|
34
|
+
.union([
|
|
35
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
36
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
37
|
+
])
|
|
38
|
+
.optional(),
|
|
39
|
+
is: zod_1.z.string().min(1).optional(),
|
|
40
|
+
});
|
|
41
|
+
const ListGatewayWebhookLogStatusCodeSchema = zod_1.z.object({
|
|
42
|
+
in: zod_1.z
|
|
43
|
+
.union([
|
|
44
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
45
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
46
|
+
])
|
|
47
|
+
.optional(),
|
|
48
|
+
is_not: zod_1.z.string().min(1).optional(),
|
|
49
|
+
not_in: zod_1.z
|
|
50
|
+
.union([
|
|
51
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
52
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
53
|
+
])
|
|
54
|
+
.optional(),
|
|
55
|
+
is: zod_1.z.string().min(1).optional(),
|
|
56
|
+
});
|
|
57
|
+
const ListGatewayWebhookLogMethodSchema = zod_1.z.object({
|
|
58
|
+
in: zod_1.z
|
|
59
|
+
.union([
|
|
60
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
61
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
62
|
+
])
|
|
63
|
+
.optional(),
|
|
64
|
+
is_not: zod_1.z.string().min(1).optional(),
|
|
65
|
+
not_in: zod_1.z
|
|
66
|
+
.union([
|
|
67
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
68
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
69
|
+
])
|
|
70
|
+
.optional(),
|
|
71
|
+
is: zod_1.z.string().min(1).optional(),
|
|
72
|
+
});
|
|
73
|
+
const ListGatewayWebhookLogUrlSchema = zod_1.z.object({
|
|
74
|
+
in: zod_1.z
|
|
75
|
+
.union([
|
|
76
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
77
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
78
|
+
])
|
|
79
|
+
.optional(),
|
|
80
|
+
is_not: zod_1.z.string().min(1).optional(),
|
|
81
|
+
not_in: zod_1.z
|
|
82
|
+
.union([
|
|
83
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
84
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
85
|
+
])
|
|
86
|
+
.optional(),
|
|
87
|
+
is: zod_1.z.string().min(1).optional(),
|
|
88
|
+
});
|
|
89
|
+
const ListGatewayWebhookLogIdAtGatewaySchema = zod_1.z.object({
|
|
90
|
+
in: zod_1.z
|
|
91
|
+
.union([
|
|
92
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
93
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
94
|
+
])
|
|
95
|
+
.optional(),
|
|
96
|
+
is_not: zod_1.z.string().min(1).optional(),
|
|
97
|
+
not_in: zod_1.z
|
|
98
|
+
.union([
|
|
99
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
100
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
101
|
+
])
|
|
102
|
+
.optional(),
|
|
103
|
+
is: zod_1.z.string().min(1).optional(),
|
|
104
|
+
});
|
|
105
|
+
const ListGatewayWebhookLogCustomerHandleSchema = zod_1.z.object({
|
|
106
|
+
in: zod_1.z
|
|
107
|
+
.union([
|
|
108
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
109
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
110
|
+
])
|
|
111
|
+
.optional(),
|
|
112
|
+
is_not: zod_1.z.string().min(1).optional(),
|
|
113
|
+
not_in: zod_1.z
|
|
114
|
+
.union([
|
|
115
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
116
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
117
|
+
])
|
|
118
|
+
.optional(),
|
|
119
|
+
is: zod_1.z.string().min(1).optional(),
|
|
120
|
+
});
|
|
121
|
+
const ListGatewayWebhookLogInvoiceHandleSchema = zod_1.z.object({
|
|
122
|
+
in: zod_1.z
|
|
123
|
+
.union([
|
|
124
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
125
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
126
|
+
])
|
|
127
|
+
.optional(),
|
|
128
|
+
is_not: zod_1.z.string().min(1).optional(),
|
|
129
|
+
not_in: zod_1.z
|
|
130
|
+
.union([
|
|
131
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
132
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
133
|
+
])
|
|
134
|
+
.optional(),
|
|
135
|
+
is: zod_1.z.string().min(1).optional(),
|
|
136
|
+
});
|
|
137
|
+
const ListGatewayWebhookLogTransactionHandleSchema = zod_1.z.object({
|
|
138
|
+
in: zod_1.z
|
|
139
|
+
.union([
|
|
140
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
141
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
142
|
+
])
|
|
143
|
+
.optional(),
|
|
144
|
+
is_not: zod_1.z.string().min(1).optional(),
|
|
145
|
+
not_in: zod_1.z
|
|
146
|
+
.union([
|
|
147
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
148
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
149
|
+
])
|
|
150
|
+
.optional(),
|
|
151
|
+
is: zod_1.z.string().min(1).optional(),
|
|
152
|
+
});
|
|
153
|
+
const ListGatewayWebhookLogPaymentMethodHandleSchema = zod_1.z.object({
|
|
154
|
+
in: zod_1.z
|
|
155
|
+
.union([
|
|
156
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
157
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
158
|
+
])
|
|
159
|
+
.optional(),
|
|
160
|
+
is_not: zod_1.z.string().min(1).optional(),
|
|
161
|
+
not_in: zod_1.z
|
|
162
|
+
.union([
|
|
163
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
164
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
165
|
+
])
|
|
166
|
+
.optional(),
|
|
167
|
+
is: zod_1.z.string().min(1).optional(),
|
|
168
|
+
});
|
|
169
|
+
const ListGatewayWebhookLogGatewayCredentialHandleSchema = zod_1.z.object({
|
|
170
|
+
in: zod_1.z
|
|
171
|
+
.union([
|
|
172
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
173
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
174
|
+
])
|
|
175
|
+
.optional(),
|
|
176
|
+
is_not: zod_1.z.string().min(1).optional(),
|
|
177
|
+
not_in: zod_1.z
|
|
178
|
+
.union([
|
|
179
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
180
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
181
|
+
])
|
|
182
|
+
.optional(),
|
|
183
|
+
is: zod_1.z.string().min(1).optional(),
|
|
184
|
+
});
|
|
185
|
+
const ListGatewayWebhookLogPaymentAttemptHandleSchema = zod_1.z.object({
|
|
186
|
+
in: zod_1.z
|
|
187
|
+
.union([
|
|
188
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
189
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
190
|
+
])
|
|
191
|
+
.optional(),
|
|
192
|
+
is_not: zod_1.z.string().min(1).optional(),
|
|
193
|
+
not_in: zod_1.z
|
|
194
|
+
.union([
|
|
195
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
196
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
197
|
+
])
|
|
198
|
+
.optional(),
|
|
199
|
+
is: zod_1.z.string().min(1).optional(),
|
|
200
|
+
});
|
|
201
|
+
const ListGatewayWebhookLogPaymentIntentHandleSchema = zod_1.z.object({
|
|
202
|
+
in: zod_1.z
|
|
203
|
+
.union([
|
|
204
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
205
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
206
|
+
])
|
|
207
|
+
.optional(),
|
|
208
|
+
is_not: zod_1.z.string().min(1).optional(),
|
|
209
|
+
not_in: zod_1.z
|
|
210
|
+
.union([
|
|
211
|
+
zod_1.z.array(zod_1.z.string().optional()),
|
|
212
|
+
zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
|
|
213
|
+
])
|
|
214
|
+
.optional(),
|
|
215
|
+
is: zod_1.z.string().min(1).optional(),
|
|
216
|
+
});
|
|
217
|
+
const ListGatewayWebhookLogReceivedAtSchema = zod_1.z.object({
|
|
218
|
+
after: zod_1.z
|
|
219
|
+
.union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
|
|
220
|
+
.optional(),
|
|
221
|
+
before: zod_1.z
|
|
222
|
+
.union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
|
|
223
|
+
.optional(),
|
|
224
|
+
on: zod_1.z
|
|
225
|
+
.union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
|
|
226
|
+
.optional(),
|
|
227
|
+
between: zod_1.z
|
|
228
|
+
.union([
|
|
229
|
+
zod_1.z.array(zod_1.z.number().int().optional()).min(2).max(2),
|
|
230
|
+
zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')),
|
|
231
|
+
])
|
|
232
|
+
.optional(),
|
|
233
|
+
});
|
|
234
|
+
const ListGatewayWebhookLogSortBySchema = zod_1.z.looseObject({
|
|
235
|
+
asc: zod_1.z.enum(['received_at']).optional(),
|
|
236
|
+
desc: zod_1.z.enum(['received_at']).optional(),
|
|
237
|
+
});
|
|
238
|
+
const ListGatewayWebhookLogBodySchema = zod_1.z.looseObject({
|
|
239
|
+
limit: zod_1.z.number().int().min(1).max(100).optional(),
|
|
240
|
+
offset: zod_1.z.string().max(1000).optional(),
|
|
241
|
+
webhook_id: ListGatewayWebhookLogWebhookIdSchema.optional(),
|
|
242
|
+
gateway: ListGatewayWebhookLogGatewaySchema.optional(),
|
|
243
|
+
status_code: ListGatewayWebhookLogStatusCodeSchema.optional(),
|
|
244
|
+
method: ListGatewayWebhookLogMethodSchema.optional(),
|
|
245
|
+
url: ListGatewayWebhookLogUrlSchema.optional(),
|
|
246
|
+
id_at_gateway: ListGatewayWebhookLogIdAtGatewaySchema.optional(),
|
|
247
|
+
customer_handle: ListGatewayWebhookLogCustomerHandleSchema.optional(),
|
|
248
|
+
invoice_handle: ListGatewayWebhookLogInvoiceHandleSchema.optional(),
|
|
249
|
+
transaction_handle: ListGatewayWebhookLogTransactionHandleSchema.optional(),
|
|
250
|
+
payment_method_handle: ListGatewayWebhookLogPaymentMethodHandleSchema.optional(),
|
|
251
|
+
gateway_credential_handle: ListGatewayWebhookLogGatewayCredentialHandleSchema.optional(),
|
|
252
|
+
payment_attempt_handle: ListGatewayWebhookLogPaymentAttemptHandleSchema.optional(),
|
|
253
|
+
payment_intent_handle: ListGatewayWebhookLogPaymentIntentHandleSchema.optional(),
|
|
254
|
+
received_at: ListGatewayWebhookLogReceivedAtSchema.optional(),
|
|
255
|
+
sort_by: ListGatewayWebhookLogSortBySchema.optional(),
|
|
256
|
+
});
|
|
257
|
+
exports.ListGatewayWebhookLogBodySchema = ListGatewayWebhookLogBodySchema;
|