chargebee 3.25.0-beta.1 → 3.25.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.
Files changed (166) hide show
  1. package/CHANGELOG.md +66 -4
  2. package/README.md +0 -39
  3. package/cjs/RequestWrapper.js +1 -28
  4. package/cjs/chargebee.cjs.js +0 -3
  5. package/cjs/chargebee.cjs.worker.js +0 -2
  6. package/cjs/createChargebee.js +0 -5
  7. package/cjs/environment.js +1 -1
  8. package/cjs/resources/api_endpoints.js +1 -2
  9. package/cjs/resources/webhook/eventType.js +2 -0
  10. package/esm/RequestWrapper.js +1 -28
  11. package/esm/chargebee.esm.js +0 -2
  12. package/esm/chargebee.esm.worker.js +0 -1
  13. package/esm/createChargebee.js +0 -5
  14. package/esm/environment.js +1 -1
  15. package/esm/resources/api_endpoints.js +1 -2
  16. package/esm/resources/webhook/eventType.js +2 -0
  17. package/package.json +1 -4
  18. package/types/core.d.ts +23 -6
  19. package/types/index.d.ts +0 -17
  20. package/types/resources/Content.d.ts +0 -1
  21. package/types/resources/Customer.d.ts +14 -4
  22. package/types/resources/Estimate.d.ts +14 -4
  23. package/types/resources/Event.d.ts +2 -0
  24. package/types/resources/Gift.d.ts +23 -6
  25. package/types/resources/HostedPage.d.ts +1 -0
  26. package/types/resources/Invoice.d.ts +14 -5
  27. package/types/resources/OmnichannelSubscription.d.ts +6 -0
  28. package/types/resources/OmnichannelSubscriptionItem.d.ts +1 -0
  29. package/types/resources/PaymentIntent.d.ts +35 -10
  30. package/types/resources/PaymentSource.d.ts +7 -2
  31. package/types/resources/Purchase.d.ts +7 -2
  32. package/types/resources/Subscription.d.ts +49 -14
  33. package/types/resources/WebhookEvent.d.ts +22 -4
  34. package/cjs/chargebeeZodValidationError.js +0 -18
  35. package/cjs/schema/addon.schema.js +0 -153
  36. package/cjs/schema/address.schema.js +0 -35
  37. package/cjs/schema/alert.schema.js +0 -38
  38. package/cjs/schema/attached_item.schema.js +0 -58
  39. package/cjs/schema/business_entity.schema.js +0 -46
  40. package/cjs/schema/card.schema.js +0 -165
  41. package/cjs/schema/comment.schema.js +0 -69
  42. package/cjs/schema/coupon.schema.js +0 -209
  43. package/cjs/schema/coupon_code.schema.js +0 -14
  44. package/cjs/schema/coupon_set.schema.js +0 -28
  45. package/cjs/schema/credit_note.schema.js +0 -288
  46. package/cjs/schema/currency.schema.js +0 -32
  47. package/cjs/schema/customer.schema.js +0 -986
  48. package/cjs/schema/customer_entitlement.schema.js +0 -14
  49. package/cjs/schema/differential_price.schema.js +0 -68
  50. package/cjs/schema/entitlement.schema.js +0 -27
  51. package/cjs/schema/entitlement_override.schema.js +0 -33
  52. package/cjs/schema/estimate.schema.js +0 -1525
  53. package/cjs/schema/export.schema.js +0 -1545
  54. package/cjs/schema/feature.schema.js +0 -37
  55. package/cjs/schema/gift.schema.js +0 -277
  56. package/cjs/schema/hosted_page.schema.js +0 -1649
  57. package/cjs/schema/in_app_subscription.schema.js +0 -68
  58. package/cjs/schema/index.js +0 -80
  59. package/cjs/schema/invoice.schema.js +0 -1467
  60. package/cjs/schema/item.schema.js +0 -91
  61. package/cjs/schema/item_entitlement.schema.js +0 -45
  62. package/cjs/schema/item_family.schema.js +0 -21
  63. package/cjs/schema/item_price.schema.js +0 -190
  64. package/cjs/schema/non_subscription.schema.js +0 -28
  65. package/cjs/schema/offer_event.schema.js +0 -13
  66. package/cjs/schema/offer_fulfillment.schema.js +0 -20
  67. package/cjs/schema/omnichannel_one_time_order.schema.js +0 -26
  68. package/cjs/schema/omnichannel_subscription.schema.js +0 -89
  69. package/cjs/schema/omnichannel_subscription_item.schema.js +0 -13
  70. package/cjs/schema/order.schema.js +0 -273
  71. package/cjs/schema/payment_intent.schema.js +0 -117
  72. package/cjs/schema/payment_schedule_scheme.schema.js +0 -20
  73. package/cjs/schema/payment_source.schema.js +0 -358
  74. package/cjs/schema/payment_voucher.schema.js +0 -57
  75. package/cjs/schema/personalized_offer.schema.js +0 -28
  76. package/cjs/schema/plan.schema.js +0 -225
  77. package/cjs/schema/portal_session.schema.js +0 -22
  78. package/cjs/schema/price_variant.schema.js +0 -36
  79. package/cjs/schema/pricing_page_session.schema.js +0 -135
  80. package/cjs/schema/promotional_credit.schema.js +0 -78
  81. package/cjs/schema/purchase.schema.js +0 -272
  82. package/cjs/schema/quote.schema.js +0 -1557
  83. package/cjs/schema/ramp.schema.js +0 -209
  84. package/cjs/schema/recorded_purchase.schema.js +0 -32
  85. package/cjs/schema/resource_migration.schema.js +0 -14
  86. package/cjs/schema/site_migration_detail.schema.js +0 -81
  87. package/cjs/schema/subscription.schema.js +0 -2993
  88. package/cjs/schema/subscription_entitlement.schema.js +0 -25
  89. package/cjs/schema/time_machine.schema.js +0 -17
  90. package/cjs/schema/transaction.schema.js +0 -70
  91. package/cjs/schema/unbilled_charge.schema.js +0 -113
  92. package/cjs/schema/usage.schema.js +0 -93
  93. package/cjs/schema/usage_charge.schema.js +0 -17
  94. package/cjs/schema/usage_event.schema.js +0 -28
  95. package/cjs/schema/usage_file.schema.js +0 -13
  96. package/cjs/schema/usage_summary.schema.js +0 -17
  97. package/cjs/schema/virtual_bank_account.schema.js +0 -43
  98. package/cjs/schema/webhook_endpoint.schema.js +0 -504
  99. package/cjs/validationLoader.js +0 -59
  100. package/esm/chargebeeZodValidationError.js +0 -14
  101. package/esm/schema/addon.schema.js +0 -150
  102. package/esm/schema/address.schema.js +0 -32
  103. package/esm/schema/alert.schema.js +0 -35
  104. package/esm/schema/attached_item.schema.js +0 -55
  105. package/esm/schema/business_entity.schema.js +0 -43
  106. package/esm/schema/card.schema.js +0 -162
  107. package/esm/schema/comment.schema.js +0 -66
  108. package/esm/schema/coupon.schema.js +0 -206
  109. package/esm/schema/coupon_code.schema.js +0 -11
  110. package/esm/schema/coupon_set.schema.js +0 -25
  111. package/esm/schema/credit_note.schema.js +0 -285
  112. package/esm/schema/currency.schema.js +0 -29
  113. package/esm/schema/customer.schema.js +0 -983
  114. package/esm/schema/customer_entitlement.schema.js +0 -11
  115. package/esm/schema/differential_price.schema.js +0 -65
  116. package/esm/schema/entitlement.schema.js +0 -24
  117. package/esm/schema/entitlement_override.schema.js +0 -30
  118. package/esm/schema/estimate.schema.js +0 -1522
  119. package/esm/schema/export.schema.js +0 -1542
  120. package/esm/schema/feature.schema.js +0 -34
  121. package/esm/schema/gift.schema.js +0 -274
  122. package/esm/schema/hosted_page.schema.js +0 -1646
  123. package/esm/schema/in_app_subscription.schema.js +0 -65
  124. package/esm/schema/index.js +0 -64
  125. package/esm/schema/invoice.schema.js +0 -1464
  126. package/esm/schema/item.schema.js +0 -88
  127. package/esm/schema/item_entitlement.schema.js +0 -42
  128. package/esm/schema/item_family.schema.js +0 -18
  129. package/esm/schema/item_price.schema.js +0 -187
  130. package/esm/schema/non_subscription.schema.js +0 -25
  131. package/esm/schema/offer_event.schema.js +0 -10
  132. package/esm/schema/offer_fulfillment.schema.js +0 -17
  133. package/esm/schema/omnichannel_one_time_order.schema.js +0 -23
  134. package/esm/schema/omnichannel_subscription.schema.js +0 -86
  135. package/esm/schema/omnichannel_subscription_item.schema.js +0 -10
  136. package/esm/schema/order.schema.js +0 -270
  137. package/esm/schema/payment_intent.schema.js +0 -114
  138. package/esm/schema/payment_schedule_scheme.schema.js +0 -17
  139. package/esm/schema/payment_source.schema.js +0 -355
  140. package/esm/schema/payment_voucher.schema.js +0 -54
  141. package/esm/schema/personalized_offer.schema.js +0 -25
  142. package/esm/schema/plan.schema.js +0 -222
  143. package/esm/schema/portal_session.schema.js +0 -19
  144. package/esm/schema/price_variant.schema.js +0 -33
  145. package/esm/schema/pricing_page_session.schema.js +0 -132
  146. package/esm/schema/promotional_credit.schema.js +0 -75
  147. package/esm/schema/purchase.schema.js +0 -269
  148. package/esm/schema/quote.schema.js +0 -1554
  149. package/esm/schema/ramp.schema.js +0 -206
  150. package/esm/schema/recorded_purchase.schema.js +0 -29
  151. package/esm/schema/resource_migration.schema.js +0 -11
  152. package/esm/schema/site_migration_detail.schema.js +0 -78
  153. package/esm/schema/subscription.schema.js +0 -2990
  154. package/esm/schema/subscription_entitlement.schema.js +0 -22
  155. package/esm/schema/time_machine.schema.js +0 -14
  156. package/esm/schema/transaction.schema.js +0 -67
  157. package/esm/schema/unbilled_charge.schema.js +0 -110
  158. package/esm/schema/usage.schema.js +0 -90
  159. package/esm/schema/usage_charge.schema.js +0 -14
  160. package/esm/schema/usage_event.schema.js +0 -25
  161. package/esm/schema/usage_file.schema.js +0 -10
  162. package/esm/schema/usage_summary.schema.js +0 -14
  163. package/esm/schema/virtual_bank_account.schema.js +0 -40
  164. package/esm/schema/webhook_endpoint.schema.js +0 -501
  165. package/esm/validationLoader.js +0 -56
  166. package/types/resources/QuoteEntitlement.d.ts +0 -16
