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
|
@@ -62,9 +62,23 @@ const CreateUsingTempTokenPaymentSourceBodySchema = z.looseObject({
|
|
|
62
62
|
'touch_n_go',
|
|
63
63
|
'tamara',
|
|
64
64
|
'qpay',
|
|
65
|
+
'ovo',
|
|
66
|
+
'momo',
|
|
67
|
+
'mercado_pago',
|
|
68
|
+
'nequi',
|
|
69
|
+
'nupay',
|
|
70
|
+
'picpay',
|
|
71
|
+
'thai_qr',
|
|
72
|
+
'blik',
|
|
73
|
+
'fpx',
|
|
74
|
+
'wero',
|
|
75
|
+
'p24',
|
|
76
|
+
'affirm_pay',
|
|
77
|
+
'rakuten_pay',
|
|
65
78
|
]),
|
|
66
79
|
tmp_token: z.string().max(65000),
|
|
67
80
|
issuing_country: z.string().max(50).optional(),
|
|
81
|
+
brand_id: z.string().max(50).optional(),
|
|
68
82
|
replace_primary_payment_source: z.boolean().default(false).optional(),
|
|
69
83
|
additional_information: CreateUsingTempTokenPaymentSourceAdditionalInformationSchema.optional(),
|
|
70
84
|
});
|
|
@@ -104,6 +118,20 @@ const CreateUsingPermanentTokenPaymentSourceCardSchema = z.object({
|
|
|
104
118
|
.optional(),
|
|
105
119
|
funding_type: z.enum(['credit', 'debit', 'prepaid', 'not_known']).optional(),
|
|
106
120
|
});
|
|
121
|
+
const CreateUsingPermanentTokenPaymentSourceBankAccountSchema = z.object({
|
|
122
|
+
account_type: z
|
|
123
|
+
.enum(['checking', 'savings', 'business_checking', 'current'])
|
|
124
|
+
.optional(),
|
|
125
|
+
account_holder_type: z.enum(['individual', 'company']).optional(),
|
|
126
|
+
first_name: z.string().max(150).optional(),
|
|
127
|
+
last_name: z.string().max(150).optional(),
|
|
128
|
+
company: z.string().max(250).optional(),
|
|
129
|
+
scheme: z
|
|
130
|
+
.enum(['ach', 'bacs', 'sepa_core', 'autogiro', 'becs', 'becs_nz', 'pad'])
|
|
131
|
+
.optional(),
|
|
132
|
+
last4: z.string().max(4).min(4).optional(),
|
|
133
|
+
echeck_type: z.enum(['web', 'ppd', 'ccd']).optional(),
|
|
134
|
+
});
|
|
107
135
|
const CreateUsingPermanentTokenPaymentSourceBillingAddressSchema = z.object({
|
|
108
136
|
first_name: z.string().max(150).optional(),
|
|
109
137
|
last_name: z.string().max(150).optional(),
|
|
@@ -119,6 +147,7 @@ const CreateUsingPermanentTokenPaymentSourceBillingAddressSchema = z.object({
|
|
|
119
147
|
});
|
|
120
148
|
const CreateUsingPermanentTokenPaymentSourceBodySchema = z.looseObject({
|
|
121
149
|
customer_id: z.string().max(50),
|
|
150
|
+
brand_id: z.string().max(50).optional(),
|
|
122
151
|
type: z.enum([
|
|
123
152
|
'card',
|
|
124
153
|
'paypal_express_checkout',
|
|
@@ -174,6 +203,19 @@ const CreateUsingPermanentTokenPaymentSourceBodySchema = z.looseObject({
|
|
|
174
203
|
'touch_n_go',
|
|
175
204
|
'tamara',
|
|
176
205
|
'qpay',
|
|
206
|
+
'ovo',
|
|
207
|
+
'momo',
|
|
208
|
+
'mercado_pago',
|
|
209
|
+
'nequi',
|
|
210
|
+
'nupay',
|
|
211
|
+
'picpay',
|
|
212
|
+
'thai_qr',
|
|
213
|
+
'blik',
|
|
214
|
+
'fpx',
|
|
215
|
+
'wero',
|
|
216
|
+
'p24',
|
|
217
|
+
'affirm_pay',
|
|
218
|
+
'rakuten_pay',
|
|
177
219
|
]),
|
|
178
220
|
gateway_account_id: z.string().max(50).optional(),
|
|
179
221
|
reference_id: z.string().max(200).optional(),
|
|
@@ -186,12 +228,14 @@ const CreateUsingPermanentTokenPaymentSourceBodySchema = z.looseObject({
|
|
|
186
228
|
skip_retrieval: z.boolean().default(false).optional(),
|
|
187
229
|
additional_information: CreateUsingPermanentTokenPaymentSourceAdditionalInformationSchema.optional(),
|
|
188
230
|
card: CreateUsingPermanentTokenPaymentSourceCardSchema.optional(),
|
|
231
|
+
bank_account: CreateUsingPermanentTokenPaymentSourceBankAccountSchema.optional(),
|
|
189
232
|
billing_address: CreateUsingPermanentTokenPaymentSourceBillingAddressSchema.optional(),
|
|
190
233
|
});
|
|
191
234
|
export { CreateUsingPermanentTokenPaymentSourceBodySchema };
|
|
192
235
|
//PaymentSource.createUsingToken
|
|
193
236
|
const CreateUsingTokenPaymentSourceBodySchema = z.looseObject({
|
|
194
237
|
customer_id: z.string().max(50),
|
|
238
|
+
brand_id: z.string().max(50).optional(),
|
|
195
239
|
replace_primary_payment_source: z.boolean().default(false).optional(),
|
|
196
240
|
token_id: z.string().max(40),
|
|
197
241
|
});
|
|
@@ -257,6 +301,19 @@ const CreateUsingPaymentIntentPaymentSourcePaymentIntentSchema = z.object({
|
|
|
257
301
|
'touch_n_go',
|
|
258
302
|
'tamara',
|
|
259
303
|
'qpay',
|
|
304
|
+
'ovo',
|
|
305
|
+
'momo',
|
|
306
|
+
'mercado_pago',
|
|
307
|
+
'nequi',
|
|
308
|
+
'nupay',
|
|
309
|
+
'picpay',
|
|
310
|
+
'thai_qr',
|
|
311
|
+
'blik',
|
|
312
|
+
'fpx',
|
|
313
|
+
'wero',
|
|
314
|
+
'p24',
|
|
315
|
+
'affirm_pay',
|
|
316
|
+
'rakuten_pay',
|
|
260
317
|
])
|
|
261
318
|
.optional(),
|
|
262
319
|
reference_id: z.string().max(65000).optional(),
|
|
@@ -266,6 +323,7 @@ const CreateUsingPaymentIntentPaymentSourcePaymentIntentSchema = z.object({
|
|
|
266
323
|
});
|
|
267
324
|
const CreateUsingPaymentIntentPaymentSourceBodySchema = z.looseObject({
|
|
268
325
|
customer_id: z.string().max(50),
|
|
326
|
+
brand_id: z.string().max(50).optional(),
|
|
269
327
|
replace_primary_payment_source: z.boolean().default(false).optional(),
|
|
270
328
|
payment_intent: CreateUsingPaymentIntentPaymentSourcePaymentIntentSchema.optional(),
|
|
271
329
|
});
|
|
@@ -280,6 +338,7 @@ const CreateVoucherPaymentSourcePaymentSourceVoucherPaymentSourceSchema = z.obje
|
|
|
280
338
|
});
|
|
281
339
|
const CreateVoucherPaymentSourcePaymentSourceBodySchema = z.looseObject({
|
|
282
340
|
customer_id: z.string().max(50),
|
|
341
|
+
brand_id: z.string().max(50).optional(),
|
|
283
342
|
voucher_payment_source: CreateVoucherPaymentSourcePaymentSourceVoucherPaymentSourceSchema.optional(),
|
|
284
343
|
});
|
|
285
344
|
export { CreateVoucherPaymentSourcePaymentSourceBodySchema };
|
|
@@ -294,7 +353,7 @@ const CreateCardPaymentSourceCardSchema = z.object({
|
|
|
294
353
|
expiry_year: z.number().int(),
|
|
295
354
|
cvv: z.string().max(520).optional(),
|
|
296
355
|
preferred_scheme: z
|
|
297
|
-
.enum(['cartes_bancaires', 'mastercard', 'visa'])
|
|
356
|
+
.enum(['cartes_bancaires', 'mastercard', 'visa', 'dankort'])
|
|
298
357
|
.optional(),
|
|
299
358
|
billing_addr1: z.string().max(150).optional(),
|
|
300
359
|
billing_addr2: z.string().max(150).optional(),
|
|
@@ -307,6 +366,7 @@ const CreateCardPaymentSourceCardSchema = z.object({
|
|
|
307
366
|
});
|
|
308
367
|
const CreateCardPaymentSourceBodySchema = z.looseObject({
|
|
309
368
|
customer_id: z.string().max(50),
|
|
369
|
+
brand_id: z.string().max(50).optional(),
|
|
310
370
|
replace_primary_payment_source: z.boolean().default(false).optional(),
|
|
311
371
|
card: CreateCardPaymentSourceCardSchema.optional(),
|
|
312
372
|
});
|
|
@@ -335,6 +395,7 @@ const CreateBankAccountPaymentSourceBankAccountSchema = z.object({
|
|
|
335
395
|
});
|
|
336
396
|
const CreateBankAccountPaymentSourceBodySchema = z.looseObject({
|
|
337
397
|
customer_id: z.string().max(50),
|
|
398
|
+
brand_id: z.string().max(50).optional(),
|
|
338
399
|
issuing_country: z.string().max(50).optional(),
|
|
339
400
|
replace_primary_payment_source: z.boolean().default(false).optional(),
|
|
340
401
|
bank_account: CreateBankAccountPaymentSourceBankAccountSchema.optional(),
|
|
@@ -357,10 +418,14 @@ const UpdateCardPaymentSourceCardSchema = z.object({
|
|
|
357
418
|
billing_country: z.string().max(50).optional(),
|
|
358
419
|
additional_information: UpdateCardPaymentSourceAdditionalInformationSchema.optional(),
|
|
359
420
|
});
|
|
421
|
+
const UpdateCardPaymentSourceNetworkTransactionReferenceSchema = z.object({
|
|
422
|
+
original_network_transaction_id: z.string().max(100).optional(),
|
|
423
|
+
});
|
|
360
424
|
const UpdateCardPaymentSourceBodySchema = z.looseObject({
|
|
361
425
|
gateway_meta_data: UpdateCardPaymentSourceGatewayMetaDataSchema.optional(),
|
|
362
426
|
reference_transaction: z.string().max(50).optional(),
|
|
363
427
|
card: UpdateCardPaymentSourceCardSchema.optional(),
|
|
428
|
+
network_transaction_reference: UpdateCardPaymentSourceNetworkTransactionReferenceSchema.optional(),
|
|
364
429
|
});
|
|
365
430
|
export { UpdateCardPaymentSourceBodySchema };
|
|
366
431
|
//PaymentSource.updateBankAccount
|
|
@@ -451,6 +516,19 @@ const ListPaymentSourceTypeSchema = z.object({
|
|
|
451
516
|
'touch_n_go',
|
|
452
517
|
'tamara',
|
|
453
518
|
'qpay',
|
|
519
|
+
'ovo',
|
|
520
|
+
'momo',
|
|
521
|
+
'mercado_pago',
|
|
522
|
+
'nequi',
|
|
523
|
+
'nupay',
|
|
524
|
+
'picpay',
|
|
525
|
+
'thai_qr',
|
|
526
|
+
'blik',
|
|
527
|
+
'fpx',
|
|
528
|
+
'wero',
|
|
529
|
+
'p24',
|
|
530
|
+
'affirm_pay',
|
|
531
|
+
'rakuten_pay',
|
|
454
532
|
])
|
|
455
533
|
.optional(),
|
|
456
534
|
is_not: z
|
|
@@ -509,6 +587,19 @@ const ListPaymentSourceTypeSchema = z.object({
|
|
|
509
587
|
'touch_n_go',
|
|
510
588
|
'tamara',
|
|
511
589
|
'qpay',
|
|
590
|
+
'ovo',
|
|
591
|
+
'momo',
|
|
592
|
+
'mercado_pago',
|
|
593
|
+
'nequi',
|
|
594
|
+
'nupay',
|
|
595
|
+
'picpay',
|
|
596
|
+
'thai_qr',
|
|
597
|
+
'blik',
|
|
598
|
+
'fpx',
|
|
599
|
+
'wero',
|
|
600
|
+
'p24',
|
|
601
|
+
'affirm_pay',
|
|
602
|
+
'rakuten_pay',
|
|
512
603
|
])
|
|
513
604
|
.optional(),
|
|
514
605
|
in: z
|
|
@@ -567,6 +658,19 @@ const ListPaymentSourceTypeSchema = z.object({
|
|
|
567
658
|
'touch_n_go',
|
|
568
659
|
'tamara',
|
|
569
660
|
'qpay',
|
|
661
|
+
'ovo',
|
|
662
|
+
'momo',
|
|
663
|
+
'mercado_pago',
|
|
664
|
+
'nequi',
|
|
665
|
+
'nupay',
|
|
666
|
+
'picpay',
|
|
667
|
+
'thai_qr',
|
|
668
|
+
'blik',
|
|
669
|
+
'fpx',
|
|
670
|
+
'wero',
|
|
671
|
+
'p24',
|
|
672
|
+
'affirm_pay',
|
|
673
|
+
'rakuten_pay',
|
|
570
674
|
])
|
|
571
675
|
.optional(),
|
|
572
676
|
not_in: z
|
|
@@ -625,6 +729,19 @@ const ListPaymentSourceTypeSchema = z.object({
|
|
|
625
729
|
'touch_n_go',
|
|
626
730
|
'tamara',
|
|
627
731
|
'qpay',
|
|
732
|
+
'ovo',
|
|
733
|
+
'momo',
|
|
734
|
+
'mercado_pago',
|
|
735
|
+
'nequi',
|
|
736
|
+
'nupay',
|
|
737
|
+
'picpay',
|
|
738
|
+
'thai_qr',
|
|
739
|
+
'blik',
|
|
740
|
+
'fpx',
|
|
741
|
+
'wero',
|
|
742
|
+
'p24',
|
|
743
|
+
'affirm_pay',
|
|
744
|
+
'rakuten_pay',
|
|
628
745
|
])
|
|
629
746
|
.optional(),
|
|
630
747
|
});
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
// Generated Zod schemas: PriceRamp
|
|
2
|
+
// Actions: create, update, list
|
|
3
|
+
// Do not edit manually – regenerate via sdk-generator
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
//PriceRamp.create
|
|
6
|
+
const CreatePriceRampRampIntervalsSchema = z.object({
|
|
7
|
+
starting_billing_cycle: z.array(z.number().int().min(1).optional()),
|
|
8
|
+
ending_billing_cycle: z.array(z.number().int().min(1).optional()).optional(),
|
|
9
|
+
apply_catalog_price: z
|
|
10
|
+
.array(z.boolean().default(false).optional())
|
|
11
|
+
.optional(),
|
|
12
|
+
price: z.array(z.number().int().min(0).optional()).optional(),
|
|
13
|
+
price_in_decimal: z.array(z.string().max(39).optional()).optional(),
|
|
14
|
+
});
|
|
15
|
+
const CreatePriceRampBodySchema = z.looseObject({
|
|
16
|
+
item_price_id: z.string().max(100),
|
|
17
|
+
business_entity_id: z.string().max(50).optional(),
|
|
18
|
+
ramp_intervals: CreatePriceRampRampIntervalsSchema.optional(),
|
|
19
|
+
});
|
|
20
|
+
export { CreatePriceRampBodySchema };
|
|
21
|
+
//PriceRamp.update
|
|
22
|
+
const UpdatePriceRampRampIntervalsSchema = z.object({
|
|
23
|
+
starting_billing_cycle: z.array(z.number().int().min(1).optional()),
|
|
24
|
+
ending_billing_cycle: z.array(z.number().int().min(1).optional()).optional(),
|
|
25
|
+
apply_catalog_price: z
|
|
26
|
+
.array(z.boolean().default(false).optional())
|
|
27
|
+
.optional(),
|
|
28
|
+
price: z.array(z.number().int().min(0).optional()).optional(),
|
|
29
|
+
price_in_decimal: z.array(z.string().max(39).optional()).optional(),
|
|
30
|
+
});
|
|
31
|
+
const UpdatePriceRampBodySchema = z.looseObject({
|
|
32
|
+
status: z.enum(['active', 'archived']).optional(),
|
|
33
|
+
ramp_intervals: UpdatePriceRampRampIntervalsSchema.optional(),
|
|
34
|
+
});
|
|
35
|
+
export { UpdatePriceRampBodySchema };
|
|
36
|
+
//PriceRamp.list
|
|
37
|
+
const ListPriceRampIdSchema = z.object({
|
|
38
|
+
is: z.string().min(1).optional(),
|
|
39
|
+
is_not: z.string().min(1).optional(),
|
|
40
|
+
starts_with: z.string().min(1).optional(),
|
|
41
|
+
in: z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
42
|
+
not_in: z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
43
|
+
});
|
|
44
|
+
const ListPriceRampItemPriceIdSchema = z.object({
|
|
45
|
+
is: z.string().min(1).optional(),
|
|
46
|
+
is_not: z.string().min(1).optional(),
|
|
47
|
+
starts_with: z.string().min(1).optional(),
|
|
48
|
+
in: z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
49
|
+
not_in: z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
50
|
+
});
|
|
51
|
+
const ListPriceRampStatusSchema = z.object({
|
|
52
|
+
is: z.enum(['active', 'archived']).optional(),
|
|
53
|
+
is_not: z.enum(['active', 'archived']).optional(),
|
|
54
|
+
in: z.enum(['active', 'archived']).optional(),
|
|
55
|
+
not_in: z.enum(['active', 'archived']).optional(),
|
|
56
|
+
});
|
|
57
|
+
const ListPriceRampUpdatedAtSchema = z.object({
|
|
58
|
+
after: z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
59
|
+
before: z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
60
|
+
on: z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
61
|
+
between: z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
|
|
62
|
+
});
|
|
63
|
+
const ListPriceRampBusinessEntityIdSchema = z.object({
|
|
64
|
+
is_present: z.enum(['true', 'false']).optional(),
|
|
65
|
+
is: z.string().min(1).optional(),
|
|
66
|
+
});
|
|
67
|
+
const ListPriceRampIncludeSiteLevelResourcesSchema = z.object({
|
|
68
|
+
is: z.enum(['true', 'false']).optional(),
|
|
69
|
+
});
|
|
70
|
+
const ListPriceRampSortBySchema = z.looseObject({
|
|
71
|
+
asc: z.enum(['id', 'status', 'updated_at']).optional(),
|
|
72
|
+
desc: z.enum(['id', 'status', 'updated_at']).optional(),
|
|
73
|
+
});
|
|
74
|
+
const ListPriceRampBodySchema = z.looseObject({
|
|
75
|
+
limit: z.number().int().min(1).max(100).optional(),
|
|
76
|
+
offset: z.string().max(1000).optional(),
|
|
77
|
+
id: ListPriceRampIdSchema.optional(),
|
|
78
|
+
item_price_id: ListPriceRampItemPriceIdSchema.optional(),
|
|
79
|
+
status: ListPriceRampStatusSchema.optional(),
|
|
80
|
+
updated_at: ListPriceRampUpdatedAtSchema.optional(),
|
|
81
|
+
business_entity_id: ListPriceRampBusinessEntityIdSchema.optional(),
|
|
82
|
+
include_site_level_resources: ListPriceRampIncludeSiteLevelResourcesSchema.optional(),
|
|
83
|
+
sort_by: ListPriceRampSortBySchema.optional(),
|
|
84
|
+
});
|
|
85
|
+
export { ListPriceRampBodySchema };
|
|
@@ -65,8 +65,8 @@ const ListPriceVariantCreatedAtSchema = z.object({
|
|
|
65
65
|
between: z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
|
|
66
66
|
});
|
|
67
67
|
const ListPriceVariantBusinessEntityIdSchema = z.object({
|
|
68
|
-
is: z.string().min(1).optional(),
|
|
69
68
|
is_present: z.enum(['true', 'false']).optional(),
|
|
69
|
+
is: z.string().min(1).optional(),
|
|
70
70
|
});
|
|
71
71
|
const ListPriceVariantIncludeSiteLevelResourcesSchema = z.object({
|
|
72
72
|
is: z.enum(['true', 'false']).optional(),
|
|
@@ -80,6 +80,7 @@ const CreateForNewSubscriptionPricingPageSessionDiscountsSchema = z.object({
|
|
|
80
80
|
const CreateForNewSubscriptionPricingPageSessionBodySchema = z.looseObject({
|
|
81
81
|
redirect_url: z.string().max(250).optional(),
|
|
82
82
|
business_entity_id: z.string().max(50).optional(),
|
|
83
|
+
brand_id: z.string().max(50).optional(),
|
|
83
84
|
auto_select_local_currency: z.boolean().default(false).optional(),
|
|
84
85
|
custom: CreateForNewSubscriptionPricingPageSessionCustomSchema.optional(),
|
|
85
86
|
pricing_page: CreateForNewSubscriptionPricingPageSessionPricingPageSchema.optional(),
|
|
@@ -7,7 +7,9 @@ const PromotionalGrantsPromotionalGrantMetadataSchema = z.looseObject({});
|
|
|
7
7
|
const PromotionalGrantsPromotionalGrantBodySchema = z.looseObject({
|
|
8
8
|
subscription_id: z.string().max(50),
|
|
9
9
|
unit_id: z.string().max(50),
|
|
10
|
+
id: z.string().max(50).optional(),
|
|
10
11
|
amount: z.string().max(36),
|
|
12
|
+
effective_from: z.number().int().optional(),
|
|
11
13
|
expires_at: z.number().int(),
|
|
12
14
|
metadata: PromotionalGrantsPromotionalGrantMetadataSchema.optional(),
|
|
13
15
|
});
|
|
@@ -73,6 +73,19 @@ const CreatePurchasePaymentIntentSchema = z.object({
|
|
|
73
73
|
'touch_n_go',
|
|
74
74
|
'tamara',
|
|
75
75
|
'qpay',
|
|
76
|
+
'ovo',
|
|
77
|
+
'momo',
|
|
78
|
+
'mercado_pago',
|
|
79
|
+
'nequi',
|
|
80
|
+
'nupay',
|
|
81
|
+
'picpay',
|
|
82
|
+
'thai_qr',
|
|
83
|
+
'blik',
|
|
84
|
+
'fpx',
|
|
85
|
+
'wero',
|
|
86
|
+
'p24',
|
|
87
|
+
'affirm_pay',
|
|
88
|
+
'rakuten_pay',
|
|
76
89
|
])
|
|
77
90
|
.optional(),
|
|
78
91
|
reference_id: z.string().max(65000).optional(),
|
|
@@ -86,6 +99,7 @@ const CreatePurchasePurchaseItemsSchema = z.object({
|
|
|
86
99
|
unit_amount: z.array(z.number().int().min(0).optional()).optional(),
|
|
87
100
|
unit_amount_in_decimal: z.array(z.string().max(39).optional()).optional(),
|
|
88
101
|
quantity_in_decimal: z.array(z.string().max(33).optional()).optional(),
|
|
102
|
+
trial_end: z.array(z.number().int().optional()).optional(),
|
|
89
103
|
});
|
|
90
104
|
const CreatePurchaseItemTiersSchema = z.object({
|
|
91
105
|
index: z.array(z.number().int().min(0).optional()),
|
|
@@ -133,6 +147,8 @@ const CreatePurchaseSubscriptionInfoSchema = z.object({
|
|
|
133
147
|
contract_term_billing_cycle_on_renewal: z
|
|
134
148
|
.array(z.number().int().min(1).max(100).optional())
|
|
135
149
|
.optional(),
|
|
150
|
+
trial_end: z.array(z.number().int().optional()).optional(),
|
|
151
|
+
start_date: z.array(z.number().int().optional()).optional(),
|
|
136
152
|
meta_data: z.array(CreatePurchaseMetaDataItemSchema.optional()).optional(),
|
|
137
153
|
});
|
|
138
154
|
const CreatePurchaseContractTermsSchema = z.object({
|
|
@@ -163,7 +179,7 @@ const EstimatePurchaseCustomerSchema = z.object({
|
|
|
163
179
|
vat_number: z.string().max(20).optional(),
|
|
164
180
|
vat_number_prefix: z.string().max(10).optional(),
|
|
165
181
|
registered_for_gst: z.boolean().optional(),
|
|
166
|
-
taxability: z.enum(['taxable', 'exempt']).optional(),
|
|
182
|
+
taxability: z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
|
|
167
183
|
entity_code: z
|
|
168
184
|
.enum([
|
|
169
185
|
'a',
|
|
@@ -212,6 +228,7 @@ const EstimatePurchasePurchaseItemsSchema = z.object({
|
|
|
212
228
|
unit_amount: z.array(z.number().int().min(0).optional()).optional(),
|
|
213
229
|
unit_amount_in_decimal: z.array(z.string().max(39).optional()).optional(),
|
|
214
230
|
quantity_in_decimal: z.array(z.string().max(33).optional()).optional(),
|
|
231
|
+
trial_end: z.array(z.number().int().optional()).optional(),
|
|
215
232
|
});
|
|
216
233
|
const EstimatePurchaseItemTiersSchema = z.object({
|
|
217
234
|
index: z.array(z.number().int().min(0).optional()),
|
|
@@ -258,6 +275,8 @@ const EstimatePurchaseSubscriptionInfoSchema = z.object({
|
|
|
258
275
|
contract_term_billing_cycle_on_renewal: z
|
|
259
276
|
.array(z.number().int().min(1).max(100).optional())
|
|
260
277
|
.optional(),
|
|
278
|
+
trial_end: z.array(z.number().int().optional()).optional(),
|
|
279
|
+
start_date: z.array(z.number().int().optional()).optional(),
|
|
261
280
|
});
|
|
262
281
|
const EstimatePurchaseContractTermsSchema = z.object({
|
|
263
282
|
index: z.array(z.number().int().min(0).optional()),
|
|
@@ -697,7 +697,7 @@ const CreateSubItemsForCustomerQuoteQuoteSubscriptionItemsSchema = z.object({
|
|
|
697
697
|
billing_cycles: z.array(z.number().int().min(0).optional()).optional(),
|
|
698
698
|
trial_end: z.array(z.number().int().optional()).optional(),
|
|
699
699
|
service_period_days: z
|
|
700
|
-
.array(z.number().int().min(1).max(
|
|
700
|
+
.array(z.number().int().min(1).max(4000).optional())
|
|
701
701
|
.optional(),
|
|
702
702
|
charge_on_event: z
|
|
703
703
|
.array(z
|
|
@@ -873,7 +873,7 @@ const EditCreateSubCustomerQuoteForItemsQuoteSubscriptionItemsSchema = z.object(
|
|
|
873
873
|
billing_cycles: z.array(z.number().int().min(0).optional()).optional(),
|
|
874
874
|
trial_end: z.array(z.number().int().optional()).optional(),
|
|
875
875
|
service_period_days: z
|
|
876
|
-
.array(z.number().int().min(1).max(
|
|
876
|
+
.array(z.number().int().min(1).max(4000).optional())
|
|
877
877
|
.optional(),
|
|
878
878
|
charge_on_event: z
|
|
879
879
|
.array(z
|
|
@@ -1056,7 +1056,7 @@ const UpdateSubscriptionQuoteForItemsQuoteSubscriptionItemsSchema = z.object({
|
|
|
1056
1056
|
billing_cycles: z.array(z.number().int().min(0).optional()).optional(),
|
|
1057
1057
|
trial_end: z.array(z.number().int().optional()).optional(),
|
|
1058
1058
|
service_period_days: z
|
|
1059
|
-
.array(z.number().int().min(1).max(
|
|
1059
|
+
.array(z.number().int().min(1).max(4000).optional())
|
|
1060
1060
|
.optional(),
|
|
1061
1061
|
charge_on_event: z
|
|
1062
1062
|
.array(z
|
|
@@ -1246,7 +1246,7 @@ const EditUpdateSubscriptionQuoteForItemsQuoteSubscriptionItemsSchema = z.object
|
|
|
1246
1246
|
billing_cycles: z.array(z.number().int().min(0).optional()).optional(),
|
|
1247
1247
|
trial_end: z.array(z.number().int().optional()).optional(),
|
|
1248
1248
|
service_period_days: z
|
|
1249
|
-
.array(z.number().int().min(1).max(
|
|
1249
|
+
.array(z.number().int().min(1).max(4000).optional())
|
|
1250
1250
|
.optional(),
|
|
1251
1251
|
charge_on_event: z
|
|
1252
1252
|
.array(z
|
|
@@ -1394,7 +1394,7 @@ const CreateForChargeItemsAndChargesQuoteItemPricesSchema = z.object({
|
|
|
1394
1394
|
unit_price: z.array(z.number().int().min(0).optional()).optional(),
|
|
1395
1395
|
unit_price_in_decimal: z.array(z.string().max(39).optional()).optional(),
|
|
1396
1396
|
service_period_days: z
|
|
1397
|
-
.array(z.number().int().min(1).max(
|
|
1397
|
+
.array(z.number().int().min(1).max(4000).optional())
|
|
1398
1398
|
.optional(),
|
|
1399
1399
|
});
|
|
1400
1400
|
const CreateForChargeItemsAndChargesQuoteItemTiersSchema = z.object({
|
|
@@ -1496,7 +1496,7 @@ const EditForChargeItemsAndChargesQuoteItemPricesSchema = z.object({
|
|
|
1496
1496
|
unit_price: z.array(z.number().int().min(0).optional()).optional(),
|
|
1497
1497
|
unit_price_in_decimal: z.array(z.string().max(39).optional()).optional(),
|
|
1498
1498
|
service_period_days: z
|
|
1499
|
-
.array(z.number().int().min(1).max(
|
|
1499
|
+
.array(z.number().int().min(1).max(4000).optional())
|
|
1500
1500
|
.optional(),
|
|
1501
1501
|
});
|
|
1502
1502
|
const EditForChargeItemsAndChargesQuoteItemTiersSchema = z.object({
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
// Do not edit manually – regenerate via sdk-generator
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
//Ramp.createForSubscription
|
|
6
|
+
const CreateForSubscriptionRampBillingConfigurationSchema = z.object({
|
|
7
|
+
po_number: z.string().max(100).optional(),
|
|
8
|
+
});
|
|
6
9
|
const CreateForSubscriptionRampContractTermSchema = z.object({
|
|
7
10
|
action_at_term_end: z
|
|
8
11
|
.enum(['renew', 'evergreen', 'cancel', 'renew_once'])
|
|
@@ -18,7 +21,7 @@ const CreateForSubscriptionRampItemsToAddSchema = z.object({
|
|
|
18
21
|
unit_price_in_decimal: z.array(z.string().max(39).optional()).optional(),
|
|
19
22
|
billing_cycles: z.array(z.number().int().min(0).optional()).optional(),
|
|
20
23
|
service_period_days: z
|
|
21
|
-
.array(z.number().int().min(1).max(
|
|
24
|
+
.array(z.number().int().min(1).max(4000).optional())
|
|
22
25
|
.optional(),
|
|
23
26
|
charge_on_event: z
|
|
24
27
|
.array(z
|
|
@@ -34,6 +37,7 @@ const CreateForSubscriptionRampItemsToAddSchema = z.object({
|
|
|
34
37
|
charge_on_option: z
|
|
35
38
|
.array(z.enum(['immediately', 'on_event']).optional())
|
|
36
39
|
.optional(),
|
|
40
|
+
description: z.array(z.string().max(500).optional()).optional(),
|
|
37
41
|
});
|
|
38
42
|
const CreateForSubscriptionRampItemsToUpdateSchema = z.object({
|
|
39
43
|
item_price_id: z.array(z.string().max(100).optional()),
|
|
@@ -43,7 +47,7 @@ const CreateForSubscriptionRampItemsToUpdateSchema = z.object({
|
|
|
43
47
|
unit_price_in_decimal: z.array(z.string().max(39).optional()).optional(),
|
|
44
48
|
billing_cycles: z.array(z.number().int().min(0).optional()).optional(),
|
|
45
49
|
service_period_days: z
|
|
46
|
-
.array(z.number().int().min(1).max(
|
|
50
|
+
.array(z.number().int().min(1).max(4000).optional())
|
|
47
51
|
.optional(),
|
|
48
52
|
charge_on_event: z
|
|
49
53
|
.array(z
|
|
@@ -59,6 +63,7 @@ const CreateForSubscriptionRampItemsToUpdateSchema = z.object({
|
|
|
59
63
|
charge_on_option: z
|
|
60
64
|
.array(z.enum(['immediately', 'on_event']).optional())
|
|
61
65
|
.optional(),
|
|
66
|
+
description: z.array(z.string().max(500).optional()).optional(),
|
|
62
67
|
});
|
|
63
68
|
const CreateForSubscriptionRampItemTiersSchema = z.object({
|
|
64
69
|
item_price_id: z.array(z.string().max(100).optional()).optional(),
|
|
@@ -96,6 +101,7 @@ const CreateForSubscriptionRampBodySchema = z.looseObject({
|
|
|
96
101
|
coupons_to_remove: z.array(z.string().max(100).optional()).optional(),
|
|
97
102
|
discounts_to_remove: z.array(z.string().max(100).optional()).optional(),
|
|
98
103
|
items_to_remove: z.array(z.string().max(100).optional()).optional(),
|
|
104
|
+
billing_configuration: CreateForSubscriptionRampBillingConfigurationSchema.optional(),
|
|
99
105
|
contract_term: CreateForSubscriptionRampContractTermSchema.optional(),
|
|
100
106
|
items_to_add: CreateForSubscriptionRampItemsToAddSchema.optional(),
|
|
101
107
|
items_to_update: CreateForSubscriptionRampItemsToUpdateSchema.optional(),
|
|
@@ -105,6 +111,9 @@ const CreateForSubscriptionRampBodySchema = z.looseObject({
|
|
|
105
111
|
});
|
|
106
112
|
export { CreateForSubscriptionRampBodySchema };
|
|
107
113
|
//Ramp.update
|
|
114
|
+
const UpdateRampBillingConfigurationSchema = z.object({
|
|
115
|
+
po_number: z.string().max(100).optional(),
|
|
116
|
+
});
|
|
108
117
|
const UpdateRampContractTermSchema = z.object({
|
|
109
118
|
action_at_term_end: z
|
|
110
119
|
.enum(['renew', 'evergreen', 'cancel', 'renew_once'])
|
|
@@ -120,7 +129,7 @@ const UpdateRampItemsToAddSchema = z.object({
|
|
|
120
129
|
unit_price_in_decimal: z.array(z.string().max(39).optional()).optional(),
|
|
121
130
|
billing_cycles: z.array(z.number().int().min(0).optional()).optional(),
|
|
122
131
|
service_period_days: z
|
|
123
|
-
.array(z.number().int().min(1).max(
|
|
132
|
+
.array(z.number().int().min(1).max(4000).optional())
|
|
124
133
|
.optional(),
|
|
125
134
|
charge_on_event: z
|
|
126
135
|
.array(z
|
|
@@ -136,6 +145,7 @@ const UpdateRampItemsToAddSchema = z.object({
|
|
|
136
145
|
charge_on_option: z
|
|
137
146
|
.array(z.enum(['immediately', 'on_event']).optional())
|
|
138
147
|
.optional(),
|
|
148
|
+
description: z.array(z.string().max(500).optional()).optional(),
|
|
139
149
|
});
|
|
140
150
|
const UpdateRampItemsToUpdateSchema = z.object({
|
|
141
151
|
item_price_id: z.array(z.string().max(100).optional()),
|
|
@@ -145,7 +155,7 @@ const UpdateRampItemsToUpdateSchema = z.object({
|
|
|
145
155
|
unit_price_in_decimal: z.array(z.string().max(39).optional()).optional(),
|
|
146
156
|
billing_cycles: z.array(z.number().int().min(0).optional()).optional(),
|
|
147
157
|
service_period_days: z
|
|
148
|
-
.array(z.number().int().min(1).max(
|
|
158
|
+
.array(z.number().int().min(1).max(4000).optional())
|
|
149
159
|
.optional(),
|
|
150
160
|
charge_on_event: z
|
|
151
161
|
.array(z
|
|
@@ -161,6 +171,7 @@ const UpdateRampItemsToUpdateSchema = z.object({
|
|
|
161
171
|
charge_on_option: z
|
|
162
172
|
.array(z.enum(['immediately', 'on_event']).optional())
|
|
163
173
|
.optional(),
|
|
174
|
+
description: z.array(z.string().max(500).optional()).optional(),
|
|
164
175
|
});
|
|
165
176
|
const UpdateRampItemTiersSchema = z.object({
|
|
166
177
|
item_price_id: z.array(z.string().max(100).optional()).optional(),
|
|
@@ -198,6 +209,7 @@ const UpdateRampBodySchema = z.looseObject({
|
|
|
198
209
|
coupons_to_remove: z.array(z.string().max(100).optional()).optional(),
|
|
199
210
|
discounts_to_remove: z.array(z.string().max(100).optional()).optional(),
|
|
200
211
|
items_to_remove: z.array(z.string().max(100).optional()).optional(),
|
|
212
|
+
billing_configuration: UpdateRampBillingConfigurationSchema.optional(),
|
|
201
213
|
contract_term: UpdateRampContractTermSchema.optional(),
|
|
202
214
|
items_to_add: UpdateRampItemsToAddSchema.optional(),
|
|
203
215
|
items_to_update: UpdateRampItemsToUpdateSchema.optional(),
|
|
@@ -208,12 +220,12 @@ const UpdateRampBodySchema = z.looseObject({
|
|
|
208
220
|
export { UpdateRampBodySchema };
|
|
209
221
|
//Ramp.list
|
|
210
222
|
const ListRampStatusSchema = z.object({
|
|
211
|
-
is: z.enum(['scheduled', 'succeeded', 'failed', 'draft']).optional(),
|
|
212
223
|
in: z.enum(['scheduled', 'succeeded', 'failed', 'draft']).optional(),
|
|
224
|
+
is: z.enum(['scheduled', 'succeeded', 'failed', 'draft']).optional(),
|
|
213
225
|
});
|
|
214
226
|
const ListRampSubscriptionIdSchema = z.object({
|
|
215
|
-
is: z.string().min(1).optional(),
|
|
216
227
|
in: z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
|
|
228
|
+
is: z.string().min(1).optional(),
|
|
217
229
|
});
|
|
218
230
|
const ListRampEffectiveFromSchema = z.object({
|
|
219
231
|
after: z.string().regex(RegExp('^\\d{10}$')).optional(),
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Generated Zod schemas: RetrySegment
|
|
2
|
+
// Actions: retrieve
|
|
3
|
+
// Do not edit manually – regenerate via sdk-generator
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
//RetrySegment.retrieve
|
|
6
|
+
const RetrieveRetrySegmentBodySchema = z.looseObject({
|
|
7
|
+
invoice_id: z.string().max(50).optional(),
|
|
8
|
+
});
|
|
9
|
+
export { RetrieveRetrySegmentBodySchema };
|