xendit-fn 1.0.0 → 1.0.4

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 (40) hide show
  1. package/README.md +515 -114
  2. package/lib/index.cjs +1273 -43
  3. package/lib/index.d.cts +9180 -6479
  4. package/lib/index.d.ts +1 -1
  5. package/lib/index.d.ts.map +1 -1
  6. package/lib/index.esm.d.ts +9180 -6479
  7. package/lib/index.esm.js +1273 -43
  8. package/lib/sdk/balance/index.d.ts +5 -0
  9. package/lib/sdk/balance/index.d.ts.map +1 -0
  10. package/lib/sdk/balance/schema.d.ts +170 -0
  11. package/lib/sdk/balance/schema.d.ts.map +1 -0
  12. package/lib/sdk/card/index.d.ts +14 -1
  13. package/lib/sdk/card/index.d.ts.map +1 -1
  14. package/lib/sdk/card/schema.d.ts +9 -8
  15. package/lib/sdk/card/schema.d.ts.map +1 -1
  16. package/lib/sdk/common.d.ts.map +1 -1
  17. package/lib/sdk/customer/index.d.ts.map +1 -1
  18. package/lib/sdk/ewallet/create.d.ts +3 -171
  19. package/lib/sdk/ewallet/create.d.ts.map +1 -1
  20. package/lib/sdk/index.d.ts +872 -2
  21. package/lib/sdk/index.d.ts.map +1 -1
  22. package/lib/sdk/invoice/index.d.ts.map +1 -1
  23. package/lib/sdk/payment-method/index.d.ts.map +1 -1
  24. package/lib/sdk/payment-request/index.d.ts +6 -0
  25. package/lib/sdk/payment-request/index.d.ts.map +1 -0
  26. package/lib/sdk/payment-request/schema.d.ts +1341 -0
  27. package/lib/sdk/payment-request/schema.d.ts.map +1 -0
  28. package/lib/sdk/payout/index.d.ts +7 -0
  29. package/lib/sdk/payout/index.d.ts.map +1 -0
  30. package/lib/sdk/payout/schema.d.ts +853 -0
  31. package/lib/sdk/payout/schema.d.ts.map +1 -0
  32. package/lib/sdk/refund/index.d.ts +6 -0
  33. package/lib/sdk/refund/index.d.ts.map +1 -0
  34. package/lib/sdk/refund/schema.d.ts +178 -0
  35. package/lib/sdk/refund/schema.d.ts.map +1 -0
  36. package/lib/utils/pagination.d.ts +1 -1
  37. package/lib/utils/pagination.d.ts.map +1 -1
  38. package/lib/utils/rate-limit.d.ts +3 -3
  39. package/lib/utils/rate-limit.d.ts.map +1 -1
  40. package/package.json +3 -2
