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,990 @@
1
+ import { z } from "zod";
2
+ export declare const PaymentMethodTypeSchema: z.ZodUnion<[z.ZodLiteral<"CARD">, z.ZodLiteral<"BANK_ACCOUNT">, z.ZodLiteral<"EWALLET">, z.ZodLiteral<"OVER_THE_COUNTER">, z.ZodLiteral<"VIRTUAL_ACCOUNT">, z.ZodLiteral<"QR_CODE">]>;
3
+ export type PaymentMethodType = z.infer<typeof PaymentMethodTypeSchema>;
4
+ export declare const PaymentMethodStatusSchema: z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodLiteral<"INACTIVE">, z.ZodLiteral<"PENDING">, z.ZodLiteral<"EXPIRED">, z.ZodLiteral<"FAILED">]>;
5
+ export type PaymentMethodStatus = z.infer<typeof PaymentMethodStatusSchema>;
6
+ export declare const CardPropertiesSchema: z.ZodObject<{
7
+ card_last_four: z.ZodString;
8
+ card_expiry_month: z.ZodString;
9
+ card_expiry_year: z.ZodString;
10
+ network: z.ZodString;
11
+ country: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"PH">, z.ZodLiteral<"ID">, z.ZodLiteral<"MY">, z.ZodLiteral<"TH">, z.ZodLiteral<"VN">]>>;
12
+ issuer: z.ZodOptional<z.ZodString>;
13
+ type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"CREDIT">, z.ZodLiteral<"DEBIT">]>>;
14
+ currency: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"PHP">, z.ZodLiteral<"IDR">, z.ZodLiteral<"MYR">, z.ZodLiteral<"THB">, z.ZodLiteral<"VND">]>>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ card_last_four: string;
17
+ card_expiry_month: string;
18
+ card_expiry_year: string;
19
+ network: string;
20
+ type?: "CREDIT" | "DEBIT" | undefined;
21
+ country?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
22
+ currency?: "PHP" | "IDR" | "MYR" | "THB" | "VND" | undefined;
23
+ issuer?: string | undefined;
24
+ }, {
25
+ card_last_four: string;
26
+ card_expiry_month: string;
27
+ card_expiry_year: string;
28
+ network: string;
29
+ type?: "CREDIT" | "DEBIT" | undefined;
30
+ country?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
31
+ currency?: "PHP" | "IDR" | "MYR" | "THB" | "VND" | undefined;
32
+ issuer?: string | undefined;
33
+ }>;
34
+ export declare const BankAccountPropertiesSchema: z.ZodObject<{
35
+ account_number: z.ZodString;
36
+ account_holder_name: z.ZodString;
37
+ bank_code: z.ZodString;
38
+ account_type: z.ZodOptional<z.ZodString>;
39
+ currency: z.ZodUnion<[z.ZodLiteral<"PHP">, z.ZodLiteral<"IDR">, z.ZodLiteral<"MYR">, z.ZodLiteral<"THB">, z.ZodLiteral<"VND">]>;
40
+ }, "strip", z.ZodTypeAny, {
41
+ account_number: string;
42
+ account_holder_name: string;
43
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
44
+ bank_code: string;
45
+ account_type?: string | undefined;
46
+ }, {
47
+ account_number: string;
48
+ account_holder_name: string;
49
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
50
+ bank_code: string;
51
+ account_type?: string | undefined;
52
+ }>;
53
+ export declare const EwalletPropertiesSchema: z.ZodObject<{
54
+ account_details: z.ZodString;
55
+ currency: z.ZodUnion<[z.ZodLiteral<"PHP">, z.ZodLiteral<"IDR">, z.ZodLiteral<"MYR">, z.ZodLiteral<"THB">, z.ZodLiteral<"VND">]>;
56
+ }, "strip", z.ZodTypeAny, {
57
+ account_details: string;
58
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
59
+ }, {
60
+ account_details: string;
61
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
62
+ }>;
63
+ export declare const PaymentMethodPropertiesSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
64
+ type: z.ZodLiteral<"CARD">;
65
+ card: z.ZodObject<{
66
+ card_last_four: z.ZodString;
67
+ card_expiry_month: z.ZodString;
68
+ card_expiry_year: z.ZodString;
69
+ network: z.ZodString;
70
+ country: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"PH">, z.ZodLiteral<"ID">, z.ZodLiteral<"MY">, z.ZodLiteral<"TH">, z.ZodLiteral<"VN">]>>;
71
+ issuer: z.ZodOptional<z.ZodString>;
72
+ type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"CREDIT">, z.ZodLiteral<"DEBIT">]>>;
73
+ currency: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"PHP">, z.ZodLiteral<"IDR">, z.ZodLiteral<"MYR">, z.ZodLiteral<"THB">, z.ZodLiteral<"VND">]>>;
74
+ }, "strip", z.ZodTypeAny, {
75
+ card_last_four: string;
76
+ card_expiry_month: string;
77
+ card_expiry_year: string;
78
+ network: string;
79
+ type?: "CREDIT" | "DEBIT" | undefined;
80
+ country?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
81
+ currency?: "PHP" | "IDR" | "MYR" | "THB" | "VND" | undefined;
82
+ issuer?: string | undefined;
83
+ }, {
84
+ card_last_four: string;
85
+ card_expiry_month: string;
86
+ card_expiry_year: string;
87
+ network: string;
88
+ type?: "CREDIT" | "DEBIT" | undefined;
89
+ country?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
90
+ currency?: "PHP" | "IDR" | "MYR" | "THB" | "VND" | undefined;
91
+ issuer?: string | undefined;
92
+ }>;
93
+ }, "strip", z.ZodTypeAny, {
94
+ type: "CARD";
95
+ card: {
96
+ card_last_four: string;
97
+ card_expiry_month: string;
98
+ card_expiry_year: string;
99
+ network: string;
100
+ type?: "CREDIT" | "DEBIT" | undefined;
101
+ country?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
102
+ currency?: "PHP" | "IDR" | "MYR" | "THB" | "VND" | undefined;
103
+ issuer?: string | undefined;
104
+ };
105
+ }, {
106
+ type: "CARD";
107
+ card: {
108
+ card_last_four: string;
109
+ card_expiry_month: string;
110
+ card_expiry_year: string;
111
+ network: string;
112
+ type?: "CREDIT" | "DEBIT" | undefined;
113
+ country?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
114
+ currency?: "PHP" | "IDR" | "MYR" | "THB" | "VND" | undefined;
115
+ issuer?: string | undefined;
116
+ };
117
+ }>, z.ZodObject<{
118
+ type: z.ZodLiteral<"BANK_ACCOUNT">;
119
+ bank_account: z.ZodObject<{
120
+ account_number: z.ZodString;
121
+ account_holder_name: z.ZodString;
122
+ bank_code: z.ZodString;
123
+ account_type: z.ZodOptional<z.ZodString>;
124
+ currency: z.ZodUnion<[z.ZodLiteral<"PHP">, z.ZodLiteral<"IDR">, z.ZodLiteral<"MYR">, z.ZodLiteral<"THB">, z.ZodLiteral<"VND">]>;
125
+ }, "strip", z.ZodTypeAny, {
126
+ account_number: string;
127
+ account_holder_name: string;
128
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
129
+ bank_code: string;
130
+ account_type?: string | undefined;
131
+ }, {
132
+ account_number: string;
133
+ account_holder_name: string;
134
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
135
+ bank_code: string;
136
+ account_type?: string | undefined;
137
+ }>;
138
+ }, "strip", z.ZodTypeAny, {
139
+ type: "BANK_ACCOUNT";
140
+ bank_account: {
141
+ account_number: string;
142
+ account_holder_name: string;
143
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
144
+ bank_code: string;
145
+ account_type?: string | undefined;
146
+ };
147
+ }, {
148
+ type: "BANK_ACCOUNT";
149
+ bank_account: {
150
+ account_number: string;
151
+ account_holder_name: string;
152
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
153
+ bank_code: string;
154
+ account_type?: string | undefined;
155
+ };
156
+ }>, z.ZodObject<{
157
+ type: z.ZodLiteral<"EWALLET">;
158
+ ewallet: z.ZodObject<{
159
+ account_details: z.ZodString;
160
+ currency: z.ZodUnion<[z.ZodLiteral<"PHP">, z.ZodLiteral<"IDR">, z.ZodLiteral<"MYR">, z.ZodLiteral<"THB">, z.ZodLiteral<"VND">]>;
161
+ }, "strip", z.ZodTypeAny, {
162
+ account_details: string;
163
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
164
+ }, {
165
+ account_details: string;
166
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
167
+ }>;
168
+ }, "strip", z.ZodTypeAny, {
169
+ type: "EWALLET";
170
+ ewallet: {
171
+ account_details: string;
172
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
173
+ };
174
+ }, {
175
+ type: "EWALLET";
176
+ ewallet: {
177
+ account_details: string;
178
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
179
+ };
180
+ }>]>;
181
+ export declare const CreatePaymentMethodSchema: z.ZodObject<{
182
+ type: z.ZodUnion<[z.ZodLiteral<"CARD">, z.ZodLiteral<"BANK_ACCOUNT">, z.ZodLiteral<"EWALLET">, z.ZodLiteral<"OVER_THE_COUNTER">, z.ZodLiteral<"VIRTUAL_ACCOUNT">, z.ZodLiteral<"QR_CODE">]>;
183
+ country: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"PH">, z.ZodLiteral<"ID">, z.ZodLiteral<"MY">, z.ZodLiteral<"TH">, z.ZodLiteral<"VN">]>>;
184
+ reusability: z.ZodUnion<[z.ZodLiteral<"ONE_TIME_USE">, z.ZodLiteral<"MULTIPLE_USE">]>;
185
+ description: z.ZodOptional<z.ZodString>;
186
+ reference_id: z.ZodOptional<z.ZodString>;
187
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
188
+ card: z.ZodOptional<z.ZodObject<{
189
+ currency: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"PHP">, z.ZodLiteral<"IDR">, z.ZodLiteral<"MYR">, z.ZodLiteral<"THB">, z.ZodLiteral<"VND">]>>;
190
+ channel_properties: z.ZodOptional<z.ZodObject<{
191
+ success_return_url: z.ZodOptional<z.ZodString>;
192
+ failure_return_url: z.ZodOptional<z.ZodString>;
193
+ }, "strip", z.ZodTypeAny, {
194
+ success_return_url?: string | undefined;
195
+ failure_return_url?: string | undefined;
196
+ }, {
197
+ success_return_url?: string | undefined;
198
+ failure_return_url?: string | undefined;
199
+ }>>;
200
+ }, "strip", z.ZodTypeAny, {
201
+ currency?: "PHP" | "IDR" | "MYR" | "THB" | "VND" | undefined;
202
+ channel_properties?: {
203
+ success_return_url?: string | undefined;
204
+ failure_return_url?: string | undefined;
205
+ } | undefined;
206
+ }, {
207
+ currency?: "PHP" | "IDR" | "MYR" | "THB" | "VND" | undefined;
208
+ channel_properties?: {
209
+ success_return_url?: string | undefined;
210
+ failure_return_url?: string | undefined;
211
+ } | undefined;
212
+ }>>;
213
+ bank_account: z.ZodOptional<z.ZodObject<{
214
+ currency: z.ZodUnion<[z.ZodLiteral<"PHP">, z.ZodLiteral<"IDR">, z.ZodLiteral<"MYR">, z.ZodLiteral<"THB">, z.ZodLiteral<"VND">]>;
215
+ channel_properties: z.ZodOptional<z.ZodObject<{
216
+ account_mobile_number: z.ZodOptional<z.ZodString>;
217
+ card_last_four: z.ZodOptional<z.ZodString>;
218
+ card_expiry_month: z.ZodOptional<z.ZodString>;
219
+ card_expiry_year: z.ZodOptional<z.ZodString>;
220
+ account_email: z.ZodOptional<z.ZodString>;
221
+ }, "strip", z.ZodTypeAny, {
222
+ card_last_four?: string | undefined;
223
+ card_expiry_month?: string | undefined;
224
+ card_expiry_year?: string | undefined;
225
+ account_mobile_number?: string | undefined;
226
+ account_email?: string | undefined;
227
+ }, {
228
+ card_last_four?: string | undefined;
229
+ card_expiry_month?: string | undefined;
230
+ card_expiry_year?: string | undefined;
231
+ account_mobile_number?: string | undefined;
232
+ account_email?: string | undefined;
233
+ }>>;
234
+ }, "strip", z.ZodTypeAny, {
235
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
236
+ channel_properties?: {
237
+ card_last_four?: string | undefined;
238
+ card_expiry_month?: string | undefined;
239
+ card_expiry_year?: string | undefined;
240
+ account_mobile_number?: string | undefined;
241
+ account_email?: string | undefined;
242
+ } | undefined;
243
+ }, {
244
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
245
+ channel_properties?: {
246
+ card_last_four?: string | undefined;
247
+ card_expiry_month?: string | undefined;
248
+ card_expiry_year?: string | undefined;
249
+ account_mobile_number?: string | undefined;
250
+ account_email?: string | undefined;
251
+ } | undefined;
252
+ }>>;
253
+ ewallet: z.ZodOptional<z.ZodObject<{
254
+ channel_code: z.ZodString;
255
+ channel_properties: z.ZodOptional<z.ZodObject<{
256
+ success_return_url: z.ZodOptional<z.ZodString>;
257
+ failure_return_url: z.ZodOptional<z.ZodString>;
258
+ cancel_return_url: z.ZodOptional<z.ZodString>;
259
+ }, "strip", z.ZodTypeAny, {
260
+ success_return_url?: string | undefined;
261
+ failure_return_url?: string | undefined;
262
+ cancel_return_url?: string | undefined;
263
+ }, {
264
+ success_return_url?: string | undefined;
265
+ failure_return_url?: string | undefined;
266
+ cancel_return_url?: string | undefined;
267
+ }>>;
268
+ }, "strip", z.ZodTypeAny, {
269
+ channel_code: string;
270
+ channel_properties?: {
271
+ success_return_url?: string | undefined;
272
+ failure_return_url?: string | undefined;
273
+ cancel_return_url?: string | undefined;
274
+ } | undefined;
275
+ }, {
276
+ channel_code: string;
277
+ channel_properties?: {
278
+ success_return_url?: string | undefined;
279
+ failure_return_url?: string | undefined;
280
+ cancel_return_url?: string | undefined;
281
+ } | undefined;
282
+ }>>;
283
+ }, "strip", z.ZodTypeAny, {
284
+ type: "BANK_ACCOUNT" | "EWALLET" | "QR_CODE" | "CARD" | "OVER_THE_COUNTER" | "VIRTUAL_ACCOUNT";
285
+ reusability: "ONE_TIME_USE" | "MULTIPLE_USE";
286
+ country?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
287
+ description?: string | undefined;
288
+ metadata?: Record<string, unknown> | undefined;
289
+ reference_id?: string | undefined;
290
+ card?: {
291
+ currency?: "PHP" | "IDR" | "MYR" | "THB" | "VND" | undefined;
292
+ channel_properties?: {
293
+ success_return_url?: string | undefined;
294
+ failure_return_url?: string | undefined;
295
+ } | undefined;
296
+ } | undefined;
297
+ bank_account?: {
298
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
299
+ channel_properties?: {
300
+ card_last_four?: string | undefined;
301
+ card_expiry_month?: string | undefined;
302
+ card_expiry_year?: string | undefined;
303
+ account_mobile_number?: string | undefined;
304
+ account_email?: string | undefined;
305
+ } | undefined;
306
+ } | undefined;
307
+ ewallet?: {
308
+ channel_code: string;
309
+ channel_properties?: {
310
+ success_return_url?: string | undefined;
311
+ failure_return_url?: string | undefined;
312
+ cancel_return_url?: string | undefined;
313
+ } | undefined;
314
+ } | undefined;
315
+ }, {
316
+ type: "BANK_ACCOUNT" | "EWALLET" | "QR_CODE" | "CARD" | "OVER_THE_COUNTER" | "VIRTUAL_ACCOUNT";
317
+ reusability: "ONE_TIME_USE" | "MULTIPLE_USE";
318
+ country?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
319
+ description?: string | undefined;
320
+ metadata?: Record<string, unknown> | undefined;
321
+ reference_id?: string | undefined;
322
+ card?: {
323
+ currency?: "PHP" | "IDR" | "MYR" | "THB" | "VND" | undefined;
324
+ channel_properties?: {
325
+ success_return_url?: string | undefined;
326
+ failure_return_url?: string | undefined;
327
+ } | undefined;
328
+ } | undefined;
329
+ bank_account?: {
330
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
331
+ channel_properties?: {
332
+ card_last_four?: string | undefined;
333
+ card_expiry_month?: string | undefined;
334
+ card_expiry_year?: string | undefined;
335
+ account_mobile_number?: string | undefined;
336
+ account_email?: string | undefined;
337
+ } | undefined;
338
+ } | undefined;
339
+ ewallet?: {
340
+ channel_code: string;
341
+ channel_properties?: {
342
+ success_return_url?: string | undefined;
343
+ failure_return_url?: string | undefined;
344
+ cancel_return_url?: string | undefined;
345
+ } | undefined;
346
+ } | undefined;
347
+ }>;
348
+ export type CreatePaymentMethod = z.infer<typeof CreatePaymentMethodSchema>;
349
+ export declare const UpdatePaymentMethodSchema: z.ZodObject<{
350
+ description: z.ZodOptional<z.ZodString>;
351
+ reference_id: z.ZodOptional<z.ZodString>;
352
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodLiteral<"INACTIVE">, z.ZodLiteral<"PENDING">, z.ZodLiteral<"EXPIRED">, z.ZodLiteral<"FAILED">]>>;
353
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
354
+ }, "strip", z.ZodTypeAny, {
355
+ status?: "PENDING" | "FAILED" | "ACTIVE" | "INACTIVE" | "EXPIRED" | undefined;
356
+ description?: string | undefined;
357
+ metadata?: Record<string, unknown> | undefined;
358
+ reference_id?: string | undefined;
359
+ }, {
360
+ status?: "PENDING" | "FAILED" | "ACTIVE" | "INACTIVE" | "EXPIRED" | undefined;
361
+ description?: string | undefined;
362
+ metadata?: Record<string, unknown> | undefined;
363
+ reference_id?: string | undefined;
364
+ }>;
365
+ export type UpdatePaymentMethod = z.infer<typeof UpdatePaymentMethodSchema>;
366
+ export declare const PaymentMethodResourceSchema: z.ZodObject<{
367
+ id: z.ZodString;
368
+ type: z.ZodUnion<[z.ZodLiteral<"CARD">, z.ZodLiteral<"BANK_ACCOUNT">, z.ZodLiteral<"EWALLET">, z.ZodLiteral<"OVER_THE_COUNTER">, z.ZodLiteral<"VIRTUAL_ACCOUNT">, z.ZodLiteral<"QR_CODE">]>;
369
+ country: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"PH">, z.ZodLiteral<"ID">, z.ZodLiteral<"MY">, z.ZodLiteral<"TH">, z.ZodLiteral<"VN">]>>;
370
+ business_id: z.ZodString;
371
+ customer_id: z.ZodOptional<z.ZodString>;
372
+ reference_id: z.ZodOptional<z.ZodString>;
373
+ description: z.ZodOptional<z.ZodString>;
374
+ status: z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodLiteral<"INACTIVE">, z.ZodLiteral<"PENDING">, z.ZodLiteral<"EXPIRED">, z.ZodLiteral<"FAILED">]>;
375
+ reusability: z.ZodUnion<[z.ZodLiteral<"ONE_TIME_USE">, z.ZodLiteral<"MULTIPLE_USE">]>;
376
+ actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
377
+ action: z.ZodString;
378
+ url: z.ZodOptional<z.ZodString>;
379
+ url_type: z.ZodOptional<z.ZodString>;
380
+ method: z.ZodOptional<z.ZodString>;
381
+ }, "strip", z.ZodTypeAny, {
382
+ action: string;
383
+ url?: string | undefined;
384
+ method?: string | undefined;
385
+ url_type?: string | undefined;
386
+ }, {
387
+ action: string;
388
+ url?: string | undefined;
389
+ method?: string | undefined;
390
+ url_type?: string | undefined;
391
+ }>, "many">>;
392
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
393
+ billing_information: z.ZodOptional<z.ZodObject<{
394
+ country: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"PH">, z.ZodLiteral<"ID">, z.ZodLiteral<"MY">, z.ZodLiteral<"TH">, z.ZodLiteral<"VN">]>>;
395
+ street_line1: z.ZodOptional<z.ZodString>;
396
+ street_line2: z.ZodOptional<z.ZodString>;
397
+ city: z.ZodOptional<z.ZodString>;
398
+ province_state: z.ZodOptional<z.ZodString>;
399
+ postal_code: z.ZodOptional<z.ZodString>;
400
+ }, "strip", z.ZodTypeAny, {
401
+ street_line1?: string | undefined;
402
+ street_line2?: string | undefined;
403
+ city?: string | undefined;
404
+ province_state?: string | undefined;
405
+ postal_code?: string | undefined;
406
+ country?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
407
+ }, {
408
+ street_line1?: string | undefined;
409
+ street_line2?: string | undefined;
410
+ city?: string | undefined;
411
+ province_state?: string | undefined;
412
+ postal_code?: string | undefined;
413
+ country?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
414
+ }>>;
415
+ failure_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
416
+ created: z.ZodString;
417
+ updated: z.ZodString;
418
+ card: z.ZodOptional<z.ZodObject<{
419
+ card_last_four: z.ZodString;
420
+ card_expiry_month: z.ZodString;
421
+ card_expiry_year: z.ZodString;
422
+ network: z.ZodString;
423
+ country: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"PH">, z.ZodLiteral<"ID">, z.ZodLiteral<"MY">, z.ZodLiteral<"TH">, z.ZodLiteral<"VN">]>>;
424
+ issuer: z.ZodOptional<z.ZodString>;
425
+ type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"CREDIT">, z.ZodLiteral<"DEBIT">]>>;
426
+ currency: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"PHP">, z.ZodLiteral<"IDR">, z.ZodLiteral<"MYR">, z.ZodLiteral<"THB">, z.ZodLiteral<"VND">]>>;
427
+ }, "strip", z.ZodTypeAny, {
428
+ card_last_four: string;
429
+ card_expiry_month: string;
430
+ card_expiry_year: string;
431
+ network: string;
432
+ type?: "CREDIT" | "DEBIT" | undefined;
433
+ country?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
434
+ currency?: "PHP" | "IDR" | "MYR" | "THB" | "VND" | undefined;
435
+ issuer?: string | undefined;
436
+ }, {
437
+ card_last_four: string;
438
+ card_expiry_month: string;
439
+ card_expiry_year: string;
440
+ network: string;
441
+ type?: "CREDIT" | "DEBIT" | undefined;
442
+ country?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
443
+ currency?: "PHP" | "IDR" | "MYR" | "THB" | "VND" | undefined;
444
+ issuer?: string | undefined;
445
+ }>>;
446
+ bank_account: z.ZodOptional<z.ZodObject<{
447
+ account_number: z.ZodString;
448
+ account_holder_name: z.ZodString;
449
+ bank_code: z.ZodString;
450
+ account_type: z.ZodOptional<z.ZodString>;
451
+ currency: z.ZodUnion<[z.ZodLiteral<"PHP">, z.ZodLiteral<"IDR">, z.ZodLiteral<"MYR">, z.ZodLiteral<"THB">, z.ZodLiteral<"VND">]>;
452
+ }, "strip", z.ZodTypeAny, {
453
+ account_number: string;
454
+ account_holder_name: string;
455
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
456
+ bank_code: string;
457
+ account_type?: string | undefined;
458
+ }, {
459
+ account_number: string;
460
+ account_holder_name: string;
461
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
462
+ bank_code: string;
463
+ account_type?: string | undefined;
464
+ }>>;
465
+ ewallet: z.ZodOptional<z.ZodObject<{
466
+ account_details: z.ZodString;
467
+ currency: z.ZodUnion<[z.ZodLiteral<"PHP">, z.ZodLiteral<"IDR">, z.ZodLiteral<"MYR">, z.ZodLiteral<"THB">, z.ZodLiteral<"VND">]>;
468
+ }, "strip", z.ZodTypeAny, {
469
+ account_details: string;
470
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
471
+ }, {
472
+ account_details: string;
473
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
474
+ }>>;
475
+ }, "strip", z.ZodTypeAny, {
476
+ status: "PENDING" | "FAILED" | "ACTIVE" | "INACTIVE" | "EXPIRED";
477
+ type: "BANK_ACCOUNT" | "EWALLET" | "QR_CODE" | "CARD" | "OVER_THE_COUNTER" | "VIRTUAL_ACCOUNT";
478
+ id: string;
479
+ created: string;
480
+ updated: string;
481
+ business_id: string;
482
+ reusability: "ONE_TIME_USE" | "MULTIPLE_USE";
483
+ country?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
484
+ description?: string | undefined;
485
+ metadata?: Record<string, unknown> | undefined;
486
+ reference_id?: string | undefined;
487
+ customer_id?: string | undefined;
488
+ actions?: {
489
+ action: string;
490
+ url?: string | undefined;
491
+ method?: string | undefined;
492
+ url_type?: string | undefined;
493
+ }[] | undefined;
494
+ failure_code?: string | null | undefined;
495
+ card?: {
496
+ card_last_four: string;
497
+ card_expiry_month: string;
498
+ card_expiry_year: string;
499
+ network: string;
500
+ type?: "CREDIT" | "DEBIT" | undefined;
501
+ country?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
502
+ currency?: "PHP" | "IDR" | "MYR" | "THB" | "VND" | undefined;
503
+ issuer?: string | undefined;
504
+ } | undefined;
505
+ bank_account?: {
506
+ account_number: string;
507
+ account_holder_name: string;
508
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
509
+ bank_code: string;
510
+ account_type?: string | undefined;
511
+ } | undefined;
512
+ ewallet?: {
513
+ account_details: string;
514
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
515
+ } | undefined;
516
+ billing_information?: {
517
+ street_line1?: string | undefined;
518
+ street_line2?: string | undefined;
519
+ city?: string | undefined;
520
+ province_state?: string | undefined;
521
+ postal_code?: string | undefined;
522
+ country?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
523
+ } | undefined;
524
+ }, {
525
+ status: "PENDING" | "FAILED" | "ACTIVE" | "INACTIVE" | "EXPIRED";
526
+ type: "BANK_ACCOUNT" | "EWALLET" | "QR_CODE" | "CARD" | "OVER_THE_COUNTER" | "VIRTUAL_ACCOUNT";
527
+ id: string;
528
+ created: string;
529
+ updated: string;
530
+ business_id: string;
531
+ reusability: "ONE_TIME_USE" | "MULTIPLE_USE";
532
+ country?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
533
+ description?: string | undefined;
534
+ metadata?: Record<string, unknown> | undefined;
535
+ reference_id?: string | undefined;
536
+ customer_id?: string | undefined;
537
+ actions?: {
538
+ action: string;
539
+ url?: string | undefined;
540
+ method?: string | undefined;
541
+ url_type?: string | undefined;
542
+ }[] | undefined;
543
+ failure_code?: string | null | undefined;
544
+ card?: {
545
+ card_last_four: string;
546
+ card_expiry_month: string;
547
+ card_expiry_year: string;
548
+ network: string;
549
+ type?: "CREDIT" | "DEBIT" | undefined;
550
+ country?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
551
+ currency?: "PHP" | "IDR" | "MYR" | "THB" | "VND" | undefined;
552
+ issuer?: string | undefined;
553
+ } | undefined;
554
+ bank_account?: {
555
+ account_number: string;
556
+ account_holder_name: string;
557
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
558
+ bank_code: string;
559
+ account_type?: string | undefined;
560
+ } | undefined;
561
+ ewallet?: {
562
+ account_details: string;
563
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
564
+ } | undefined;
565
+ billing_information?: {
566
+ street_line1?: string | undefined;
567
+ street_line2?: string | undefined;
568
+ city?: string | undefined;
569
+ province_state?: string | undefined;
570
+ postal_code?: string | undefined;
571
+ country?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
572
+ } | undefined;
573
+ }>;
574
+ export type PaymentMethodResource = z.infer<typeof PaymentMethodResourceSchema>;
575
+ export declare const GetPaymentMethodSchema: z.ZodObject<{
576
+ id: z.ZodString;
577
+ }, "strip", z.ZodTypeAny, {
578
+ id: string;
579
+ }, {
580
+ id: string;
581
+ }>;
582
+ export type GetPaymentMethod = z.infer<typeof GetPaymentMethodSchema>;
583
+ export declare const ListPaymentMethodsSchema: z.ZodObject<{
584
+ id: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
585
+ type: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"CARD">, z.ZodLiteral<"BANK_ACCOUNT">, z.ZodLiteral<"EWALLET">, z.ZodLiteral<"OVER_THE_COUNTER">, z.ZodLiteral<"VIRTUAL_ACCOUNT">, z.ZodLiteral<"QR_CODE">]>, "many">>;
586
+ status: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodLiteral<"INACTIVE">, z.ZodLiteral<"PENDING">, z.ZodLiteral<"EXPIRED">, z.ZodLiteral<"FAILED">]>, "many">>;
587
+ reusability: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ONE_TIME_USE">, z.ZodLiteral<"MULTIPLE_USE">]>>;
588
+ customer_id: z.ZodOptional<z.ZodString>;
589
+ reference_id: z.ZodOptional<z.ZodString>;
590
+ after_id: z.ZodOptional<z.ZodString>;
591
+ before_id: z.ZodOptional<z.ZodString>;
592
+ limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
593
+ }, "strip", z.ZodTypeAny, {
594
+ status?: ("PENDING" | "FAILED" | "ACTIVE" | "INACTIVE" | "EXPIRED")[] | undefined;
595
+ type?: ("BANK_ACCOUNT" | "EWALLET" | "QR_CODE" | "CARD" | "OVER_THE_COUNTER" | "VIRTUAL_ACCOUNT")[] | undefined;
596
+ reference_id?: string | undefined;
597
+ id?: string[] | undefined;
598
+ customer_id?: string | undefined;
599
+ reusability?: "ONE_TIME_USE" | "MULTIPLE_USE" | undefined;
600
+ after_id?: string | undefined;
601
+ before_id?: string | undefined;
602
+ limit?: number | undefined;
603
+ }, {
604
+ status?: ("PENDING" | "FAILED" | "ACTIVE" | "INACTIVE" | "EXPIRED")[] | undefined;
605
+ type?: ("BANK_ACCOUNT" | "EWALLET" | "QR_CODE" | "CARD" | "OVER_THE_COUNTER" | "VIRTUAL_ACCOUNT")[] | undefined;
606
+ reference_id?: string | undefined;
607
+ id?: string[] | undefined;
608
+ customer_id?: string | undefined;
609
+ reusability?: "ONE_TIME_USE" | "MULTIPLE_USE" | undefined;
610
+ after_id?: string | undefined;
611
+ before_id?: string | undefined;
612
+ limit?: number | undefined;
613
+ }>;
614
+ export type ListPaymentMethods = z.infer<typeof ListPaymentMethodsSchema>;
615
+ export declare const ListPaymentMethodsResponseSchema: z.ZodObject<{
616
+ data: z.ZodArray<z.ZodObject<{
617
+ id: z.ZodString;
618
+ type: z.ZodUnion<[z.ZodLiteral<"CARD">, z.ZodLiteral<"BANK_ACCOUNT">, z.ZodLiteral<"EWALLET">, z.ZodLiteral<"OVER_THE_COUNTER">, z.ZodLiteral<"VIRTUAL_ACCOUNT">, z.ZodLiteral<"QR_CODE">]>;
619
+ country: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"PH">, z.ZodLiteral<"ID">, z.ZodLiteral<"MY">, z.ZodLiteral<"TH">, z.ZodLiteral<"VN">]>>;
620
+ business_id: z.ZodString;
621
+ customer_id: z.ZodOptional<z.ZodString>;
622
+ reference_id: z.ZodOptional<z.ZodString>;
623
+ description: z.ZodOptional<z.ZodString>;
624
+ status: z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodLiteral<"INACTIVE">, z.ZodLiteral<"PENDING">, z.ZodLiteral<"EXPIRED">, z.ZodLiteral<"FAILED">]>;
625
+ reusability: z.ZodUnion<[z.ZodLiteral<"ONE_TIME_USE">, z.ZodLiteral<"MULTIPLE_USE">]>;
626
+ actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
627
+ action: z.ZodString;
628
+ url: z.ZodOptional<z.ZodString>;
629
+ url_type: z.ZodOptional<z.ZodString>;
630
+ method: z.ZodOptional<z.ZodString>;
631
+ }, "strip", z.ZodTypeAny, {
632
+ action: string;
633
+ url?: string | undefined;
634
+ method?: string | undefined;
635
+ url_type?: string | undefined;
636
+ }, {
637
+ action: string;
638
+ url?: string | undefined;
639
+ method?: string | undefined;
640
+ url_type?: string | undefined;
641
+ }>, "many">>;
642
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
643
+ billing_information: z.ZodOptional<z.ZodObject<{
644
+ country: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"PH">, z.ZodLiteral<"ID">, z.ZodLiteral<"MY">, z.ZodLiteral<"TH">, z.ZodLiteral<"VN">]>>;
645
+ street_line1: z.ZodOptional<z.ZodString>;
646
+ street_line2: z.ZodOptional<z.ZodString>;
647
+ city: z.ZodOptional<z.ZodString>;
648
+ province_state: z.ZodOptional<z.ZodString>;
649
+ postal_code: z.ZodOptional<z.ZodString>;
650
+ }, "strip", z.ZodTypeAny, {
651
+ street_line1?: string | undefined;
652
+ street_line2?: string | undefined;
653
+ city?: string | undefined;
654
+ province_state?: string | undefined;
655
+ postal_code?: string | undefined;
656
+ country?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
657
+ }, {
658
+ street_line1?: string | undefined;
659
+ street_line2?: string | undefined;
660
+ city?: string | undefined;
661
+ province_state?: string | undefined;
662
+ postal_code?: string | undefined;
663
+ country?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
664
+ }>>;
665
+ failure_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
666
+ created: z.ZodString;
667
+ updated: z.ZodString;
668
+ card: z.ZodOptional<z.ZodObject<{
669
+ card_last_four: z.ZodString;
670
+ card_expiry_month: z.ZodString;
671
+ card_expiry_year: z.ZodString;
672
+ network: z.ZodString;
673
+ country: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"PH">, z.ZodLiteral<"ID">, z.ZodLiteral<"MY">, z.ZodLiteral<"TH">, z.ZodLiteral<"VN">]>>;
674
+ issuer: z.ZodOptional<z.ZodString>;
675
+ type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"CREDIT">, z.ZodLiteral<"DEBIT">]>>;
676
+ currency: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"PHP">, z.ZodLiteral<"IDR">, z.ZodLiteral<"MYR">, z.ZodLiteral<"THB">, z.ZodLiteral<"VND">]>>;
677
+ }, "strip", z.ZodTypeAny, {
678
+ card_last_four: string;
679
+ card_expiry_month: string;
680
+ card_expiry_year: string;
681
+ network: string;
682
+ type?: "CREDIT" | "DEBIT" | undefined;
683
+ country?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
684
+ currency?: "PHP" | "IDR" | "MYR" | "THB" | "VND" | undefined;
685
+ issuer?: string | undefined;
686
+ }, {
687
+ card_last_four: string;
688
+ card_expiry_month: string;
689
+ card_expiry_year: string;
690
+ network: string;
691
+ type?: "CREDIT" | "DEBIT" | undefined;
692
+ country?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
693
+ currency?: "PHP" | "IDR" | "MYR" | "THB" | "VND" | undefined;
694
+ issuer?: string | undefined;
695
+ }>>;
696
+ bank_account: z.ZodOptional<z.ZodObject<{
697
+ account_number: z.ZodString;
698
+ account_holder_name: z.ZodString;
699
+ bank_code: z.ZodString;
700
+ account_type: z.ZodOptional<z.ZodString>;
701
+ currency: z.ZodUnion<[z.ZodLiteral<"PHP">, z.ZodLiteral<"IDR">, z.ZodLiteral<"MYR">, z.ZodLiteral<"THB">, z.ZodLiteral<"VND">]>;
702
+ }, "strip", z.ZodTypeAny, {
703
+ account_number: string;
704
+ account_holder_name: string;
705
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
706
+ bank_code: string;
707
+ account_type?: string | undefined;
708
+ }, {
709
+ account_number: string;
710
+ account_holder_name: string;
711
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
712
+ bank_code: string;
713
+ account_type?: string | undefined;
714
+ }>>;
715
+ ewallet: z.ZodOptional<z.ZodObject<{
716
+ account_details: z.ZodString;
717
+ currency: z.ZodUnion<[z.ZodLiteral<"PHP">, z.ZodLiteral<"IDR">, z.ZodLiteral<"MYR">, z.ZodLiteral<"THB">, z.ZodLiteral<"VND">]>;
718
+ }, "strip", z.ZodTypeAny, {
719
+ account_details: string;
720
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
721
+ }, {
722
+ account_details: string;
723
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
724
+ }>>;
725
+ }, "strip", z.ZodTypeAny, {
726
+ status: "PENDING" | "FAILED" | "ACTIVE" | "INACTIVE" | "EXPIRED";
727
+ type: "BANK_ACCOUNT" | "EWALLET" | "QR_CODE" | "CARD" | "OVER_THE_COUNTER" | "VIRTUAL_ACCOUNT";
728
+ id: string;
729
+ created: string;
730
+ updated: string;
731
+ business_id: string;
732
+ reusability: "ONE_TIME_USE" | "MULTIPLE_USE";
733
+ country?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
734
+ description?: string | undefined;
735
+ metadata?: Record<string, unknown> | undefined;
736
+ reference_id?: string | undefined;
737
+ customer_id?: string | undefined;
738
+ actions?: {
739
+ action: string;
740
+ url?: string | undefined;
741
+ method?: string | undefined;
742
+ url_type?: string | undefined;
743
+ }[] | undefined;
744
+ failure_code?: string | null | undefined;
745
+ card?: {
746
+ card_last_four: string;
747
+ card_expiry_month: string;
748
+ card_expiry_year: string;
749
+ network: string;
750
+ type?: "CREDIT" | "DEBIT" | undefined;
751
+ country?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
752
+ currency?: "PHP" | "IDR" | "MYR" | "THB" | "VND" | undefined;
753
+ issuer?: string | undefined;
754
+ } | undefined;
755
+ bank_account?: {
756
+ account_number: string;
757
+ account_holder_name: string;
758
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
759
+ bank_code: string;
760
+ account_type?: string | undefined;
761
+ } | undefined;
762
+ ewallet?: {
763
+ account_details: string;
764
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
765
+ } | undefined;
766
+ billing_information?: {
767
+ street_line1?: string | undefined;
768
+ street_line2?: string | undefined;
769
+ city?: string | undefined;
770
+ province_state?: string | undefined;
771
+ postal_code?: string | undefined;
772
+ country?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
773
+ } | undefined;
774
+ }, {
775
+ status: "PENDING" | "FAILED" | "ACTIVE" | "INACTIVE" | "EXPIRED";
776
+ type: "BANK_ACCOUNT" | "EWALLET" | "QR_CODE" | "CARD" | "OVER_THE_COUNTER" | "VIRTUAL_ACCOUNT";
777
+ id: string;
778
+ created: string;
779
+ updated: string;
780
+ business_id: string;
781
+ reusability: "ONE_TIME_USE" | "MULTIPLE_USE";
782
+ country?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
783
+ description?: string | undefined;
784
+ metadata?: Record<string, unknown> | undefined;
785
+ reference_id?: string | undefined;
786
+ customer_id?: string | undefined;
787
+ actions?: {
788
+ action: string;
789
+ url?: string | undefined;
790
+ method?: string | undefined;
791
+ url_type?: string | undefined;
792
+ }[] | undefined;
793
+ failure_code?: string | null | undefined;
794
+ card?: {
795
+ card_last_four: string;
796
+ card_expiry_month: string;
797
+ card_expiry_year: string;
798
+ network: string;
799
+ type?: "CREDIT" | "DEBIT" | undefined;
800
+ country?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
801
+ currency?: "PHP" | "IDR" | "MYR" | "THB" | "VND" | undefined;
802
+ issuer?: string | undefined;
803
+ } | undefined;
804
+ bank_account?: {
805
+ account_number: string;
806
+ account_holder_name: string;
807
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
808
+ bank_code: string;
809
+ account_type?: string | undefined;
810
+ } | undefined;
811
+ ewallet?: {
812
+ account_details: string;
813
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
814
+ } | undefined;
815
+ billing_information?: {
816
+ street_line1?: string | undefined;
817
+ street_line2?: string | undefined;
818
+ city?: string | undefined;
819
+ province_state?: string | undefined;
820
+ postal_code?: string | undefined;
821
+ country?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
822
+ } | undefined;
823
+ }>, "many">;
824
+ has_more: z.ZodBoolean;
825
+ links: z.ZodArray<z.ZodObject<{
826
+ href: z.ZodString;
827
+ rel: z.ZodString;
828
+ method: z.ZodString;
829
+ }, "strip", z.ZodTypeAny, {
830
+ method: string;
831
+ href: string;
832
+ rel: string;
833
+ }, {
834
+ method: string;
835
+ href: string;
836
+ rel: string;
837
+ }>, "many">;
838
+ }, "strip", z.ZodTypeAny, {
839
+ data: {
840
+ status: "PENDING" | "FAILED" | "ACTIVE" | "INACTIVE" | "EXPIRED";
841
+ type: "BANK_ACCOUNT" | "EWALLET" | "QR_CODE" | "CARD" | "OVER_THE_COUNTER" | "VIRTUAL_ACCOUNT";
842
+ id: string;
843
+ created: string;
844
+ updated: string;
845
+ business_id: string;
846
+ reusability: "ONE_TIME_USE" | "MULTIPLE_USE";
847
+ country?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
848
+ description?: string | undefined;
849
+ metadata?: Record<string, unknown> | undefined;
850
+ reference_id?: string | undefined;
851
+ customer_id?: string | undefined;
852
+ actions?: {
853
+ action: string;
854
+ url?: string | undefined;
855
+ method?: string | undefined;
856
+ url_type?: string | undefined;
857
+ }[] | undefined;
858
+ failure_code?: string | null | undefined;
859
+ card?: {
860
+ card_last_four: string;
861
+ card_expiry_month: string;
862
+ card_expiry_year: string;
863
+ network: string;
864
+ type?: "CREDIT" | "DEBIT" | undefined;
865
+ country?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
866
+ currency?: "PHP" | "IDR" | "MYR" | "THB" | "VND" | undefined;
867
+ issuer?: string | undefined;
868
+ } | undefined;
869
+ bank_account?: {
870
+ account_number: string;
871
+ account_holder_name: string;
872
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
873
+ bank_code: string;
874
+ account_type?: string | undefined;
875
+ } | undefined;
876
+ ewallet?: {
877
+ account_details: string;
878
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
879
+ } | undefined;
880
+ billing_information?: {
881
+ street_line1?: string | undefined;
882
+ street_line2?: string | undefined;
883
+ city?: string | undefined;
884
+ province_state?: string | undefined;
885
+ postal_code?: string | undefined;
886
+ country?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
887
+ } | undefined;
888
+ }[];
889
+ has_more: boolean;
890
+ links: {
891
+ method: string;
892
+ href: string;
893
+ rel: string;
894
+ }[];
895
+ }, {
896
+ data: {
897
+ status: "PENDING" | "FAILED" | "ACTIVE" | "INACTIVE" | "EXPIRED";
898
+ type: "BANK_ACCOUNT" | "EWALLET" | "QR_CODE" | "CARD" | "OVER_THE_COUNTER" | "VIRTUAL_ACCOUNT";
899
+ id: string;
900
+ created: string;
901
+ updated: string;
902
+ business_id: string;
903
+ reusability: "ONE_TIME_USE" | "MULTIPLE_USE";
904
+ country?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
905
+ description?: string | undefined;
906
+ metadata?: Record<string, unknown> | undefined;
907
+ reference_id?: string | undefined;
908
+ customer_id?: string | undefined;
909
+ actions?: {
910
+ action: string;
911
+ url?: string | undefined;
912
+ method?: string | undefined;
913
+ url_type?: string | undefined;
914
+ }[] | undefined;
915
+ failure_code?: string | null | undefined;
916
+ card?: {
917
+ card_last_four: string;
918
+ card_expiry_month: string;
919
+ card_expiry_year: string;
920
+ network: string;
921
+ type?: "CREDIT" | "DEBIT" | undefined;
922
+ country?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
923
+ currency?: "PHP" | "IDR" | "MYR" | "THB" | "VND" | undefined;
924
+ issuer?: string | undefined;
925
+ } | undefined;
926
+ bank_account?: {
927
+ account_number: string;
928
+ account_holder_name: string;
929
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
930
+ bank_code: string;
931
+ account_type?: string | undefined;
932
+ } | undefined;
933
+ ewallet?: {
934
+ account_details: string;
935
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
936
+ } | undefined;
937
+ billing_information?: {
938
+ street_line1?: string | undefined;
939
+ street_line2?: string | undefined;
940
+ city?: string | undefined;
941
+ province_state?: string | undefined;
942
+ postal_code?: string | undefined;
943
+ country?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
944
+ } | undefined;
945
+ }[];
946
+ has_more: boolean;
947
+ links: {
948
+ method: string;
949
+ href: string;
950
+ rel: string;
951
+ }[];
952
+ }>;
953
+ export type ListPaymentMethodsResponse = z.infer<typeof ListPaymentMethodsResponseSchema>;
954
+ export declare const UpdatePaymentMethodParamsSchema: z.ZodObject<{
955
+ id: z.ZodString;
956
+ payload: z.ZodObject<{
957
+ description: z.ZodOptional<z.ZodString>;
958
+ reference_id: z.ZodOptional<z.ZodString>;
959
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ACTIVE">, z.ZodLiteral<"INACTIVE">, z.ZodLiteral<"PENDING">, z.ZodLiteral<"EXPIRED">, z.ZodLiteral<"FAILED">]>>;
960
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
961
+ }, "strip", z.ZodTypeAny, {
962
+ status?: "PENDING" | "FAILED" | "ACTIVE" | "INACTIVE" | "EXPIRED" | undefined;
963
+ description?: string | undefined;
964
+ metadata?: Record<string, unknown> | undefined;
965
+ reference_id?: string | undefined;
966
+ }, {
967
+ status?: "PENDING" | "FAILED" | "ACTIVE" | "INACTIVE" | "EXPIRED" | undefined;
968
+ description?: string | undefined;
969
+ metadata?: Record<string, unknown> | undefined;
970
+ reference_id?: string | undefined;
971
+ }>;
972
+ }, "strip", z.ZodTypeAny, {
973
+ id: string;
974
+ payload: {
975
+ status?: "PENDING" | "FAILED" | "ACTIVE" | "INACTIVE" | "EXPIRED" | undefined;
976
+ description?: string | undefined;
977
+ metadata?: Record<string, unknown> | undefined;
978
+ reference_id?: string | undefined;
979
+ };
980
+ }, {
981
+ id: string;
982
+ payload: {
983
+ status?: "PENDING" | "FAILED" | "ACTIVE" | "INACTIVE" | "EXPIRED" | undefined;
984
+ description?: string | undefined;
985
+ metadata?: Record<string, unknown> | undefined;
986
+ reference_id?: string | undefined;
987
+ };
988
+ }>;
989
+ export type UpdatePaymentMethodParams = z.infer<typeof UpdatePaymentMethodParamsSchema>;
990
+ //# sourceMappingURL=schema.d.ts.map