@@ -1,273 +0,0 @@
1
- "use strict";
2
- // Generated Zod schemas: Order
3
- // Actions: create, update, importOrder, cancel, createRefundableCreditNote, reopen, ordersForInvoice, resend
4
- // Do not edit manually – regenerate via sdk-generator
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ResendOrderBodySchema = exports.OrdersForInvoiceOrderBodySchema = exports.ReopenOrderBodySchema = exports.CreateRefundableCreditNoteOrderBodySchema = exports.CancelOrderBodySchema = exports.ImportOrderOrderBodySchema = exports.UpdateOrderBodySchema = exports.CreateOrderBodySchema = void 0;
7
- const zod_1 = require("zod");
8
- //Order.create
9
- const CreateOrderBodySchema = zod_1.z.looseObject({
10
- id: zod_1.z.string().max(40).optional(),
11
- invoice_id: zod_1.z.string().max(50),
12
- status: zod_1.z
13
- .enum(['new', 'processing', 'complete', 'cancelled', 'voided'])
14
- .optional(),
15
- reference_id: zod_1.z.string().max(50).optional(),
16
- fulfillment_status: zod_1.z.string().max(50).optional(),
17
- note: zod_1.z.string().max(600).optional(),
18
- tracking_id: zod_1.z.string().max(50).optional(),
19
- tracking_url: zod_1.z.string().max(255).optional(),
20
- batch_id: zod_1.z.string().max(50).optional(),
21
- });
22
- exports.CreateOrderBodySchema = CreateOrderBodySchema;
23
- //Order.update
24
- const UpdateOrderShippingAddressSchema = zod_1.z.object({
25
- first_name: zod_1.z.string().max(150).optional(),
26
- last_name: zod_1.z.string().max(150).optional(),
27
- email: zod_1.z.string().email().max(70).optional(),
28
- company: zod_1.z.string().max(250).optional(),
29
- phone: zod_1.z.string().max(50).optional(),
30
- line1: zod_1.z.string().max(150).optional(),
31
- line2: zod_1.z.string().max(150).optional(),
32
- line3: zod_1.z.string().max(150).optional(),
33
- city: zod_1.z.string().max(50).optional(),
34
- state_code: zod_1.z.string().max(50).optional(),
35
- state: zod_1.z.string().max(50).optional(),
36
- zip: zod_1.z.string().max(20).optional(),
37
- country: zod_1.z.string().max(50).optional(),
38
- validation_status: zod_1.z
39
- .enum(['not_validated', 'valid', 'partially_valid', 'invalid'])
40
- .optional(),
41
- });
42
- const UpdateOrderOrderLineItemsSchema = zod_1.z.object({
43
- id: zod_1.z.array(zod_1.z.string().max(40).optional()).optional(),
44
- status: zod_1.z
45
- .array(zod_1.z
46
- .enum([
47
- 'queued',
48
- 'awaiting_shipment',
49
- 'on_hold',
50
- 'delivered',
51
- 'shipped',
52
- 'partially_delivered',
53
- 'returned',
54
- 'cancelled',
55
- ])
56
- .optional())
57
- .optional(),
58
- sku: zod_1.z.array(zod_1.z.string().max(250).optional()).optional(),
59
- });
60
- const UpdateOrderBodySchema = zod_1.z.looseObject({
61
- reference_id: zod_1.z.string().max(50).optional(),
62
- batch_id: zod_1.z.string().max(50).optional(),
63
- note: zod_1.z.string().max(600).optional(),
64
- shipping_date: zod_1.z.number().int().optional(),
65
- order_date: zod_1.z.number().int().optional(),
66
- cancelled_at: zod_1.z.number().int().optional(),
67
- cancellation_reason: zod_1.z
68
- .enum([
69
- 'shipping_cut_off_passed',
70
- 'product_unsatisfactory',
71
- 'third_party_cancellation',
72
- 'product_not_required',
73
- 'delivery_date_missed',
74
- 'alternative_found',
75
- 'invoice_written_off',
76
- 'invoice_voided',
77
- 'fraudulent_transaction',
78
- 'payment_declined',
79
- 'subscription_cancelled',
80
- 'product_not_available',
81
- 'others',
82
- 'order_resent',
83
- ])
84
- .optional(),
85
- shipped_at: zod_1.z.number().int().optional(),
86
- delivered_at: zod_1.z.number().int().optional(),
87
- tracking_url: zod_1.z.string().max(255).optional(),
88
- tracking_id: zod_1.z.string().max(50).optional(),
89
- shipment_carrier: zod_1.z.string().max(50).optional(),
90
- fulfillment_status: zod_1.z.string().max(50).optional(),
91
- status: zod_1.z
92
- .enum([
93
- 'new',
94
- 'processing',
95
- 'complete',
96
- 'cancelled',
97
- 'voided',
98
- 'queued',
99
- 'awaiting_shipment',
100
- 'on_hold',
101
- 'delivered',
102
- 'shipped',
103
- 'partially_delivered',
104
- 'returned',
105
- ])
106
- .optional(),
107
- shipping_address: UpdateOrderShippingAddressSchema.optional(),
108
- order_line_items: UpdateOrderOrderLineItemsSchema.optional(),
109
- });
110
- exports.UpdateOrderBodySchema = UpdateOrderBodySchema;
111
- //Order.importOrder
112
- const ImportOrderOrderShippingAddressSchema = zod_1.z.object({
113
- first_name: zod_1.z.string().max(150).optional(),
114
- last_name: zod_1.z.string().max(150).optional(),
115
- email: zod_1.z.string().email().max(70).optional(),
116
- company: zod_1.z.string().max(250).optional(),
117
- phone: zod_1.z.string().max(50).optional(),
118
- line1: zod_1.z.string().max(150).optional(),
119
- line2: zod_1.z.string().max(150).optional(),
120
- line3: zod_1.z.string().max(150).optional(),
121
- city: zod_1.z.string().max(50).optional(),
122
- state_code: zod_1.z.string().max(50).optional(),
123
- state: zod_1.z.string().max(50).optional(),
124
- zip: zod_1.z.string().max(20).optional(),
125
- country: zod_1.z.string().max(50).optional(),
126
- validation_status: zod_1.z
127
- .enum(['not_validated', 'valid', 'partially_valid', 'invalid'])
128
- .optional(),
129
- });
130
- const ImportOrderOrderBillingAddressSchema = zod_1.z.object({
131
- first_name: zod_1.z.string().max(150).optional(),
132
- last_name: zod_1.z.string().max(150).optional(),
133
- email: zod_1.z.string().email().max(70).optional(),
134
- company: zod_1.z.string().max(250).optional(),
135
- phone: zod_1.z.string().max(50).optional(),
136
- line1: zod_1.z.string().max(150).optional(),
137
- line2: zod_1.z.string().max(150).optional(),
138
- line3: zod_1.z.string().max(150).optional(),
139
- city: zod_1.z.string().max(50).optional(),
140
- state_code: zod_1.z.string().max(50).optional(),
141
- state: zod_1.z.string().max(50).optional(),
142
- zip: zod_1.z.string().max(20).optional(),
143
- country: zod_1.z.string().max(50).optional(),
144
- validation_status: zod_1.z
145
- .enum(['not_validated', 'valid', 'partially_valid', 'invalid'])
146
- .optional(),
147
- });
148
- const ImportOrderOrderBodySchema = zod_1.z.looseObject({
149
- id: zod_1.z.string().max(40).optional(),
150
- document_number: zod_1.z.string().max(50).optional(),
151
- invoice_id: zod_1.z.string().max(50),
152
- status: zod_1.z.enum([
153
- 'cancelled',
154
- 'queued',
155
- 'awaiting_shipment',
156
- 'on_hold',
157
- 'delivered',
158
- 'shipped',
159
- 'partially_delivered',
160
- 'returned',
161
- ]),
162
- subscription_id: zod_1.z.string().max(50).optional(),
163
- customer_id: zod_1.z.string().max(50).optional(),
164
- created_at: zod_1.z.number().int(),
165
- order_date: zod_1.z.number().int(),
166
- shipping_date: zod_1.z.number().int(),
167
- reference_id: zod_1.z.string().max(50).optional(),
168
- fulfillment_status: zod_1.z.string().max(50).optional(),
169
- note: zod_1.z.string().max(600).optional(),
170
- tracking_id: zod_1.z.string().max(50).optional(),
171
- tracking_url: zod_1.z.string().max(255).optional(),
172
- batch_id: zod_1.z.string().max(50).optional(),
173
- shipment_carrier: zod_1.z.string().max(50).optional(),
174
- shipping_cut_off_date: zod_1.z.number().int().optional(),
175
- delivered_at: zod_1.z.number().int().optional(),
176
- shipped_at: zod_1.z.number().int().optional(),
177
- cancelled_at: zod_1.z.number().int().optional(),
178
- cancellation_reason: zod_1.z
179
- .enum([
180
- 'shipping_cut_off_passed',
181
- 'product_unsatisfactory',
182
- 'third_party_cancellation',
183
- 'product_not_required',
184
- 'delivery_date_missed',
185
- 'alternative_found',
186
- 'invoice_written_off',
187
- 'invoice_voided',
188
- 'fraudulent_transaction',
189
- 'payment_declined',
190
- 'subscription_cancelled',
191
- 'product_not_available',
192
- 'others',
193
- 'order_resent',
194
- ])
195
- .optional(),
196
- refundable_credits_issued: zod_1.z.number().int().min(0).optional(),
197
- shipping_address: ImportOrderOrderShippingAddressSchema.optional(),
198
- billing_address: ImportOrderOrderBillingAddressSchema.optional(),
199
- });
200
- exports.ImportOrderOrderBodySchema = ImportOrderOrderBodySchema;
201
- //Order.cancel
202
- const CancelOrderCreditNoteSchema = zod_1.z.object({
203
- total: zod_1.z.number().int().min(0).optional(),
204
- });
205
- const CancelOrderBodySchema = zod_1.z.looseObject({
206
- cancellation_reason: zod_1.z.enum([
207
- 'shipping_cut_off_passed',
208
- 'product_unsatisfactory',
209
- 'third_party_cancellation',
210
- 'product_not_required',
211
- 'delivery_date_missed',
212
- 'alternative_found',
213
- 'invoice_written_off',
214
- 'invoice_voided',
215
- 'fraudulent_transaction',
216
- 'payment_declined',
217
- 'subscription_cancelled',
218
- 'product_not_available',
219
- 'others',
220
- 'order_resent',
221
- ]),
222
- customer_notes: zod_1.z.string().max(2000).optional(),
223
- comment: zod_1.z.string().max(300).optional(),
224
- cancelled_at: zod_1.z.number().int().optional(),
225
- credit_note: CancelOrderCreditNoteSchema.optional(),
226
- });
227
- exports.CancelOrderBodySchema = CancelOrderBodySchema;
228
- //Order.createRefundableCreditNote
229
- const CreateRefundableCreditNoteOrderCreditNoteSchema = zod_1.z.object({
230
- reason_code: zod_1.z.enum([
231
- 'write_off',
232
- 'subscription_change',
233
- 'subscription_cancellation',
234
- 'subscription_pause',
235
- 'chargeback',
236
- 'product_unsatisfactory',
237
- 'service_unsatisfactory',
238
- 'order_change',
239
- 'order_cancellation',
240
- 'waiver',
241
- 'other',
242
- 'fraudulent',
243
- ]),
244
- total: zod_1.z.number().int().min(0),
245
- });
246
- const CreateRefundableCreditNoteOrderBodySchema = zod_1.z.looseObject({
247
- customer_notes: zod_1.z.string().max(2000).optional(),
248
- comment: zod_1.z.string().max(300).optional(),
249
- credit_note: CreateRefundableCreditNoteOrderCreditNoteSchema.optional(),
250
- });
251
- exports.CreateRefundableCreditNoteOrderBodySchema = CreateRefundableCreditNoteOrderBodySchema;
252
- //Order.reopen
253
- const ReopenOrderBodySchema = zod_1.z.looseObject({
254
- void_cancellation_credit_notes: zod_1.z.boolean().optional(),
255
- });
256
- exports.ReopenOrderBodySchema = ReopenOrderBodySchema;
257
- //Order.ordersForInvoice
258
- const OrdersForInvoiceOrderBodySchema = zod_1.z.looseObject({
259
- limit: zod_1.z.number().int().min(1).max(100).optional(),
260
- offset: zod_1.z.string().max(1000).optional(),
261
- });
262
- exports.OrdersForInvoiceOrderBodySchema = OrdersForInvoiceOrderBodySchema;
263
- //Order.resend
264
- const ResendOrderOrderLineItemsSchema = zod_1.z.object({
265
- id: zod_1.z.array(zod_1.z.string().max(40).optional()).optional(),
266
- fulfillment_quantity: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
267
- });
268
- const ResendOrderBodySchema = zod_1.z.looseObject({
269
- shipping_date: zod_1.z.number().int().optional(),
270
- resend_reason: zod_1.z.string().max(100).optional(),
271
- order_line_items: ResendOrderOrderLineItemsSchema.optional(),
272
- });
273
- exports.ResendOrderBodySchema = ResendOrderBodySchema;
@@ -1,117 +0,0 @@
1
- "use strict";
2
- // Generated Zod schemas: PaymentIntent
3
- // Actions: create, update
4
- // Do not edit manually – regenerate via sdk-generator
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.UpdatePaymentIntentBodySchema = exports.CreatePaymentIntentBodySchema = void 0;
7
- const zod_1 = require("zod");
8
- //PaymentIntent.create
9
- const CreatePaymentIntentBodySchema = zod_1.z.looseObject({
10
- business_entity_id: zod_1.z.string().max(50).optional(),
11
- customer_id: zod_1.z.string().max(50).optional(),
12
- amount: zod_1.z.number().int().min(0),
13
- currency_code: zod_1.z.string().max(3),
14
- gateway_account_id: zod_1.z.string().max(50).optional(),
15
- reference_id: zod_1.z.string().max(200).optional(),
16
- defer_payment_method_type: zod_1.z.boolean().default(false).optional(),
17
- payment_method_type: zod_1.z
18
- .enum([
19
- 'card',
20
- 'ideal',
21
- 'sofort',
22
- 'bancontact',
23
- 'google_pay',
24
- 'dotpay',
25
- 'giropay',
26
- 'apple_pay',
27
- 'upi',
28
- 'netbanking_emandates',
29
- 'paypal_express_checkout',
30
- 'direct_debit',
31
- 'boleto',
32
- 'venmo',
33
- 'amazon_payments',
34
- 'pay_to',
35
- 'faster_payments',
36
- 'sepa_instant_transfer',
37
- 'klarna_pay_now',
38
- 'online_banking_poland',
39
- 'payconiq_by_bancontact',
40
- 'electronic_payment_standard',
41
- 'kbc_payment_button',
42
- 'pay_by_bank',
43
- 'trustly',
44
- 'stablecoin',
45
- 'kakao_pay',
46
- 'naver_pay',
47
- 'revolut_pay',
48
- 'cash_app_pay',
49
- 'wechat_pay',
50
- 'alipay',
51
- 'pix',
52
- 'twint',
53
- 'go_pay',
54
- 'grab_pay',
55
- 'pay_co',
56
- 'after_pay',
57
- 'swish',
58
- 'payme',
59
- ])
60
- .optional(),
61
- success_url: zod_1.z.string().max(250).optional(),
62
- failure_url: zod_1.z.string().max(250).optional(),
63
- });
64
- exports.CreatePaymentIntentBodySchema = CreatePaymentIntentBodySchema;
65
- //PaymentIntent.update
66
- const UpdatePaymentIntentBodySchema = zod_1.z.looseObject({
67
- amount: zod_1.z.number().int().min(0).optional(),
68
- currency_code: zod_1.z.string().max(3).optional(),
69
- gateway_account_id: zod_1.z.string().max(50).optional(),
70
- payment_method_type: zod_1.z
71
- .enum([
72
- 'card',
73
- 'ideal',
74
- 'sofort',
75
- 'bancontact',
76
- 'google_pay',
77
- 'dotpay',
78
- 'giropay',
79
- 'apple_pay',
80
- 'upi',
81
- 'netbanking_emandates',
82
- 'paypal_express_checkout',
83
- 'direct_debit',
84
- 'boleto',
85
- 'venmo',
86
- 'amazon_payments',
87
- 'pay_to',
88
- 'faster_payments',
89
- 'sepa_instant_transfer',
90
- 'klarna_pay_now',
91
- 'online_banking_poland',
92
- 'payconiq_by_bancontact',
93
- 'electronic_payment_standard',
94
- 'kbc_payment_button',
95
- 'pay_by_bank',
96
- 'trustly',
97
- 'stablecoin',
98
- 'kakao_pay',
99
- 'naver_pay',
100
- 'revolut_pay',
101
- 'cash_app_pay',
102
- 'wechat_pay',
103
- 'alipay',
104
- 'pix',
105
- 'twint',
106
- 'go_pay',
107
- 'grab_pay',
108
- 'pay_co',
109
- 'after_pay',
110
- 'swish',
111
- 'payme',
112
- ])
113
- .optional(),
114
- success_url: zod_1.z.string().max(250).optional(),
115
- failure_url: zod_1.z.string().max(250).optional(),
116
- });
117
- exports.UpdatePaymentIntentBodySchema = UpdatePaymentIntentBodySchema;
@@ -1,20 +0,0 @@
1
- "use strict";
2
- // Generated Zod schemas: PaymentScheduleScheme
3
- // Actions: create
4
- // Do not edit manually – regenerate via sdk-generator
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.CreatePaymentScheduleSchemeBodySchema = void 0;
7
- const zod_1 = require("zod");
8
- //PaymentScheduleScheme.create
9
- const CreatePaymentScheduleSchemeFlexibleSchedulesSchema = zod_1.z.object({
10
- period: zod_1.z.array(zod_1.z.number().int().min(0).max(52).optional()).optional(),
11
- amount_percentage: zod_1.z.array(zod_1.z.number().min(1).max(100).optional()).optional(),
12
- });
13
- const CreatePaymentScheduleSchemeBodySchema = zod_1.z.looseObject({
14
- number_of_schedules: zod_1.z.number().int().min(1).max(52),
15
- period_unit: zod_1.z.enum(['day', 'week', 'month']),
16
- period: zod_1.z.number().int().min(1).max(30).optional(),
17
- name: zod_1.z.string().max(100),
18
- flexible_schedules: CreatePaymentScheduleSchemeFlexibleSchedulesSchema.optional(),
19
- });
20
- exports.CreatePaymentScheduleSchemeBodySchema = CreatePaymentScheduleSchemeBodySchema;