@@ -0,0 +1,1341 @@
1
+ import { z } from "zod";
2
+ export declare const PaymentRequestTypeSchema: z.ZodUnion<[z.ZodLiteral<"PAY">, z.ZodLiteral<"PAY_AND_SAVE">, z.ZodLiteral<"REUSABLE_PAYMENT_CODE">]>;
3
+ export type PaymentRequestType = z.infer<typeof PaymentRequestTypeSchema>;
4
+ export declare const CaptureMethodSchema: z.ZodUnion<[z.ZodLiteral<"AUTOMATIC">, z.ZodLiteral<"MANUAL">]>;
5
+ export type CaptureMethod = z.infer<typeof CaptureMethodSchema>;
6
+ export declare const PaymentRequestStatusSchema: z.ZodUnion<[z.ZodLiteral<"PENDING">, z.ZodLiteral<"REQUIRES_ACTION">, z.ZodLiteral<"SUCCEEDED">, z.ZodLiteral<"FAILED">, z.ZodLiteral<"VOIDED">, z.ZodLiteral<"CANCELED">]>;
7
+ export type PaymentRequestStatus = z.infer<typeof PaymentRequestStatusSchema>;
8
+ export declare const ChannelCodeSchema: z.ZodString;
9
+ export type ChannelCode = z.infer<typeof ChannelCodeSchema>;
10
+ export declare const ChannelPropertiesSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
11
+ export type ChannelProperties = z.infer<typeof ChannelPropertiesSchema>;
12
+ export declare const PaymentMethodSchema: z.ZodObject<{
13
+ type: z.ZodString;
14
+ card_information: z.ZodOptional<z.ZodObject<{
15
+ token_id: z.ZodString;
16
+ }, "strip", z.ZodTypeAny, {
17
+ token_id: string;
18
+ }, {
19
+ token_id: string;
20
+ }>>;
21
+ ewallet: z.ZodOptional<z.ZodObject<{
22
+ channel_code: z.ZodString;
23
+ channel_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
24
+ }, "strip", z.ZodTypeAny, {
25
+ channel_code: string;
26
+ channel_properties?: Record<string, unknown> | undefined;
27
+ }, {
28
+ channel_code: string;
29
+ channel_properties?: Record<string, unknown> | undefined;
30
+ }>>;
31
+ direct_debit: z.ZodOptional<z.ZodObject<{
32
+ channel_code: z.ZodString;
33
+ channel_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
34
+ }, "strip", z.ZodTypeAny, {
35
+ channel_code: string;
36
+ channel_properties?: Record<string, unknown> | undefined;
37
+ }, {
38
+ channel_code: string;
39
+ channel_properties?: Record<string, unknown> | undefined;
40
+ }>>;
41
+ over_the_counter: z.ZodOptional<z.ZodObject<{
42
+ channel_code: z.ZodString;
43
+ channel_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ channel_code: string;
46
+ channel_properties?: Record<string, unknown> | undefined;
47
+ }, {
48
+ channel_code: string;
49
+ channel_properties?: Record<string, unknown> | undefined;
50
+ }>>;
51
+ qr_code: z.ZodOptional<z.ZodObject<{
52
+ channel_code: z.ZodString;
53
+ channel_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
54
+ }, "strip", z.ZodTypeAny, {
55
+ channel_code: string;
56
+ channel_properties?: Record<string, unknown> | undefined;
57
+ }, {
58
+ channel_code: string;
59
+ channel_properties?: Record<string, unknown> | undefined;
60
+ }>>;
61
+ virtual_account: z.ZodOptional<z.ZodObject<{
62
+ channel_code: z.ZodString;
63
+ channel_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
64
+ }, "strip", z.ZodTypeAny, {
65
+ channel_code: string;
66
+ channel_properties?: Record<string, unknown> | undefined;
67
+ }, {
68
+ channel_code: string;
69
+ channel_properties?: Record<string, unknown> | undefined;
70
+ }>>;
71
+ }, "strip", z.ZodTypeAny, {
72
+ type: string;
73
+ ewallet?: {
74
+ channel_code: string;
75
+ channel_properties?: Record<string, unknown> | undefined;
76
+ } | undefined;
77
+ card_information?: {
78
+ token_id: string;
79
+ } | undefined;
80
+ direct_debit?: {
81
+ channel_code: string;
82
+ channel_properties?: Record<string, unknown> | undefined;
83
+ } | undefined;
84
+ over_the_counter?: {
85
+ channel_code: string;
86
+ channel_properties?: Record<string, unknown> | undefined;
87
+ } | undefined;
88
+ qr_code?: {
89
+ channel_code: string;
90
+ channel_properties?: Record<string, unknown> | undefined;
91
+ } | undefined;
92
+ virtual_account?: {
93
+ channel_code: string;
94
+ channel_properties?: Record<string, unknown> | undefined;
95
+ } | undefined;
96
+ }, {
97
+ type: string;
98
+ ewallet?: {
99
+ channel_code: string;
100
+ channel_properties?: Record<string, unknown> | undefined;
101
+ } | undefined;
102
+ card_information?: {
103
+ token_id: string;
104
+ } | undefined;
105
+ direct_debit?: {
106
+ channel_code: string;
107
+ channel_properties?: Record<string, unknown> | undefined;
108
+ } | undefined;
109
+ over_the_counter?: {
110
+ channel_code: string;
111
+ channel_properties?: Record<string, unknown> | undefined;
112
+ } | undefined;
113
+ qr_code?: {
114
+ channel_code: string;
115
+ channel_properties?: Record<string, unknown> | undefined;
116
+ } | undefined;
117
+ virtual_account?: {
118
+ channel_code: string;
119
+ channel_properties?: Record<string, unknown> | undefined;
120
+ } | undefined;
121
+ }>;
122
+ export type PaymentMethod = z.infer<typeof PaymentMethodSchema>;
123
+ export declare const CreatePaymentRequestSchema: z.ZodObject<{
124
+ reference_id: z.ZodString;
125
+ type: z.ZodUnion<[z.ZodLiteral<"PAY">, z.ZodLiteral<"PAY_AND_SAVE">, z.ZodLiteral<"REUSABLE_PAYMENT_CODE">]>;
126
+ country: z.ZodUnion<[z.ZodLiteral<"PH">, z.ZodLiteral<"ID">, z.ZodLiteral<"MY">, z.ZodLiteral<"TH">, z.ZodLiteral<"VN">]>;
127
+ currency: z.ZodUnion<[z.ZodLiteral<"PHP">, z.ZodLiteral<"IDR">, z.ZodLiteral<"MYR">, z.ZodLiteral<"THB">, z.ZodLiteral<"VND">]>;
128
+ request_amount: z.ZodNumber;
129
+ payment_method: z.ZodObject<{
130
+ type: z.ZodString;
131
+ card_information: z.ZodOptional<z.ZodObject<{
132
+ token_id: z.ZodString;
133
+ }, "strip", z.ZodTypeAny, {
134
+ token_id: string;
135
+ }, {
136
+ token_id: string;
137
+ }>>;
138
+ ewallet: z.ZodOptional<z.ZodObject<{
139
+ channel_code: z.ZodString;
140
+ channel_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
141
+ }, "strip", z.ZodTypeAny, {
142
+ channel_code: string;
143
+ channel_properties?: Record<string, unknown> | undefined;
144
+ }, {
145
+ channel_code: string;
146
+ channel_properties?: Record<string, unknown> | undefined;
147
+ }>>;
148
+ direct_debit: z.ZodOptional<z.ZodObject<{
149
+ channel_code: z.ZodString;
150
+ channel_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
151
+ }, "strip", z.ZodTypeAny, {
152
+ channel_code: string;
153
+ channel_properties?: Record<string, unknown> | undefined;
154
+ }, {
155
+ channel_code: string;
156
+ channel_properties?: Record<string, unknown> | undefined;
157
+ }>>;
158
+ over_the_counter: z.ZodOptional<z.ZodObject<{
159
+ channel_code: z.ZodString;
160
+ channel_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
161
+ }, "strip", z.ZodTypeAny, {
162
+ channel_code: string;
163
+ channel_properties?: Record<string, unknown> | undefined;
164
+ }, {
165
+ channel_code: string;
166
+ channel_properties?: Record<string, unknown> | undefined;
167
+ }>>;
168
+ qr_code: z.ZodOptional<z.ZodObject<{
169
+ channel_code: z.ZodString;
170
+ channel_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
171
+ }, "strip", z.ZodTypeAny, {
172
+ channel_code: string;
173
+ channel_properties?: Record<string, unknown> | undefined;
174
+ }, {
175
+ channel_code: string;
176
+ channel_properties?: Record<string, unknown> | undefined;
177
+ }>>;
178
+ virtual_account: z.ZodOptional<z.ZodObject<{
179
+ channel_code: z.ZodString;
180
+ channel_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
181
+ }, "strip", z.ZodTypeAny, {
182
+ channel_code: string;
183
+ channel_properties?: Record<string, unknown> | undefined;
184
+ }, {
185
+ channel_code: string;
186
+ channel_properties?: Record<string, unknown> | undefined;
187
+ }>>;
188
+ }, "strip", z.ZodTypeAny, {
189
+ type: string;
190
+ ewallet?: {
191
+ channel_code: string;
192
+ channel_properties?: Record<string, unknown> | undefined;
193
+ } | undefined;
194
+ card_information?: {
195
+ token_id: string;
196
+ } | undefined;
197
+ direct_debit?: {
198
+ channel_code: string;
199
+ channel_properties?: Record<string, unknown> | undefined;
200
+ } | undefined;
201
+ over_the_counter?: {
202
+ channel_code: string;
203
+ channel_properties?: Record<string, unknown> | undefined;
204
+ } | undefined;
205
+ qr_code?: {
206
+ channel_code: string;
207
+ channel_properties?: Record<string, unknown> | undefined;
208
+ } | undefined;
209
+ virtual_account?: {
210
+ channel_code: string;
211
+ channel_properties?: Record<string, unknown> | undefined;
212
+ } | undefined;
213
+ }, {
214
+ type: string;
215
+ ewallet?: {
216
+ channel_code: string;
217
+ channel_properties?: Record<string, unknown> | undefined;
218
+ } | undefined;
219
+ card_information?: {
220
+ token_id: string;
221
+ } | undefined;
222
+ direct_debit?: {
223
+ channel_code: string;
224
+ channel_properties?: Record<string, unknown> | undefined;
225
+ } | undefined;
226
+ over_the_counter?: {
227
+ channel_code: string;
228
+ channel_properties?: Record<string, unknown> | undefined;
229
+ } | undefined;
230
+ qr_code?: {
231
+ channel_code: string;
232
+ channel_properties?: Record<string, unknown> | undefined;
233
+ } | undefined;
234
+ virtual_account?: {
235
+ channel_code: string;
236
+ channel_properties?: Record<string, unknown> | undefined;
237
+ } | undefined;
238
+ }>;
239
+ description: z.ZodOptional<z.ZodString>;
240
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
241
+ customer_id: z.ZodOptional<z.ZodString>;
242
+ customer: z.ZodOptional<z.ZodObject<{
243
+ given_names: z.ZodString;
244
+ surname: z.ZodOptional<z.ZodString>;
245
+ email: z.ZodOptional<z.ZodString>;
246
+ mobile_number: z.ZodOptional<z.ZodString>;
247
+ }, "strip", z.ZodTypeAny, {
248
+ given_names: string;
249
+ surname?: string | undefined;
250
+ email?: string | undefined;
251
+ mobile_number?: string | undefined;
252
+ }, {
253
+ given_names: string;
254
+ surname?: string | undefined;
255
+ email?: string | undefined;
256
+ mobile_number?: string | undefined;
257
+ }>>;
258
+ shipping_information: z.ZodOptional<z.ZodObject<{
259
+ name: z.ZodString;
260
+ phone_number: z.ZodOptional<z.ZodString>;
261
+ address: z.ZodOptional<z.ZodString>;
262
+ city: z.ZodOptional<z.ZodString>;
263
+ province: z.ZodOptional<z.ZodString>;
264
+ postal_code: z.ZodOptional<z.ZodString>;
265
+ country_code: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"PH">, z.ZodLiteral<"ID">, z.ZodLiteral<"MY">, z.ZodLiteral<"TH">, z.ZodLiteral<"VN">]>>;
266
+ }, "strip", z.ZodTypeAny, {
267
+ name: string;
268
+ phone_number?: string | undefined;
269
+ city?: string | undefined;
270
+ postal_code?: string | undefined;
271
+ address?: string | undefined;
272
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
273
+ province?: string | undefined;
274
+ }, {
275
+ name: string;
276
+ phone_number?: string | undefined;
277
+ city?: string | undefined;
278
+ postal_code?: string | undefined;
279
+ address?: string | undefined;
280
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
281
+ province?: string | undefined;
282
+ }>>;
283
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
284
+ name: z.ZodString;
285
+ quantity: z.ZodNumber;
286
+ price: z.ZodNumber;
287
+ category: z.ZodOptional<z.ZodString>;
288
+ reference_id: z.ZodOptional<z.ZodString>;
289
+ url: z.ZodOptional<z.ZodString>;
290
+ }, "strip", z.ZodTypeAny, {
291
+ name: string;
292
+ price: number;
293
+ quantity: number;
294
+ url?: string | undefined;
295
+ category?: string | undefined;
296
+ reference_id?: string | undefined;
297
+ }, {
298
+ name: string;
299
+ price: number;
300
+ quantity: number;
301
+ url?: string | undefined;
302
+ category?: string | undefined;
303
+ reference_id?: string | undefined;
304
+ }>, "many">>;
305
+ capture_method: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"AUTOMATIC">, z.ZodLiteral<"MANUAL">]>>;
306
+ success_redirect_url: z.ZodOptional<z.ZodString>;
307
+ failure_redirect_url: z.ZodOptional<z.ZodString>;
308
+ }, "strip", z.ZodTypeAny, {
309
+ type: "PAY" | "PAY_AND_SAVE" | "REUSABLE_PAYMENT_CODE";
310
+ country: "PH" | "ID" | "MY" | "TH" | "VN";
311
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
312
+ reference_id: string;
313
+ payment_method: {
314
+ type: string;
315
+ ewallet?: {
316
+ channel_code: string;
317
+ channel_properties?: Record<string, unknown> | undefined;
318
+ } | undefined;
319
+ card_information?: {
320
+ token_id: string;
321
+ } | undefined;
322
+ direct_debit?: {
323
+ channel_code: string;
324
+ channel_properties?: Record<string, unknown> | undefined;
325
+ } | undefined;
326
+ over_the_counter?: {
327
+ channel_code: string;
328
+ channel_properties?: Record<string, unknown> | undefined;
329
+ } | undefined;
330
+ qr_code?: {
331
+ channel_code: string;
332
+ channel_properties?: Record<string, unknown> | undefined;
333
+ } | undefined;
334
+ virtual_account?: {
335
+ channel_code: string;
336
+ channel_properties?: Record<string, unknown> | undefined;
337
+ } | undefined;
338
+ };
339
+ request_amount: number;
340
+ description?: string | undefined;
341
+ metadata?: Record<string, unknown> | undefined;
342
+ success_redirect_url?: string | undefined;
343
+ failure_redirect_url?: string | undefined;
344
+ customer_id?: string | undefined;
345
+ customer?: {
346
+ given_names: string;
347
+ surname?: string | undefined;
348
+ email?: string | undefined;
349
+ mobile_number?: string | undefined;
350
+ } | undefined;
351
+ items?: {
352
+ name: string;
353
+ price: number;
354
+ quantity: number;
355
+ url?: string | undefined;
356
+ category?: string | undefined;
357
+ reference_id?: string | undefined;
358
+ }[] | undefined;
359
+ shipping_information?: {
360
+ name: string;
361
+ phone_number?: string | undefined;
362
+ city?: string | undefined;
363
+ postal_code?: string | undefined;
364
+ address?: string | undefined;
365
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
366
+ province?: string | undefined;
367
+ } | undefined;
368
+ capture_method?: "AUTOMATIC" | "MANUAL" | undefined;
369
+ }, {
370
+ type: "PAY" | "PAY_AND_SAVE" | "REUSABLE_PAYMENT_CODE";
371
+ country: "PH" | "ID" | "MY" | "TH" | "VN";
372
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
373
+ reference_id: string;
374
+ payment_method: {
375
+ type: string;
376
+ ewallet?: {
377
+ channel_code: string;
378
+ channel_properties?: Record<string, unknown> | undefined;
379
+ } | undefined;
380
+ card_information?: {
381
+ token_id: string;
382
+ } | undefined;
383
+ direct_debit?: {
384
+ channel_code: string;
385
+ channel_properties?: Record<string, unknown> | undefined;
386
+ } | undefined;
387
+ over_the_counter?: {
388
+ channel_code: string;
389
+ channel_properties?: Record<string, unknown> | undefined;
390
+ } | undefined;
391
+ qr_code?: {
392
+ channel_code: string;
393
+ channel_properties?: Record<string, unknown> | undefined;
394
+ } | undefined;
395
+ virtual_account?: {
396
+ channel_code: string;
397
+ channel_properties?: Record<string, unknown> | undefined;
398
+ } | undefined;
399
+ };
400
+ request_amount: number;
401
+ description?: string | undefined;
402
+ metadata?: Record<string, unknown> | undefined;
403
+ success_redirect_url?: string | undefined;
404
+ failure_redirect_url?: string | undefined;
405
+ customer_id?: string | undefined;
406
+ customer?: {
407
+ given_names: string;
408
+ surname?: string | undefined;
409
+ email?: string | undefined;
410
+ mobile_number?: string | undefined;
411
+ } | undefined;
412
+ items?: {
413
+ name: string;
414
+ price: number;
415
+ quantity: number;
416
+ url?: string | undefined;
417
+ category?: string | undefined;
418
+ reference_id?: string | undefined;
419
+ }[] | undefined;
420
+ shipping_information?: {
421
+ name: string;
422
+ phone_number?: string | undefined;
423
+ city?: string | undefined;
424
+ postal_code?: string | undefined;
425
+ address?: string | undefined;
426
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
427
+ province?: string | undefined;
428
+ } | undefined;
429
+ capture_method?: "AUTOMATIC" | "MANUAL" | undefined;
430
+ }>;
431
+ export type CreatePaymentRequest = z.infer<typeof CreatePaymentRequestSchema>;
432
+ export declare const PaymentRequestResourceSchema: z.ZodObject<{
433
+ id: z.ZodString;
434
+ reference_id: z.ZodString;
435
+ type: z.ZodUnion<[z.ZodLiteral<"PAY">, z.ZodLiteral<"PAY_AND_SAVE">, z.ZodLiteral<"REUSABLE_PAYMENT_CODE">]>;
436
+ country: z.ZodUnion<[z.ZodLiteral<"PH">, z.ZodLiteral<"ID">, z.ZodLiteral<"MY">, z.ZodLiteral<"TH">, z.ZodLiteral<"VN">]>;
437
+ currency: z.ZodUnion<[z.ZodLiteral<"PHP">, z.ZodLiteral<"IDR">, z.ZodLiteral<"MYR">, z.ZodLiteral<"THB">, z.ZodLiteral<"VND">]>;
438
+ request_amount: z.ZodNumber;
439
+ paid_amount: z.ZodOptional<z.ZodNumber>;
440
+ status: z.ZodUnion<[z.ZodLiteral<"PENDING">, z.ZodLiteral<"REQUIRES_ACTION">, z.ZodLiteral<"SUCCEEDED">, z.ZodLiteral<"FAILED">, z.ZodLiteral<"VOIDED">, z.ZodLiteral<"CANCELED">]>;
441
+ payment_method: z.ZodObject<{
442
+ type: z.ZodString;
443
+ card_information: z.ZodOptional<z.ZodObject<{
444
+ token_id: z.ZodString;
445
+ }, "strip", z.ZodTypeAny, {
446
+ token_id: string;
447
+ }, {
448
+ token_id: string;
449
+ }>>;
450
+ ewallet: z.ZodOptional<z.ZodObject<{
451
+ channel_code: z.ZodString;
452
+ channel_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
453
+ }, "strip", z.ZodTypeAny, {
454
+ channel_code: string;
455
+ channel_properties?: Record<string, unknown> | undefined;
456
+ }, {
457
+ channel_code: string;
458
+ channel_properties?: Record<string, unknown> | undefined;
459
+ }>>;
460
+ direct_debit: z.ZodOptional<z.ZodObject<{
461
+ channel_code: z.ZodString;
462
+ channel_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
463
+ }, "strip", z.ZodTypeAny, {
464
+ channel_code: string;
465
+ channel_properties?: Record<string, unknown> | undefined;
466
+ }, {
467
+ channel_code: string;
468
+ channel_properties?: Record<string, unknown> | undefined;
469
+ }>>;
470
+ over_the_counter: z.ZodOptional<z.ZodObject<{
471
+ channel_code: z.ZodString;
472
+ channel_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
473
+ }, "strip", z.ZodTypeAny, {
474
+ channel_code: string;
475
+ channel_properties?: Record<string, unknown> | undefined;
476
+ }, {
477
+ channel_code: string;
478
+ channel_properties?: Record<string, unknown> | undefined;
479
+ }>>;
480
+ qr_code: z.ZodOptional<z.ZodObject<{
481
+ channel_code: z.ZodString;
482
+ channel_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
483
+ }, "strip", z.ZodTypeAny, {
484
+ channel_code: string;
485
+ channel_properties?: Record<string, unknown> | undefined;
486
+ }, {
487
+ channel_code: string;
488
+ channel_properties?: Record<string, unknown> | undefined;
489
+ }>>;
490
+ virtual_account: z.ZodOptional<z.ZodObject<{
491
+ channel_code: z.ZodString;
492
+ channel_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
493
+ }, "strip", z.ZodTypeAny, {
494
+ channel_code: string;
495
+ channel_properties?: Record<string, unknown> | undefined;
496
+ }, {
497
+ channel_code: string;
498
+ channel_properties?: Record<string, unknown> | undefined;
499
+ }>>;
500
+ }, "strip", z.ZodTypeAny, {
501
+ type: string;
502
+ ewallet?: {
503
+ channel_code: string;
504
+ channel_properties?: Record<string, unknown> | undefined;
505
+ } | undefined;
506
+ card_information?: {
507
+ token_id: string;
508
+ } | undefined;
509
+ direct_debit?: {
510
+ channel_code: string;
511
+ channel_properties?: Record<string, unknown> | undefined;
512
+ } | undefined;
513
+ over_the_counter?: {
514
+ channel_code: string;
515
+ channel_properties?: Record<string, unknown> | undefined;
516
+ } | undefined;
517
+ qr_code?: {
518
+ channel_code: string;
519
+ channel_properties?: Record<string, unknown> | undefined;
520
+ } | undefined;
521
+ virtual_account?: {
522
+ channel_code: string;
523
+ channel_properties?: Record<string, unknown> | undefined;
524
+ } | undefined;
525
+ }, {
526
+ type: string;
527
+ ewallet?: {
528
+ channel_code: string;
529
+ channel_properties?: Record<string, unknown> | undefined;
530
+ } | undefined;
531
+ card_information?: {
532
+ token_id: string;
533
+ } | undefined;
534
+ direct_debit?: {
535
+ channel_code: string;
536
+ channel_properties?: Record<string, unknown> | undefined;
537
+ } | undefined;
538
+ over_the_counter?: {
539
+ channel_code: string;
540
+ channel_properties?: Record<string, unknown> | undefined;
541
+ } | undefined;
542
+ qr_code?: {
543
+ channel_code: string;
544
+ channel_properties?: Record<string, unknown> | undefined;
545
+ } | undefined;
546
+ virtual_account?: {
547
+ channel_code: string;
548
+ channel_properties?: Record<string, unknown> | undefined;
549
+ } | undefined;
550
+ }>;
551
+ description: z.ZodOptional<z.ZodString>;
552
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
553
+ customer_id: z.ZodOptional<z.ZodString>;
554
+ customer: z.ZodOptional<z.ZodObject<{
555
+ given_names: z.ZodString;
556
+ surname: z.ZodOptional<z.ZodString>;
557
+ email: z.ZodOptional<z.ZodString>;
558
+ mobile_number: z.ZodOptional<z.ZodString>;
559
+ }, "strip", z.ZodTypeAny, {
560
+ given_names: string;
561
+ surname?: string | undefined;
562
+ email?: string | undefined;
563
+ mobile_number?: string | undefined;
564
+ }, {
565
+ given_names: string;
566
+ surname?: string | undefined;
567
+ email?: string | undefined;
568
+ mobile_number?: string | undefined;
569
+ }>>;
570
+ shipping_information: z.ZodOptional<z.ZodObject<{
571
+ name: z.ZodString;
572
+ phone_number: z.ZodOptional<z.ZodString>;
573
+ address: z.ZodOptional<z.ZodString>;
574
+ city: z.ZodOptional<z.ZodString>;
575
+ province: z.ZodOptional<z.ZodString>;
576
+ postal_code: z.ZodOptional<z.ZodString>;
577
+ country_code: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"PH">, z.ZodLiteral<"ID">, z.ZodLiteral<"MY">, z.ZodLiteral<"TH">, z.ZodLiteral<"VN">]>>;
578
+ }, "strip", z.ZodTypeAny, {
579
+ name: string;
580
+ phone_number?: string | undefined;
581
+ city?: string | undefined;
582
+ postal_code?: string | undefined;
583
+ address?: string | undefined;
584
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
585
+ province?: string | undefined;
586
+ }, {
587
+ name: string;
588
+ phone_number?: string | undefined;
589
+ city?: string | undefined;
590
+ postal_code?: string | undefined;
591
+ address?: string | undefined;
592
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
593
+ province?: string | undefined;
594
+ }>>;
595
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
596
+ name: z.ZodString;
597
+ quantity: z.ZodNumber;
598
+ price: z.ZodNumber;
599
+ category: z.ZodOptional<z.ZodString>;
600
+ reference_id: z.ZodOptional<z.ZodString>;
601
+ url: z.ZodOptional<z.ZodString>;
602
+ }, "strip", z.ZodTypeAny, {
603
+ name: string;
604
+ price: number;
605
+ quantity: number;
606
+ url?: string | undefined;
607
+ category?: string | undefined;
608
+ reference_id?: string | undefined;
609
+ }, {
610
+ name: string;
611
+ price: number;
612
+ quantity: number;
613
+ url?: string | undefined;
614
+ category?: string | undefined;
615
+ reference_id?: string | undefined;
616
+ }>, "many">>;
617
+ actions: z.ZodOptional<z.ZodObject<{
618
+ desktop_web_checkout_url: z.ZodOptional<z.ZodString>;
619
+ mobile_web_checkout_url: z.ZodOptional<z.ZodString>;
620
+ mobile_deeplink_checkout_url: z.ZodOptional<z.ZodString>;
621
+ qr_checkout_string: z.ZodOptional<z.ZodString>;
622
+ }, "strip", z.ZodTypeAny, {
623
+ desktop_web_checkout_url?: string | undefined;
624
+ mobile_web_checkout_url?: string | undefined;
625
+ mobile_deeplink_checkout_url?: string | undefined;
626
+ qr_checkout_string?: string | undefined;
627
+ }, {
628
+ desktop_web_checkout_url?: string | undefined;
629
+ mobile_web_checkout_url?: string | undefined;
630
+ mobile_deeplink_checkout_url?: string | undefined;
631
+ qr_checkout_string?: string | undefined;
632
+ }>>;
633
+ created: z.ZodString;
634
+ updated: z.ZodString;
635
+ failure_reason: z.ZodOptional<z.ZodString>;
636
+ payment_request_id: z.ZodOptional<z.ZodString>;
637
+ }, "strip", z.ZodTypeAny, {
638
+ status: "SUCCEEDED" | "PENDING" | "FAILED" | "VOIDED" | "REQUIRES_ACTION" | "CANCELED";
639
+ type: "PAY" | "PAY_AND_SAVE" | "REUSABLE_PAYMENT_CODE";
640
+ country: "PH" | "ID" | "MY" | "TH" | "VN";
641
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
642
+ reference_id: string;
643
+ id: string;
644
+ created: string;
645
+ updated: string;
646
+ payment_method: {
647
+ type: string;
648
+ ewallet?: {
649
+ channel_code: string;
650
+ channel_properties?: Record<string, unknown> | undefined;
651
+ } | undefined;
652
+ card_information?: {
653
+ token_id: string;
654
+ } | undefined;
655
+ direct_debit?: {
656
+ channel_code: string;
657
+ channel_properties?: Record<string, unknown> | undefined;
658
+ } | undefined;
659
+ over_the_counter?: {
660
+ channel_code: string;
661
+ channel_properties?: Record<string, unknown> | undefined;
662
+ } | undefined;
663
+ qr_code?: {
664
+ channel_code: string;
665
+ channel_properties?: Record<string, unknown> | undefined;
666
+ } | undefined;
667
+ virtual_account?: {
668
+ channel_code: string;
669
+ channel_properties?: Record<string, unknown> | undefined;
670
+ } | undefined;
671
+ };
672
+ request_amount: number;
673
+ description?: string | undefined;
674
+ metadata?: Record<string, unknown> | undefined;
675
+ customer_id?: string | undefined;
676
+ actions?: {
677
+ desktop_web_checkout_url?: string | undefined;
678
+ mobile_web_checkout_url?: string | undefined;
679
+ mobile_deeplink_checkout_url?: string | undefined;
680
+ qr_checkout_string?: string | undefined;
681
+ } | undefined;
682
+ customer?: {
683
+ given_names: string;
684
+ surname?: string | undefined;
685
+ email?: string | undefined;
686
+ mobile_number?: string | undefined;
687
+ } | undefined;
688
+ items?: {
689
+ name: string;
690
+ price: number;
691
+ quantity: number;
692
+ url?: string | undefined;
693
+ category?: string | undefined;
694
+ reference_id?: string | undefined;
695
+ }[] | undefined;
696
+ paid_amount?: number | undefined;
697
+ shipping_information?: {
698
+ name: string;
699
+ phone_number?: string | undefined;
700
+ city?: string | undefined;
701
+ postal_code?: string | undefined;
702
+ address?: string | undefined;
703
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
704
+ province?: string | undefined;
705
+ } | undefined;
706
+ failure_reason?: string | undefined;
707
+ payment_request_id?: string | undefined;
708
+ }, {
709
+ status: "SUCCEEDED" | "PENDING" | "FAILED" | "VOIDED" | "REQUIRES_ACTION" | "CANCELED";
710
+ type: "PAY" | "PAY_AND_SAVE" | "REUSABLE_PAYMENT_CODE";
711
+ country: "PH" | "ID" | "MY" | "TH" | "VN";
712
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
713
+ reference_id: string;
714
+ id: string;
715
+ created: string;
716
+ updated: string;
717
+ payment_method: {
718
+ type: string;
719
+ ewallet?: {
720
+ channel_code: string;
721
+ channel_properties?: Record<string, unknown> | undefined;
722
+ } | undefined;
723
+ card_information?: {
724
+ token_id: string;
725
+ } | undefined;
726
+ direct_debit?: {
727
+ channel_code: string;
728
+ channel_properties?: Record<string, unknown> | undefined;
729
+ } | undefined;
730
+ over_the_counter?: {
731
+ channel_code: string;
732
+ channel_properties?: Record<string, unknown> | undefined;
733
+ } | undefined;
734
+ qr_code?: {
735
+ channel_code: string;
736
+ channel_properties?: Record<string, unknown> | undefined;
737
+ } | undefined;
738
+ virtual_account?: {
739
+ channel_code: string;
740
+ channel_properties?: Record<string, unknown> | undefined;
741
+ } | undefined;
742
+ };
743
+ request_amount: number;
744
+ description?: string | undefined;
745
+ metadata?: Record<string, unknown> | undefined;
746
+ customer_id?: string | undefined;
747
+ actions?: {
748
+ desktop_web_checkout_url?: string | undefined;
749
+ mobile_web_checkout_url?: string | undefined;
750
+ mobile_deeplink_checkout_url?: string | undefined;
751
+ qr_checkout_string?: string | undefined;
752
+ } | undefined;
753
+ customer?: {
754
+ given_names: string;
755
+ surname?: string | undefined;
756
+ email?: string | undefined;
757
+ mobile_number?: string | undefined;
758
+ } | undefined;
759
+ items?: {
760
+ name: string;
761
+ price: number;
762
+ quantity: number;
763
+ url?: string | undefined;
764
+ category?: string | undefined;
765
+ reference_id?: string | undefined;
766
+ }[] | undefined;
767
+ paid_amount?: number | undefined;
768
+ shipping_information?: {
769
+ name: string;
770
+ phone_number?: string | undefined;
771
+ city?: string | undefined;
772
+ postal_code?: string | undefined;
773
+ address?: string | undefined;
774
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
775
+ province?: string | undefined;
776
+ } | undefined;
777
+ failure_reason?: string | undefined;
778
+ payment_request_id?: string | undefined;
779
+ }>;
780
+ export type PaymentRequestResource = z.infer<typeof PaymentRequestResourceSchema>;
781
+ export declare const GetPaymentRequestSchema: z.ZodObject<{
782
+ id: z.ZodString;
783
+ }, "strip", z.ZodTypeAny, {
784
+ id: string;
785
+ }, {
786
+ id: string;
787
+ }>;
788
+ export type GetPaymentRequest = z.infer<typeof GetPaymentRequestSchema>;
789
+ export declare const ListPaymentRequestsSchema: z.ZodObject<{
790
+ reference_id: z.ZodOptional<z.ZodString>;
791
+ customer_id: z.ZodOptional<z.ZodString>;
792
+ status: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"PENDING">, z.ZodLiteral<"REQUIRES_ACTION">, z.ZodLiteral<"SUCCEEDED">, z.ZodLiteral<"FAILED">, z.ZodLiteral<"VOIDED">, z.ZodLiteral<"CANCELED">]>, "many">>;
793
+ limit: z.ZodOptional<z.ZodNumber>;
794
+ after_id: z.ZodOptional<z.ZodString>;
795
+ before_id: z.ZodOptional<z.ZodString>;
796
+ created_after: z.ZodOptional<z.ZodString>;
797
+ created_before: z.ZodOptional<z.ZodString>;
798
+ }, "strip", z.ZodTypeAny, {
799
+ status?: ("SUCCEEDED" | "PENDING" | "FAILED" | "VOIDED" | "REQUIRES_ACTION" | "CANCELED")[] | undefined;
800
+ reference_id?: string | undefined;
801
+ customer_id?: string | undefined;
802
+ after_id?: string | undefined;
803
+ before_id?: string | undefined;
804
+ limit?: number | undefined;
805
+ created_after?: string | undefined;
806
+ created_before?: string | undefined;
807
+ }, {
808
+ status?: ("SUCCEEDED" | "PENDING" | "FAILED" | "VOIDED" | "REQUIRES_ACTION" | "CANCELED")[] | undefined;
809
+ reference_id?: string | undefined;
810
+ customer_id?: string | undefined;
811
+ after_id?: string | undefined;
812
+ before_id?: string | undefined;
813
+ limit?: number | undefined;
814
+ created_after?: string | undefined;
815
+ created_before?: string | undefined;
816
+ }>;
817
+ export type ListPaymentRequests = z.infer<typeof ListPaymentRequestsSchema>;
818
+ export declare const ListPaymentRequestsResponseSchema: z.ZodObject<{
819
+ data: z.ZodArray<z.ZodObject<{
820
+ id: z.ZodString;
821
+ reference_id: z.ZodString;
822
+ type: z.ZodUnion<[z.ZodLiteral<"PAY">, z.ZodLiteral<"PAY_AND_SAVE">, z.ZodLiteral<"REUSABLE_PAYMENT_CODE">]>;
823
+ country: z.ZodUnion<[z.ZodLiteral<"PH">, z.ZodLiteral<"ID">, z.ZodLiteral<"MY">, z.ZodLiteral<"TH">, z.ZodLiteral<"VN">]>;
824
+ currency: z.ZodUnion<[z.ZodLiteral<"PHP">, z.ZodLiteral<"IDR">, z.ZodLiteral<"MYR">, z.ZodLiteral<"THB">, z.ZodLiteral<"VND">]>;
825
+ request_amount: z.ZodNumber;
826
+ paid_amount: z.ZodOptional<z.ZodNumber>;
827
+ status: z.ZodUnion<[z.ZodLiteral<"PENDING">, z.ZodLiteral<"REQUIRES_ACTION">, z.ZodLiteral<"SUCCEEDED">, z.ZodLiteral<"FAILED">, z.ZodLiteral<"VOIDED">, z.ZodLiteral<"CANCELED">]>;
828
+ payment_method: z.ZodObject<{
829
+ type: z.ZodString;
830
+ card_information: z.ZodOptional<z.ZodObject<{
831
+ token_id: z.ZodString;
832
+ }, "strip", z.ZodTypeAny, {
833
+ token_id: string;
834
+ }, {
835
+ token_id: string;
836
+ }>>;
837
+ ewallet: z.ZodOptional<z.ZodObject<{
838
+ channel_code: z.ZodString;
839
+ channel_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
840
+ }, "strip", z.ZodTypeAny, {
841
+ channel_code: string;
842
+ channel_properties?: Record<string, unknown> | undefined;
843
+ }, {
844
+ channel_code: string;
845
+ channel_properties?: Record<string, unknown> | undefined;
846
+ }>>;
847
+ direct_debit: z.ZodOptional<z.ZodObject<{
848
+ channel_code: z.ZodString;
849
+ channel_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
850
+ }, "strip", z.ZodTypeAny, {
851
+ channel_code: string;
852
+ channel_properties?: Record<string, unknown> | undefined;
853
+ }, {
854
+ channel_code: string;
855
+ channel_properties?: Record<string, unknown> | undefined;
856
+ }>>;
857
+ over_the_counter: z.ZodOptional<z.ZodObject<{
858
+ channel_code: z.ZodString;
859
+ channel_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
860
+ }, "strip", z.ZodTypeAny, {
861
+ channel_code: string;
862
+ channel_properties?: Record<string, unknown> | undefined;
863
+ }, {
864
+ channel_code: string;
865
+ channel_properties?: Record<string, unknown> | undefined;
866
+ }>>;
867
+ qr_code: z.ZodOptional<z.ZodObject<{
868
+ channel_code: z.ZodString;
869
+ channel_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
870
+ }, "strip", z.ZodTypeAny, {
871
+ channel_code: string;
872
+ channel_properties?: Record<string, unknown> | undefined;
873
+ }, {
874
+ channel_code: string;
875
+ channel_properties?: Record<string, unknown> | undefined;
876
+ }>>;
877
+ virtual_account: z.ZodOptional<z.ZodObject<{
878
+ channel_code: z.ZodString;
879
+ channel_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
880
+ }, "strip", z.ZodTypeAny, {
881
+ channel_code: string;
882
+ channel_properties?: Record<string, unknown> | undefined;
883
+ }, {
884
+ channel_code: string;
885
+ channel_properties?: Record<string, unknown> | undefined;
886
+ }>>;
887
+ }, "strip", z.ZodTypeAny, {
888
+ type: string;
889
+ ewallet?: {
890
+ channel_code: string;
891
+ channel_properties?: Record<string, unknown> | undefined;
892
+ } | undefined;
893
+ card_information?: {
894
+ token_id: string;
895
+ } | undefined;
896
+ direct_debit?: {
897
+ channel_code: string;
898
+ channel_properties?: Record<string, unknown> | undefined;
899
+ } | undefined;
900
+ over_the_counter?: {
901
+ channel_code: string;
902
+ channel_properties?: Record<string, unknown> | undefined;
903
+ } | undefined;
904
+ qr_code?: {
905
+ channel_code: string;
906
+ channel_properties?: Record<string, unknown> | undefined;
907
+ } | undefined;
908
+ virtual_account?: {
909
+ channel_code: string;
910
+ channel_properties?: Record<string, unknown> | undefined;
911
+ } | undefined;
912
+ }, {
913
+ type: string;
914
+ ewallet?: {
915
+ channel_code: string;
916
+ channel_properties?: Record<string, unknown> | undefined;
917
+ } | undefined;
918
+ card_information?: {
919
+ token_id: string;
920
+ } | undefined;
921
+ direct_debit?: {
922
+ channel_code: string;
923
+ channel_properties?: Record<string, unknown> | undefined;
924
+ } | undefined;
925
+ over_the_counter?: {
926
+ channel_code: string;
927
+ channel_properties?: Record<string, unknown> | undefined;
928
+ } | undefined;
929
+ qr_code?: {
930
+ channel_code: string;
931
+ channel_properties?: Record<string, unknown> | undefined;
932
+ } | undefined;
933
+ virtual_account?: {
934
+ channel_code: string;
935
+ channel_properties?: Record<string, unknown> | undefined;
936
+ } | undefined;
937
+ }>;
938
+ description: z.ZodOptional<z.ZodString>;
939
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
940
+ customer_id: z.ZodOptional<z.ZodString>;
941
+ customer: z.ZodOptional<z.ZodObject<{
942
+ given_names: z.ZodString;
943
+ surname: z.ZodOptional<z.ZodString>;
944
+ email: z.ZodOptional<z.ZodString>;
945
+ mobile_number: z.ZodOptional<z.ZodString>;
946
+ }, "strip", z.ZodTypeAny, {
947
+ given_names: string;
948
+ surname?: string | undefined;
949
+ email?: string | undefined;
950
+ mobile_number?: string | undefined;
951
+ }, {
952
+ given_names: string;
953
+ surname?: string | undefined;
954
+ email?: string | undefined;
955
+ mobile_number?: string | undefined;
956
+ }>>;
957
+ shipping_information: z.ZodOptional<z.ZodObject<{
958
+ name: z.ZodString;
959
+ phone_number: z.ZodOptional<z.ZodString>;
960
+ address: z.ZodOptional<z.ZodString>;
961
+ city: z.ZodOptional<z.ZodString>;
962
+ province: z.ZodOptional<z.ZodString>;
963
+ postal_code: z.ZodOptional<z.ZodString>;
964
+ country_code: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"PH">, z.ZodLiteral<"ID">, z.ZodLiteral<"MY">, z.ZodLiteral<"TH">, z.ZodLiteral<"VN">]>>;
965
+ }, "strip", z.ZodTypeAny, {
966
+ name: string;
967
+ phone_number?: string | undefined;
968
+ city?: string | undefined;
969
+ postal_code?: string | undefined;
970
+ address?: string | undefined;
971
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
972
+ province?: string | undefined;
973
+ }, {
974
+ name: string;
975
+ phone_number?: string | undefined;
976
+ city?: string | undefined;
977
+ postal_code?: string | undefined;
978
+ address?: string | undefined;
979
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
980
+ province?: string | undefined;
981
+ }>>;
982
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
983
+ name: z.ZodString;
984
+ quantity: z.ZodNumber;
985
+ price: z.ZodNumber;
986
+ category: z.ZodOptional<z.ZodString>;
987
+ reference_id: z.ZodOptional<z.ZodString>;
988
+ url: z.ZodOptional<z.ZodString>;
989
+ }, "strip", z.ZodTypeAny, {
990
+ name: string;
991
+ price: number;
992
+ quantity: number;
993
+ url?: string | undefined;
994
+ category?: string | undefined;
995
+ reference_id?: string | undefined;
996
+ }, {
997
+ name: string;
998
+ price: number;
999
+ quantity: number;
1000
+ url?: string | undefined;
1001
+ category?: string | undefined;
1002
+ reference_id?: string | undefined;
1003
+ }>, "many">>;
1004
+ actions: z.ZodOptional<z.ZodObject<{
1005
+ desktop_web_checkout_url: z.ZodOptional<z.ZodString>;
1006
+ mobile_web_checkout_url: z.ZodOptional<z.ZodString>;
1007
+ mobile_deeplink_checkout_url: z.ZodOptional<z.ZodString>;
1008
+ qr_checkout_string: z.ZodOptional<z.ZodString>;
1009
+ }, "strip", z.ZodTypeAny, {
1010
+ desktop_web_checkout_url?: string | undefined;
1011
+ mobile_web_checkout_url?: string | undefined;
1012
+ mobile_deeplink_checkout_url?: string | undefined;
1013
+ qr_checkout_string?: string | undefined;
1014
+ }, {
1015
+ desktop_web_checkout_url?: string | undefined;
1016
+ mobile_web_checkout_url?: string | undefined;
1017
+ mobile_deeplink_checkout_url?: string | undefined;
1018
+ qr_checkout_string?: string | undefined;
1019
+ }>>;
1020
+ created: z.ZodString;
1021
+ updated: z.ZodString;
1022
+ failure_reason: z.ZodOptional<z.ZodString>;
1023
+ payment_request_id: z.ZodOptional<z.ZodString>;
1024
+ }, "strip", z.ZodTypeAny, {
1025
+ status: "SUCCEEDED" | "PENDING" | "FAILED" | "VOIDED" | "REQUIRES_ACTION" | "CANCELED";
1026
+ type: "PAY" | "PAY_AND_SAVE" | "REUSABLE_PAYMENT_CODE";
1027
+ country: "PH" | "ID" | "MY" | "TH" | "VN";
1028
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
1029
+ reference_id: string;
1030
+ id: string;
1031
+ created: string;
1032
+ updated: string;
1033
+ payment_method: {
1034
+ type: string;
1035
+ ewallet?: {
1036
+ channel_code: string;
1037
+ channel_properties?: Record<string, unknown> | undefined;
1038
+ } | undefined;
1039
+ card_information?: {
1040
+ token_id: string;
1041
+ } | undefined;
1042
+ direct_debit?: {
1043
+ channel_code: string;
1044
+ channel_properties?: Record<string, unknown> | undefined;
1045
+ } | undefined;
1046
+ over_the_counter?: {
1047
+ channel_code: string;
1048
+ channel_properties?: Record<string, unknown> | undefined;
1049
+ } | undefined;
1050
+ qr_code?: {
1051
+ channel_code: string;
1052
+ channel_properties?: Record<string, unknown> | undefined;
1053
+ } | undefined;
1054
+ virtual_account?: {
1055
+ channel_code: string;
1056
+ channel_properties?: Record<string, unknown> | undefined;
1057
+ } | undefined;
1058
+ };
1059
+ request_amount: number;
1060
+ description?: string | undefined;
1061
+ metadata?: Record<string, unknown> | undefined;
1062
+ customer_id?: string | undefined;
1063
+ actions?: {
1064
+ desktop_web_checkout_url?: string | undefined;
1065
+ mobile_web_checkout_url?: string | undefined;
1066
+ mobile_deeplink_checkout_url?: string | undefined;
1067
+ qr_checkout_string?: string | undefined;
1068
+ } | undefined;
1069
+ customer?: {
1070
+ given_names: string;
1071
+ surname?: string | undefined;
1072
+ email?: string | undefined;
1073
+ mobile_number?: string | undefined;
1074
+ } | undefined;
1075
+ items?: {
1076
+ name: string;
1077
+ price: number;
1078
+ quantity: number;
1079
+ url?: string | undefined;
1080
+ category?: string | undefined;
1081
+ reference_id?: string | undefined;
1082
+ }[] | undefined;
1083
+ paid_amount?: number | undefined;
1084
+ shipping_information?: {
1085
+ name: string;
1086
+ phone_number?: string | undefined;
1087
+ city?: string | undefined;
1088
+ postal_code?: string | undefined;
1089
+ address?: string | undefined;
1090
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
1091
+ province?: string | undefined;
1092
+ } | undefined;
1093
+ failure_reason?: string | undefined;
1094
+ payment_request_id?: string | undefined;
1095
+ }, {
1096
+ status: "SUCCEEDED" | "PENDING" | "FAILED" | "VOIDED" | "REQUIRES_ACTION" | "CANCELED";
1097
+ type: "PAY" | "PAY_AND_SAVE" | "REUSABLE_PAYMENT_CODE";
1098
+ country: "PH" | "ID" | "MY" | "TH" | "VN";
1099
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
1100
+ reference_id: string;
1101
+ id: string;
1102
+ created: string;
1103
+ updated: string;
1104
+ payment_method: {
1105
+ type: string;
1106
+ ewallet?: {
1107
+ channel_code: string;
1108
+ channel_properties?: Record<string, unknown> | undefined;
1109
+ } | undefined;
1110
+ card_information?: {
1111
+ token_id: string;
1112
+ } | undefined;
1113
+ direct_debit?: {
1114
+ channel_code: string;
1115
+ channel_properties?: Record<string, unknown> | undefined;
1116
+ } | undefined;
1117
+ over_the_counter?: {
1118
+ channel_code: string;
1119
+ channel_properties?: Record<string, unknown> | undefined;
1120
+ } | undefined;
1121
+ qr_code?: {
1122
+ channel_code: string;
1123
+ channel_properties?: Record<string, unknown> | undefined;
1124
+ } | undefined;
1125
+ virtual_account?: {
1126
+ channel_code: string;
1127
+ channel_properties?: Record<string, unknown> | undefined;
1128
+ } | undefined;
1129
+ };
1130
+ request_amount: number;
1131
+ description?: string | undefined;
1132
+ metadata?: Record<string, unknown> | undefined;
1133
+ customer_id?: string | undefined;
1134
+ actions?: {
1135
+ desktop_web_checkout_url?: string | undefined;
1136
+ mobile_web_checkout_url?: string | undefined;
1137
+ mobile_deeplink_checkout_url?: string | undefined;
1138
+ qr_checkout_string?: string | undefined;
1139
+ } | undefined;
1140
+ customer?: {
1141
+ given_names: string;
1142
+ surname?: string | undefined;
1143
+ email?: string | undefined;
1144
+ mobile_number?: string | undefined;
1145
+ } | undefined;
1146
+ items?: {
1147
+ name: string;
1148
+ price: number;
1149
+ quantity: number;
1150
+ url?: string | undefined;
1151
+ category?: string | undefined;
1152
+ reference_id?: string | undefined;
1153
+ }[] | undefined;
1154
+ paid_amount?: number | undefined;
1155
+ shipping_information?: {
1156
+ name: string;
1157
+ phone_number?: string | undefined;
1158
+ city?: string | undefined;
1159
+ postal_code?: string | undefined;
1160
+ address?: string | undefined;
1161
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
1162
+ province?: string | undefined;
1163
+ } | undefined;
1164
+ failure_reason?: string | undefined;
1165
+ payment_request_id?: string | undefined;
1166
+ }>, "many">;
1167
+ has_more: z.ZodBoolean;
1168
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
1169
+ href: z.ZodString;
1170
+ rel: z.ZodString;
1171
+ method: z.ZodString;
1172
+ }, "strip", z.ZodTypeAny, {
1173
+ method: string;
1174
+ href: string;
1175
+ rel: string;
1176
+ }, {
1177
+ method: string;
1178
+ href: string;
1179
+ rel: string;
1180
+ }>, "many">>;
1181
+ }, "strip", z.ZodTypeAny, {
1182
+ data: {
1183
+ status: "SUCCEEDED" | "PENDING" | "FAILED" | "VOIDED" | "REQUIRES_ACTION" | "CANCELED";
1184
+ type: "PAY" | "PAY_AND_SAVE" | "REUSABLE_PAYMENT_CODE";
1185
+ country: "PH" | "ID" | "MY" | "TH" | "VN";
1186
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
1187
+ reference_id: string;
1188
+ id: string;
1189
+ created: string;
1190
+ updated: string;
1191
+ payment_method: {
1192
+ type: string;
1193
+ ewallet?: {
1194
+ channel_code: string;
1195
+ channel_properties?: Record<string, unknown> | undefined;
1196
+ } | undefined;
1197
+ card_information?: {
1198
+ token_id: string;
1199
+ } | undefined;
1200
+ direct_debit?: {
1201
+ channel_code: string;
1202
+ channel_properties?: Record<string, unknown> | undefined;
1203
+ } | undefined;
1204
+ over_the_counter?: {
1205
+ channel_code: string;
1206
+ channel_properties?: Record<string, unknown> | undefined;
1207
+ } | undefined;
1208
+ qr_code?: {
1209
+ channel_code: string;
1210
+ channel_properties?: Record<string, unknown> | undefined;
1211
+ } | undefined;
1212
+ virtual_account?: {
1213
+ channel_code: string;
1214
+ channel_properties?: Record<string, unknown> | undefined;
1215
+ } | undefined;
1216
+ };
1217
+ request_amount: number;
1218
+ description?: string | undefined;
1219
+ metadata?: Record<string, unknown> | undefined;
1220
+ customer_id?: string | undefined;
1221
+ actions?: {
1222
+ desktop_web_checkout_url?: string | undefined;
1223
+ mobile_web_checkout_url?: string | undefined;
1224
+ mobile_deeplink_checkout_url?: string | undefined;
1225
+ qr_checkout_string?: string | undefined;
1226
+ } | undefined;
1227
+ customer?: {
1228
+ given_names: string;
1229
+ surname?: string | undefined;
1230
+ email?: string | undefined;
1231
+ mobile_number?: string | undefined;
1232
+ } | undefined;
1233
+ items?: {
1234
+ name: string;
1235
+ price: number;
1236
+ quantity: number;
1237
+ url?: string | undefined;
1238
+ category?: string | undefined;
1239
+ reference_id?: string | undefined;
1240
+ }[] | undefined;
1241
+ paid_amount?: number | undefined;
1242
+ shipping_information?: {
1243
+ name: string;
1244
+ phone_number?: string | undefined;
1245
+ city?: string | undefined;
1246
+ postal_code?: string | undefined;
1247
+ address?: string | undefined;
1248
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
1249
+ province?: string | undefined;
1250
+ } | undefined;
1251
+ failure_reason?: string | undefined;
1252
+ payment_request_id?: string | undefined;
1253
+ }[];
1254
+ has_more: boolean;
1255
+ links?: {
1256
+ method: string;
1257
+ href: string;
1258
+ rel: string;
1259
+ }[] | undefined;
1260
+ }, {
1261
+ data: {
1262
+ status: "SUCCEEDED" | "PENDING" | "FAILED" | "VOIDED" | "REQUIRES_ACTION" | "CANCELED";
1263
+ type: "PAY" | "PAY_AND_SAVE" | "REUSABLE_PAYMENT_CODE";
1264
+ country: "PH" | "ID" | "MY" | "TH" | "VN";
1265
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
1266
+ reference_id: string;
1267
+ id: string;
1268
+ created: string;
1269
+ updated: string;
1270
+ payment_method: {
1271
+ type: string;
1272
+ ewallet?: {
1273
+ channel_code: string;
1274
+ channel_properties?: Record<string, unknown> | undefined;
1275
+ } | undefined;
1276
+ card_information?: {
1277
+ token_id: string;
1278
+ } | undefined;
1279
+ direct_debit?: {
1280
+ channel_code: string;
1281
+ channel_properties?: Record<string, unknown> | undefined;
1282
+ } | undefined;
1283
+ over_the_counter?: {
1284
+ channel_code: string;
1285
+ channel_properties?: Record<string, unknown> | undefined;
1286
+ } | undefined;
1287
+ qr_code?: {
1288
+ channel_code: string;
1289
+ channel_properties?: Record<string, unknown> | undefined;
1290
+ } | undefined;
1291
+ virtual_account?: {
1292
+ channel_code: string;
1293
+ channel_properties?: Record<string, unknown> | undefined;
1294
+ } | undefined;
1295
+ };
1296
+ request_amount: number;
1297
+ description?: string | undefined;
1298
+ metadata?: Record<string, unknown> | undefined;
1299
+ customer_id?: string | undefined;
1300
+ actions?: {
1301
+ desktop_web_checkout_url?: string | undefined;
1302
+ mobile_web_checkout_url?: string | undefined;
1303
+ mobile_deeplink_checkout_url?: string | undefined;
1304
+ qr_checkout_string?: string | undefined;
1305
+ } | undefined;
1306
+ customer?: {
1307
+ given_names: string;
1308
+ surname?: string | undefined;
1309
+ email?: string | undefined;
1310
+ mobile_number?: string | undefined;
1311
+ } | undefined;
1312
+ items?: {
1313
+ name: string;
1314
+ price: number;
1315
+ quantity: number;
1316
+ url?: string | undefined;
1317
+ category?: string | undefined;
1318
+ reference_id?: string | undefined;
1319
+ }[] | undefined;
1320
+ paid_amount?: number | undefined;
1321
+ shipping_information?: {
1322
+ name: string;
1323
+ phone_number?: string | undefined;
1324
+ city?: string | undefined;
1325
+ postal_code?: string | undefined;
1326
+ address?: string | undefined;
1327
+ country_code?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
1328
+ province?: string | undefined;
1329
+ } | undefined;
1330
+ failure_reason?: string | undefined;
1331
+ payment_request_id?: string | undefined;
1332
+ }[];
1333
+ has_more: boolean;
1334
+ links?: {
1335
+ method: string;
1336
+ href: string;
1337
+ rel: string;
1338
+ }[] | undefined;
1339
+ }>;
1340
+ export type ListPaymentRequestsResponse = z.infer<typeof ListPaymentRequestsResponseSchema>;
1341
+ //# sourceMappingURL=schema.d.ts.map