xendit-fn 1.0.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 (47) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +442 -0
  3. package/lib/index.cjs +1588 -0
  4. package/lib/index.d.cts +9574 -0
  5. package/lib/index.d.ts +7 -0
  6. package/lib/index.d.ts.map +1 -0
  7. package/lib/index.esm.d.ts +9574 -0
  8. package/lib/index.esm.js +1544 -0
  9. package/lib/sdk/axios.d.ts +3 -0
  10. package/lib/sdk/axios.d.ts.map +1 -0
  11. package/lib/sdk/card/index.d.ts +2 -0
  12. package/lib/sdk/card/index.d.ts.map +1 -0
  13. package/lib/sdk/card/schema.d.ts +586 -0
  14. package/lib/sdk/card/schema.d.ts.map +1 -0
  15. package/lib/sdk/common.d.ts +28 -0
  16. package/lib/sdk/common.d.ts.map +1 -0
  17. package/lib/sdk/customer/index.d.ts +7 -0
  18. package/lib/sdk/customer/index.d.ts.map +1 -0
  19. package/lib/sdk/customer/schema.d.ts +5933 -0
  20. package/lib/sdk/customer/schema.d.ts.map +1 -0
  21. package/lib/sdk/ewallet/create.d.ts +173 -0
  22. package/lib/sdk/ewallet/create.d.ts.map +1 -0
  23. package/lib/sdk/ewallet/schema.d.ts +783 -0
  24. package/lib/sdk/ewallet/schema.d.ts.map +1 -0
  25. package/lib/sdk/index.d.ts +2201 -0
  26. package/lib/sdk/index.d.ts.map +1 -0
  27. package/lib/sdk/invoice/index.d.ts +8 -0
  28. package/lib/sdk/invoice/index.d.ts.map +1 -0
  29. package/lib/sdk/invoice/schema.d.ts +2198 -0
  30. package/lib/sdk/invoice/schema.d.ts.map +1 -0
  31. package/lib/sdk/payment-method/index.d.ts +7 -0
  32. package/lib/sdk/payment-method/index.d.ts.map +1 -0
  33. package/lib/sdk/payment-method/schema.d.ts +990 -0
  34. package/lib/sdk/payment-method/schema.d.ts.map +1 -0
  35. package/lib/utils/errors.d.ts +58 -0
  36. package/lib/utils/errors.d.ts.map +1 -0
  37. package/lib/utils/index.d.ts +6 -0
  38. package/lib/utils/index.d.ts.map +1 -0
  39. package/lib/utils/pagination.d.ts +134 -0
  40. package/lib/utils/pagination.d.ts.map +1 -0
  41. package/lib/utils/rate-limit.d.ts +90 -0
  42. package/lib/utils/rate-limit.d.ts.map +1 -0
  43. package/lib/utils/type-guards.d.ts +13 -0
  44. package/lib/utils/type-guards.d.ts.map +1 -0
  45. package/lib/utils/webhook.d.ts +101 -0
  46. package/lib/utils/webhook.d.ts.map +1 -0
  47. package/package.json +83 -0
