chargebee 3.33.0 → 3.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +362 -0
- package/cjs/environment.js +1 -1
- package/cjs/resources/api_endpoints.js +496 -3
- package/cjs/resources/webhook/eventType.js +36 -0
- package/cjs/schema/business_entity.schema.js +28 -2
- package/cjs/schema/business_rule.schema.js +54 -0
- package/cjs/schema/business_ruleset.schema.js +68 -0
- package/cjs/schema/card.schema.js +3 -1
- package/cjs/schema/collections_payment_promise.schema.js +43 -0
- package/cjs/schema/comment.schema.js +2 -0
- package/cjs/schema/coupon.schema.js +1 -1
- package/cjs/schema/credit_note.schema.js +11 -4
- package/cjs/schema/credit_unit.schema.js +2 -2
- package/cjs/schema/customer.schema.js +81 -10
- package/cjs/schema/dispute.schema.js +104 -0
- package/cjs/schema/einvoice.schema.js +37 -0
- package/cjs/schema/email_log.schema.js +28 -0
- package/cjs/schema/entitlement.schema.js +4 -4
- package/cjs/schema/estimate.schema.js +39 -10
- package/cjs/schema/event.schema.js +156 -0
- package/cjs/schema/export.schema.js +75 -19
- package/cjs/schema/feature.schema.js +2 -2
- package/cjs/schema/gift.schema.js +26 -0
- package/cjs/schema/hosted_page.schema.js +26 -6
- package/cjs/schema/index.js +9 -0
- package/cjs/schema/invoice.schema.js +98 -14
- package/cjs/schema/item.schema.js +1 -1
- package/cjs/schema/item_family.schema.js +1 -1
- package/cjs/schema/item_price.schema.js +1 -1
- package/cjs/schema/ledger_account_balance.schema.js +11 -2
- package/cjs/schema/ledger_operation.schema.js +6 -2
- package/cjs/schema/meter.schema.js +1 -1
- package/cjs/schema/metered_feature.schema.js +1 -1
- package/cjs/schema/omnichannel_one_time_order.schema.js +12 -4
- package/cjs/schema/omnichannel_subscription.schema.js +16 -8
- package/cjs/schema/payment_intent.schema.js +27 -0
- package/cjs/schema/payment_schedule.schema.js +36 -0
- package/cjs/schema/payment_schedule_scheme.schema.js +23 -2
- package/cjs/schema/payment_source.schema.js +118 -1
- package/cjs/schema/price_ramp.schema.js +88 -0
- package/cjs/schema/price_variant.schema.js +1 -1
- package/cjs/schema/pricing_page_session.schema.js +1 -0
- package/cjs/schema/promotional_grant.schema.js +2 -0
- package/cjs/schema/purchase.schema.js +20 -1
- package/cjs/schema/quote.schema.js +6 -6
- package/cjs/schema/ramp.schema.js +18 -6
- package/cjs/schema/retry_segment.schema.js +12 -0
- package/cjs/schema/subscription.schema.js +179 -16
- package/cjs/schema/transaction.schema.js +60 -2
- package/cjs/schema/usage.schema.js +5 -0
- package/cjs/schema/usage_summary.schema.js +1 -0
- package/cjs/schema/webhook_endpoint.schema.js +72 -0
- package/esm/environment.js +1 -1
- package/esm/resources/api_endpoints.js +496 -3
- package/esm/resources/webhook/eventType.js +36 -0
- package/esm/schema/business_entity.schema.js +27 -1
- package/esm/schema/business_rule.schema.js +51 -0
- package/esm/schema/business_ruleset.schema.js +65 -0
- package/esm/schema/card.schema.js +3 -1
- package/esm/schema/collections_payment_promise.schema.js +40 -0
- package/esm/schema/comment.schema.js +2 -0
- package/esm/schema/coupon.schema.js +1 -1
- package/esm/schema/credit_note.schema.js +11 -4
- package/esm/schema/credit_unit.schema.js +2 -2
- package/esm/schema/customer.schema.js +81 -10
- package/esm/schema/dispute.schema.js +101 -0
- package/esm/schema/einvoice.schema.js +34 -0
- package/esm/schema/email_log.schema.js +25 -0
- package/esm/schema/entitlement.schema.js +4 -4
- package/esm/schema/estimate.schema.js +39 -10
- package/esm/schema/event.schema.js +156 -0
- package/esm/schema/export.schema.js +75 -19
- package/esm/schema/feature.schema.js +2 -2
- package/esm/schema/gift.schema.js +26 -0
- package/esm/schema/hosted_page.schema.js +26 -6
- package/esm/schema/index.js +9 -0
- package/esm/schema/invoice.schema.js +97 -13
- package/esm/schema/item.schema.js +1 -1
- package/esm/schema/item_family.schema.js +1 -1
- package/esm/schema/item_price.schema.js +1 -1
- package/esm/schema/ledger_account_balance.schema.js +10 -1
- package/esm/schema/ledger_operation.schema.js +6 -2
- package/esm/schema/meter.schema.js +1 -1
- package/esm/schema/metered_feature.schema.js +1 -1
- package/esm/schema/omnichannel_one_time_order.schema.js +12 -4
- package/esm/schema/omnichannel_subscription.schema.js +16 -8
- package/esm/schema/payment_intent.schema.js +27 -0
- package/esm/schema/payment_schedule.schema.js +33 -0
- package/esm/schema/payment_schedule_scheme.schema.js +22 -1
- package/esm/schema/payment_source.schema.js +118 -1
- package/esm/schema/price_ramp.schema.js +85 -0
- package/esm/schema/price_variant.schema.js +1 -1
- package/esm/schema/pricing_page_session.schema.js +1 -0
- package/esm/schema/promotional_grant.schema.js +2 -0
- package/esm/schema/purchase.schema.js +20 -1
- package/esm/schema/quote.schema.js +6 -6
- package/esm/schema/ramp.schema.js +18 -6
- package/esm/schema/retry_segment.schema.js +9 -0
- package/esm/schema/subscription.schema.js +179 -16
- package/esm/schema/transaction.schema.js +60 -2
- package/esm/schema/usage.schema.js +5 -0
- package/esm/schema/usage_summary.schema.js +1 -0
- package/esm/schema/webhook_endpoint.schema.js +72 -0
- package/package.json +1 -1
- package/types/core.d.ts +135 -72
- package/types/index.d.ts +36 -0
- package/types/resources/AppliedRule.d.ts +14 -0
- package/types/resources/ApplyRule.d.ts +28 -0
- package/types/resources/BusinessEntity.d.ts +52 -0
- package/types/resources/BusinessRule.d.ts +161 -0
- package/types/resources/BusinessRuleset.d.ts +165 -0
- package/types/resources/BusinessRulesetRule.d.ts +9 -0
- package/types/resources/Card.d.ts +1 -1
- package/types/resources/Citation.d.ts +13 -0
- package/types/resources/CollectionsDispute.d.ts +24 -0
- package/types/resources/CollectionsPaymentPromise.d.ts +93 -0
- package/types/resources/CollectionsReminderSequence.d.ts +35 -0
- package/types/resources/Comment.d.ts +2 -1
- package/types/resources/Content.d.ts +26 -0
- package/types/resources/CreditNote.d.ts +13 -0
- package/types/resources/CustomData.d.ts +14 -0
- package/types/resources/CustomDataSchema.d.ts +15 -0
- package/types/resources/Customer.d.ts +42 -5
- package/types/resources/Dispute.d.ts +65 -0
- package/types/resources/DraftEstimate.d.ts +13 -0
- package/types/resources/DraftRequest.d.ts +45 -0
- package/types/resources/Einvoice.d.ts +64 -1
- package/types/resources/EmailAttachment.d.ts +16 -0
- package/types/resources/EmailConversation.d.ts +18 -0
- package/types/resources/EmailLog.d.ts +46 -0
- package/types/resources/EmailMessage.d.ts +40 -0
- package/types/resources/Estimate.d.ts +31 -2
- package/types/resources/Event.d.ts +37 -0
- package/types/resources/Execution.d.ts +12 -0
- package/types/resources/GatewayPaymentMethodToken.d.ts +2 -2
- package/types/resources/Gift.d.ts +28 -2
- package/types/resources/GrantBlock.d.ts +26 -7
- package/types/resources/GroupByAttribute.d.ts +15 -0
- package/types/resources/GroupByRecommendation.d.ts +10 -0
- package/types/resources/HostedPage.d.ts +11 -0
- package/types/resources/Invoice.d.ts +57 -4
- package/types/resources/ItemPrice.d.ts +1 -0
- package/types/resources/LedgerAccountBalance.d.ts +19 -0
- package/types/resources/LedgerEntry.d.ts +4 -4
- package/types/resources/LedgerOperation.d.ts +15 -8
- package/types/resources/Meter.d.ts +1 -0
- package/types/resources/MeteredFeature.d.ts +1 -0
- package/types/resources/OmnichannelOneTimeOrder.d.ts +5 -1
- package/types/resources/OmnichannelSubscription.d.ts +6 -1
- package/types/resources/OmnichannelSubscriptionItem.d.ts +9 -2
- package/types/resources/PaymentIntent.d.ts +72 -5
- package/types/resources/PaymentSchedule.d.ts +39 -2
- package/types/resources/PaymentScheduleEstimate.d.ts +2 -1
- package/types/resources/PaymentScheduleScheme.d.ts +17 -1
- package/types/resources/PaymentSource.d.ts +50 -2
- package/types/resources/PreferenceVariant.d.ts +10 -0
- package/types/resources/PriceRamp.d.ts +113 -0
- package/types/resources/PricingPageSession.d.ts +1 -0
- package/types/resources/PrivateNote.d.ts +18 -0
- package/types/resources/PromotionalGrant.d.ts +2 -0
- package/types/resources/Purchase.d.ts +20 -1
- package/types/resources/QuotedSubscription.d.ts +1 -0
- package/types/resources/Ramp.d.ts +18 -0
- package/types/resources/RampInterval.d.ts +12 -0
- package/types/resources/RecordedPurchase.d.ts +5 -1
- package/types/resources/RetrySegment.d.ts +36 -0
- package/types/resources/Subscription.d.ts +110 -11
- package/types/resources/ThirdPartyPaymentMethod.d.ts +1 -0
- package/types/resources/Transaction.d.ts +9 -0
- package/types/resources/Usage.d.ts +6 -0
- package/types/resources/UsageSummary.d.ts +2 -0
- package/types/resources/WebhookEvent.d.ts +214 -0
|
@@ -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
|
});
|
|
@@ -107,6 +121,20 @@ const CreateUsingPermanentTokenPaymentSourceCardSchema = zod_1.z.object({
|
|
|
107
121
|
.optional(),
|
|
108
122
|
funding_type: zod_1.z.enum(['credit', 'debit', 'prepaid', 'not_known']).optional(),
|
|
109
123
|
});
|
|
124
|
+
const CreateUsingPermanentTokenPaymentSourceBankAccountSchema = zod_1.z.object({
|
|
125
|
+
account_type: zod_1.z
|
|
126
|
+
.enum(['checking', 'savings', 'business_checking', 'current'])
|
|
127
|
+
.optional(),
|
|
128
|
+
account_holder_type: zod_1.z.enum(['individual', 'company']).optional(),
|
|
129
|
+
first_name: zod_1.z.string().max(150).optional(),
|
|
130
|
+
last_name: zod_1.z.string().max(150).optional(),
|
|
131
|
+
company: zod_1.z.string().max(250).optional(),
|
|
132
|
+
scheme: zod_1.z
|
|
133
|
+
.enum(['ach', 'bacs', 'sepa_core', 'autogiro', 'becs', 'becs_nz', 'pad'])
|
|
134
|
+
.optional(),
|
|
135
|
+
last4: zod_1.z.string().max(4).min(4).optional(),
|
|
136
|
+
echeck_type: zod_1.z.enum(['web', 'ppd', 'ccd']).optional(),
|
|
137
|
+
});
|
|
110
138
|
const CreateUsingPermanentTokenPaymentSourceBillingAddressSchema = zod_1.z.object({
|
|
111
139
|
first_name: zod_1.z.string().max(150).optional(),
|
|
112
140
|
last_name: zod_1.z.string().max(150).optional(),
|
|
@@ -122,6 +150,7 @@ const CreateUsingPermanentTokenPaymentSourceBillingAddressSchema = zod_1.z.objec
|
|
|
122
150
|
});
|
|
123
151
|
const CreateUsingPermanentTokenPaymentSourceBodySchema = zod_1.z.looseObject({
|
|
124
152
|
customer_id: zod_1.z.string().max(50),
|
|
153
|
+
brand_id: zod_1.z.string().max(50).optional(),
|
|
125
154
|
type: zod_1.z.enum([
|
|
126
155
|
'card',
|
|
127
156
|
'paypal_express_checkout',
|
|
@@ -177,6 +206,19 @@ const CreateUsingPermanentTokenPaymentSourceBodySchema = zod_1.z.looseObject({
|
|
|
177
206
|
'touch_n_go',
|
|
178
207
|
'tamara',
|
|
179
208
|
'qpay',
|
|
209
|
+
'ovo',
|
|
210
|
+
'momo',
|
|
211
|
+
'mercado_pago',
|
|
212
|
+
'nequi',
|
|
213
|
+
'nupay',
|
|
214
|
+
'picpay',
|
|
215
|
+
'thai_qr',
|
|
216
|
+
'blik',
|
|
217
|
+
'fpx',
|
|
218
|
+
'wero',
|
|
219
|
+
'p24',
|
|
220
|
+
'affirm_pay',
|
|
221
|
+
'rakuten_pay',
|
|
180
222
|
]),
|
|
181
223
|
gateway_account_id: zod_1.z.string().max(50).optional(),
|
|
182
224
|
reference_id: zod_1.z.string().max(200).optional(),
|
|
@@ -189,12 +231,14 @@ const CreateUsingPermanentTokenPaymentSourceBodySchema = zod_1.z.looseObject({
|
|
|
189
231
|
skip_retrieval: zod_1.z.boolean().default(false).optional(),
|
|
190
232
|
additional_information: CreateUsingPermanentTokenPaymentSourceAdditionalInformationSchema.optional(),
|
|
191
233
|
card: CreateUsingPermanentTokenPaymentSourceCardSchema.optional(),
|
|
234
|
+
bank_account: CreateUsingPermanentTokenPaymentSourceBankAccountSchema.optional(),
|
|
192
235
|
billing_address: CreateUsingPermanentTokenPaymentSourceBillingAddressSchema.optional(),
|
|
193
236
|
});
|
|
194
237
|
exports.CreateUsingPermanentTokenPaymentSourceBodySchema = CreateUsingPermanentTokenPaymentSourceBodySchema;
|
|
195
238
|
//PaymentSource.createUsingToken
|
|
196
239
|
const CreateUsingTokenPaymentSourceBodySchema = zod_1.z.looseObject({
|
|
197
240
|
customer_id: zod_1.z.string().max(50),
|
|
241
|
+
brand_id: zod_1.z.string().max(50).optional(),
|
|
198
242
|
replace_primary_payment_source: zod_1.z.boolean().default(false).optional(),
|
|
199
243
|
token_id: zod_1.z.string().max(40),
|
|
200
244
|
});
|
|
@@ -260,6 +304,19 @@ const CreateUsingPaymentIntentPaymentSourcePaymentIntentSchema = zod_1.z.object(
|
|
|
260
304
|
'touch_n_go',
|
|
261
305
|
'tamara',
|
|
262
306
|
'qpay',
|
|
307
|
+
'ovo',
|
|
308
|
+
'momo',
|
|
309
|
+
'mercado_pago',
|
|
310
|
+
'nequi',
|
|
311
|
+
'nupay',
|
|
312
|
+
'picpay',
|
|
313
|
+
'thai_qr',
|
|
314
|
+
'blik',
|
|
315
|
+
'fpx',
|
|
316
|
+
'wero',
|
|
317
|
+
'p24',
|
|
318
|
+
'affirm_pay',
|
|
319
|
+
'rakuten_pay',
|
|
263
320
|
])
|
|
264
321
|
.optional(),
|
|
265
322
|
reference_id: zod_1.z.string().max(65000).optional(),
|
|
@@ -269,6 +326,7 @@ const CreateUsingPaymentIntentPaymentSourcePaymentIntentSchema = zod_1.z.object(
|
|
|
269
326
|
});
|
|
270
327
|
const CreateUsingPaymentIntentPaymentSourceBodySchema = zod_1.z.looseObject({
|
|
271
328
|
customer_id: zod_1.z.string().max(50),
|
|
329
|
+
brand_id: zod_1.z.string().max(50).optional(),
|
|
272
330
|
replace_primary_payment_source: zod_1.z.boolean().default(false).optional(),
|
|
273
331
|
payment_intent: CreateUsingPaymentIntentPaymentSourcePaymentIntentSchema.optional(),
|
|
274
332
|
});
|
|
@@ -283,6 +341,7 @@ const CreateVoucherPaymentSourcePaymentSourceVoucherPaymentSourceSchema = zod_1.
|
|
|
283
341
|
});
|
|
284
342
|
const CreateVoucherPaymentSourcePaymentSourceBodySchema = zod_1.z.looseObject({
|
|
285
343
|
customer_id: zod_1.z.string().max(50),
|
|
344
|
+
brand_id: zod_1.z.string().max(50).optional(),
|
|
286
345
|
voucher_payment_source: CreateVoucherPaymentSourcePaymentSourceVoucherPaymentSourceSchema.optional(),
|
|
287
346
|
});
|
|
288
347
|
exports.CreateVoucherPaymentSourcePaymentSourceBodySchema = CreateVoucherPaymentSourcePaymentSourceBodySchema;
|
|
@@ -297,7 +356,7 @@ const CreateCardPaymentSourceCardSchema = zod_1.z.object({
|
|
|
297
356
|
expiry_year: zod_1.z.number().int(),
|
|
298
357
|
cvv: zod_1.z.string().max(520).optional(),
|
|
299
358
|
preferred_scheme: zod_1.z
|
|
300
|
-
.enum(['cartes_bancaires', 'mastercard', 'visa'])
|
|
359
|
+
.enum(['cartes_bancaires', 'mastercard', 'visa', 'dankort'])
|
|
301
360
|
.optional(),
|
|
302
361
|
billing_addr1: zod_1.z.string().max(150).optional(),
|
|
303
362
|
billing_addr2: zod_1.z.string().max(150).optional(),
|
|
@@ -310,6 +369,7 @@ const CreateCardPaymentSourceCardSchema = zod_1.z.object({
|
|
|
310
369
|
});
|
|
311
370
|
const CreateCardPaymentSourceBodySchema = zod_1.z.looseObject({
|
|
312
371
|
customer_id: zod_1.z.string().max(50),
|
|
372
|
+
brand_id: zod_1.z.string().max(50).optional(),
|
|
313
373
|
replace_primary_payment_source: zod_1.z.boolean().default(false).optional(),
|
|
314
374
|
card: CreateCardPaymentSourceCardSchema.optional(),
|
|
315
375
|
});
|
|
@@ -338,6 +398,7 @@ const CreateBankAccountPaymentSourceBankAccountSchema = zod_1.z.object({
|
|
|
338
398
|
});
|
|
339
399
|
const CreateBankAccountPaymentSourceBodySchema = zod_1.z.looseObject({
|
|
340
400
|
customer_id: zod_1.z.string().max(50),
|
|
401
|
+
brand_id: zod_1.z.string().max(50).optional(),
|
|
341
402
|
issuing_country: zod_1.z.string().max(50).optional(),
|
|
342
403
|
replace_primary_payment_source: zod_1.z.boolean().default(false).optional(),
|
|
343
404
|
bank_account: CreateBankAccountPaymentSourceBankAccountSchema.optional(),
|
|
@@ -360,10 +421,14 @@ const UpdateCardPaymentSourceCardSchema = zod_1.z.object({
|
|
|
360
421
|
billing_country: zod_1.z.string().max(50).optional(),
|
|
361
422
|
additional_information: UpdateCardPaymentSourceAdditionalInformationSchema.optional(),
|
|
362
423
|
});
|
|
424
|
+
const UpdateCardPaymentSourceNetworkTransactionReferenceSchema = zod_1.z.object({
|
|
425
|
+
original_network_transaction_id: zod_1.z.string().max(100).optional(),
|
|
426
|
+
});
|
|
363
427
|
const UpdateCardPaymentSourceBodySchema = zod_1.z.looseObject({
|
|
364
428
|
gateway_meta_data: UpdateCardPaymentSourceGatewayMetaDataSchema.optional(),
|
|
365
429
|
reference_transaction: zod_1.z.string().max(50).optional(),
|
|
366
430
|
card: UpdateCardPaymentSourceCardSchema.optional(),
|
|
431
|
+
network_transaction_reference: UpdateCardPaymentSourceNetworkTransactionReferenceSchema.optional(),
|
|
367
432
|
});
|
|
368
433
|
exports.UpdateCardPaymentSourceBodySchema = UpdateCardPaymentSourceBodySchema;
|
|
369
434
|
//PaymentSource.updateBankAccount
|
|
@@ -454,6 +519,19 @@ const ListPaymentSourceTypeSchema = zod_1.z.object({
|
|
|
454
519
|
'touch_n_go',
|
|
455
520
|
'tamara',
|
|
456
521
|
'qpay',
|
|
522
|
+
'ovo',
|
|
523
|
+
'momo',
|
|
524
|
+
'mercado_pago',
|
|
525
|
+
'nequi',
|
|
526
|
+
'nupay',
|
|
527
|
+
'picpay',
|
|
528
|
+
'thai_qr',
|
|
529
|
+
'blik',
|
|
530
|
+
'fpx',
|
|
531
|
+
'wero',
|
|
532
|
+
'p24',
|
|
533
|
+
'affirm_pay',
|
|
534
|
+
'rakuten_pay',
|
|
457
535
|
])
|
|
458
536
|
.optional(),
|
|
459
537
|
is_not: zod_1.z
|
|
@@ -512,6 +590,19 @@ const ListPaymentSourceTypeSchema = zod_1.z.object({
|
|
|
512
590
|
'touch_n_go',
|
|
513
591
|
'tamara',
|
|
514
592
|
'qpay',
|
|
593
|
+
'ovo',
|
|
594
|
+
'momo',
|
|
595
|
+
'mercado_pago',
|
|
596
|
+
'nequi',
|
|
597
|
+
'nupay',
|
|
598
|
+
'picpay',
|
|
599
|
+
'thai_qr',
|
|
600
|
+
'blik',
|
|
601
|
+
'fpx',
|
|
602
|
+
'wero',
|
|
603
|
+
'p24',
|
|
604
|
+
'affirm_pay',
|
|
605
|
+
'rakuten_pay',
|
|
515
606
|
])
|
|
516
607
|
.optional(),
|
|
517
608
|
in: zod_1.z
|
|
@@ -570,6 +661,19 @@ const ListPaymentSourceTypeSchema = zod_1.z.object({
|
|
|
570
661
|
'touch_n_go',
|
|
571
662
|
'tamara',
|
|
572
663
|
'qpay',
|
|
664
|
+
'ovo',
|
|
665
|
+
'momo',
|
|
666
|
+
'mercado_pago',
|
|
667
|
+
'nequi',
|
|
668
|
+
'nupay',
|
|
669
|
+
'picpay',
|
|
670
|
+
'thai_qr',
|
|
671
|
+
'blik',
|
|
672
|
+
'fpx',
|
|
673
|
+
'wero',
|
|
674
|
+
'p24',
|
|
675
|
+
'affirm_pay',
|
|
676
|
+
'rakuten_pay',
|
|
573
677
|
])
|
|
574
678
|
.optional(),
|
|
575
679
|
not_in: zod_1.z
|
|
@@ -628,6 +732,19 @@ const ListPaymentSourceTypeSchema = zod_1.z.object({
|
|
|
628
732
|
'touch_n_go',
|
|
629
733
|
'tamara',
|
|
630
734
|
'qpay',
|
|
735
|
+
'ovo',
|
|
736
|
+
'momo',
|
|
737
|
+
'mercado_pago',
|
|
738
|
+
'nequi',
|
|
739
|
+
'nupay',
|
|
740
|
+
'picpay',
|
|
741
|
+
'thai_qr',
|
|
742
|
+
'blik',
|
|
743
|
+
'fpx',
|
|
744
|
+
'wero',
|
|
745
|
+
'p24',
|
|
746
|
+
'affirm_pay',
|
|
747
|
+
'rakuten_pay',
|
|
631
748
|
])
|
|
632
749
|
.optional(),
|
|
633
750
|
});
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Generated Zod schemas: PriceRamp
|
|
3
|
+
// Actions: create, update, list
|
|
4
|
+
// Do not edit manually – regenerate via sdk-generator
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ListPriceRampBodySchema = exports.UpdatePriceRampBodySchema = exports.CreatePriceRampBodySchema = void 0;
|
|
7
|
+
const zod_1 = require("zod");
|
|
8
|
+
//PriceRamp.create
|
|
9
|
+
const CreatePriceRampRampIntervalsSchema = zod_1.z.object({
|
|
10
|
+
starting_billing_cycle: zod_1.z.array(zod_1.z.number().int().min(1).optional()),
|
|
11
|
+
ending_billing_cycle: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
|
|
12
|
+
apply_catalog_price: zod_1.z
|
|
13
|
+
.array(zod_1.z.boolean().default(false).optional())
|
|
14
|
+
.optional(),
|
|
15
|
+
price: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
|
|
16
|
+
price_in_decimal: zod_1.z.array(zod_1.z.string().max(39).optional()).optional(),
|
|
17
|
+
});
|
|
18
|
+
const CreatePriceRampBodySchema = zod_1.z.looseObject({
|
|
19
|
+
item_price_id: zod_1.z.string().max(100),
|
|
20
|
+
business_entity_id: zod_1.z.string().max(50).optional(),
|
|
21
|
+
ramp_intervals: CreatePriceRampRampIntervalsSchema.optional(),
|
|
22
|
+
});
|
|
23
|
+
exports.CreatePriceRampBodySchema = CreatePriceRampBodySchema;
|
|
24
|
+
//PriceRamp.update
|
|
25
|
+
const UpdatePriceRampRampIntervalsSchema = zod_1.z.object({
|
|
26
|
+
starting_billing_cycle: zod_1.z.array(zod_1.z.number().int().min(1).optional()),
|
|
27
|
+
ending_billing_cycle: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
|
|
28
|
+
apply_catalog_price: zod_1.z
|
|
29
|
+
.array(zod_1.z.boolean().default(false).optional())
|
|
30
|
+
.optional(),
|
|
31
|
+
price: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
|
|
32
|
+
price_in_decimal: zod_1.z.array(zod_1.z.string().max(39).optional()).optional(),
|
|
33
|
+
});
|
|
34
|
+
const UpdatePriceRampBodySchema = zod_1.z.looseObject({
|
|
35
|
+
status: zod_1.z.enum(['active', 'archived']).optional(),
|
|
36
|
+
ramp_intervals: UpdatePriceRampRampIntervalsSchema.optional(),
|
|
37
|
+
});
|
|
38
|
+
exports.UpdatePriceRampBodySchema = UpdatePriceRampBodySchema;
|
|
39
|
+
//PriceRamp.list
|
|
40
|
+
const ListPriceRampIdSchema = zod_1.z.object({
|
|
41
|
+
is: zod_1.z.string().min(1).optional(),
|
|
42
|
+
is_not: zod_1.z.string().min(1).optional(),
|
|
43
|
+
starts_with: zod_1.z.string().min(1).optional(),
|
|
44
|
+
in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
45
|
+
not_in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
46
|
+
});
|
|
47
|
+
const ListPriceRampItemPriceIdSchema = zod_1.z.object({
|
|
48
|
+
is: zod_1.z.string().min(1).optional(),
|
|
49
|
+
is_not: zod_1.z.string().min(1).optional(),
|
|
50
|
+
starts_with: zod_1.z.string().min(1).optional(),
|
|
51
|
+
in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
52
|
+
not_in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
53
|
+
});
|
|
54
|
+
const ListPriceRampStatusSchema = zod_1.z.object({
|
|
55
|
+
is: zod_1.z.enum(['active', 'archived']).optional(),
|
|
56
|
+
is_not: zod_1.z.enum(['active', 'archived']).optional(),
|
|
57
|
+
in: zod_1.z.enum(['active', 'archived']).optional(),
|
|
58
|
+
not_in: zod_1.z.enum(['active', 'archived']).optional(),
|
|
59
|
+
});
|
|
60
|
+
const ListPriceRampUpdatedAtSchema = zod_1.z.object({
|
|
61
|
+
after: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
62
|
+
before: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
63
|
+
on: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
64
|
+
between: zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
|
|
65
|
+
});
|
|
66
|
+
const ListPriceRampBusinessEntityIdSchema = zod_1.z.object({
|
|
67
|
+
is_present: zod_1.z.enum(['true', 'false']).optional(),
|
|
68
|
+
is: zod_1.z.string().min(1).optional(),
|
|
69
|
+
});
|
|
70
|
+
const ListPriceRampIncludeSiteLevelResourcesSchema = zod_1.z.object({
|
|
71
|
+
is: zod_1.z.enum(['true', 'false']).optional(),
|
|
72
|
+
});
|
|
73
|
+
const ListPriceRampSortBySchema = zod_1.z.looseObject({
|
|
74
|
+
asc: zod_1.z.enum(['id', 'status', 'updated_at']).optional(),
|
|
75
|
+
desc: zod_1.z.enum(['id', 'status', 'updated_at']).optional(),
|
|
76
|
+
});
|
|
77
|
+
const ListPriceRampBodySchema = zod_1.z.looseObject({
|
|
78
|
+
limit: zod_1.z.number().int().min(1).max(100).optional(),
|
|
79
|
+
offset: zod_1.z.string().max(1000).optional(),
|
|
80
|
+
id: ListPriceRampIdSchema.optional(),
|
|
81
|
+
item_price_id: ListPriceRampItemPriceIdSchema.optional(),
|
|
82
|
+
status: ListPriceRampStatusSchema.optional(),
|
|
83
|
+
updated_at: ListPriceRampUpdatedAtSchema.optional(),
|
|
84
|
+
business_entity_id: ListPriceRampBusinessEntityIdSchema.optional(),
|
|
85
|
+
include_site_level_resources: ListPriceRampIncludeSiteLevelResourcesSchema.optional(),
|
|
86
|
+
sort_by: ListPriceRampSortBySchema.optional(),
|
|
87
|
+
});
|
|
88
|
+
exports.ListPriceRampBodySchema = ListPriceRampBodySchema;
|
|
@@ -68,8 +68,8 @@ const ListPriceVariantCreatedAtSchema = zod_1.z.object({
|
|
|
68
68
|
between: zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
|
|
69
69
|
});
|
|
70
70
|
const ListPriceVariantBusinessEntityIdSchema = zod_1.z.object({
|
|
71
|
-
is: zod_1.z.string().min(1).optional(),
|
|
72
71
|
is_present: zod_1.z.enum(['true', 'false']).optional(),
|
|
72
|
+
is: zod_1.z.string().min(1).optional(),
|
|
73
73
|
});
|
|
74
74
|
const ListPriceVariantIncludeSiteLevelResourcesSchema = zod_1.z.object({
|
|
75
75
|
is: zod_1.z.enum(['true', 'false']).optional(),
|
|
@@ -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(),
|
|
@@ -89,6 +102,7 @@ const CreatePurchasePurchaseItemsSchema = zod_1.z.object({
|
|
|
89
102
|
unit_amount: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
|
|
90
103
|
unit_amount_in_decimal: zod_1.z.array(zod_1.z.string().max(39).optional()).optional(),
|
|
91
104
|
quantity_in_decimal: zod_1.z.array(zod_1.z.string().max(33).optional()).optional(),
|
|
105
|
+
trial_end: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
|
|
92
106
|
});
|
|
93
107
|
const CreatePurchaseItemTiersSchema = zod_1.z.object({
|
|
94
108
|
index: zod_1.z.array(zod_1.z.number().int().min(0).optional()),
|
|
@@ -136,6 +150,8 @@ const CreatePurchaseSubscriptionInfoSchema = zod_1.z.object({
|
|
|
136
150
|
contract_term_billing_cycle_on_renewal: zod_1.z
|
|
137
151
|
.array(zod_1.z.number().int().min(1).max(100).optional())
|
|
138
152
|
.optional(),
|
|
153
|
+
trial_end: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
|
|
154
|
+
start_date: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
|
|
139
155
|
meta_data: zod_1.z.array(CreatePurchaseMetaDataItemSchema.optional()).optional(),
|
|
140
156
|
});
|
|
141
157
|
const CreatePurchaseContractTermsSchema = zod_1.z.object({
|
|
@@ -166,7 +182,7 @@ const EstimatePurchaseCustomerSchema = zod_1.z.object({
|
|
|
166
182
|
vat_number: zod_1.z.string().max(20).optional(),
|
|
167
183
|
vat_number_prefix: zod_1.z.string().max(10).optional(),
|
|
168
184
|
registered_for_gst: zod_1.z.boolean().optional(),
|
|
169
|
-
taxability: zod_1.z.enum(['taxable', 'exempt']).optional(),
|
|
185
|
+
taxability: zod_1.z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
|
|
170
186
|
entity_code: zod_1.z
|
|
171
187
|
.enum([
|
|
172
188
|
'a',
|
|
@@ -215,6 +231,7 @@ const EstimatePurchasePurchaseItemsSchema = zod_1.z.object({
|
|
|
215
231
|
unit_amount: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
|
|
216
232
|
unit_amount_in_decimal: zod_1.z.array(zod_1.z.string().max(39).optional()).optional(),
|
|
217
233
|
quantity_in_decimal: zod_1.z.array(zod_1.z.string().max(33).optional()).optional(),
|
|
234
|
+
trial_end: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
|
|
218
235
|
});
|
|
219
236
|
const EstimatePurchaseItemTiersSchema = zod_1.z.object({
|
|
220
237
|
index: zod_1.z.array(zod_1.z.number().int().min(0).optional()),
|
|
@@ -261,6 +278,8 @@ const EstimatePurchaseSubscriptionInfoSchema = zod_1.z.object({
|
|
|
261
278
|
contract_term_billing_cycle_on_renewal: zod_1.z
|
|
262
279
|
.array(zod_1.z.number().int().min(1).max(100).optional())
|
|
263
280
|
.optional(),
|
|
281
|
+
trial_end: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
|
|
282
|
+
start_date: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
|
|
264
283
|
});
|
|
265
284
|
const EstimatePurchaseContractTermsSchema = zod_1.z.object({
|
|
266
285
|
index: zod_1.z.array(zod_1.z.number().int().min(0).optional()),
|
|
@@ -700,7 +700,7 @@ const CreateSubItemsForCustomerQuoteQuoteSubscriptionItemsSchema = zod_1.z.objec
|
|
|
700
700
|
billing_cycles: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
|
|
701
701
|
trial_end: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
|
|
702
702
|
service_period_days: zod_1.z
|
|
703
|
-
.array(zod_1.z.number().int().min(1).max(
|
|
703
|
+
.array(zod_1.z.number().int().min(1).max(4000).optional())
|
|
704
704
|
.optional(),
|
|
705
705
|
charge_on_event: zod_1.z
|
|
706
706
|
.array(zod_1.z
|
|
@@ -876,7 +876,7 @@ const EditCreateSubCustomerQuoteForItemsQuoteSubscriptionItemsSchema = zod_1.z.o
|
|
|
876
876
|
billing_cycles: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
|
|
877
877
|
trial_end: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
|
|
878
878
|
service_period_days: zod_1.z
|
|
879
|
-
.array(zod_1.z.number().int().min(1).max(
|
|
879
|
+
.array(zod_1.z.number().int().min(1).max(4000).optional())
|
|
880
880
|
.optional(),
|
|
881
881
|
charge_on_event: zod_1.z
|
|
882
882
|
.array(zod_1.z
|
|
@@ -1059,7 +1059,7 @@ const UpdateSubscriptionQuoteForItemsQuoteSubscriptionItemsSchema = zod_1.z.obje
|
|
|
1059
1059
|
billing_cycles: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
|
|
1060
1060
|
trial_end: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
|
|
1061
1061
|
service_period_days: zod_1.z
|
|
1062
|
-
.array(zod_1.z.number().int().min(1).max(
|
|
1062
|
+
.array(zod_1.z.number().int().min(1).max(4000).optional())
|
|
1063
1063
|
.optional(),
|
|
1064
1064
|
charge_on_event: zod_1.z
|
|
1065
1065
|
.array(zod_1.z
|
|
@@ -1249,7 +1249,7 @@ const EditUpdateSubscriptionQuoteForItemsQuoteSubscriptionItemsSchema = zod_1.z.
|
|
|
1249
1249
|
billing_cycles: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
|
|
1250
1250
|
trial_end: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
|
|
1251
1251
|
service_period_days: zod_1.z
|
|
1252
|
-
.array(zod_1.z.number().int().min(1).max(
|
|
1252
|
+
.array(zod_1.z.number().int().min(1).max(4000).optional())
|
|
1253
1253
|
.optional(),
|
|
1254
1254
|
charge_on_event: zod_1.z
|
|
1255
1255
|
.array(zod_1.z
|
|
@@ -1397,7 +1397,7 @@ const CreateForChargeItemsAndChargesQuoteItemPricesSchema = zod_1.z.object({
|
|
|
1397
1397
|
unit_price: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
|
|
1398
1398
|
unit_price_in_decimal: zod_1.z.array(zod_1.z.string().max(39).optional()).optional(),
|
|
1399
1399
|
service_period_days: zod_1.z
|
|
1400
|
-
.array(zod_1.z.number().int().min(1).max(
|
|
1400
|
+
.array(zod_1.z.number().int().min(1).max(4000).optional())
|
|
1401
1401
|
.optional(),
|
|
1402
1402
|
});
|
|
1403
1403
|
const CreateForChargeItemsAndChargesQuoteItemTiersSchema = zod_1.z.object({
|
|
@@ -1499,7 +1499,7 @@ const EditForChargeItemsAndChargesQuoteItemPricesSchema = zod_1.z.object({
|
|
|
1499
1499
|
unit_price: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
|
|
1500
1500
|
unit_price_in_decimal: zod_1.z.array(zod_1.z.string().max(39).optional()).optional(),
|
|
1501
1501
|
service_period_days: zod_1.z
|
|
1502
|
-
.array(zod_1.z.number().int().min(1).max(
|
|
1502
|
+
.array(zod_1.z.number().int().min(1).max(4000).optional())
|
|
1503
1503
|
.optional(),
|
|
1504
1504
|
});
|
|
1505
1505
|
const EditForChargeItemsAndChargesQuoteItemTiersSchema = zod_1.z.object({
|
|
@@ -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'])
|
|
@@ -21,7 +24,7 @@ const CreateForSubscriptionRampItemsToAddSchema = zod_1.z.object({
|
|
|
21
24
|
unit_price_in_decimal: zod_1.z.array(zod_1.z.string().max(39).optional()).optional(),
|
|
22
25
|
billing_cycles: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
|
|
23
26
|
service_period_days: zod_1.z
|
|
24
|
-
.array(zod_1.z.number().int().min(1).max(
|
|
27
|
+
.array(zod_1.z.number().int().min(1).max(4000).optional())
|
|
25
28
|
.optional(),
|
|
26
29
|
charge_on_event: zod_1.z
|
|
27
30
|
.array(zod_1.z
|
|
@@ -37,6 +40,7 @@ const CreateForSubscriptionRampItemsToAddSchema = zod_1.z.object({
|
|
|
37
40
|
charge_on_option: zod_1.z
|
|
38
41
|
.array(zod_1.z.enum(['immediately', 'on_event']).optional())
|
|
39
42
|
.optional(),
|
|
43
|
+
description: zod_1.z.array(zod_1.z.string().max(500).optional()).optional(),
|
|
40
44
|
});
|
|
41
45
|
const CreateForSubscriptionRampItemsToUpdateSchema = zod_1.z.object({
|
|
42
46
|
item_price_id: zod_1.z.array(zod_1.z.string().max(100).optional()),
|
|
@@ -46,7 +50,7 @@ const CreateForSubscriptionRampItemsToUpdateSchema = zod_1.z.object({
|
|
|
46
50
|
unit_price_in_decimal: zod_1.z.array(zod_1.z.string().max(39).optional()).optional(),
|
|
47
51
|
billing_cycles: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
|
|
48
52
|
service_period_days: zod_1.z
|
|
49
|
-
.array(zod_1.z.number().int().min(1).max(
|
|
53
|
+
.array(zod_1.z.number().int().min(1).max(4000).optional())
|
|
50
54
|
.optional(),
|
|
51
55
|
charge_on_event: zod_1.z
|
|
52
56
|
.array(zod_1.z
|
|
@@ -62,6 +66,7 @@ const CreateForSubscriptionRampItemsToUpdateSchema = zod_1.z.object({
|
|
|
62
66
|
charge_on_option: zod_1.z
|
|
63
67
|
.array(zod_1.z.enum(['immediately', 'on_event']).optional())
|
|
64
68
|
.optional(),
|
|
69
|
+
description: zod_1.z.array(zod_1.z.string().max(500).optional()).optional(),
|
|
65
70
|
});
|
|
66
71
|
const CreateForSubscriptionRampItemTiersSchema = zod_1.z.object({
|
|
67
72
|
item_price_id: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
|
|
@@ -99,6 +104,7 @@ const CreateForSubscriptionRampBodySchema = zod_1.z.looseObject({
|
|
|
99
104
|
coupons_to_remove: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
|
|
100
105
|
discounts_to_remove: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
|
|
101
106
|
items_to_remove: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
|
|
107
|
+
billing_configuration: CreateForSubscriptionRampBillingConfigurationSchema.optional(),
|
|
102
108
|
contract_term: CreateForSubscriptionRampContractTermSchema.optional(),
|
|
103
109
|
items_to_add: CreateForSubscriptionRampItemsToAddSchema.optional(),
|
|
104
110
|
items_to_update: CreateForSubscriptionRampItemsToUpdateSchema.optional(),
|
|
@@ -108,6 +114,9 @@ const CreateForSubscriptionRampBodySchema = zod_1.z.looseObject({
|
|
|
108
114
|
});
|
|
109
115
|
exports.CreateForSubscriptionRampBodySchema = CreateForSubscriptionRampBodySchema;
|
|
110
116
|
//Ramp.update
|
|
117
|
+
const UpdateRampBillingConfigurationSchema = zod_1.z.object({
|
|
118
|
+
po_number: zod_1.z.string().max(100).optional(),
|
|
119
|
+
});
|
|
111
120
|
const UpdateRampContractTermSchema = zod_1.z.object({
|
|
112
121
|
action_at_term_end: zod_1.z
|
|
113
122
|
.enum(['renew', 'evergreen', 'cancel', 'renew_once'])
|
|
@@ -123,7 +132,7 @@ const UpdateRampItemsToAddSchema = zod_1.z.object({
|
|
|
123
132
|
unit_price_in_decimal: zod_1.z.array(zod_1.z.string().max(39).optional()).optional(),
|
|
124
133
|
billing_cycles: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
|
|
125
134
|
service_period_days: zod_1.z
|
|
126
|
-
.array(zod_1.z.number().int().min(1).max(
|
|
135
|
+
.array(zod_1.z.number().int().min(1).max(4000).optional())
|
|
127
136
|
.optional(),
|
|
128
137
|
charge_on_event: zod_1.z
|
|
129
138
|
.array(zod_1.z
|
|
@@ -139,6 +148,7 @@ const UpdateRampItemsToAddSchema = zod_1.z.object({
|
|
|
139
148
|
charge_on_option: zod_1.z
|
|
140
149
|
.array(zod_1.z.enum(['immediately', 'on_event']).optional())
|
|
141
150
|
.optional(),
|
|
151
|
+
description: zod_1.z.array(zod_1.z.string().max(500).optional()).optional(),
|
|
142
152
|
});
|
|
143
153
|
const UpdateRampItemsToUpdateSchema = zod_1.z.object({
|
|
144
154
|
item_price_id: zod_1.z.array(zod_1.z.string().max(100).optional()),
|
|
@@ -148,7 +158,7 @@ const UpdateRampItemsToUpdateSchema = zod_1.z.object({
|
|
|
148
158
|
unit_price_in_decimal: zod_1.z.array(zod_1.z.string().max(39).optional()).optional(),
|
|
149
159
|
billing_cycles: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
|
|
150
160
|
service_period_days: zod_1.z
|
|
151
|
-
.array(zod_1.z.number().int().min(1).max(
|
|
161
|
+
.array(zod_1.z.number().int().min(1).max(4000).optional())
|
|
152
162
|
.optional(),
|
|
153
163
|
charge_on_event: zod_1.z
|
|
154
164
|
.array(zod_1.z
|
|
@@ -164,6 +174,7 @@ const UpdateRampItemsToUpdateSchema = zod_1.z.object({
|
|
|
164
174
|
charge_on_option: zod_1.z
|
|
165
175
|
.array(zod_1.z.enum(['immediately', 'on_event']).optional())
|
|
166
176
|
.optional(),
|
|
177
|
+
description: zod_1.z.array(zod_1.z.string().max(500).optional()).optional(),
|
|
167
178
|
});
|
|
168
179
|
const UpdateRampItemTiersSchema = zod_1.z.object({
|
|
169
180
|
item_price_id: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
|
|
@@ -201,6 +212,7 @@ const UpdateRampBodySchema = zod_1.z.looseObject({
|
|
|
201
212
|
coupons_to_remove: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
|
|
202
213
|
discounts_to_remove: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
|
|
203
214
|
items_to_remove: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
|
|
215
|
+
billing_configuration: UpdateRampBillingConfigurationSchema.optional(),
|
|
204
216
|
contract_term: UpdateRampContractTermSchema.optional(),
|
|
205
217
|
items_to_add: UpdateRampItemsToAddSchema.optional(),
|
|
206
218
|
items_to_update: UpdateRampItemsToUpdateSchema.optional(),
|
|
@@ -211,12 +223,12 @@ const UpdateRampBodySchema = zod_1.z.looseObject({
|
|
|
211
223
|
exports.UpdateRampBodySchema = UpdateRampBodySchema;
|
|
212
224
|
//Ramp.list
|
|
213
225
|
const ListRampStatusSchema = zod_1.z.object({
|
|
214
|
-
is: zod_1.z.enum(['scheduled', 'succeeded', 'failed', 'draft']).optional(),
|
|
215
226
|
in: zod_1.z.enum(['scheduled', 'succeeded', 'failed', 'draft']).optional(),
|
|
227
|
+
is: zod_1.z.enum(['scheduled', 'succeeded', 'failed', 'draft']).optional(),
|
|
216
228
|
});
|
|
217
229
|
const ListRampSubscriptionIdSchema = zod_1.z.object({
|
|
218
|
-
is: zod_1.z.string().min(1).optional(),
|
|
219
230
|
in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
231
|
+
is: zod_1.z.string().min(1).optional(),
|
|
220
232
|
});
|
|
221
233
|
const ListRampEffectiveFromSchema = zod_1.z.object({
|
|
222
234
|
after: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Generated Zod schemas: RetrySegment
|
|
3
|
+
// Actions: retrieve
|
|
4
|
+
// Do not edit manually – regenerate via sdk-generator
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.RetrieveRetrySegmentBodySchema = void 0;
|
|
7
|
+
const zod_1 = require("zod");
|
|
8
|
+
//RetrySegment.retrieve
|
|
9
|
+
const RetrieveRetrySegmentBodySchema = zod_1.z.looseObject({
|
|
10
|
+
invoice_id: zod_1.z.string().max(50).optional(),
|
|
11
|
+
});
|
|
12
|
+
exports.RetrieveRetrySegmentBodySchema = RetrieveRetrySegmentBodySchema;
|