chargebee 3.32.0 → 3.34.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 +196 -0
- package/cjs/environment.js +1 -1
- package/cjs/resources/api_endpoints.js +323 -2
- package/cjs/resources/webhook/eventType.js +14 -0
- 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/credit_note.schema.js +10 -4
- 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/estimate.schema.js +38 -9
- package/cjs/schema/event.schema.js +56 -0
- package/cjs/schema/export.schema.js +68 -12
- package/cjs/schema/feature.schema.js +2 -2
- package/cjs/schema/gift.schema.js +27 -1
- package/cjs/schema/hosted_page.schema.js +26 -6
- package/cjs/schema/index.js +6 -0
- package/cjs/schema/invoice.schema.js +74 -10
- package/cjs/schema/ledger_operation.schema.js +4 -0
- package/cjs/schema/meter.schema.js +1 -1
- package/cjs/schema/metered_feature.schema.js +1 -1
- 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 +103 -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 +14 -1
- package/cjs/schema/quote.schema.js +2 -2
- package/cjs/schema/ramp.schema.js +8 -0
- package/cjs/schema/subscription.schema.js +179 -16
- package/cjs/schema/transaction.schema.js +60 -2
- package/cjs/schema/webhook_endpoint.schema.js +28 -0
- package/esm/environment.js +1 -1
- package/esm/resources/api_endpoints.js +323 -2
- package/esm/resources/webhook/eventType.js +14 -0
- 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/credit_note.schema.js +10 -4
- 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/estimate.schema.js +38 -9
- package/esm/schema/event.schema.js +56 -0
- package/esm/schema/export.schema.js +68 -12
- package/esm/schema/feature.schema.js +2 -2
- package/esm/schema/gift.schema.js +27 -1
- package/esm/schema/hosted_page.schema.js +26 -6
- package/esm/schema/index.js +6 -0
- package/esm/schema/invoice.schema.js +74 -10
- package/esm/schema/ledger_operation.schema.js +4 -0
- package/esm/schema/meter.schema.js +1 -1
- package/esm/schema/metered_feature.schema.js +1 -1
- package/esm/schema/omnichannel_subscription.schema.js +1 -1
- 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 +103 -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 +14 -1
- package/esm/schema/quote.schema.js +2 -2
- package/esm/schema/ramp.schema.js +8 -0
- package/esm/schema/subscription.schema.js +179 -16
- package/esm/schema/subscription_entitlement.schema.js +2 -2
- package/esm/schema/transaction.schema.js +60 -2
- package/esm/schema/webhook_endpoint.schema.js +28 -0
- package/package.json +1 -1
- package/types/core.d.ts +86 -8
- package/types/index.d.ts +15 -0
- package/types/resources/AppliedBusinessRule.d.ts +15 -0
- package/types/resources/AppliedRule.d.ts +14 -0
- package/types/resources/ApplyRule.d.ts +28 -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/Content.d.ts +9 -0
- package/types/resources/Coupon.d.ts +2 -2
- package/types/resources/CreditNote.d.ts +12 -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/Einvoice.d.ts +64 -1
- package/types/resources/EmailLog.d.ts +45 -0
- package/types/resources/Estimate.d.ts +34 -5
- package/types/resources/Event.d.ts +15 -0
- package/types/resources/Gift.d.ts +29 -3
- package/types/resources/GrantBlock.d.ts +26 -7
- package/types/resources/HostedPage.d.ts +14 -3
- package/types/resources/Invoice.d.ts +42 -4
- package/types/resources/LedgerEntry.d.ts +4 -4
- package/types/resources/LedgerOperation.d.ts +15 -8
- package/types/resources/OmnichannelSubscriptionItem.d.ts +5 -1
- package/types/resources/PaymentIntent.d.ts +72 -5
- package/types/resources/PaymentSchedule.d.ts +38 -1
- package/types/resources/PaymentScheduleEstimate.d.ts +1 -0
- package/types/resources/PaymentScheduleScheme.d.ts +17 -1
- package/types/resources/PaymentSource.d.ts +31 -2
- package/types/resources/PricingPageSession.d.ts +1 -0
- package/types/resources/PromotionalGrant.d.ts +2 -0
- package/types/resources/Purchase.d.ts +14 -1
- package/types/resources/Quote.d.ts +2 -2
- package/types/resources/QuotedSubscription.d.ts +3 -2
- package/types/resources/Ramp.d.ts +12 -0
- package/types/resources/Subscription.d.ts +116 -17
- package/types/resources/ThirdPartyPaymentMethod.d.ts +1 -0
- package/types/resources/Transaction.d.ts +5 -0
- package/types/resources/WebhookEvent.d.ts +70 -0
|
@@ -7,8 +7,8 @@ exports.ListMeterBodySchema = void 0;
|
|
|
7
7
|
const zod_1 = require("zod");
|
|
8
8
|
//Meter.list
|
|
9
9
|
const ListMeterNameSchema = zod_1.z.object({
|
|
10
|
-
is: zod_1.z.string().min(1).optional(),
|
|
11
10
|
starts_with: zod_1.z.string().min(1).optional(),
|
|
11
|
+
is: zod_1.z.string().min(1).optional(),
|
|
12
12
|
});
|
|
13
13
|
const ListMeterSortBySchema = zod_1.z.looseObject({
|
|
14
14
|
asc: zod_1.z.enum(['id', 'name', 'created_at', 'updated_at']).optional(),
|
|
@@ -14,7 +14,7 @@ const CreateMeteredFeatureBodySchema = zod_1.z.looseObject({
|
|
|
14
14
|
name: zod_1.z.string().max(50),
|
|
15
15
|
description: zod_1.z.string().max(250).optional(),
|
|
16
16
|
feature_unit: zod_1.z.string().max(50),
|
|
17
|
-
query: zod_1.z.string().max(
|
|
17
|
+
query: zod_1.z.string().max(1000),
|
|
18
18
|
column_definitions: CreateMeteredFeatureColumnDefinitionsSchema.optional(),
|
|
19
19
|
});
|
|
20
20
|
exports.CreateMeteredFeatureBodySchema = CreateMeteredFeatureBodySchema;
|
|
@@ -9,6 +9,7 @@ const zod_1 = require("zod");
|
|
|
9
9
|
const CreatePaymentIntentPaymentMethodOptionsSchema = zod_1.z.looseObject({});
|
|
10
10
|
const CreatePaymentIntentBodySchema = zod_1.z.looseObject({
|
|
11
11
|
business_entity_id: zod_1.z.string().max(50).optional(),
|
|
12
|
+
brand_id: zod_1.z.string().max(50).optional(),
|
|
12
13
|
customer_id: zod_1.z.string().max(50).optional(),
|
|
13
14
|
amount: zod_1.z.number().int().min(0),
|
|
14
15
|
currency_code: zod_1.z.string().max(3),
|
|
@@ -69,6 +70,19 @@ const CreatePaymentIntentBodySchema = zod_1.z.looseObject({
|
|
|
69
70
|
'touch_n_go',
|
|
70
71
|
'tamara',
|
|
71
72
|
'qpay',
|
|
73
|
+
'ovo',
|
|
74
|
+
'momo',
|
|
75
|
+
'mercado_pago',
|
|
76
|
+
'nequi',
|
|
77
|
+
'nupay',
|
|
78
|
+
'picpay',
|
|
79
|
+
'thai_qr',
|
|
80
|
+
'blik',
|
|
81
|
+
'fpx',
|
|
82
|
+
'wero',
|
|
83
|
+
'p24',
|
|
84
|
+
'affirm_pay',
|
|
85
|
+
'rakuten_pay',
|
|
72
86
|
])
|
|
73
87
|
.optional(),
|
|
74
88
|
success_url: zod_1.z.string().max(250).optional(),
|
|
@@ -136,6 +150,19 @@ const UpdatePaymentIntentBodySchema = zod_1.z.looseObject({
|
|
|
136
150
|
'touch_n_go',
|
|
137
151
|
'tamara',
|
|
138
152
|
'qpay',
|
|
153
|
+
'ovo',
|
|
154
|
+
'momo',
|
|
155
|
+
'mercado_pago',
|
|
156
|
+
'nequi',
|
|
157
|
+
'nupay',
|
|
158
|
+
'picpay',
|
|
159
|
+
'thai_qr',
|
|
160
|
+
'blik',
|
|
161
|
+
'fpx',
|
|
162
|
+
'wero',
|
|
163
|
+
'p24',
|
|
164
|
+
'affirm_pay',
|
|
165
|
+
'rakuten_pay',
|
|
139
166
|
])
|
|
140
167
|
.optional(),
|
|
141
168
|
success_url: zod_1.z.string().max(250).optional(),
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Generated Zod schemas: PaymentSchedule
|
|
3
|
+
// Actions: list
|
|
4
|
+
// Do not edit manually – regenerate via sdk-generator
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ListPaymentScheduleBodySchema = void 0;
|
|
7
|
+
const zod_1 = require("zod");
|
|
8
|
+
//PaymentSchedule.list
|
|
9
|
+
const ListPaymentScheduleInvoiceIdSchema = zod_1.z.object({
|
|
10
|
+
is: zod_1.z.string().min(1).optional(),
|
|
11
|
+
is_not: zod_1.z.string().min(1).optional(),
|
|
12
|
+
starts_with: zod_1.z.string().min(1).optional(),
|
|
13
|
+
in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
14
|
+
not_in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
15
|
+
});
|
|
16
|
+
const ListPaymentScheduleIdSchema = zod_1.z.object({
|
|
17
|
+
is: zod_1.z.string().min(1).optional(),
|
|
18
|
+
is_not: zod_1.z.string().min(1).optional(),
|
|
19
|
+
starts_with: zod_1.z.string().min(1).optional(),
|
|
20
|
+
in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
21
|
+
not_in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
22
|
+
});
|
|
23
|
+
const ListPaymentScheduleUpdatedAtSchema = zod_1.z.object({
|
|
24
|
+
after: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
25
|
+
before: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
26
|
+
on: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
27
|
+
between: zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
|
|
28
|
+
});
|
|
29
|
+
const ListPaymentScheduleBodySchema = zod_1.z.looseObject({
|
|
30
|
+
limit: zod_1.z.number().int().min(1).max(100).optional(),
|
|
31
|
+
offset: zod_1.z.string().max(1000).optional(),
|
|
32
|
+
invoice_id: ListPaymentScheduleInvoiceIdSchema.optional(),
|
|
33
|
+
id: ListPaymentScheduleIdSchema.optional(),
|
|
34
|
+
updated_at: ListPaymentScheduleUpdatedAtSchema.optional(),
|
|
35
|
+
});
|
|
36
|
+
exports.ListPaymentScheduleBodySchema = ListPaymentScheduleBodySchema;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Generated Zod schemas: PaymentScheduleScheme
|
|
3
|
-
// Actions: create
|
|
3
|
+
// Actions: create, list
|
|
4
4
|
// Do not edit manually – regenerate via sdk-generator
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.CreatePaymentScheduleSchemeBodySchema = void 0;
|
|
6
|
+
exports.ListPaymentScheduleSchemeBodySchema = exports.CreatePaymentScheduleSchemeBodySchema = void 0;
|
|
7
7
|
const zod_1 = require("zod");
|
|
8
8
|
//PaymentScheduleScheme.create
|
|
9
9
|
const CreatePaymentScheduleSchemeFlexibleSchedulesSchema = zod_1.z.object({
|
|
@@ -18,3 +18,24 @@ const CreatePaymentScheduleSchemeBodySchema = zod_1.z.looseObject({
|
|
|
18
18
|
flexible_schedules: CreatePaymentScheduleSchemeFlexibleSchedulesSchema.optional(),
|
|
19
19
|
});
|
|
20
20
|
exports.CreatePaymentScheduleSchemeBodySchema = CreatePaymentScheduleSchemeBodySchema;
|
|
21
|
+
//PaymentScheduleScheme.list
|
|
22
|
+
const ListPaymentScheduleSchemeIdSchema = zod_1.z.object({
|
|
23
|
+
is: zod_1.z.string().min(1).optional(),
|
|
24
|
+
is_not: zod_1.z.string().min(1).optional(),
|
|
25
|
+
starts_with: zod_1.z.string().min(1).optional(),
|
|
26
|
+
in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
27
|
+
not_in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
28
|
+
});
|
|
29
|
+
const ListPaymentScheduleSchemeUpdatedAtSchema = zod_1.z.object({
|
|
30
|
+
after: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
31
|
+
before: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
32
|
+
on: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
33
|
+
between: zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
|
|
34
|
+
});
|
|
35
|
+
const ListPaymentScheduleSchemeBodySchema = zod_1.z.looseObject({
|
|
36
|
+
limit: zod_1.z.number().int().min(1).max(100).optional(),
|
|
37
|
+
offset: zod_1.z.string().max(1000).optional(),
|
|
38
|
+
id: ListPaymentScheduleSchemeIdSchema.optional(),
|
|
39
|
+
updated_at: ListPaymentScheduleSchemeUpdatedAtSchema.optional(),
|
|
40
|
+
});
|
|
41
|
+
exports.ListPaymentScheduleSchemeBodySchema = ListPaymentScheduleSchemeBodySchema;
|
|
@@ -65,9 +65,23 @@ const CreateUsingTempTokenPaymentSourceBodySchema = zod_1.z.looseObject({
|
|
|
65
65
|
'touch_n_go',
|
|
66
66
|
'tamara',
|
|
67
67
|
'qpay',
|
|
68
|
+
'ovo',
|
|
69
|
+
'momo',
|
|
70
|
+
'mercado_pago',
|
|
71
|
+
'nequi',
|
|
72
|
+
'nupay',
|
|
73
|
+
'picpay',
|
|
74
|
+
'thai_qr',
|
|
75
|
+
'blik',
|
|
76
|
+
'fpx',
|
|
77
|
+
'wero',
|
|
78
|
+
'p24',
|
|
79
|
+
'affirm_pay',
|
|
80
|
+
'rakuten_pay',
|
|
68
81
|
]),
|
|
69
82
|
tmp_token: zod_1.z.string().max(65000),
|
|
70
83
|
issuing_country: zod_1.z.string().max(50).optional(),
|
|
84
|
+
brand_id: zod_1.z.string().max(50).optional(),
|
|
71
85
|
replace_primary_payment_source: zod_1.z.boolean().default(false).optional(),
|
|
72
86
|
additional_information: CreateUsingTempTokenPaymentSourceAdditionalInformationSchema.optional(),
|
|
73
87
|
});
|
|
@@ -122,6 +136,7 @@ const CreateUsingPermanentTokenPaymentSourceBillingAddressSchema = zod_1.z.objec
|
|
|
122
136
|
});
|
|
123
137
|
const CreateUsingPermanentTokenPaymentSourceBodySchema = zod_1.z.looseObject({
|
|
124
138
|
customer_id: zod_1.z.string().max(50),
|
|
139
|
+
brand_id: zod_1.z.string().max(50).optional(),
|
|
125
140
|
type: zod_1.z.enum([
|
|
126
141
|
'card',
|
|
127
142
|
'paypal_express_checkout',
|
|
@@ -177,6 +192,19 @@ const CreateUsingPermanentTokenPaymentSourceBodySchema = zod_1.z.looseObject({
|
|
|
177
192
|
'touch_n_go',
|
|
178
193
|
'tamara',
|
|
179
194
|
'qpay',
|
|
195
|
+
'ovo',
|
|
196
|
+
'momo',
|
|
197
|
+
'mercado_pago',
|
|
198
|
+
'nequi',
|
|
199
|
+
'nupay',
|
|
200
|
+
'picpay',
|
|
201
|
+
'thai_qr',
|
|
202
|
+
'blik',
|
|
203
|
+
'fpx',
|
|
204
|
+
'wero',
|
|
205
|
+
'p24',
|
|
206
|
+
'affirm_pay',
|
|
207
|
+
'rakuten_pay',
|
|
180
208
|
]),
|
|
181
209
|
gateway_account_id: zod_1.z.string().max(50).optional(),
|
|
182
210
|
reference_id: zod_1.z.string().max(200).optional(),
|
|
@@ -195,6 +223,7 @@ exports.CreateUsingPermanentTokenPaymentSourceBodySchema = CreateUsingPermanentT
|
|
|
195
223
|
//PaymentSource.createUsingToken
|
|
196
224
|
const CreateUsingTokenPaymentSourceBodySchema = zod_1.z.looseObject({
|
|
197
225
|
customer_id: zod_1.z.string().max(50),
|
|
226
|
+
brand_id: zod_1.z.string().max(50).optional(),
|
|
198
227
|
replace_primary_payment_source: zod_1.z.boolean().default(false).optional(),
|
|
199
228
|
token_id: zod_1.z.string().max(40),
|
|
200
229
|
});
|
|
@@ -260,6 +289,19 @@ const CreateUsingPaymentIntentPaymentSourcePaymentIntentSchema = zod_1.z.object(
|
|
|
260
289
|
'touch_n_go',
|
|
261
290
|
'tamara',
|
|
262
291
|
'qpay',
|
|
292
|
+
'ovo',
|
|
293
|
+
'momo',
|
|
294
|
+
'mercado_pago',
|
|
295
|
+
'nequi',
|
|
296
|
+
'nupay',
|
|
297
|
+
'picpay',
|
|
298
|
+
'thai_qr',
|
|
299
|
+
'blik',
|
|
300
|
+
'fpx',
|
|
301
|
+
'wero',
|
|
302
|
+
'p24',
|
|
303
|
+
'affirm_pay',
|
|
304
|
+
'rakuten_pay',
|
|
263
305
|
])
|
|
264
306
|
.optional(),
|
|
265
307
|
reference_id: zod_1.z.string().max(65000).optional(),
|
|
@@ -269,6 +311,7 @@ const CreateUsingPaymentIntentPaymentSourcePaymentIntentSchema = zod_1.z.object(
|
|
|
269
311
|
});
|
|
270
312
|
const CreateUsingPaymentIntentPaymentSourceBodySchema = zod_1.z.looseObject({
|
|
271
313
|
customer_id: zod_1.z.string().max(50),
|
|
314
|
+
brand_id: zod_1.z.string().max(50).optional(),
|
|
272
315
|
replace_primary_payment_source: zod_1.z.boolean().default(false).optional(),
|
|
273
316
|
payment_intent: CreateUsingPaymentIntentPaymentSourcePaymentIntentSchema.optional(),
|
|
274
317
|
});
|
|
@@ -283,6 +326,7 @@ const CreateVoucherPaymentSourcePaymentSourceVoucherPaymentSourceSchema = zod_1.
|
|
|
283
326
|
});
|
|
284
327
|
const CreateVoucherPaymentSourcePaymentSourceBodySchema = zod_1.z.looseObject({
|
|
285
328
|
customer_id: zod_1.z.string().max(50),
|
|
329
|
+
brand_id: zod_1.z.string().max(50).optional(),
|
|
286
330
|
voucher_payment_source: CreateVoucherPaymentSourcePaymentSourceVoucherPaymentSourceSchema.optional(),
|
|
287
331
|
});
|
|
288
332
|
exports.CreateVoucherPaymentSourcePaymentSourceBodySchema = CreateVoucherPaymentSourcePaymentSourceBodySchema;
|
|
@@ -297,7 +341,7 @@ const CreateCardPaymentSourceCardSchema = zod_1.z.object({
|
|
|
297
341
|
expiry_year: zod_1.z.number().int(),
|
|
298
342
|
cvv: zod_1.z.string().max(520).optional(),
|
|
299
343
|
preferred_scheme: zod_1.z
|
|
300
|
-
.enum(['cartes_bancaires', 'mastercard', 'visa'])
|
|
344
|
+
.enum(['cartes_bancaires', 'mastercard', 'visa', 'dankort'])
|
|
301
345
|
.optional(),
|
|
302
346
|
billing_addr1: zod_1.z.string().max(150).optional(),
|
|
303
347
|
billing_addr2: zod_1.z.string().max(150).optional(),
|
|
@@ -310,6 +354,7 @@ const CreateCardPaymentSourceCardSchema = zod_1.z.object({
|
|
|
310
354
|
});
|
|
311
355
|
const CreateCardPaymentSourceBodySchema = zod_1.z.looseObject({
|
|
312
356
|
customer_id: zod_1.z.string().max(50),
|
|
357
|
+
brand_id: zod_1.z.string().max(50).optional(),
|
|
313
358
|
replace_primary_payment_source: zod_1.z.boolean().default(false).optional(),
|
|
314
359
|
card: CreateCardPaymentSourceCardSchema.optional(),
|
|
315
360
|
});
|
|
@@ -338,6 +383,7 @@ const CreateBankAccountPaymentSourceBankAccountSchema = zod_1.z.object({
|
|
|
338
383
|
});
|
|
339
384
|
const CreateBankAccountPaymentSourceBodySchema = zod_1.z.looseObject({
|
|
340
385
|
customer_id: zod_1.z.string().max(50),
|
|
386
|
+
brand_id: zod_1.z.string().max(50).optional(),
|
|
341
387
|
issuing_country: zod_1.z.string().max(50).optional(),
|
|
342
388
|
replace_primary_payment_source: zod_1.z.boolean().default(false).optional(),
|
|
343
389
|
bank_account: CreateBankAccountPaymentSourceBankAccountSchema.optional(),
|
|
@@ -360,10 +406,14 @@ const UpdateCardPaymentSourceCardSchema = zod_1.z.object({
|
|
|
360
406
|
billing_country: zod_1.z.string().max(50).optional(),
|
|
361
407
|
additional_information: UpdateCardPaymentSourceAdditionalInformationSchema.optional(),
|
|
362
408
|
});
|
|
409
|
+
const UpdateCardPaymentSourceNetworkTransactionReferenceSchema = zod_1.z.object({
|
|
410
|
+
original_network_transaction_id: zod_1.z.string().max(100).optional(),
|
|
411
|
+
});
|
|
363
412
|
const UpdateCardPaymentSourceBodySchema = zod_1.z.looseObject({
|
|
364
413
|
gateway_meta_data: UpdateCardPaymentSourceGatewayMetaDataSchema.optional(),
|
|
365
414
|
reference_transaction: zod_1.z.string().max(50).optional(),
|
|
366
415
|
card: UpdateCardPaymentSourceCardSchema.optional(),
|
|
416
|
+
network_transaction_reference: UpdateCardPaymentSourceNetworkTransactionReferenceSchema.optional(),
|
|
367
417
|
});
|
|
368
418
|
exports.UpdateCardPaymentSourceBodySchema = UpdateCardPaymentSourceBodySchema;
|
|
369
419
|
//PaymentSource.updateBankAccount
|
|
@@ -454,6 +504,19 @@ const ListPaymentSourceTypeSchema = zod_1.z.object({
|
|
|
454
504
|
'touch_n_go',
|
|
455
505
|
'tamara',
|
|
456
506
|
'qpay',
|
|
507
|
+
'ovo',
|
|
508
|
+
'momo',
|
|
509
|
+
'mercado_pago',
|
|
510
|
+
'nequi',
|
|
511
|
+
'nupay',
|
|
512
|
+
'picpay',
|
|
513
|
+
'thai_qr',
|
|
514
|
+
'blik',
|
|
515
|
+
'fpx',
|
|
516
|
+
'wero',
|
|
517
|
+
'p24',
|
|
518
|
+
'affirm_pay',
|
|
519
|
+
'rakuten_pay',
|
|
457
520
|
])
|
|
458
521
|
.optional(),
|
|
459
522
|
is_not: zod_1.z
|
|
@@ -512,6 +575,19 @@ const ListPaymentSourceTypeSchema = zod_1.z.object({
|
|
|
512
575
|
'touch_n_go',
|
|
513
576
|
'tamara',
|
|
514
577
|
'qpay',
|
|
578
|
+
'ovo',
|
|
579
|
+
'momo',
|
|
580
|
+
'mercado_pago',
|
|
581
|
+
'nequi',
|
|
582
|
+
'nupay',
|
|
583
|
+
'picpay',
|
|
584
|
+
'thai_qr',
|
|
585
|
+
'blik',
|
|
586
|
+
'fpx',
|
|
587
|
+
'wero',
|
|
588
|
+
'p24',
|
|
589
|
+
'affirm_pay',
|
|
590
|
+
'rakuten_pay',
|
|
515
591
|
])
|
|
516
592
|
.optional(),
|
|
517
593
|
in: zod_1.z
|
|
@@ -570,6 +646,19 @@ const ListPaymentSourceTypeSchema = zod_1.z.object({
|
|
|
570
646
|
'touch_n_go',
|
|
571
647
|
'tamara',
|
|
572
648
|
'qpay',
|
|
649
|
+
'ovo',
|
|
650
|
+
'momo',
|
|
651
|
+
'mercado_pago',
|
|
652
|
+
'nequi',
|
|
653
|
+
'nupay',
|
|
654
|
+
'picpay',
|
|
655
|
+
'thai_qr',
|
|
656
|
+
'blik',
|
|
657
|
+
'fpx',
|
|
658
|
+
'wero',
|
|
659
|
+
'p24',
|
|
660
|
+
'affirm_pay',
|
|
661
|
+
'rakuten_pay',
|
|
573
662
|
])
|
|
574
663
|
.optional(),
|
|
575
664
|
not_in: zod_1.z
|
|
@@ -628,6 +717,19 @@ const ListPaymentSourceTypeSchema = zod_1.z.object({
|
|
|
628
717
|
'touch_n_go',
|
|
629
718
|
'tamara',
|
|
630
719
|
'qpay',
|
|
720
|
+
'ovo',
|
|
721
|
+
'momo',
|
|
722
|
+
'mercado_pago',
|
|
723
|
+
'nequi',
|
|
724
|
+
'nupay',
|
|
725
|
+
'picpay',
|
|
726
|
+
'thai_qr',
|
|
727
|
+
'blik',
|
|
728
|
+
'fpx',
|
|
729
|
+
'wero',
|
|
730
|
+
'p24',
|
|
731
|
+
'affirm_pay',
|
|
732
|
+
'rakuten_pay',
|
|
631
733
|
])
|
|
632
734
|
.optional(),
|
|
633
735
|
});
|
|
@@ -83,6 +83,7 @@ const CreateForNewSubscriptionPricingPageSessionDiscountsSchema = zod_1.z.object
|
|
|
83
83
|
const CreateForNewSubscriptionPricingPageSessionBodySchema = zod_1.z.looseObject({
|
|
84
84
|
redirect_url: zod_1.z.string().max(250).optional(),
|
|
85
85
|
business_entity_id: zod_1.z.string().max(50).optional(),
|
|
86
|
+
brand_id: zod_1.z.string().max(50).optional(),
|
|
86
87
|
auto_select_local_currency: zod_1.z.boolean().default(false).optional(),
|
|
87
88
|
custom: CreateForNewSubscriptionPricingPageSessionCustomSchema.optional(),
|
|
88
89
|
pricing_page: CreateForNewSubscriptionPricingPageSessionPricingPageSchema.optional(),
|
|
@@ -10,7 +10,9 @@ const PromotionalGrantsPromotionalGrantMetadataSchema = zod_1.z.looseObject({});
|
|
|
10
10
|
const PromotionalGrantsPromotionalGrantBodySchema = zod_1.z.looseObject({
|
|
11
11
|
subscription_id: zod_1.z.string().max(50),
|
|
12
12
|
unit_id: zod_1.z.string().max(50),
|
|
13
|
+
id: zod_1.z.string().max(50).optional(),
|
|
13
14
|
amount: zod_1.z.string().max(36),
|
|
15
|
+
effective_from: zod_1.z.number().int().optional(),
|
|
14
16
|
expires_at: zod_1.z.number().int(),
|
|
15
17
|
metadata: PromotionalGrantsPromotionalGrantMetadataSchema.optional(),
|
|
16
18
|
});
|
|
@@ -76,6 +76,19 @@ const CreatePurchasePaymentIntentSchema = zod_1.z.object({
|
|
|
76
76
|
'touch_n_go',
|
|
77
77
|
'tamara',
|
|
78
78
|
'qpay',
|
|
79
|
+
'ovo',
|
|
80
|
+
'momo',
|
|
81
|
+
'mercado_pago',
|
|
82
|
+
'nequi',
|
|
83
|
+
'nupay',
|
|
84
|
+
'picpay',
|
|
85
|
+
'thai_qr',
|
|
86
|
+
'blik',
|
|
87
|
+
'fpx',
|
|
88
|
+
'wero',
|
|
89
|
+
'p24',
|
|
90
|
+
'affirm_pay',
|
|
91
|
+
'rakuten_pay',
|
|
79
92
|
])
|
|
80
93
|
.optional(),
|
|
81
94
|
reference_id: zod_1.z.string().max(65000).optional(),
|
|
@@ -166,7 +179,7 @@ const EstimatePurchaseCustomerSchema = zod_1.z.object({
|
|
|
166
179
|
vat_number: zod_1.z.string().max(20).optional(),
|
|
167
180
|
vat_number_prefix: zod_1.z.string().max(10).optional(),
|
|
168
181
|
registered_for_gst: zod_1.z.boolean().optional(),
|
|
169
|
-
taxability: zod_1.z.enum(['taxable', 'exempt']).optional(),
|
|
182
|
+
taxability: zod_1.z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
|
|
170
183
|
entity_code: zod_1.z
|
|
171
184
|
.enum([
|
|
172
185
|
'a',
|
|
@@ -9,7 +9,7 @@ const zod_1 = require("zod");
|
|
|
9
9
|
const CreateSubForCustomerQuoteQuoteSubscriptionSchema = zod_1.z.object({
|
|
10
10
|
id: zod_1.z.string().max(50).optional(),
|
|
11
11
|
po_number: zod_1.z.string().max(100).optional(),
|
|
12
|
-
plan_id: zod_1.z.string().max(100),
|
|
12
|
+
plan_id: zod_1.z.string().max(100).optional(),
|
|
13
13
|
plan_quantity: zod_1.z.number().int().min(1).optional(),
|
|
14
14
|
plan_quantity_in_decimal: zod_1.z.string().max(33).optional(),
|
|
15
15
|
plan_unit_price: zod_1.z.number().int().min(0).optional(),
|
|
@@ -117,7 +117,7 @@ exports.CreateSubForCustomerQuoteQuoteBodySchema = CreateSubForCustomerQuoteQuot
|
|
|
117
117
|
const EditCreateSubForCustomerQuoteQuoteSubscriptionSchema = zod_1.z.object({
|
|
118
118
|
id: zod_1.z.string().max(50).optional(),
|
|
119
119
|
po_number: zod_1.z.string().max(100).optional(),
|
|
120
|
-
plan_id: zod_1.z.string().max(100),
|
|
120
|
+
plan_id: zod_1.z.string().max(100).optional(),
|
|
121
121
|
plan_quantity: zod_1.z.number().int().min(1).optional(),
|
|
122
122
|
plan_quantity_in_decimal: zod_1.z.string().max(33).optional(),
|
|
123
123
|
plan_unit_price: zod_1.z.number().int().min(0).optional(),
|
|
@@ -6,6 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.ListRampBodySchema = exports.UpdateRampBodySchema = exports.CreateForSubscriptionRampBodySchema = void 0;
|
|
7
7
|
const zod_1 = require("zod");
|
|
8
8
|
//Ramp.createForSubscription
|
|
9
|
+
const CreateForSubscriptionRampBillingConfigurationSchema = zod_1.z.object({
|
|
10
|
+
po_number: zod_1.z.string().max(100).optional(),
|
|
11
|
+
});
|
|
9
12
|
const CreateForSubscriptionRampContractTermSchema = zod_1.z.object({
|
|
10
13
|
action_at_term_end: zod_1.z
|
|
11
14
|
.enum(['renew', 'evergreen', 'cancel', 'renew_once'])
|
|
@@ -99,6 +102,7 @@ const CreateForSubscriptionRampBodySchema = zod_1.z.looseObject({
|
|
|
99
102
|
coupons_to_remove: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
|
|
100
103
|
discounts_to_remove: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
|
|
101
104
|
items_to_remove: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
|
|
105
|
+
billing_configuration: CreateForSubscriptionRampBillingConfigurationSchema.optional(),
|
|
102
106
|
contract_term: CreateForSubscriptionRampContractTermSchema.optional(),
|
|
103
107
|
items_to_add: CreateForSubscriptionRampItemsToAddSchema.optional(),
|
|
104
108
|
items_to_update: CreateForSubscriptionRampItemsToUpdateSchema.optional(),
|
|
@@ -108,6 +112,9 @@ const CreateForSubscriptionRampBodySchema = zod_1.z.looseObject({
|
|
|
108
112
|
});
|
|
109
113
|
exports.CreateForSubscriptionRampBodySchema = CreateForSubscriptionRampBodySchema;
|
|
110
114
|
//Ramp.update
|
|
115
|
+
const UpdateRampBillingConfigurationSchema = zod_1.z.object({
|
|
116
|
+
po_number: zod_1.z.string().max(100).optional(),
|
|
117
|
+
});
|
|
111
118
|
const UpdateRampContractTermSchema = zod_1.z.object({
|
|
112
119
|
action_at_term_end: zod_1.z
|
|
113
120
|
.enum(['renew', 'evergreen', 'cancel', 'renew_once'])
|
|
@@ -201,6 +208,7 @@ const UpdateRampBodySchema = zod_1.z.looseObject({
|
|
|
201
208
|
coupons_to_remove: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
|
|
202
209
|
discounts_to_remove: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
|
|
203
210
|
items_to_remove: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
|
|
211
|
+
billing_configuration: UpdateRampBillingConfigurationSchema.optional(),
|
|
204
212
|
contract_term: UpdateRampContractTermSchema.optional(),
|
|
205
213
|
items_to_add: UpdateRampItemsToAddSchema.optional(),
|
|
206
214
|
items_to_update: UpdateRampItemsToUpdateSchema.optional(),
|