@@ -0,0 +1,2198 @@
1
+ import { z } from "zod";
2
+ export declare const InvoiceStatusSchema: z.ZodUnion<[z.ZodLiteral<"PENDING">, z.ZodLiteral<"PAID">, z.ZodLiteral<"SETTLED">, z.ZodLiteral<"EXPIRED">]>;
3
+ export type InvoiceStatus = z.infer<typeof InvoiceStatusSchema>;
4
+ export declare const PayerEmailSchema: z.ZodObject<{
5
+ email: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ email: string;
8
+ }, {
9
+ email: string;
10
+ }>;
11
+ export type PayerEmail = z.infer<typeof PayerEmailSchema>;
12
+ export declare const InvoiceItemSchema: z.ZodObject<{
13
+ name: z.ZodString;
14
+ quantity: z.ZodNumber;
15
+ price: z.ZodNumber;
16
+ category: z.ZodOptional<z.ZodString>;
17
+ url: z.ZodOptional<z.ZodString>;
18
+ }, "strip", z.ZodTypeAny, {
19
+ name: string;
20
+ price: number;
21
+ quantity: number;
22
+ url?: string | undefined;
23
+ category?: string | undefined;
24
+ }, {
25
+ name: string;
26
+ price: number;
27
+ quantity: number;
28
+ url?: string | undefined;
29
+ category?: string | undefined;
30
+ }>;
31
+ export type InvoiceItem = z.infer<typeof InvoiceItemSchema>;
32
+ export declare const CustomerNotificationPreferenceSchema: z.ZodObject<{
33
+ invoice_created: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"whatsapp">, z.ZodLiteral<"sms">, z.ZodLiteral<"email">]>, "many">>;
34
+ invoice_reminder: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"whatsapp">, z.ZodLiteral<"sms">, z.ZodLiteral<"email">]>, "many">>;
35
+ invoice_paid: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"whatsapp">, z.ZodLiteral<"sms">, z.ZodLiteral<"email">]>, "many">>;
36
+ invoice_expired: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"whatsapp">, z.ZodLiteral<"sms">, z.ZodLiteral<"email">]>, "many">>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ invoice_created?: ("email" | "whatsapp" | "sms")[] | undefined;
39
+ invoice_reminder?: ("email" | "whatsapp" | "sms")[] | undefined;
40
+ invoice_paid?: ("email" | "whatsapp" | "sms")[] | undefined;
41
+ invoice_expired?: ("email" | "whatsapp" | "sms")[] | undefined;
42
+ }, {
43
+ invoice_created?: ("email" | "whatsapp" | "sms")[] | undefined;
44
+ invoice_reminder?: ("email" | "whatsapp" | "sms")[] | undefined;
45
+ invoice_paid?: ("email" | "whatsapp" | "sms")[] | undefined;
46
+ invoice_expired?: ("email" | "whatsapp" | "sms")[] | undefined;
47
+ }>;
48
+ export declare const CustomerDetailsSchema: z.ZodObject<{
49
+ customer_name: z.ZodOptional<z.ZodString>;
50
+ customer_email: z.ZodOptional<z.ZodString>;
51
+ customer_phone: z.ZodOptional<z.ZodString>;
52
+ billing_address: z.ZodOptional<z.ZodObject<{
53
+ first_name: z.ZodOptional<z.ZodString>;
54
+ last_name: z.ZodOptional<z.ZodString>;
55
+ address: z.ZodOptional<z.ZodString>;
56
+ city: z.ZodOptional<z.ZodString>;
57
+ postal_code: z.ZodOptional<z.ZodString>;
58
+ phone: z.ZodOptional<z.ZodString>;
59
+ country_code: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"PH">, z.ZodLiteral<"ID">, z.ZodLiteral<"MY">, z.ZodLiteral<"TH">, z.ZodLiteral<"VN">]>>;
60
+ }, "strip", z.ZodTypeAny, {
61
+ city?: string | undefined;
62
+ postal_code?: string | undefined;
63
+ first_name?: string | undefined;
64
+ last_name?: string | undefined;
65
+ address?: string | undefined;
66
+ phone?: string | undefined;
67
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
68
+ }, {
69
+ city?: string | undefined;
70
+ postal_code?: string | undefined;
71
+ first_name?: string | undefined;
72
+ last_name?: string | undefined;
73
+ address?: string | undefined;
74
+ phone?: string | undefined;
75
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
76
+ }>>;
77
+ shipping_address: z.ZodOptional<z.ZodObject<{
78
+ first_name: z.ZodOptional<z.ZodString>;
79
+ last_name: z.ZodOptional<z.ZodString>;
80
+ address: z.ZodOptional<z.ZodString>;
81
+ city: z.ZodOptional<z.ZodString>;
82
+ postal_code: z.ZodOptional<z.ZodString>;
83
+ phone: z.ZodOptional<z.ZodString>;
84
+ country_code: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"PH">, z.ZodLiteral<"ID">, z.ZodLiteral<"MY">, z.ZodLiteral<"TH">, z.ZodLiteral<"VN">]>>;
85
+ }, "strip", z.ZodTypeAny, {
86
+ city?: string | undefined;
87
+ postal_code?: string | undefined;
88
+ first_name?: string | undefined;
89
+ last_name?: string | undefined;
90
+ address?: string | undefined;
91
+ phone?: string | undefined;
92
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
93
+ }, {
94
+ city?: string | undefined;
95
+ postal_code?: string | undefined;
96
+ first_name?: string | undefined;
97
+ last_name?: string | undefined;
98
+ address?: string | undefined;
99
+ phone?: string | undefined;
100
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
101
+ }>>;
102
+ }, "strip", z.ZodTypeAny, {
103
+ customer_name?: string | undefined;
104
+ customer_email?: string | undefined;
105
+ customer_phone?: string | undefined;
106
+ billing_address?: {
107
+ city?: string | undefined;
108
+ postal_code?: string | undefined;
109
+ first_name?: string | undefined;
110
+ last_name?: string | undefined;
111
+ address?: string | undefined;
112
+ phone?: string | undefined;
113
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
114
+ } | undefined;
115
+ shipping_address?: {
116
+ city?: string | undefined;
117
+ postal_code?: string | undefined;
118
+ first_name?: string | undefined;
119
+ last_name?: string | undefined;
120
+ address?: string | undefined;
121
+ phone?: string | undefined;
122
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
123
+ } | undefined;
124
+ }, {
125
+ customer_name?: string | undefined;
126
+ customer_email?: string | undefined;
127
+ customer_phone?: string | undefined;
128
+ billing_address?: {
129
+ city?: string | undefined;
130
+ postal_code?: string | undefined;
131
+ first_name?: string | undefined;
132
+ last_name?: string | undefined;
133
+ address?: string | undefined;
134
+ phone?: string | undefined;
135
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
136
+ } | undefined;
137
+ shipping_address?: {
138
+ city?: string | undefined;
139
+ postal_code?: string | undefined;
140
+ first_name?: string | undefined;
141
+ last_name?: string | undefined;
142
+ address?: string | undefined;
143
+ phone?: string | undefined;
144
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
145
+ } | undefined;
146
+ }>;
147
+ export type CustomerDetails = z.infer<typeof CustomerDetailsSchema>;
148
+ export declare const FeeSchema: z.ZodObject<{
149
+ type: z.ZodString;
150
+ value: z.ZodNumber;
151
+ }, "strip", z.ZodTypeAny, {
152
+ value: number;
153
+ type: string;
154
+ }, {
155
+ value: number;
156
+ type: string;
157
+ }>;
158
+ export declare const AvailableBankSchema: z.ZodObject<{
159
+ bank_code: z.ZodString;
160
+ collection_type: z.ZodString;
161
+ bank_branch: z.ZodString;
162
+ transfer_amount: z.ZodNumber;
163
+ bank_account_number: z.ZodString;
164
+ account_holder_name: z.ZodString;
165
+ identity_amount: z.ZodOptional<z.ZodNumber>;
166
+ }, "strip", z.ZodTypeAny, {
167
+ account_holder_name: string;
168
+ bank_code: string;
169
+ collection_type: string;
170
+ bank_branch: string;
171
+ transfer_amount: number;
172
+ bank_account_number: string;
173
+ identity_amount?: number | undefined;
174
+ }, {
175
+ account_holder_name: string;
176
+ bank_code: string;
177
+ collection_type: string;
178
+ bank_branch: string;
179
+ transfer_amount: number;
180
+ bank_account_number: string;
181
+ identity_amount?: number | undefined;
182
+ }>;
183
+ export declare const AvailableEwalletSchema: z.ZodObject<{
184
+ ewallet_type: z.ZodString;
185
+ }, "strip", z.ZodTypeAny, {
186
+ ewallet_type: string;
187
+ }, {
188
+ ewallet_type: string;
189
+ }>;
190
+ export declare const AvailableRetailOutletSchema: z.ZodObject<{
191
+ retail_outlet_name: z.ZodString;
192
+ }, "strip", z.ZodTypeAny, {
193
+ retail_outlet_name: string;
194
+ }, {
195
+ retail_outlet_name: string;
196
+ }>;
197
+ export declare const CreateInvoiceSchema: z.ZodObject<{
198
+ external_id: z.ZodString;
199
+ payer_email: z.ZodString;
200
+ description: z.ZodString;
201
+ amount: z.ZodNumber;
202
+ invoice_duration: z.ZodOptional<z.ZodNumber>;
203
+ callback_virtual_account_id: z.ZodOptional<z.ZodString>;
204
+ should_exclude_credit_card: z.ZodOptional<z.ZodBoolean>;
205
+ should_send_email: z.ZodOptional<z.ZodBoolean>;
206
+ customer_name: z.ZodOptional<z.ZodString>;
207
+ customer_email: z.ZodOptional<z.ZodString>;
208
+ customer_phone: z.ZodOptional<z.ZodString>;
209
+ customer: z.ZodOptional<z.ZodObject<{
210
+ customer_name: z.ZodOptional<z.ZodString>;
211
+ customer_email: z.ZodOptional<z.ZodString>;
212
+ customer_phone: z.ZodOptional<z.ZodString>;
213
+ billing_address: z.ZodOptional<z.ZodObject<{
214
+ first_name: z.ZodOptional<z.ZodString>;
215
+ last_name: z.ZodOptional<z.ZodString>;
216
+ address: z.ZodOptional<z.ZodString>;
217
+ city: z.ZodOptional<z.ZodString>;
218
+ postal_code: z.ZodOptional<z.ZodString>;
219
+ phone: z.ZodOptional<z.ZodString>;
220
+ country_code: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"PH">, z.ZodLiteral<"ID">, z.ZodLiteral<"MY">, z.ZodLiteral<"TH">, z.ZodLiteral<"VN">]>>;
221
+ }, "strip", z.ZodTypeAny, {
222
+ city?: string | undefined;
223
+ postal_code?: string | undefined;
224
+ first_name?: string | undefined;
225
+ last_name?: string | undefined;
226
+ address?: string | undefined;
227
+ phone?: string | undefined;
228
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
229
+ }, {
230
+ city?: string | undefined;
231
+ postal_code?: string | undefined;
232
+ first_name?: string | undefined;
233
+ last_name?: string | undefined;
234
+ address?: string | undefined;
235
+ phone?: string | undefined;
236
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
237
+ }>>;
238
+ shipping_address: z.ZodOptional<z.ZodObject<{
239
+ first_name: z.ZodOptional<z.ZodString>;
240
+ last_name: z.ZodOptional<z.ZodString>;
241
+ address: z.ZodOptional<z.ZodString>;
242
+ city: z.ZodOptional<z.ZodString>;
243
+ postal_code: z.ZodOptional<z.ZodString>;
244
+ phone: z.ZodOptional<z.ZodString>;
245
+ country_code: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"PH">, z.ZodLiteral<"ID">, z.ZodLiteral<"MY">, z.ZodLiteral<"TH">, z.ZodLiteral<"VN">]>>;
246
+ }, "strip", z.ZodTypeAny, {
247
+ city?: string | undefined;
248
+ postal_code?: string | undefined;
249
+ first_name?: string | undefined;
250
+ last_name?: string | undefined;
251
+ address?: string | undefined;
252
+ phone?: string | undefined;
253
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
254
+ }, {
255
+ city?: string | undefined;
256
+ postal_code?: string | undefined;
257
+ first_name?: string | undefined;
258
+ last_name?: string | undefined;
259
+ address?: string | undefined;
260
+ phone?: string | undefined;
261
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
262
+ }>>;
263
+ }, "strip", z.ZodTypeAny, {
264
+ customer_name?: string | undefined;
265
+ customer_email?: string | undefined;
266
+ customer_phone?: string | undefined;
267
+ billing_address?: {
268
+ city?: string | undefined;
269
+ postal_code?: string | undefined;
270
+ first_name?: string | undefined;
271
+ last_name?: string | undefined;
272
+ address?: string | undefined;
273
+ phone?: string | undefined;
274
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
275
+ } | undefined;
276
+ shipping_address?: {
277
+ city?: string | undefined;
278
+ postal_code?: string | undefined;
279
+ first_name?: string | undefined;
280
+ last_name?: string | undefined;
281
+ address?: string | undefined;
282
+ phone?: string | undefined;
283
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
284
+ } | undefined;
285
+ }, {
286
+ customer_name?: string | undefined;
287
+ customer_email?: string | undefined;
288
+ customer_phone?: string | undefined;
289
+ billing_address?: {
290
+ city?: string | undefined;
291
+ postal_code?: string | undefined;
292
+ first_name?: string | undefined;
293
+ last_name?: string | undefined;
294
+ address?: string | undefined;
295
+ phone?: string | undefined;
296
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
297
+ } | undefined;
298
+ shipping_address?: {
299
+ city?: string | undefined;
300
+ postal_code?: string | undefined;
301
+ first_name?: string | undefined;
302
+ last_name?: string | undefined;
303
+ address?: string | undefined;
304
+ phone?: string | undefined;
305
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
306
+ } | undefined;
307
+ }>>;
308
+ customer_notification_preference: z.ZodOptional<z.ZodObject<{
309
+ invoice_created: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"whatsapp">, z.ZodLiteral<"sms">, z.ZodLiteral<"email">]>, "many">>;
310
+ invoice_reminder: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"whatsapp">, z.ZodLiteral<"sms">, z.ZodLiteral<"email">]>, "many">>;
311
+ invoice_paid: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"whatsapp">, z.ZodLiteral<"sms">, z.ZodLiteral<"email">]>, "many">>;
312
+ invoice_expired: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"whatsapp">, z.ZodLiteral<"sms">, z.ZodLiteral<"email">]>, "many">>;
313
+ }, "strip", z.ZodTypeAny, {
314
+ invoice_created?: ("email" | "whatsapp" | "sms")[] | undefined;
315
+ invoice_reminder?: ("email" | "whatsapp" | "sms")[] | undefined;
316
+ invoice_paid?: ("email" | "whatsapp" | "sms")[] | undefined;
317
+ invoice_expired?: ("email" | "whatsapp" | "sms")[] | undefined;
318
+ }, {
319
+ invoice_created?: ("email" | "whatsapp" | "sms")[] | undefined;
320
+ invoice_reminder?: ("email" | "whatsapp" | "sms")[] | undefined;
321
+ invoice_paid?: ("email" | "whatsapp" | "sms")[] | undefined;
322
+ invoice_expired?: ("email" | "whatsapp" | "sms")[] | undefined;
323
+ }>>;
324
+ success_redirect_url: z.ZodOptional<z.ZodString>;
325
+ failure_redirect_url: z.ZodOptional<z.ZodString>;
326
+ payment_methods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
327
+ mid_label: z.ZodOptional<z.ZodString>;
328
+ should_authenticate_credit_card: z.ZodOptional<z.ZodBoolean>;
329
+ currency: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"PHP">, z.ZodLiteral<"IDR">, z.ZodLiteral<"MYR">, z.ZodLiteral<"THB">, z.ZodLiteral<"VND">]>>;
330
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
331
+ name: z.ZodString;
332
+ quantity: z.ZodNumber;
333
+ price: z.ZodNumber;
334
+ category: z.ZodOptional<z.ZodString>;
335
+ url: z.ZodOptional<z.ZodString>;
336
+ }, "strip", z.ZodTypeAny, {
337
+ name: string;
338
+ price: number;
339
+ quantity: number;
340
+ url?: string | undefined;
341
+ category?: string | undefined;
342
+ }, {
343
+ name: string;
344
+ price: number;
345
+ quantity: number;
346
+ url?: string | undefined;
347
+ category?: string | undefined;
348
+ }>, "many">>;
349
+ fixed_va: z.ZodOptional<z.ZodBoolean>;
350
+ reminder_time_unit: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"days">, z.ZodLiteral<"hours">, z.ZodLiteral<"minutes">]>>;
351
+ reminder_time: z.ZodOptional<z.ZodNumber>;
352
+ locale: z.ZodOptional<z.ZodString>;
353
+ fees: z.ZodOptional<z.ZodArray<z.ZodObject<{
354
+ type: z.ZodString;
355
+ value: z.ZodNumber;
356
+ }, "strip", z.ZodTypeAny, {
357
+ value: number;
358
+ type: string;
359
+ }, {
360
+ value: number;
361
+ type: string;
362
+ }>, "many">>;
363
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
364
+ }, "strip", z.ZodTypeAny, {
365
+ description: string;
366
+ amount: number;
367
+ external_id: string;
368
+ payer_email: string;
369
+ currency?: "PHP" | "IDR" | "MYR" | "THB" | "VND" | undefined;
370
+ metadata?: Record<string, unknown> | undefined;
371
+ success_redirect_url?: string | undefined;
372
+ failure_redirect_url?: string | undefined;
373
+ customer_name?: string | undefined;
374
+ customer_email?: string | undefined;
375
+ customer_phone?: string | undefined;
376
+ invoice_duration?: number | undefined;
377
+ callback_virtual_account_id?: string | undefined;
378
+ should_exclude_credit_card?: boolean | undefined;
379
+ should_send_email?: boolean | undefined;
380
+ customer?: {
381
+ customer_name?: string | undefined;
382
+ customer_email?: string | undefined;
383
+ customer_phone?: string | undefined;
384
+ billing_address?: {
385
+ city?: string | undefined;
386
+ postal_code?: string | undefined;
387
+ first_name?: string | undefined;
388
+ last_name?: string | undefined;
389
+ address?: string | undefined;
390
+ phone?: string | undefined;
391
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
392
+ } | undefined;
393
+ shipping_address?: {
394
+ city?: string | undefined;
395
+ postal_code?: string | undefined;
396
+ first_name?: string | undefined;
397
+ last_name?: string | undefined;
398
+ address?: string | undefined;
399
+ phone?: string | undefined;
400
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
401
+ } | undefined;
402
+ } | undefined;
403
+ customer_notification_preference?: {
404
+ invoice_created?: ("email" | "whatsapp" | "sms")[] | undefined;
405
+ invoice_reminder?: ("email" | "whatsapp" | "sms")[] | undefined;
406
+ invoice_paid?: ("email" | "whatsapp" | "sms")[] | undefined;
407
+ invoice_expired?: ("email" | "whatsapp" | "sms")[] | undefined;
408
+ } | undefined;
409
+ payment_methods?: string[] | undefined;
410
+ mid_label?: string | undefined;
411
+ should_authenticate_credit_card?: boolean | undefined;
412
+ items?: {
413
+ name: string;
414
+ price: number;
415
+ quantity: number;
416
+ url?: string | undefined;
417
+ category?: string | undefined;
418
+ }[] | undefined;
419
+ fixed_va?: boolean | undefined;
420
+ reminder_time_unit?: "days" | "hours" | "minutes" | undefined;
421
+ reminder_time?: number | undefined;
422
+ locale?: string | undefined;
423
+ fees?: {
424
+ value: number;
425
+ type: string;
426
+ }[] | undefined;
427
+ }, {
428
+ description: string;
429
+ amount: number;
430
+ external_id: string;
431
+ payer_email: string;
432
+ currency?: "PHP" | "IDR" | "MYR" | "THB" | "VND" | undefined;
433
+ metadata?: Record<string, unknown> | undefined;
434
+ success_redirect_url?: string | undefined;
435
+ failure_redirect_url?: string | undefined;
436
+ customer_name?: string | undefined;
437
+ customer_email?: string | undefined;
438
+ customer_phone?: string | undefined;
439
+ invoice_duration?: number | undefined;
440
+ callback_virtual_account_id?: string | undefined;
441
+ should_exclude_credit_card?: boolean | undefined;
442
+ should_send_email?: boolean | undefined;
443
+ customer?: {
444
+ customer_name?: string | undefined;
445
+ customer_email?: string | undefined;
446
+ customer_phone?: string | undefined;
447
+ billing_address?: {
448
+ city?: string | undefined;
449
+ postal_code?: string | undefined;
450
+ first_name?: string | undefined;
451
+ last_name?: string | undefined;
452
+ address?: string | undefined;
453
+ phone?: string | undefined;
454
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
455
+ } | undefined;
456
+ shipping_address?: {
457
+ city?: string | undefined;
458
+ postal_code?: string | undefined;
459
+ first_name?: string | undefined;
460
+ last_name?: string | undefined;
461
+ address?: string | undefined;
462
+ phone?: string | undefined;
463
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
464
+ } | undefined;
465
+ } | undefined;
466
+ customer_notification_preference?: {
467
+ invoice_created?: ("email" | "whatsapp" | "sms")[] | undefined;
468
+ invoice_reminder?: ("email" | "whatsapp" | "sms")[] | undefined;
469
+ invoice_paid?: ("email" | "whatsapp" | "sms")[] | undefined;
470
+ invoice_expired?: ("email" | "whatsapp" | "sms")[] | undefined;
471
+ } | undefined;
472
+ payment_methods?: string[] | undefined;
473
+ mid_label?: string | undefined;
474
+ should_authenticate_credit_card?: boolean | undefined;
475
+ items?: {
476
+ name: string;
477
+ price: number;
478
+ quantity: number;
479
+ url?: string | undefined;
480
+ category?: string | undefined;
481
+ }[] | undefined;
482
+ fixed_va?: boolean | undefined;
483
+ reminder_time_unit?: "days" | "hours" | "minutes" | undefined;
484
+ reminder_time?: number | undefined;
485
+ locale?: string | undefined;
486
+ fees?: {
487
+ value: number;
488
+ type: string;
489
+ }[] | undefined;
490
+ }>;
491
+ export type CreateInvoice = z.infer<typeof CreateInvoiceSchema>;
492
+ export declare const UpdateInvoiceSchema: z.ZodObject<{
493
+ should_send_email: z.ZodOptional<z.ZodBoolean>;
494
+ customer_name: z.ZodOptional<z.ZodString>;
495
+ customer_email: z.ZodOptional<z.ZodString>;
496
+ customer_phone: z.ZodOptional<z.ZodString>;
497
+ customer: z.ZodOptional<z.ZodObject<{
498
+ customer_name: z.ZodOptional<z.ZodString>;
499
+ customer_email: z.ZodOptional<z.ZodString>;
500
+ customer_phone: z.ZodOptional<z.ZodString>;
501
+ billing_address: z.ZodOptional<z.ZodObject<{
502
+ first_name: z.ZodOptional<z.ZodString>;
503
+ last_name: z.ZodOptional<z.ZodString>;
504
+ address: z.ZodOptional<z.ZodString>;
505
+ city: z.ZodOptional<z.ZodString>;
506
+ postal_code: z.ZodOptional<z.ZodString>;
507
+ phone: z.ZodOptional<z.ZodString>;
508
+ country_code: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"PH">, z.ZodLiteral<"ID">, z.ZodLiteral<"MY">, z.ZodLiteral<"TH">, z.ZodLiteral<"VN">]>>;
509
+ }, "strip", z.ZodTypeAny, {
510
+ city?: string | undefined;
511
+ postal_code?: string | undefined;
512
+ first_name?: string | undefined;
513
+ last_name?: string | undefined;
514
+ address?: string | undefined;
515
+ phone?: string | undefined;
516
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
517
+ }, {
518
+ city?: string | undefined;
519
+ postal_code?: string | undefined;
520
+ first_name?: string | undefined;
521
+ last_name?: string | undefined;
522
+ address?: string | undefined;
523
+ phone?: string | undefined;
524
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
525
+ }>>;
526
+ shipping_address: z.ZodOptional<z.ZodObject<{
527
+ first_name: z.ZodOptional<z.ZodString>;
528
+ last_name: z.ZodOptional<z.ZodString>;
529
+ address: z.ZodOptional<z.ZodString>;
530
+ city: z.ZodOptional<z.ZodString>;
531
+ postal_code: z.ZodOptional<z.ZodString>;
532
+ phone: z.ZodOptional<z.ZodString>;
533
+ country_code: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"PH">, z.ZodLiteral<"ID">, z.ZodLiteral<"MY">, z.ZodLiteral<"TH">, z.ZodLiteral<"VN">]>>;
534
+ }, "strip", z.ZodTypeAny, {
535
+ city?: string | undefined;
536
+ postal_code?: string | undefined;
537
+ first_name?: string | undefined;
538
+ last_name?: string | undefined;
539
+ address?: string | undefined;
540
+ phone?: string | undefined;
541
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
542
+ }, {
543
+ city?: string | undefined;
544
+ postal_code?: string | undefined;
545
+ first_name?: string | undefined;
546
+ last_name?: string | undefined;
547
+ address?: string | undefined;
548
+ phone?: string | undefined;
549
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
550
+ }>>;
551
+ }, "strip", z.ZodTypeAny, {
552
+ customer_name?: string | undefined;
553
+ customer_email?: string | undefined;
554
+ customer_phone?: string | undefined;
555
+ billing_address?: {
556
+ city?: string | undefined;
557
+ postal_code?: string | undefined;
558
+ first_name?: string | undefined;
559
+ last_name?: string | undefined;
560
+ address?: string | undefined;
561
+ phone?: string | undefined;
562
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
563
+ } | undefined;
564
+ shipping_address?: {
565
+ city?: string | undefined;
566
+ postal_code?: string | undefined;
567
+ first_name?: string | undefined;
568
+ last_name?: string | undefined;
569
+ address?: string | undefined;
570
+ phone?: string | undefined;
571
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
572
+ } | undefined;
573
+ }, {
574
+ customer_name?: string | undefined;
575
+ customer_email?: string | undefined;
576
+ customer_phone?: string | undefined;
577
+ billing_address?: {
578
+ city?: string | undefined;
579
+ postal_code?: string | undefined;
580
+ first_name?: string | undefined;
581
+ last_name?: string | undefined;
582
+ address?: string | undefined;
583
+ phone?: string | undefined;
584
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
585
+ } | undefined;
586
+ shipping_address?: {
587
+ city?: string | undefined;
588
+ postal_code?: string | undefined;
589
+ first_name?: string | undefined;
590
+ last_name?: string | undefined;
591
+ address?: string | undefined;
592
+ phone?: string | undefined;
593
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
594
+ } | undefined;
595
+ }>>;
596
+ customer_notification_preference: z.ZodOptional<z.ZodObject<{
597
+ invoice_created: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"whatsapp">, z.ZodLiteral<"sms">, z.ZodLiteral<"email">]>, "many">>;
598
+ invoice_reminder: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"whatsapp">, z.ZodLiteral<"sms">, z.ZodLiteral<"email">]>, "many">>;
599
+ invoice_paid: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"whatsapp">, z.ZodLiteral<"sms">, z.ZodLiteral<"email">]>, "many">>;
600
+ invoice_expired: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"whatsapp">, z.ZodLiteral<"sms">, z.ZodLiteral<"email">]>, "many">>;
601
+ }, "strip", z.ZodTypeAny, {
602
+ invoice_created?: ("email" | "whatsapp" | "sms")[] | undefined;
603
+ invoice_reminder?: ("email" | "whatsapp" | "sms")[] | undefined;
604
+ invoice_paid?: ("email" | "whatsapp" | "sms")[] | undefined;
605
+ invoice_expired?: ("email" | "whatsapp" | "sms")[] | undefined;
606
+ }, {
607
+ invoice_created?: ("email" | "whatsapp" | "sms")[] | undefined;
608
+ invoice_reminder?: ("email" | "whatsapp" | "sms")[] | undefined;
609
+ invoice_paid?: ("email" | "whatsapp" | "sms")[] | undefined;
610
+ invoice_expired?: ("email" | "whatsapp" | "sms")[] | undefined;
611
+ }>>;
612
+ success_redirect_url: z.ZodOptional<z.ZodString>;
613
+ failure_redirect_url: z.ZodOptional<z.ZodString>;
614
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
615
+ name: z.ZodString;
616
+ quantity: z.ZodNumber;
617
+ price: z.ZodNumber;
618
+ category: z.ZodOptional<z.ZodString>;
619
+ url: z.ZodOptional<z.ZodString>;
620
+ }, "strip", z.ZodTypeAny, {
621
+ name: string;
622
+ price: number;
623
+ quantity: number;
624
+ url?: string | undefined;
625
+ category?: string | undefined;
626
+ }, {
627
+ name: string;
628
+ price: number;
629
+ quantity: number;
630
+ url?: string | undefined;
631
+ category?: string | undefined;
632
+ }>, "many">>;
633
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
634
+ }, "strip", z.ZodTypeAny, {
635
+ metadata?: Record<string, unknown> | undefined;
636
+ success_redirect_url?: string | undefined;
637
+ failure_redirect_url?: string | undefined;
638
+ customer_name?: string | undefined;
639
+ customer_email?: string | undefined;
640
+ customer_phone?: string | undefined;
641
+ should_send_email?: boolean | undefined;
642
+ customer?: {
643
+ customer_name?: string | undefined;
644
+ customer_email?: string | undefined;
645
+ customer_phone?: string | undefined;
646
+ billing_address?: {
647
+ city?: string | undefined;
648
+ postal_code?: string | undefined;
649
+ first_name?: string | undefined;
650
+ last_name?: string | undefined;
651
+ address?: string | undefined;
652
+ phone?: string | undefined;
653
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
654
+ } | undefined;
655
+ shipping_address?: {
656
+ city?: string | undefined;
657
+ postal_code?: string | undefined;
658
+ first_name?: string | undefined;
659
+ last_name?: string | undefined;
660
+ address?: string | undefined;
661
+ phone?: string | undefined;
662
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
663
+ } | undefined;
664
+ } | undefined;
665
+ customer_notification_preference?: {
666
+ invoice_created?: ("email" | "whatsapp" | "sms")[] | undefined;
667
+ invoice_reminder?: ("email" | "whatsapp" | "sms")[] | undefined;
668
+ invoice_paid?: ("email" | "whatsapp" | "sms")[] | undefined;
669
+ invoice_expired?: ("email" | "whatsapp" | "sms")[] | undefined;
670
+ } | undefined;
671
+ items?: {
672
+ name: string;
673
+ price: number;
674
+ quantity: number;
675
+ url?: string | undefined;
676
+ category?: string | undefined;
677
+ }[] | undefined;
678
+ }, {
679
+ metadata?: Record<string, unknown> | undefined;
680
+ success_redirect_url?: string | undefined;
681
+ failure_redirect_url?: string | undefined;
682
+ customer_name?: string | undefined;
683
+ customer_email?: string | undefined;
684
+ customer_phone?: string | undefined;
685
+ should_send_email?: boolean | undefined;
686
+ customer?: {
687
+ customer_name?: string | undefined;
688
+ customer_email?: string | undefined;
689
+ customer_phone?: string | undefined;
690
+ billing_address?: {
691
+ city?: string | undefined;
692
+ postal_code?: string | undefined;
693
+ first_name?: string | undefined;
694
+ last_name?: string | undefined;
695
+ address?: string | undefined;
696
+ phone?: string | undefined;
697
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
698
+ } | undefined;
699
+ shipping_address?: {
700
+ city?: string | undefined;
701
+ postal_code?: string | undefined;
702
+ first_name?: string | undefined;
703
+ last_name?: string | undefined;
704
+ address?: string | undefined;
705
+ phone?: string | undefined;
706
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
707
+ } | undefined;
708
+ } | undefined;
709
+ customer_notification_preference?: {
710
+ invoice_created?: ("email" | "whatsapp" | "sms")[] | undefined;
711
+ invoice_reminder?: ("email" | "whatsapp" | "sms")[] | undefined;
712
+ invoice_paid?: ("email" | "whatsapp" | "sms")[] | undefined;
713
+ invoice_expired?: ("email" | "whatsapp" | "sms")[] | undefined;
714
+ } | undefined;
715
+ items?: {
716
+ name: string;
717
+ price: number;
718
+ quantity: number;
719
+ url?: string | undefined;
720
+ category?: string | undefined;
721
+ }[] | undefined;
722
+ }>;
723
+ export type UpdateInvoice = z.infer<typeof UpdateInvoiceSchema>;
724
+ export declare const InvoiceResourceSchema: z.ZodObject<{
725
+ id: z.ZodString;
726
+ external_id: z.ZodString;
727
+ user_id: z.ZodString;
728
+ status: z.ZodUnion<[z.ZodLiteral<"PENDING">, z.ZodLiteral<"PAID">, z.ZodLiteral<"SETTLED">, z.ZodLiteral<"EXPIRED">]>;
729
+ merchant_name: z.ZodString;
730
+ merchant_profile_picture_url: z.ZodString;
731
+ amount: z.ZodNumber;
732
+ payer_email: z.ZodString;
733
+ description: z.ZodString;
734
+ expiry_date: z.ZodString;
735
+ invoice_url: z.ZodString;
736
+ should_exclude_credit_card: z.ZodBoolean;
737
+ should_send_email: z.ZodBoolean;
738
+ created: z.ZodString;
739
+ updated: z.ZodString;
740
+ currency: z.ZodUnion<[z.ZodLiteral<"PHP">, z.ZodLiteral<"IDR">, z.ZodLiteral<"MYR">, z.ZodLiteral<"THB">, z.ZodLiteral<"VND">]>;
741
+ paid_amount: z.ZodOptional<z.ZodNumber>;
742
+ credit_card_charge_id: z.ZodOptional<z.ZodString>;
743
+ payment_method: z.ZodOptional<z.ZodString>;
744
+ payment_channel: z.ZodOptional<z.ZodString>;
745
+ payment_destination: z.ZodOptional<z.ZodString>;
746
+ payment_id: z.ZodOptional<z.ZodString>;
747
+ paid_at: z.ZodOptional<z.ZodString>;
748
+ bank_code: z.ZodOptional<z.ZodString>;
749
+ ewallet_type: z.ZodOptional<z.ZodString>;
750
+ on_demand_link: z.ZodOptional<z.ZodString>;
751
+ recurring_payment_id: z.ZodOptional<z.ZodString>;
752
+ customer_name: z.ZodOptional<z.ZodString>;
753
+ customer_email: z.ZodOptional<z.ZodString>;
754
+ customer_phone: z.ZodOptional<z.ZodString>;
755
+ customer: z.ZodOptional<z.ZodObject<{
756
+ customer_name: z.ZodOptional<z.ZodString>;
757
+ customer_email: z.ZodOptional<z.ZodString>;
758
+ customer_phone: z.ZodOptional<z.ZodString>;
759
+ billing_address: z.ZodOptional<z.ZodObject<{
760
+ first_name: z.ZodOptional<z.ZodString>;
761
+ last_name: z.ZodOptional<z.ZodString>;
762
+ address: z.ZodOptional<z.ZodString>;
763
+ city: z.ZodOptional<z.ZodString>;
764
+ postal_code: z.ZodOptional<z.ZodString>;
765
+ phone: z.ZodOptional<z.ZodString>;
766
+ country_code: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"PH">, z.ZodLiteral<"ID">, z.ZodLiteral<"MY">, z.ZodLiteral<"TH">, z.ZodLiteral<"VN">]>>;
767
+ }, "strip", z.ZodTypeAny, {
768
+ city?: string | undefined;
769
+ postal_code?: string | undefined;
770
+ first_name?: string | undefined;
771
+ last_name?: string | undefined;
772
+ address?: string | undefined;
773
+ phone?: string | undefined;
774
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
775
+ }, {
776
+ city?: string | undefined;
777
+ postal_code?: string | undefined;
778
+ first_name?: string | undefined;
779
+ last_name?: string | undefined;
780
+ address?: string | undefined;
781
+ phone?: string | undefined;
782
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
783
+ }>>;
784
+ shipping_address: z.ZodOptional<z.ZodObject<{
785
+ first_name: z.ZodOptional<z.ZodString>;
786
+ last_name: z.ZodOptional<z.ZodString>;
787
+ address: z.ZodOptional<z.ZodString>;
788
+ city: z.ZodOptional<z.ZodString>;
789
+ postal_code: z.ZodOptional<z.ZodString>;
790
+ phone: z.ZodOptional<z.ZodString>;
791
+ country_code: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"PH">, z.ZodLiteral<"ID">, z.ZodLiteral<"MY">, z.ZodLiteral<"TH">, z.ZodLiteral<"VN">]>>;
792
+ }, "strip", z.ZodTypeAny, {
793
+ city?: string | undefined;
794
+ postal_code?: string | undefined;
795
+ first_name?: string | undefined;
796
+ last_name?: string | undefined;
797
+ address?: string | undefined;
798
+ phone?: string | undefined;
799
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
800
+ }, {
801
+ city?: string | undefined;
802
+ postal_code?: string | undefined;
803
+ first_name?: string | undefined;
804
+ last_name?: string | undefined;
805
+ address?: string | undefined;
806
+ phone?: string | undefined;
807
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
808
+ }>>;
809
+ }, "strip", z.ZodTypeAny, {
810
+ customer_name?: string | undefined;
811
+ customer_email?: string | undefined;
812
+ customer_phone?: string | undefined;
813
+ billing_address?: {
814
+ city?: string | undefined;
815
+ postal_code?: string | undefined;
816
+ first_name?: string | undefined;
817
+ last_name?: string | undefined;
818
+ address?: string | undefined;
819
+ phone?: string | undefined;
820
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
821
+ } | undefined;
822
+ shipping_address?: {
823
+ city?: string | undefined;
824
+ postal_code?: string | undefined;
825
+ first_name?: string | undefined;
826
+ last_name?: string | undefined;
827
+ address?: string | undefined;
828
+ phone?: string | undefined;
829
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
830
+ } | undefined;
831
+ }, {
832
+ customer_name?: string | undefined;
833
+ customer_email?: string | undefined;
834
+ customer_phone?: string | undefined;
835
+ billing_address?: {
836
+ city?: string | undefined;
837
+ postal_code?: string | undefined;
838
+ first_name?: string | undefined;
839
+ last_name?: string | undefined;
840
+ address?: string | undefined;
841
+ phone?: string | undefined;
842
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
843
+ } | undefined;
844
+ shipping_address?: {
845
+ city?: string | undefined;
846
+ postal_code?: string | undefined;
847
+ first_name?: string | undefined;
848
+ last_name?: string | undefined;
849
+ address?: string | undefined;
850
+ phone?: string | undefined;
851
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
852
+ } | undefined;
853
+ }>>;
854
+ customer_notification_preference: z.ZodOptional<z.ZodObject<{
855
+ invoice_created: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"whatsapp">, z.ZodLiteral<"sms">, z.ZodLiteral<"email">]>, "many">>;
856
+ invoice_reminder: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"whatsapp">, z.ZodLiteral<"sms">, z.ZodLiteral<"email">]>, "many">>;
857
+ invoice_paid: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"whatsapp">, z.ZodLiteral<"sms">, z.ZodLiteral<"email">]>, "many">>;
858
+ invoice_expired: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"whatsapp">, z.ZodLiteral<"sms">, z.ZodLiteral<"email">]>, "many">>;
859
+ }, "strip", z.ZodTypeAny, {
860
+ invoice_created?: ("email" | "whatsapp" | "sms")[] | undefined;
861
+ invoice_reminder?: ("email" | "whatsapp" | "sms")[] | undefined;
862
+ invoice_paid?: ("email" | "whatsapp" | "sms")[] | undefined;
863
+ invoice_expired?: ("email" | "whatsapp" | "sms")[] | undefined;
864
+ }, {
865
+ invoice_created?: ("email" | "whatsapp" | "sms")[] | undefined;
866
+ invoice_reminder?: ("email" | "whatsapp" | "sms")[] | undefined;
867
+ invoice_paid?: ("email" | "whatsapp" | "sms")[] | undefined;
868
+ invoice_expired?: ("email" | "whatsapp" | "sms")[] | undefined;
869
+ }>>;
870
+ success_redirect_url: z.ZodOptional<z.ZodString>;
871
+ failure_redirect_url: z.ZodOptional<z.ZodString>;
872
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
873
+ name: z.ZodString;
874
+ quantity: z.ZodNumber;
875
+ price: z.ZodNumber;
876
+ category: z.ZodOptional<z.ZodString>;
877
+ url: z.ZodOptional<z.ZodString>;
878
+ }, "strip", z.ZodTypeAny, {
879
+ name: string;
880
+ price: number;
881
+ quantity: number;
882
+ url?: string | undefined;
883
+ category?: string | undefined;
884
+ }, {
885
+ name: string;
886
+ price: number;
887
+ quantity: number;
888
+ url?: string | undefined;
889
+ category?: string | undefined;
890
+ }>, "many">>;
891
+ fees: z.ZodOptional<z.ZodArray<z.ZodObject<{
892
+ type: z.ZodString;
893
+ value: z.ZodNumber;
894
+ }, "strip", z.ZodTypeAny, {
895
+ value: number;
896
+ type: string;
897
+ }, {
898
+ value: number;
899
+ type: string;
900
+ }>, "many">>;
901
+ available_banks: z.ZodOptional<z.ZodArray<z.ZodObject<{
902
+ bank_code: z.ZodString;
903
+ collection_type: z.ZodString;
904
+ bank_branch: z.ZodString;
905
+ transfer_amount: z.ZodNumber;
906
+ bank_account_number: z.ZodString;
907
+ account_holder_name: z.ZodString;
908
+ identity_amount: z.ZodOptional<z.ZodNumber>;
909
+ }, "strip", z.ZodTypeAny, {
910
+ account_holder_name: string;
911
+ bank_code: string;
912
+ collection_type: string;
913
+ bank_branch: string;
914
+ transfer_amount: number;
915
+ bank_account_number: string;
916
+ identity_amount?: number | undefined;
917
+ }, {
918
+ account_holder_name: string;
919
+ bank_code: string;
920
+ collection_type: string;
921
+ bank_branch: string;
922
+ transfer_amount: number;
923
+ bank_account_number: string;
924
+ identity_amount?: number | undefined;
925
+ }>, "many">>;
926
+ available_ewallets: z.ZodOptional<z.ZodArray<z.ZodObject<{
927
+ ewallet_type: z.ZodString;
928
+ }, "strip", z.ZodTypeAny, {
929
+ ewallet_type: string;
930
+ }, {
931
+ ewallet_type: string;
932
+ }>, "many">>;
933
+ available_retail_outlets: z.ZodOptional<z.ZodArray<z.ZodObject<{
934
+ retail_outlet_name: z.ZodString;
935
+ }, "strip", z.ZodTypeAny, {
936
+ retail_outlet_name: string;
937
+ }, {
938
+ retail_outlet_name: string;
939
+ }>, "many">>;
940
+ available_paylaters: z.ZodOptional<z.ZodArray<z.ZodObject<{
941
+ paylater_type: z.ZodString;
942
+ }, "strip", z.ZodTypeAny, {
943
+ paylater_type: string;
944
+ }, {
945
+ paylater_type: string;
946
+ }>, "many">>;
947
+ available_qr_codes: z.ZodOptional<z.ZodArray<z.ZodObject<{
948
+ qr_code_type: z.ZodString;
949
+ }, "strip", z.ZodTypeAny, {
950
+ qr_code_type: string;
951
+ }, {
952
+ qr_code_type: string;
953
+ }>, "many">>;
954
+ available_direct_debits: z.ZodOptional<z.ZodArray<z.ZodObject<{
955
+ direct_debit_type: z.ZodString;
956
+ }, "strip", z.ZodTypeAny, {
957
+ direct_debit_type: string;
958
+ }, {
959
+ direct_debit_type: string;
960
+ }>, "many">>;
961
+ should_authenticate_credit_card: z.ZodOptional<z.ZodBoolean>;
962
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
963
+ }, "strip", z.ZodTypeAny, {
964
+ status: "PENDING" | "EXPIRED" | "PAID" | "SETTLED";
965
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
966
+ description: string;
967
+ id: string;
968
+ created: string;
969
+ updated: string;
970
+ amount: number;
971
+ external_id: string;
972
+ payer_email: string;
973
+ should_exclude_credit_card: boolean;
974
+ should_send_email: boolean;
975
+ user_id: string;
976
+ merchant_name: string;
977
+ merchant_profile_picture_url: string;
978
+ expiry_date: string;
979
+ invoice_url: string;
980
+ metadata?: Record<string, unknown> | undefined;
981
+ success_redirect_url?: string | undefined;
982
+ failure_redirect_url?: string | undefined;
983
+ bank_code?: string | undefined;
984
+ customer_name?: string | undefined;
985
+ customer_email?: string | undefined;
986
+ customer_phone?: string | undefined;
987
+ ewallet_type?: string | undefined;
988
+ customer?: {
989
+ customer_name?: string | undefined;
990
+ customer_email?: string | undefined;
991
+ customer_phone?: string | undefined;
992
+ billing_address?: {
993
+ city?: string | undefined;
994
+ postal_code?: string | undefined;
995
+ first_name?: string | undefined;
996
+ last_name?: string | undefined;
997
+ address?: string | undefined;
998
+ phone?: string | undefined;
999
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
1000
+ } | undefined;
1001
+ shipping_address?: {
1002
+ city?: string | undefined;
1003
+ postal_code?: string | undefined;
1004
+ first_name?: string | undefined;
1005
+ last_name?: string | undefined;
1006
+ address?: string | undefined;
1007
+ phone?: string | undefined;
1008
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
1009
+ } | undefined;
1010
+ } | undefined;
1011
+ customer_notification_preference?: {
1012
+ invoice_created?: ("email" | "whatsapp" | "sms")[] | undefined;
1013
+ invoice_reminder?: ("email" | "whatsapp" | "sms")[] | undefined;
1014
+ invoice_paid?: ("email" | "whatsapp" | "sms")[] | undefined;
1015
+ invoice_expired?: ("email" | "whatsapp" | "sms")[] | undefined;
1016
+ } | undefined;
1017
+ should_authenticate_credit_card?: boolean | undefined;
1018
+ items?: {
1019
+ name: string;
1020
+ price: number;
1021
+ quantity: number;
1022
+ url?: string | undefined;
1023
+ category?: string | undefined;
1024
+ }[] | undefined;
1025
+ fees?: {
1026
+ value: number;
1027
+ type: string;
1028
+ }[] | undefined;
1029
+ paid_amount?: number | undefined;
1030
+ credit_card_charge_id?: string | undefined;
1031
+ payment_method?: string | undefined;
1032
+ payment_channel?: string | undefined;
1033
+ payment_destination?: string | undefined;
1034
+ payment_id?: string | undefined;
1035
+ paid_at?: string | undefined;
1036
+ on_demand_link?: string | undefined;
1037
+ recurring_payment_id?: string | undefined;
1038
+ available_banks?: {
1039
+ account_holder_name: string;
1040
+ bank_code: string;
1041
+ collection_type: string;
1042
+ bank_branch: string;
1043
+ transfer_amount: number;
1044
+ bank_account_number: string;
1045
+ identity_amount?: number | undefined;
1046
+ }[] | undefined;
1047
+ available_ewallets?: {
1048
+ ewallet_type: string;
1049
+ }[] | undefined;
1050
+ available_retail_outlets?: {
1051
+ retail_outlet_name: string;
1052
+ }[] | undefined;
1053
+ available_paylaters?: {
1054
+ paylater_type: string;
1055
+ }[] | undefined;
1056
+ available_qr_codes?: {
1057
+ qr_code_type: string;
1058
+ }[] | undefined;
1059
+ available_direct_debits?: {
1060
+ direct_debit_type: string;
1061
+ }[] | undefined;
1062
+ }, {
1063
+ status: "PENDING" | "EXPIRED" | "PAID" | "SETTLED";
1064
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
1065
+ description: string;
1066
+ id: string;
1067
+ created: string;
1068
+ updated: string;
1069
+ amount: number;
1070
+ external_id: string;
1071
+ payer_email: string;
1072
+ should_exclude_credit_card: boolean;
1073
+ should_send_email: boolean;
1074
+ user_id: string;
1075
+ merchant_name: string;
1076
+ merchant_profile_picture_url: string;
1077
+ expiry_date: string;
1078
+ invoice_url: string;
1079
+ metadata?: Record<string, unknown> | undefined;
1080
+ success_redirect_url?: string | undefined;
1081
+ failure_redirect_url?: string | undefined;
1082
+ bank_code?: string | undefined;
1083
+ customer_name?: string | undefined;
1084
+ customer_email?: string | undefined;
1085
+ customer_phone?: string | undefined;
1086
+ ewallet_type?: string | undefined;
1087
+ customer?: {
1088
+ customer_name?: string | undefined;
1089
+ customer_email?: string | undefined;
1090
+ customer_phone?: string | undefined;
1091
+ billing_address?: {
1092
+ city?: string | undefined;
1093
+ postal_code?: string | undefined;
1094
+ first_name?: string | undefined;
1095
+ last_name?: string | undefined;
1096
+ address?: string | undefined;
1097
+ phone?: string | undefined;
1098
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
1099
+ } | undefined;
1100
+ shipping_address?: {
1101
+ city?: string | undefined;
1102
+ postal_code?: string | undefined;
1103
+ first_name?: string | undefined;
1104
+ last_name?: string | undefined;
1105
+ address?: string | undefined;
1106
+ phone?: string | undefined;
1107
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
1108
+ } | undefined;
1109
+ } | undefined;
1110
+ customer_notification_preference?: {
1111
+ invoice_created?: ("email" | "whatsapp" | "sms")[] | undefined;
1112
+ invoice_reminder?: ("email" | "whatsapp" | "sms")[] | undefined;
1113
+ invoice_paid?: ("email" | "whatsapp" | "sms")[] | undefined;
1114
+ invoice_expired?: ("email" | "whatsapp" | "sms")[] | undefined;
1115
+ } | undefined;
1116
+ should_authenticate_credit_card?: boolean | undefined;
1117
+ items?: {
1118
+ name: string;
1119
+ price: number;
1120
+ quantity: number;
1121
+ url?: string | undefined;
1122
+ category?: string | undefined;
1123
+ }[] | undefined;
1124
+ fees?: {
1125
+ value: number;
1126
+ type: string;
1127
+ }[] | undefined;
1128
+ paid_amount?: number | undefined;
1129
+ credit_card_charge_id?: string | undefined;
1130
+ payment_method?: string | undefined;
1131
+ payment_channel?: string | undefined;
1132
+ payment_destination?: string | undefined;
1133
+ payment_id?: string | undefined;
1134
+ paid_at?: string | undefined;
1135
+ on_demand_link?: string | undefined;
1136
+ recurring_payment_id?: string | undefined;
1137
+ available_banks?: {
1138
+ account_holder_name: string;
1139
+ bank_code: string;
1140
+ collection_type: string;
1141
+ bank_branch: string;
1142
+ transfer_amount: number;
1143
+ bank_account_number: string;
1144
+ identity_amount?: number | undefined;
1145
+ }[] | undefined;
1146
+ available_ewallets?: {
1147
+ ewallet_type: string;
1148
+ }[] | undefined;
1149
+ available_retail_outlets?: {
1150
+ retail_outlet_name: string;
1151
+ }[] | undefined;
1152
+ available_paylaters?: {
1153
+ paylater_type: string;
1154
+ }[] | undefined;
1155
+ available_qr_codes?: {
1156
+ qr_code_type: string;
1157
+ }[] | undefined;
1158
+ available_direct_debits?: {
1159
+ direct_debit_type: string;
1160
+ }[] | undefined;
1161
+ }>;
1162
+ export type InvoiceResource = z.infer<typeof InvoiceResourceSchema>;
1163
+ export declare const GetInvoiceSchema: z.ZodObject<{
1164
+ invoice_id: z.ZodString;
1165
+ }, "strip", z.ZodTypeAny, {
1166
+ invoice_id: string;
1167
+ }, {
1168
+ invoice_id: string;
1169
+ }>;
1170
+ export type GetInvoice = z.infer<typeof GetInvoiceSchema>;
1171
+ export declare const ListInvoicesSchema: z.ZodObject<{
1172
+ statuses: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"PENDING">, z.ZodLiteral<"PAID">, z.ZodLiteral<"SETTLED">, z.ZodLiteral<"EXPIRED">]>, "many">>;
1173
+ limit: z.ZodOptional<z.ZodNumber>;
1174
+ created_after: z.ZodOptional<z.ZodString>;
1175
+ created_before: z.ZodOptional<z.ZodString>;
1176
+ paid_after: z.ZodOptional<z.ZodString>;
1177
+ paid_before: z.ZodOptional<z.ZodString>;
1178
+ expired_after: z.ZodOptional<z.ZodString>;
1179
+ expired_before: z.ZodOptional<z.ZodString>;
1180
+ last_invoice: z.ZodOptional<z.ZodString>;
1181
+ client_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1182
+ payment_channels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1183
+ on_demand_link: z.ZodOptional<z.ZodString>;
1184
+ recurring_payment_id: z.ZodOptional<z.ZodString>;
1185
+ }, "strip", z.ZodTypeAny, {
1186
+ limit?: number | undefined;
1187
+ on_demand_link?: string | undefined;
1188
+ recurring_payment_id?: string | undefined;
1189
+ statuses?: ("PENDING" | "EXPIRED" | "PAID" | "SETTLED")[] | undefined;
1190
+ created_after?: string | undefined;
1191
+ created_before?: string | undefined;
1192
+ paid_after?: string | undefined;
1193
+ paid_before?: string | undefined;
1194
+ expired_after?: string | undefined;
1195
+ expired_before?: string | undefined;
1196
+ last_invoice?: string | undefined;
1197
+ client_types?: string[] | undefined;
1198
+ payment_channels?: string[] | undefined;
1199
+ }, {
1200
+ limit?: number | undefined;
1201
+ on_demand_link?: string | undefined;
1202
+ recurring_payment_id?: string | undefined;
1203
+ statuses?: ("PENDING" | "EXPIRED" | "PAID" | "SETTLED")[] | undefined;
1204
+ created_after?: string | undefined;
1205
+ created_before?: string | undefined;
1206
+ paid_after?: string | undefined;
1207
+ paid_before?: string | undefined;
1208
+ expired_after?: string | undefined;
1209
+ expired_before?: string | undefined;
1210
+ last_invoice?: string | undefined;
1211
+ client_types?: string[] | undefined;
1212
+ payment_channels?: string[] | undefined;
1213
+ }>;
1214
+ export type ListInvoices = z.infer<typeof ListInvoicesSchema>;
1215
+ export declare const ListInvoicesResponseSchema: z.ZodObject<{
1216
+ has_more: z.ZodBoolean;
1217
+ data: z.ZodArray<z.ZodObject<{
1218
+ id: z.ZodString;
1219
+ external_id: z.ZodString;
1220
+ user_id: z.ZodString;
1221
+ status: z.ZodUnion<[z.ZodLiteral<"PENDING">, z.ZodLiteral<"PAID">, z.ZodLiteral<"SETTLED">, z.ZodLiteral<"EXPIRED">]>;
1222
+ merchant_name: z.ZodString;
1223
+ merchant_profile_picture_url: z.ZodString;
1224
+ amount: z.ZodNumber;
1225
+ payer_email: z.ZodString;
1226
+ description: z.ZodString;
1227
+ expiry_date: z.ZodString;
1228
+ invoice_url: z.ZodString;
1229
+ should_exclude_credit_card: z.ZodBoolean;
1230
+ should_send_email: z.ZodBoolean;
1231
+ created: z.ZodString;
1232
+ updated: z.ZodString;
1233
+ currency: z.ZodUnion<[z.ZodLiteral<"PHP">, z.ZodLiteral<"IDR">, z.ZodLiteral<"MYR">, z.ZodLiteral<"THB">, z.ZodLiteral<"VND">]>;
1234
+ paid_amount: z.ZodOptional<z.ZodNumber>;
1235
+ credit_card_charge_id: z.ZodOptional<z.ZodString>;
1236
+ payment_method: z.ZodOptional<z.ZodString>;
1237
+ payment_channel: z.ZodOptional<z.ZodString>;
1238
+ payment_destination: z.ZodOptional<z.ZodString>;
1239
+ payment_id: z.ZodOptional<z.ZodString>;
1240
+ paid_at: z.ZodOptional<z.ZodString>;
1241
+ bank_code: z.ZodOptional<z.ZodString>;
1242
+ ewallet_type: z.ZodOptional<z.ZodString>;
1243
+ on_demand_link: z.ZodOptional<z.ZodString>;
1244
+ recurring_payment_id: z.ZodOptional<z.ZodString>;
1245
+ customer_name: z.ZodOptional<z.ZodString>;
1246
+ customer_email: z.ZodOptional<z.ZodString>;
1247
+ customer_phone: z.ZodOptional<z.ZodString>;
1248
+ customer: z.ZodOptional<z.ZodObject<{
1249
+ customer_name: z.ZodOptional<z.ZodString>;
1250
+ customer_email: z.ZodOptional<z.ZodString>;
1251
+ customer_phone: z.ZodOptional<z.ZodString>;
1252
+ billing_address: z.ZodOptional<z.ZodObject<{
1253
+ first_name: z.ZodOptional<z.ZodString>;
1254
+ last_name: z.ZodOptional<z.ZodString>;
1255
+ address: z.ZodOptional<z.ZodString>;
1256
+ city: z.ZodOptional<z.ZodString>;
1257
+ postal_code: z.ZodOptional<z.ZodString>;
1258
+ phone: z.ZodOptional<z.ZodString>;
1259
+ country_code: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"PH">, z.ZodLiteral<"ID">, z.ZodLiteral<"MY">, z.ZodLiteral<"TH">, z.ZodLiteral<"VN">]>>;
1260
+ }, "strip", z.ZodTypeAny, {
1261
+ city?: string | undefined;
1262
+ postal_code?: string | undefined;
1263
+ first_name?: string | undefined;
1264
+ last_name?: string | undefined;
1265
+ address?: string | undefined;
1266
+ phone?: string | undefined;
1267
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
1268
+ }, {
1269
+ city?: string | undefined;
1270
+ postal_code?: string | undefined;
1271
+ first_name?: string | undefined;
1272
+ last_name?: string | undefined;
1273
+ address?: string | undefined;
1274
+ phone?: string | undefined;
1275
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
1276
+ }>>;
1277
+ shipping_address: z.ZodOptional<z.ZodObject<{
1278
+ first_name: z.ZodOptional<z.ZodString>;
1279
+ last_name: z.ZodOptional<z.ZodString>;
1280
+ address: z.ZodOptional<z.ZodString>;
1281
+ city: z.ZodOptional<z.ZodString>;
1282
+ postal_code: z.ZodOptional<z.ZodString>;
1283
+ phone: z.ZodOptional<z.ZodString>;
1284
+ country_code: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"PH">, z.ZodLiteral<"ID">, z.ZodLiteral<"MY">, z.ZodLiteral<"TH">, z.ZodLiteral<"VN">]>>;
1285
+ }, "strip", z.ZodTypeAny, {
1286
+ city?: string | undefined;
1287
+ postal_code?: string | undefined;
1288
+ first_name?: string | undefined;
1289
+ last_name?: string | undefined;
1290
+ address?: string | undefined;
1291
+ phone?: string | undefined;
1292
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
1293
+ }, {
1294
+ city?: string | undefined;
1295
+ postal_code?: string | undefined;
1296
+ first_name?: string | undefined;
1297
+ last_name?: string | undefined;
1298
+ address?: string | undefined;
1299
+ phone?: string | undefined;
1300
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
1301
+ }>>;
1302
+ }, "strip", z.ZodTypeAny, {
1303
+ customer_name?: string | undefined;
1304
+ customer_email?: string | undefined;
1305
+ customer_phone?: string | undefined;
1306
+ billing_address?: {
1307
+ city?: string | undefined;
1308
+ postal_code?: string | undefined;
1309
+ first_name?: string | undefined;
1310
+ last_name?: string | undefined;
1311
+ address?: string | undefined;
1312
+ phone?: string | undefined;
1313
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
1314
+ } | undefined;
1315
+ shipping_address?: {
1316
+ city?: string | undefined;
1317
+ postal_code?: string | undefined;
1318
+ first_name?: string | undefined;
1319
+ last_name?: string | undefined;
1320
+ address?: string | undefined;
1321
+ phone?: string | undefined;
1322
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
1323
+ } | undefined;
1324
+ }, {
1325
+ customer_name?: string | undefined;
1326
+ customer_email?: string | undefined;
1327
+ customer_phone?: string | undefined;
1328
+ billing_address?: {
1329
+ city?: string | undefined;
1330
+ postal_code?: string | undefined;
1331
+ first_name?: string | undefined;
1332
+ last_name?: string | undefined;
1333
+ address?: string | undefined;
1334
+ phone?: string | undefined;
1335
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
1336
+ } | undefined;
1337
+ shipping_address?: {
1338
+ city?: string | undefined;
1339
+ postal_code?: string | undefined;
1340
+ first_name?: string | undefined;
1341
+ last_name?: string | undefined;
1342
+ address?: string | undefined;
1343
+ phone?: string | undefined;
1344
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
1345
+ } | undefined;
1346
+ }>>;
1347
+ customer_notification_preference: z.ZodOptional<z.ZodObject<{
1348
+ invoice_created: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"whatsapp">, z.ZodLiteral<"sms">, z.ZodLiteral<"email">]>, "many">>;
1349
+ invoice_reminder: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"whatsapp">, z.ZodLiteral<"sms">, z.ZodLiteral<"email">]>, "many">>;
1350
+ invoice_paid: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"whatsapp">, z.ZodLiteral<"sms">, z.ZodLiteral<"email">]>, "many">>;
1351
+ invoice_expired: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"whatsapp">, z.ZodLiteral<"sms">, z.ZodLiteral<"email">]>, "many">>;
1352
+ }, "strip", z.ZodTypeAny, {
1353
+ invoice_created?: ("email" | "whatsapp" | "sms")[] | undefined;
1354
+ invoice_reminder?: ("email" | "whatsapp" | "sms")[] | undefined;
1355
+ invoice_paid?: ("email" | "whatsapp" | "sms")[] | undefined;
1356
+ invoice_expired?: ("email" | "whatsapp" | "sms")[] | undefined;
1357
+ }, {
1358
+ invoice_created?: ("email" | "whatsapp" | "sms")[] | undefined;
1359
+ invoice_reminder?: ("email" | "whatsapp" | "sms")[] | undefined;
1360
+ invoice_paid?: ("email" | "whatsapp" | "sms")[] | undefined;
1361
+ invoice_expired?: ("email" | "whatsapp" | "sms")[] | undefined;
1362
+ }>>;
1363
+ success_redirect_url: z.ZodOptional<z.ZodString>;
1364
+ failure_redirect_url: z.ZodOptional<z.ZodString>;
1365
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
1366
+ name: z.ZodString;
1367
+ quantity: z.ZodNumber;
1368
+ price: z.ZodNumber;
1369
+ category: z.ZodOptional<z.ZodString>;
1370
+ url: z.ZodOptional<z.ZodString>;
1371
+ }, "strip", z.ZodTypeAny, {
1372
+ name: string;
1373
+ price: number;
1374
+ quantity: number;
1375
+ url?: string | undefined;
1376
+ category?: string | undefined;
1377
+ }, {
1378
+ name: string;
1379
+ price: number;
1380
+ quantity: number;
1381
+ url?: string | undefined;
1382
+ category?: string | undefined;
1383
+ }>, "many">>;
1384
+ fees: z.ZodOptional<z.ZodArray<z.ZodObject<{
1385
+ type: z.ZodString;
1386
+ value: z.ZodNumber;
1387
+ }, "strip", z.ZodTypeAny, {
1388
+ value: number;
1389
+ type: string;
1390
+ }, {
1391
+ value: number;
1392
+ type: string;
1393
+ }>, "many">>;
1394
+ available_banks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1395
+ bank_code: z.ZodString;
1396
+ collection_type: z.ZodString;
1397
+ bank_branch: z.ZodString;
1398
+ transfer_amount: z.ZodNumber;
1399
+ bank_account_number: z.ZodString;
1400
+ account_holder_name: z.ZodString;
1401
+ identity_amount: z.ZodOptional<z.ZodNumber>;
1402
+ }, "strip", z.ZodTypeAny, {
1403
+ account_holder_name: string;
1404
+ bank_code: string;
1405
+ collection_type: string;
1406
+ bank_branch: string;
1407
+ transfer_amount: number;
1408
+ bank_account_number: string;
1409
+ identity_amount?: number | undefined;
1410
+ }, {
1411
+ account_holder_name: string;
1412
+ bank_code: string;
1413
+ collection_type: string;
1414
+ bank_branch: string;
1415
+ transfer_amount: number;
1416
+ bank_account_number: string;
1417
+ identity_amount?: number | undefined;
1418
+ }>, "many">>;
1419
+ available_ewallets: z.ZodOptional<z.ZodArray<z.ZodObject<{
1420
+ ewallet_type: z.ZodString;
1421
+ }, "strip", z.ZodTypeAny, {
1422
+ ewallet_type: string;
1423
+ }, {
1424
+ ewallet_type: string;
1425
+ }>, "many">>;
1426
+ available_retail_outlets: z.ZodOptional<z.ZodArray<z.ZodObject<{
1427
+ retail_outlet_name: z.ZodString;
1428
+ }, "strip", z.ZodTypeAny, {
1429
+ retail_outlet_name: string;
1430
+ }, {
1431
+ retail_outlet_name: string;
1432
+ }>, "many">>;
1433
+ available_paylaters: z.ZodOptional<z.ZodArray<z.ZodObject<{
1434
+ paylater_type: z.ZodString;
1435
+ }, "strip", z.ZodTypeAny, {
1436
+ paylater_type: string;
1437
+ }, {
1438
+ paylater_type: string;
1439
+ }>, "many">>;
1440
+ available_qr_codes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1441
+ qr_code_type: z.ZodString;
1442
+ }, "strip", z.ZodTypeAny, {
1443
+ qr_code_type: string;
1444
+ }, {
1445
+ qr_code_type: string;
1446
+ }>, "many">>;
1447
+ available_direct_debits: z.ZodOptional<z.ZodArray<z.ZodObject<{
1448
+ direct_debit_type: z.ZodString;
1449
+ }, "strip", z.ZodTypeAny, {
1450
+ direct_debit_type: string;
1451
+ }, {
1452
+ direct_debit_type: string;
1453
+ }>, "many">>;
1454
+ should_authenticate_credit_card: z.ZodOptional<z.ZodBoolean>;
1455
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1456
+ }, "strip", z.ZodTypeAny, {
1457
+ status: "PENDING" | "EXPIRED" | "PAID" | "SETTLED";
1458
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
1459
+ description: string;
1460
+ id: string;
1461
+ created: string;
1462
+ updated: string;
1463
+ amount: number;
1464
+ external_id: string;
1465
+ payer_email: string;
1466
+ should_exclude_credit_card: boolean;
1467
+ should_send_email: boolean;
1468
+ user_id: string;
1469
+ merchant_name: string;
1470
+ merchant_profile_picture_url: string;
1471
+ expiry_date: string;
1472
+ invoice_url: string;
1473
+ metadata?: Record<string, unknown> | undefined;
1474
+ success_redirect_url?: string | undefined;
1475
+ failure_redirect_url?: string | undefined;
1476
+ bank_code?: string | undefined;
1477
+ customer_name?: string | undefined;
1478
+ customer_email?: string | undefined;
1479
+ customer_phone?: string | undefined;
1480
+ ewallet_type?: string | undefined;
1481
+ customer?: {
1482
+ customer_name?: string | undefined;
1483
+ customer_email?: string | undefined;
1484
+ customer_phone?: string | undefined;
1485
+ billing_address?: {
1486
+ city?: string | undefined;
1487
+ postal_code?: string | undefined;
1488
+ first_name?: string | undefined;
1489
+ last_name?: string | undefined;
1490
+ address?: string | undefined;
1491
+ phone?: string | undefined;
1492
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
1493
+ } | undefined;
1494
+ shipping_address?: {
1495
+ city?: string | undefined;
1496
+ postal_code?: string | undefined;
1497
+ first_name?: string | undefined;
1498
+ last_name?: string | undefined;
1499
+ address?: string | undefined;
1500
+ phone?: string | undefined;
1501
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
1502
+ } | undefined;
1503
+ } | undefined;
1504
+ customer_notification_preference?: {
1505
+ invoice_created?: ("email" | "whatsapp" | "sms")[] | undefined;
1506
+ invoice_reminder?: ("email" | "whatsapp" | "sms")[] | undefined;
1507
+ invoice_paid?: ("email" | "whatsapp" | "sms")[] | undefined;
1508
+ invoice_expired?: ("email" | "whatsapp" | "sms")[] | undefined;
1509
+ } | undefined;
1510
+ should_authenticate_credit_card?: boolean | undefined;
1511
+ items?: {
1512
+ name: string;
1513
+ price: number;
1514
+ quantity: number;
1515
+ url?: string | undefined;
1516
+ category?: string | undefined;
1517
+ }[] | undefined;
1518
+ fees?: {
1519
+ value: number;
1520
+ type: string;
1521
+ }[] | undefined;
1522
+ paid_amount?: number | undefined;
1523
+ credit_card_charge_id?: string | undefined;
1524
+ payment_method?: string | undefined;
1525
+ payment_channel?: string | undefined;
1526
+ payment_destination?: string | undefined;
1527
+ payment_id?: string | undefined;
1528
+ paid_at?: string | undefined;
1529
+ on_demand_link?: string | undefined;
1530
+ recurring_payment_id?: string | undefined;
1531
+ available_banks?: {
1532
+ account_holder_name: string;
1533
+ bank_code: string;
1534
+ collection_type: string;
1535
+ bank_branch: string;
1536
+ transfer_amount: number;
1537
+ bank_account_number: string;
1538
+ identity_amount?: number | undefined;
1539
+ }[] | undefined;
1540
+ available_ewallets?: {
1541
+ ewallet_type: string;
1542
+ }[] | undefined;
1543
+ available_retail_outlets?: {
1544
+ retail_outlet_name: string;
1545
+ }[] | undefined;
1546
+ available_paylaters?: {
1547
+ paylater_type: string;
1548
+ }[] | undefined;
1549
+ available_qr_codes?: {
1550
+ qr_code_type: string;
1551
+ }[] | undefined;
1552
+ available_direct_debits?: {
1553
+ direct_debit_type: string;
1554
+ }[] | undefined;
1555
+ }, {
1556
+ status: "PENDING" | "EXPIRED" | "PAID" | "SETTLED";
1557
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
1558
+ description: string;
1559
+ id: string;
1560
+ created: string;
1561
+ updated: string;
1562
+ amount: number;
1563
+ external_id: string;
1564
+ payer_email: string;
1565
+ should_exclude_credit_card: boolean;
1566
+ should_send_email: boolean;
1567
+ user_id: string;
1568
+ merchant_name: string;
1569
+ merchant_profile_picture_url: string;
1570
+ expiry_date: string;
1571
+ invoice_url: string;
1572
+ metadata?: Record<string, unknown> | undefined;
1573
+ success_redirect_url?: string | undefined;
1574
+ failure_redirect_url?: string | undefined;
1575
+ bank_code?: string | undefined;
1576
+ customer_name?: string | undefined;
1577
+ customer_email?: string | undefined;
1578
+ customer_phone?: string | undefined;
1579
+ ewallet_type?: string | undefined;
1580
+ customer?: {
1581
+ customer_name?: string | undefined;
1582
+ customer_email?: string | undefined;
1583
+ customer_phone?: string | undefined;
1584
+ billing_address?: {
1585
+ city?: string | undefined;
1586
+ postal_code?: string | undefined;
1587
+ first_name?: string | undefined;
1588
+ last_name?: string | undefined;
1589
+ address?: string | undefined;
1590
+ phone?: string | undefined;
1591
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
1592
+ } | undefined;
1593
+ shipping_address?: {
1594
+ city?: string | undefined;
1595
+ postal_code?: string | undefined;
1596
+ first_name?: string | undefined;
1597
+ last_name?: string | undefined;
1598
+ address?: string | undefined;
1599
+ phone?: string | undefined;
1600
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
1601
+ } | undefined;
1602
+ } | undefined;
1603
+ customer_notification_preference?: {
1604
+ invoice_created?: ("email" | "whatsapp" | "sms")[] | undefined;
1605
+ invoice_reminder?: ("email" | "whatsapp" | "sms")[] | undefined;
1606
+ invoice_paid?: ("email" | "whatsapp" | "sms")[] | undefined;
1607
+ invoice_expired?: ("email" | "whatsapp" | "sms")[] | undefined;
1608
+ } | undefined;
1609
+ should_authenticate_credit_card?: boolean | undefined;
1610
+ items?: {
1611
+ name: string;
1612
+ price: number;
1613
+ quantity: number;
1614
+ url?: string | undefined;
1615
+ category?: string | undefined;
1616
+ }[] | undefined;
1617
+ fees?: {
1618
+ value: number;
1619
+ type: string;
1620
+ }[] | undefined;
1621
+ paid_amount?: number | undefined;
1622
+ credit_card_charge_id?: string | undefined;
1623
+ payment_method?: string | undefined;
1624
+ payment_channel?: string | undefined;
1625
+ payment_destination?: string | undefined;
1626
+ payment_id?: string | undefined;
1627
+ paid_at?: string | undefined;
1628
+ on_demand_link?: string | undefined;
1629
+ recurring_payment_id?: string | undefined;
1630
+ available_banks?: {
1631
+ account_holder_name: string;
1632
+ bank_code: string;
1633
+ collection_type: string;
1634
+ bank_branch: string;
1635
+ transfer_amount: number;
1636
+ bank_account_number: string;
1637
+ identity_amount?: number | undefined;
1638
+ }[] | undefined;
1639
+ available_ewallets?: {
1640
+ ewallet_type: string;
1641
+ }[] | undefined;
1642
+ available_retail_outlets?: {
1643
+ retail_outlet_name: string;
1644
+ }[] | undefined;
1645
+ available_paylaters?: {
1646
+ paylater_type: string;
1647
+ }[] | undefined;
1648
+ available_qr_codes?: {
1649
+ qr_code_type: string;
1650
+ }[] | undefined;
1651
+ available_direct_debits?: {
1652
+ direct_debit_type: string;
1653
+ }[] | undefined;
1654
+ }>, "many">;
1655
+ }, "strip", z.ZodTypeAny, {
1656
+ data: {
1657
+ status: "PENDING" | "EXPIRED" | "PAID" | "SETTLED";
1658
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
1659
+ description: string;
1660
+ id: string;
1661
+ created: string;
1662
+ updated: string;
1663
+ amount: number;
1664
+ external_id: string;
1665
+ payer_email: string;
1666
+ should_exclude_credit_card: boolean;
1667
+ should_send_email: boolean;
1668
+ user_id: string;
1669
+ merchant_name: string;
1670
+ merchant_profile_picture_url: string;
1671
+ expiry_date: string;
1672
+ invoice_url: string;
1673
+ metadata?: Record<string, unknown> | undefined;
1674
+ success_redirect_url?: string | undefined;
1675
+ failure_redirect_url?: string | undefined;
1676
+ bank_code?: string | undefined;
1677
+ customer_name?: string | undefined;
1678
+ customer_email?: string | undefined;
1679
+ customer_phone?: string | undefined;
1680
+ ewallet_type?: string | undefined;
1681
+ customer?: {
1682
+ customer_name?: string | undefined;
1683
+ customer_email?: string | undefined;
1684
+ customer_phone?: string | undefined;
1685
+ billing_address?: {
1686
+ city?: string | undefined;
1687
+ postal_code?: string | undefined;
1688
+ first_name?: string | undefined;
1689
+ last_name?: string | undefined;
1690
+ address?: string | undefined;
1691
+ phone?: string | undefined;
1692
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
1693
+ } | undefined;
1694
+ shipping_address?: {
1695
+ city?: string | undefined;
1696
+ postal_code?: string | undefined;
1697
+ first_name?: string | undefined;
1698
+ last_name?: string | undefined;
1699
+ address?: string | undefined;
1700
+ phone?: string | undefined;
1701
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
1702
+ } | undefined;
1703
+ } | undefined;
1704
+ customer_notification_preference?: {
1705
+ invoice_created?: ("email" | "whatsapp" | "sms")[] | undefined;
1706
+ invoice_reminder?: ("email" | "whatsapp" | "sms")[] | undefined;
1707
+ invoice_paid?: ("email" | "whatsapp" | "sms")[] | undefined;
1708
+ invoice_expired?: ("email" | "whatsapp" | "sms")[] | undefined;
1709
+ } | undefined;
1710
+ should_authenticate_credit_card?: boolean | undefined;
1711
+ items?: {
1712
+ name: string;
1713
+ price: number;
1714
+ quantity: number;
1715
+ url?: string | undefined;
1716
+ category?: string | undefined;
1717
+ }[] | undefined;
1718
+ fees?: {
1719
+ value: number;
1720
+ type: string;
1721
+ }[] | undefined;
1722
+ paid_amount?: number | undefined;
1723
+ credit_card_charge_id?: string | undefined;
1724
+ payment_method?: string | undefined;
1725
+ payment_channel?: string | undefined;
1726
+ payment_destination?: string | undefined;
1727
+ payment_id?: string | undefined;
1728
+ paid_at?: string | undefined;
1729
+ on_demand_link?: string | undefined;
1730
+ recurring_payment_id?: string | undefined;
1731
+ available_banks?: {
1732
+ account_holder_name: string;
1733
+ bank_code: string;
1734
+ collection_type: string;
1735
+ bank_branch: string;
1736
+ transfer_amount: number;
1737
+ bank_account_number: string;
1738
+ identity_amount?: number | undefined;
1739
+ }[] | undefined;
1740
+ available_ewallets?: {
1741
+ ewallet_type: string;
1742
+ }[] | undefined;
1743
+ available_retail_outlets?: {
1744
+ retail_outlet_name: string;
1745
+ }[] | undefined;
1746
+ available_paylaters?: {
1747
+ paylater_type: string;
1748
+ }[] | undefined;
1749
+ available_qr_codes?: {
1750
+ qr_code_type: string;
1751
+ }[] | undefined;
1752
+ available_direct_debits?: {
1753
+ direct_debit_type: string;
1754
+ }[] | undefined;
1755
+ }[];
1756
+ has_more: boolean;
1757
+ }, {
1758
+ data: {
1759
+ status: "PENDING" | "EXPIRED" | "PAID" | "SETTLED";
1760
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
1761
+ description: string;
1762
+ id: string;
1763
+ created: string;
1764
+ updated: string;
1765
+ amount: number;
1766
+ external_id: string;
1767
+ payer_email: string;
1768
+ should_exclude_credit_card: boolean;
1769
+ should_send_email: boolean;
1770
+ user_id: string;
1771
+ merchant_name: string;
1772
+ merchant_profile_picture_url: string;
1773
+ expiry_date: string;
1774
+ invoice_url: string;
1775
+ metadata?: Record<string, unknown> | undefined;
1776
+ success_redirect_url?: string | undefined;
1777
+ failure_redirect_url?: string | undefined;
1778
+ bank_code?: string | undefined;
1779
+ customer_name?: string | undefined;
1780
+ customer_email?: string | undefined;
1781
+ customer_phone?: string | undefined;
1782
+ ewallet_type?: string | undefined;
1783
+ customer?: {
1784
+ customer_name?: string | undefined;
1785
+ customer_email?: string | undefined;
1786
+ customer_phone?: string | undefined;
1787
+ billing_address?: {
1788
+ city?: string | undefined;
1789
+ postal_code?: string | undefined;
1790
+ first_name?: string | undefined;
1791
+ last_name?: string | undefined;
1792
+ address?: string | undefined;
1793
+ phone?: string | undefined;
1794
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
1795
+ } | undefined;
1796
+ shipping_address?: {
1797
+ city?: string | undefined;
1798
+ postal_code?: string | undefined;
1799
+ first_name?: string | undefined;
1800
+ last_name?: string | undefined;
1801
+ address?: string | undefined;
1802
+ phone?: string | undefined;
1803
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
1804
+ } | undefined;
1805
+ } | undefined;
1806
+ customer_notification_preference?: {
1807
+ invoice_created?: ("email" | "whatsapp" | "sms")[] | undefined;
1808
+ invoice_reminder?: ("email" | "whatsapp" | "sms")[] | undefined;
1809
+ invoice_paid?: ("email" | "whatsapp" | "sms")[] | undefined;
1810
+ invoice_expired?: ("email" | "whatsapp" | "sms")[] | undefined;
1811
+ } | undefined;
1812
+ should_authenticate_credit_card?: boolean | undefined;
1813
+ items?: {
1814
+ name: string;
1815
+ price: number;
1816
+ quantity: number;
1817
+ url?: string | undefined;
1818
+ category?: string | undefined;
1819
+ }[] | undefined;
1820
+ fees?: {
1821
+ value: number;
1822
+ type: string;
1823
+ }[] | undefined;
1824
+ paid_amount?: number | undefined;
1825
+ credit_card_charge_id?: string | undefined;
1826
+ payment_method?: string | undefined;
1827
+ payment_channel?: string | undefined;
1828
+ payment_destination?: string | undefined;
1829
+ payment_id?: string | undefined;
1830
+ paid_at?: string | undefined;
1831
+ on_demand_link?: string | undefined;
1832
+ recurring_payment_id?: string | undefined;
1833
+ available_banks?: {
1834
+ account_holder_name: string;
1835
+ bank_code: string;
1836
+ collection_type: string;
1837
+ bank_branch: string;
1838
+ transfer_amount: number;
1839
+ bank_account_number: string;
1840
+ identity_amount?: number | undefined;
1841
+ }[] | undefined;
1842
+ available_ewallets?: {
1843
+ ewallet_type: string;
1844
+ }[] | undefined;
1845
+ available_retail_outlets?: {
1846
+ retail_outlet_name: string;
1847
+ }[] | undefined;
1848
+ available_paylaters?: {
1849
+ paylater_type: string;
1850
+ }[] | undefined;
1851
+ available_qr_codes?: {
1852
+ qr_code_type: string;
1853
+ }[] | undefined;
1854
+ available_direct_debits?: {
1855
+ direct_debit_type: string;
1856
+ }[] | undefined;
1857
+ }[];
1858
+ has_more: boolean;
1859
+ }>;
1860
+ export type ListInvoicesResponse = z.infer<typeof ListInvoicesResponseSchema>;
1861
+ export declare const UpdateInvoiceParamsSchema: z.ZodObject<{
1862
+ invoice_id: z.ZodString;
1863
+ payload: z.ZodObject<{
1864
+ should_send_email: z.ZodOptional<z.ZodBoolean>;
1865
+ customer_name: z.ZodOptional<z.ZodString>;
1866
+ customer_email: z.ZodOptional<z.ZodString>;
1867
+ customer_phone: z.ZodOptional<z.ZodString>;
1868
+ customer: z.ZodOptional<z.ZodObject<{
1869
+ customer_name: z.ZodOptional<z.ZodString>;
1870
+ customer_email: z.ZodOptional<z.ZodString>;
1871
+ customer_phone: z.ZodOptional<z.ZodString>;
1872
+ billing_address: z.ZodOptional<z.ZodObject<{
1873
+ first_name: z.ZodOptional<z.ZodString>;
1874
+ last_name: z.ZodOptional<z.ZodString>;
1875
+ address: z.ZodOptional<z.ZodString>;
1876
+ city: z.ZodOptional<z.ZodString>;
1877
+ postal_code: z.ZodOptional<z.ZodString>;
1878
+ phone: z.ZodOptional<z.ZodString>;
1879
+ country_code: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"PH">, z.ZodLiteral<"ID">, z.ZodLiteral<"MY">, z.ZodLiteral<"TH">, z.ZodLiteral<"VN">]>>;
1880
+ }, "strip", z.ZodTypeAny, {
1881
+ city?: string | undefined;
1882
+ postal_code?: string | undefined;
1883
+ first_name?: string | undefined;
1884
+ last_name?: string | undefined;
1885
+ address?: string | undefined;
1886
+ phone?: string | undefined;
1887
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
1888
+ }, {
1889
+ city?: string | undefined;
1890
+ postal_code?: string | undefined;
1891
+ first_name?: string | undefined;
1892
+ last_name?: string | undefined;
1893
+ address?: string | undefined;
1894
+ phone?: string | undefined;
1895
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
1896
+ }>>;
1897
+ shipping_address: z.ZodOptional<z.ZodObject<{
1898
+ first_name: z.ZodOptional<z.ZodString>;
1899
+ last_name: z.ZodOptional<z.ZodString>;
1900
+ address: z.ZodOptional<z.ZodString>;
1901
+ city: z.ZodOptional<z.ZodString>;
1902
+ postal_code: z.ZodOptional<z.ZodString>;
1903
+ phone: z.ZodOptional<z.ZodString>;
1904
+ country_code: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"PH">, z.ZodLiteral<"ID">, z.ZodLiteral<"MY">, z.ZodLiteral<"TH">, z.ZodLiteral<"VN">]>>;
1905
+ }, "strip", z.ZodTypeAny, {
1906
+ city?: string | undefined;
1907
+ postal_code?: string | undefined;
1908
+ first_name?: string | undefined;
1909
+ last_name?: string | undefined;
1910
+ address?: string | undefined;
1911
+ phone?: string | undefined;
1912
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
1913
+ }, {
1914
+ city?: string | undefined;
1915
+ postal_code?: string | undefined;
1916
+ first_name?: string | undefined;
1917
+ last_name?: string | undefined;
1918
+ address?: string | undefined;
1919
+ phone?: string | undefined;
1920
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
1921
+ }>>;
1922
+ }, "strip", z.ZodTypeAny, {
1923
+ customer_name?: string | undefined;
1924
+ customer_email?: string | undefined;
1925
+ customer_phone?: string | undefined;
1926
+ billing_address?: {
1927
+ city?: string | undefined;
1928
+ postal_code?: string | undefined;
1929
+ first_name?: string | undefined;
1930
+ last_name?: string | undefined;
1931
+ address?: string | undefined;
1932
+ phone?: string | undefined;
1933
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
1934
+ } | undefined;
1935
+ shipping_address?: {
1936
+ city?: string | undefined;
1937
+ postal_code?: string | undefined;
1938
+ first_name?: string | undefined;
1939
+ last_name?: string | undefined;
1940
+ address?: string | undefined;
1941
+ phone?: string | undefined;
1942
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
1943
+ } | undefined;
1944
+ }, {
1945
+ customer_name?: string | undefined;
1946
+ customer_email?: string | undefined;
1947
+ customer_phone?: string | undefined;
1948
+ billing_address?: {
1949
+ city?: string | undefined;
1950
+ postal_code?: string | undefined;
1951
+ first_name?: string | undefined;
1952
+ last_name?: string | undefined;
1953
+ address?: string | undefined;
1954
+ phone?: string | undefined;
1955
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
1956
+ } | undefined;
1957
+ shipping_address?: {
1958
+ city?: string | undefined;
1959
+ postal_code?: string | undefined;
1960
+ first_name?: string | undefined;
1961
+ last_name?: string | undefined;
1962
+ address?: string | undefined;
1963
+ phone?: string | undefined;
1964
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
1965
+ } | undefined;
1966
+ }>>;
1967
+ customer_notification_preference: z.ZodOptional<z.ZodObject<{
1968
+ invoice_created: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"whatsapp">, z.ZodLiteral<"sms">, z.ZodLiteral<"email">]>, "many">>;
1969
+ invoice_reminder: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"whatsapp">, z.ZodLiteral<"sms">, z.ZodLiteral<"email">]>, "many">>;
1970
+ invoice_paid: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"whatsapp">, z.ZodLiteral<"sms">, z.ZodLiteral<"email">]>, "many">>;
1971
+ invoice_expired: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"whatsapp">, z.ZodLiteral<"sms">, z.ZodLiteral<"email">]>, "many">>;
1972
+ }, "strip", z.ZodTypeAny, {
1973
+ invoice_created?: ("email" | "whatsapp" | "sms")[] | undefined;
1974
+ invoice_reminder?: ("email" | "whatsapp" | "sms")[] | undefined;
1975
+ invoice_paid?: ("email" | "whatsapp" | "sms")[] | undefined;
1976
+ invoice_expired?: ("email" | "whatsapp" | "sms")[] | undefined;
1977
+ }, {
1978
+ invoice_created?: ("email" | "whatsapp" | "sms")[] | undefined;
1979
+ invoice_reminder?: ("email" | "whatsapp" | "sms")[] | undefined;
1980
+ invoice_paid?: ("email" | "whatsapp" | "sms")[] | undefined;
1981
+ invoice_expired?: ("email" | "whatsapp" | "sms")[] | undefined;
1982
+ }>>;
1983
+ success_redirect_url: z.ZodOptional<z.ZodString>;
1984
+ failure_redirect_url: z.ZodOptional<z.ZodString>;
1985
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
1986
+ name: z.ZodString;
1987
+ quantity: z.ZodNumber;
1988
+ price: z.ZodNumber;
1989
+ category: z.ZodOptional<z.ZodString>;
1990
+ url: z.ZodOptional<z.ZodString>;
1991
+ }, "strip", z.ZodTypeAny, {
1992
+ name: string;
1993
+ price: number;
1994
+ quantity: number;
1995
+ url?: string | undefined;
1996
+ category?: string | undefined;
1997
+ }, {
1998
+ name: string;
1999
+ price: number;
2000
+ quantity: number;
2001
+ url?: string | undefined;
2002
+ category?: string | undefined;
2003
+ }>, "many">>;
2004
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2005
+ }, "strip", z.ZodTypeAny, {
2006
+ metadata?: Record<string, unknown> | undefined;
2007
+ success_redirect_url?: string | undefined;
2008
+ failure_redirect_url?: string | undefined;
2009
+ customer_name?: string | undefined;
2010
+ customer_email?: string | undefined;
2011
+ customer_phone?: string | undefined;
2012
+ should_send_email?: boolean | undefined;
2013
+ customer?: {
2014
+ customer_name?: string | undefined;
2015
+ customer_email?: string | undefined;
2016
+ customer_phone?: string | undefined;
2017
+ billing_address?: {
2018
+ city?: string | undefined;
2019
+ postal_code?: string | undefined;
2020
+ first_name?: string | undefined;
2021
+ last_name?: string | undefined;
2022
+ address?: string | undefined;
2023
+ phone?: string | undefined;
2024
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
2025
+ } | undefined;
2026
+ shipping_address?: {
2027
+ city?: string | undefined;
2028
+ postal_code?: string | undefined;
2029
+ first_name?: string | undefined;
2030
+ last_name?: string | undefined;
2031
+ address?: string | undefined;
2032
+ phone?: string | undefined;
2033
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
2034
+ } | undefined;
2035
+ } | undefined;
2036
+ customer_notification_preference?: {
2037
+ invoice_created?: ("email" | "whatsapp" | "sms")[] | undefined;
2038
+ invoice_reminder?: ("email" | "whatsapp" | "sms")[] | undefined;
2039
+ invoice_paid?: ("email" | "whatsapp" | "sms")[] | undefined;
2040
+ invoice_expired?: ("email" | "whatsapp" | "sms")[] | undefined;
2041
+ } | undefined;
2042
+ items?: {
2043
+ name: string;
2044
+ price: number;
2045
+ quantity: number;
2046
+ url?: string | undefined;
2047
+ category?: string | undefined;
2048
+ }[] | undefined;
2049
+ }, {
2050
+ metadata?: Record<string, unknown> | undefined;
2051
+ success_redirect_url?: string | undefined;
2052
+ failure_redirect_url?: string | undefined;
2053
+ customer_name?: string | undefined;
2054
+ customer_email?: string | undefined;
2055
+ customer_phone?: string | undefined;
2056
+ should_send_email?: boolean | undefined;
2057
+ customer?: {
2058
+ customer_name?: string | undefined;
2059
+ customer_email?: string | undefined;
2060
+ customer_phone?: string | undefined;
2061
+ billing_address?: {
2062
+ city?: string | undefined;
2063
+ postal_code?: string | undefined;
2064
+ first_name?: string | undefined;
2065
+ last_name?: string | undefined;
2066
+ address?: string | undefined;
2067
+ phone?: string | undefined;
2068
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
2069
+ } | undefined;
2070
+ shipping_address?: {
2071
+ city?: string | undefined;
2072
+ postal_code?: string | undefined;
2073
+ first_name?: string | undefined;
2074
+ last_name?: string | undefined;
2075
+ address?: string | undefined;
2076
+ phone?: string | undefined;
2077
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
2078
+ } | undefined;
2079
+ } | undefined;
2080
+ customer_notification_preference?: {
2081
+ invoice_created?: ("email" | "whatsapp" | "sms")[] | undefined;
2082
+ invoice_reminder?: ("email" | "whatsapp" | "sms")[] | undefined;
2083
+ invoice_paid?: ("email" | "whatsapp" | "sms")[] | undefined;
2084
+ invoice_expired?: ("email" | "whatsapp" | "sms")[] | undefined;
2085
+ } | undefined;
2086
+ items?: {
2087
+ name: string;
2088
+ price: number;
2089
+ quantity: number;
2090
+ url?: string | undefined;
2091
+ category?: string | undefined;
2092
+ }[] | undefined;
2093
+ }>;
2094
+ }, "strip", z.ZodTypeAny, {
2095
+ payload: {
2096
+ metadata?: Record<string, unknown> | undefined;
2097
+ success_redirect_url?: string | undefined;
2098
+ failure_redirect_url?: string | undefined;
2099
+ customer_name?: string | undefined;
2100
+ customer_email?: string | undefined;
2101
+ customer_phone?: string | undefined;
2102
+ should_send_email?: boolean | undefined;
2103
+ customer?: {
2104
+ customer_name?: string | undefined;
2105
+ customer_email?: string | undefined;
2106
+ customer_phone?: string | undefined;
2107
+ billing_address?: {
2108
+ city?: string | undefined;
2109
+ postal_code?: string | undefined;
2110
+ first_name?: string | undefined;
2111
+ last_name?: string | undefined;
2112
+ address?: string | undefined;
2113
+ phone?: string | undefined;
2114
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
2115
+ } | undefined;
2116
+ shipping_address?: {
2117
+ city?: string | undefined;
2118
+ postal_code?: string | undefined;
2119
+ first_name?: string | undefined;
2120
+ last_name?: string | undefined;
2121
+ address?: string | undefined;
2122
+ phone?: string | undefined;
2123
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
2124
+ } | undefined;
2125
+ } | undefined;
2126
+ customer_notification_preference?: {
2127
+ invoice_created?: ("email" | "whatsapp" | "sms")[] | undefined;
2128
+ invoice_reminder?: ("email" | "whatsapp" | "sms")[] | undefined;
2129
+ invoice_paid?: ("email" | "whatsapp" | "sms")[] | undefined;
2130
+ invoice_expired?: ("email" | "whatsapp" | "sms")[] | undefined;
2131
+ } | undefined;
2132
+ items?: {
2133
+ name: string;
2134
+ price: number;
2135
+ quantity: number;
2136
+ url?: string | undefined;
2137
+ category?: string | undefined;
2138
+ }[] | undefined;
2139
+ };
2140
+ invoice_id: string;
2141
+ }, {
2142
+ payload: {
2143
+ metadata?: Record<string, unknown> | undefined;
2144
+ success_redirect_url?: string | undefined;
2145
+ failure_redirect_url?: string | undefined;
2146
+ customer_name?: string | undefined;
2147
+ customer_email?: string | undefined;
2148
+ customer_phone?: string | undefined;
2149
+ should_send_email?: boolean | undefined;
2150
+ customer?: {
2151
+ customer_name?: string | undefined;
2152
+ customer_email?: string | undefined;
2153
+ customer_phone?: string | undefined;
2154
+ billing_address?: {
2155
+ city?: string | undefined;
2156
+ postal_code?: string | undefined;
2157
+ first_name?: string | undefined;
2158
+ last_name?: string | undefined;
2159
+ address?: string | undefined;
2160
+ phone?: string | undefined;
2161
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
2162
+ } | undefined;
2163
+ shipping_address?: {
2164
+ city?: string | undefined;
2165
+ postal_code?: string | undefined;
2166
+ first_name?: string | undefined;
2167
+ last_name?: string | undefined;
2168
+ address?: string | undefined;
2169
+ phone?: string | undefined;
2170
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
2171
+ } | undefined;
2172
+ } | undefined;
2173
+ customer_notification_preference?: {
2174
+ invoice_created?: ("email" | "whatsapp" | "sms")[] | undefined;
2175
+ invoice_reminder?: ("email" | "whatsapp" | "sms")[] | undefined;
2176
+ invoice_paid?: ("email" | "whatsapp" | "sms")[] | undefined;
2177
+ invoice_expired?: ("email" | "whatsapp" | "sms")[] | undefined;
2178
+ } | undefined;
2179
+ items?: {
2180
+ name: string;
2181
+ price: number;
2182
+ quantity: number;
2183
+ url?: string | undefined;
2184
+ category?: string | undefined;
2185
+ }[] | undefined;
2186
+ };
2187
+ invoice_id: string;
2188
+ }>;
2189
+ export type UpdateInvoiceParams = z.infer<typeof UpdateInvoiceParamsSchema>;
2190
+ export declare const ExpireInvoiceSchema: z.ZodObject<{
2191
+ invoice_id: z.ZodString;
2192
+ }, "strip", z.ZodTypeAny, {
2193
+ invoice_id: string;
2194
+ }, {
2195
+ invoice_id: string;
2196
+ }>;
2197
+ export type ExpireInvoice = z.infer<typeof ExpireInvoiceSchema>;
2198
+ //# sourceMappingURL=schema.d.ts.map