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,783 @@
1
+ import { z } from "zod";
2
+ export declare const CheckoutMethodSchema: z.ZodUnion<[z.ZodLiteral<"ONE_TIME_PAYMENT">, z.ZodLiteral<"TOKENIZED_PAYMENT">]>;
3
+ export type CheckoutMethod = z.infer<typeof CheckoutMethodSchema>;
4
+ export declare const ChannelCodeSchema: z.ZodUnion<[z.ZodLiteral<"ID_OVO">, z.ZodLiteral<"ID_DANA">, z.ZodLiteral<"ID_LINKAJA">, z.ZodLiteral<"ID_SHOPEEPAY">, z.ZodLiteral<"ID_ASTRAPAY">, z.ZodLiteral<"ID_JENIUSPAY">, z.ZodLiteral<"ID_SAKUKU">, z.ZodLiteral<"PH_PAYMAYA">, z.ZodLiteral<"PH_GCASH">, z.ZodLiteral<"PH_GRABPAY">, z.ZodLiteral<"PH_SHOPEEPAY">, z.ZodLiteral<"VN_APPOTA">, z.ZodLiteral<"VN_MOMO">, z.ZodLiteral<"VN_SHOPEEPAY">, z.ZodLiteral<"VN_VNPTWALLET">, z.ZodLiteral<"VN_VIETTELPAY">, z.ZodLiteral<"VN_ZALOPAY">, z.ZodLiteral<"TH_WECHATPAY">, z.ZodLiteral<"TH_LINEPAY">, z.ZodLiteral<"TH_TRUEMONEY">, z.ZodLiteral<"TH_SHOPEEPAY">, z.ZodLiteral<"MY_TOUCHNGO">, z.ZodLiteral<"MY_SHOPEEPAY">, z.ZodLiteral<"MY_GRABPAY">]>;
5
+ export declare const LineItemSchema: z.ZodObject<{
6
+ reference_id: z.ZodString;
7
+ name: z.ZodString;
8
+ category: z.ZodString;
9
+ currency: z.ZodUnion<[z.ZodLiteral<"PHP">, z.ZodLiteral<"IDR">, z.ZodLiteral<"MYR">, z.ZodLiteral<"THB">, z.ZodLiteral<"VND">]>;
10
+ price: z.ZodNumber;
11
+ quantity: z.ZodNumber;
12
+ type: z.ZodUnion<[z.ZodLiteral<"PRODUCT">, z.ZodLiteral<"SERVICE">]>;
13
+ url: z.ZodOptional<z.ZodString>;
14
+ description: z.ZodOptional<z.ZodString>;
15
+ subcategory: z.ZodOptional<z.ZodString>;
16
+ metadata: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ type: "PRODUCT" | "SERVICE";
19
+ category: string;
20
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
21
+ reference_id: string;
22
+ name: string;
23
+ price: number;
24
+ quantity: number;
25
+ url?: string | undefined;
26
+ description?: string | undefined;
27
+ metadata?: {} | undefined;
28
+ subcategory?: string | undefined;
29
+ }, {
30
+ type: "PRODUCT" | "SERVICE";
31
+ category: string;
32
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
33
+ reference_id: string;
34
+ name: string;
35
+ price: number;
36
+ quantity: number;
37
+ url?: string | undefined;
38
+ description?: string | undefined;
39
+ metadata?: {} | undefined;
40
+ subcategory?: string | undefined;
41
+ }>;
42
+ export type LineItem = z.infer<typeof LineItemSchema>;
43
+ export declare const EWalletChargeSchema: z.ZodDiscriminatedUnion<"checkout_method", [z.ZodObject<{
44
+ reference_id: z.ZodString;
45
+ currency: z.ZodUnion<[z.ZodLiteral<"PHP">, z.ZodLiteral<"IDR">, z.ZodLiteral<"MYR">, z.ZodLiteral<"THB">, z.ZodLiteral<"VND">]>;
46
+ amount: z.ZodNumber;
47
+ checkout_method: z.ZodLiteral<"ONE_TIME_PAYMENT">;
48
+ channel_code: z.ZodUnion<[z.ZodLiteral<"ID_OVO">, z.ZodLiteral<"ID_DANA">, z.ZodLiteral<"ID_LINKAJA">, z.ZodLiteral<"ID_SHOPEEPAY">, z.ZodLiteral<"ID_ASTRAPAY">, z.ZodLiteral<"ID_JENIUSPAY">, z.ZodLiteral<"ID_SAKUKU">, z.ZodLiteral<"PH_PAYMAYA">, z.ZodLiteral<"PH_GCASH">, z.ZodLiteral<"PH_GRABPAY">, z.ZodLiteral<"PH_SHOPEEPAY">, z.ZodLiteral<"VN_APPOTA">, z.ZodLiteral<"VN_MOMO">, z.ZodLiteral<"VN_SHOPEEPAY">, z.ZodLiteral<"VN_VNPTWALLET">, z.ZodLiteral<"VN_VIETTELPAY">, z.ZodLiteral<"VN_ZALOPAY">, z.ZodLiteral<"TH_WECHATPAY">, z.ZodLiteral<"TH_LINEPAY">, z.ZodLiteral<"TH_TRUEMONEY">, z.ZodLiteral<"TH_SHOPEEPAY">, z.ZodLiteral<"MY_TOUCHNGO">, z.ZodLiteral<"MY_SHOPEEPAY">, z.ZodLiteral<"MY_GRABPAY">]>;
49
+ channel_properties: z.ZodObject<{
50
+ cashtag: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
51
+ mobile_number: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
52
+ success_redirect_url: z.ZodOptional<z.ZodString>;
53
+ failure_redirect_url: z.ZodOptional<z.ZodString>;
54
+ cancel_redirect_url: z.ZodOptional<z.ZodString>;
55
+ redeem_points: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"REDEEM_ALL">, z.ZodLiteral<"REDEEM_NONE">]>>>;
56
+ }, "strip", z.ZodTypeAny, {
57
+ mobile_number?: string | undefined;
58
+ cashtag?: string | undefined;
59
+ success_redirect_url?: string | undefined;
60
+ failure_redirect_url?: string | undefined;
61
+ cancel_redirect_url?: string | undefined;
62
+ redeem_points?: "REDEEM_ALL" | "REDEEM_NONE" | undefined;
63
+ }, {
64
+ mobile_number?: string | undefined;
65
+ cashtag?: string | undefined;
66
+ success_redirect_url?: string | undefined;
67
+ failure_redirect_url?: string | undefined;
68
+ cancel_redirect_url?: string | undefined;
69
+ redeem_points?: "REDEEM_ALL" | "REDEEM_NONE" | undefined;
70
+ }>;
71
+ payment_method_id: z.ZodOptional<z.ZodUndefined>;
72
+ customer_id: z.ZodOptional<z.ZodString>;
73
+ basket: z.ZodOptional<z.ZodArray<z.ZodObject<{
74
+ reference_id: z.ZodString;
75
+ name: z.ZodString;
76
+ category: z.ZodString;
77
+ currency: z.ZodUnion<[z.ZodLiteral<"PHP">, z.ZodLiteral<"IDR">, z.ZodLiteral<"MYR">, z.ZodLiteral<"THB">, z.ZodLiteral<"VND">]>;
78
+ price: z.ZodNumber;
79
+ quantity: z.ZodNumber;
80
+ type: z.ZodUnion<[z.ZodLiteral<"PRODUCT">, z.ZodLiteral<"SERVICE">]>;
81
+ url: z.ZodOptional<z.ZodString>;
82
+ description: z.ZodOptional<z.ZodString>;
83
+ subcategory: z.ZodOptional<z.ZodString>;
84
+ metadata: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
85
+ }, "strip", z.ZodTypeAny, {
86
+ type: "PRODUCT" | "SERVICE";
87
+ category: string;
88
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
89
+ reference_id: string;
90
+ name: string;
91
+ price: number;
92
+ quantity: number;
93
+ url?: string | undefined;
94
+ description?: string | undefined;
95
+ metadata?: {} | undefined;
96
+ subcategory?: string | undefined;
97
+ }, {
98
+ type: "PRODUCT" | "SERVICE";
99
+ category: string;
100
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
101
+ reference_id: string;
102
+ name: string;
103
+ price: number;
104
+ quantity: number;
105
+ url?: string | undefined;
106
+ description?: string | undefined;
107
+ metadata?: {} | undefined;
108
+ subcategory?: string | undefined;
109
+ }>, "many">>;
110
+ metadata: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
111
+ }, "strip", z.ZodTypeAny, {
112
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
113
+ reference_id: string;
114
+ channel_code: "ID_OVO" | "ID_DANA" | "ID_LINKAJA" | "ID_SHOPEEPAY" | "ID_ASTRAPAY" | "ID_JENIUSPAY" | "ID_SAKUKU" | "PH_PAYMAYA" | "PH_GCASH" | "PH_GRABPAY" | "PH_SHOPEEPAY" | "VN_APPOTA" | "VN_MOMO" | "VN_SHOPEEPAY" | "VN_VNPTWALLET" | "VN_VIETTELPAY" | "VN_ZALOPAY" | "TH_WECHATPAY" | "TH_LINEPAY" | "TH_TRUEMONEY" | "TH_SHOPEEPAY" | "MY_TOUCHNGO" | "MY_SHOPEEPAY" | "MY_GRABPAY";
115
+ channel_properties: {
116
+ mobile_number?: string | undefined;
117
+ cashtag?: string | undefined;
118
+ success_redirect_url?: string | undefined;
119
+ failure_redirect_url?: string | undefined;
120
+ cancel_redirect_url?: string | undefined;
121
+ redeem_points?: "REDEEM_ALL" | "REDEEM_NONE" | undefined;
122
+ };
123
+ checkout_method: "ONE_TIME_PAYMENT";
124
+ amount: number;
125
+ metadata?: {} | undefined;
126
+ payment_method_id?: undefined;
127
+ customer_id?: string | undefined;
128
+ basket?: {
129
+ type: "PRODUCT" | "SERVICE";
130
+ category: string;
131
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
132
+ reference_id: string;
133
+ name: string;
134
+ price: number;
135
+ quantity: number;
136
+ url?: string | undefined;
137
+ description?: string | undefined;
138
+ metadata?: {} | undefined;
139
+ subcategory?: string | undefined;
140
+ }[] | undefined;
141
+ }, {
142
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
143
+ reference_id: string;
144
+ channel_code: "ID_OVO" | "ID_DANA" | "ID_LINKAJA" | "ID_SHOPEEPAY" | "ID_ASTRAPAY" | "ID_JENIUSPAY" | "ID_SAKUKU" | "PH_PAYMAYA" | "PH_GCASH" | "PH_GRABPAY" | "PH_SHOPEEPAY" | "VN_APPOTA" | "VN_MOMO" | "VN_SHOPEEPAY" | "VN_VNPTWALLET" | "VN_VIETTELPAY" | "VN_ZALOPAY" | "TH_WECHATPAY" | "TH_LINEPAY" | "TH_TRUEMONEY" | "TH_SHOPEEPAY" | "MY_TOUCHNGO" | "MY_SHOPEEPAY" | "MY_GRABPAY";
145
+ channel_properties: {
146
+ mobile_number?: string | undefined;
147
+ cashtag?: string | undefined;
148
+ success_redirect_url?: string | undefined;
149
+ failure_redirect_url?: string | undefined;
150
+ cancel_redirect_url?: string | undefined;
151
+ redeem_points?: "REDEEM_ALL" | "REDEEM_NONE" | undefined;
152
+ };
153
+ checkout_method: "ONE_TIME_PAYMENT";
154
+ amount: number;
155
+ metadata?: {} | undefined;
156
+ payment_method_id?: undefined;
157
+ customer_id?: string | undefined;
158
+ basket?: {
159
+ type: "PRODUCT" | "SERVICE";
160
+ category: string;
161
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
162
+ reference_id: string;
163
+ name: string;
164
+ price: number;
165
+ quantity: number;
166
+ url?: string | undefined;
167
+ description?: string | undefined;
168
+ metadata?: {} | undefined;
169
+ subcategory?: string | undefined;
170
+ }[] | undefined;
171
+ }>, z.ZodObject<{
172
+ reference_id: z.ZodString;
173
+ currency: z.ZodUnion<[z.ZodLiteral<"PHP">, z.ZodLiteral<"IDR">, z.ZodLiteral<"MYR">, z.ZodLiteral<"THB">, z.ZodLiteral<"VND">]>;
174
+ amount: z.ZodNumber;
175
+ checkout_method: z.ZodLiteral<"TOKENIZED_PAYMENT">;
176
+ channel_code: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ID_OVO">, z.ZodLiteral<"ID_DANA">, z.ZodLiteral<"ID_LINKAJA">, z.ZodLiteral<"ID_SHOPEEPAY">, z.ZodLiteral<"ID_ASTRAPAY">, z.ZodLiteral<"ID_JENIUSPAY">, z.ZodLiteral<"ID_SAKUKU">, z.ZodLiteral<"PH_PAYMAYA">, z.ZodLiteral<"PH_GCASH">, z.ZodLiteral<"PH_GRABPAY">, z.ZodLiteral<"PH_SHOPEEPAY">, z.ZodLiteral<"VN_APPOTA">, z.ZodLiteral<"VN_MOMO">, z.ZodLiteral<"VN_SHOPEEPAY">, z.ZodLiteral<"VN_VNPTWALLET">, z.ZodLiteral<"VN_VIETTELPAY">, z.ZodLiteral<"VN_ZALOPAY">, z.ZodLiteral<"TH_WECHATPAY">, z.ZodLiteral<"TH_LINEPAY">, z.ZodLiteral<"TH_TRUEMONEY">, z.ZodLiteral<"TH_SHOPEEPAY">, z.ZodLiteral<"MY_TOUCHNGO">, z.ZodLiteral<"MY_SHOPEEPAY">, z.ZodLiteral<"MY_GRABPAY">]>>;
177
+ channel_properties: z.ZodObject<{
178
+ cashtag: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
179
+ mobile_number: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
180
+ success_redirect_url: z.ZodOptional<z.ZodString>;
181
+ failure_redirect_url: z.ZodOptional<z.ZodString>;
182
+ cancel_redirect_url: z.ZodOptional<z.ZodString>;
183
+ redeem_points: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"REDEEM_ALL">, z.ZodLiteral<"REDEEM_NONE">]>>>;
184
+ }, "strip", z.ZodTypeAny, {
185
+ mobile_number?: string | undefined;
186
+ cashtag?: string | undefined;
187
+ success_redirect_url?: string | undefined;
188
+ failure_redirect_url?: string | undefined;
189
+ cancel_redirect_url?: string | undefined;
190
+ redeem_points?: "REDEEM_ALL" | "REDEEM_NONE" | undefined;
191
+ }, {
192
+ mobile_number?: string | undefined;
193
+ cashtag?: string | undefined;
194
+ success_redirect_url?: string | undefined;
195
+ failure_redirect_url?: string | undefined;
196
+ cancel_redirect_url?: string | undefined;
197
+ redeem_points?: "REDEEM_ALL" | "REDEEM_NONE" | undefined;
198
+ }>;
199
+ payment_method_id: z.ZodString;
200
+ customer_id: z.ZodOptional<z.ZodString>;
201
+ basket: z.ZodOptional<z.ZodArray<z.ZodObject<{
202
+ reference_id: z.ZodString;
203
+ name: z.ZodString;
204
+ category: z.ZodString;
205
+ currency: z.ZodUnion<[z.ZodLiteral<"PHP">, z.ZodLiteral<"IDR">, z.ZodLiteral<"MYR">, z.ZodLiteral<"THB">, z.ZodLiteral<"VND">]>;
206
+ price: z.ZodNumber;
207
+ quantity: z.ZodNumber;
208
+ type: z.ZodUnion<[z.ZodLiteral<"PRODUCT">, z.ZodLiteral<"SERVICE">]>;
209
+ url: z.ZodOptional<z.ZodString>;
210
+ description: z.ZodOptional<z.ZodString>;
211
+ subcategory: z.ZodOptional<z.ZodString>;
212
+ metadata: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
213
+ }, "strip", z.ZodTypeAny, {
214
+ type: "PRODUCT" | "SERVICE";
215
+ category: string;
216
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
217
+ reference_id: string;
218
+ name: string;
219
+ price: number;
220
+ quantity: number;
221
+ url?: string | undefined;
222
+ description?: string | undefined;
223
+ metadata?: {} | undefined;
224
+ subcategory?: string | undefined;
225
+ }, {
226
+ type: "PRODUCT" | "SERVICE";
227
+ category: string;
228
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
229
+ reference_id: string;
230
+ name: string;
231
+ price: number;
232
+ quantity: number;
233
+ url?: string | undefined;
234
+ description?: string | undefined;
235
+ metadata?: {} | undefined;
236
+ subcategory?: string | undefined;
237
+ }>, "many">>;
238
+ metadata: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
239
+ }, "strip", z.ZodTypeAny, {
240
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
241
+ reference_id: string;
242
+ channel_properties: {
243
+ mobile_number?: string | undefined;
244
+ cashtag?: string | undefined;
245
+ success_redirect_url?: string | undefined;
246
+ failure_redirect_url?: string | undefined;
247
+ cancel_redirect_url?: string | undefined;
248
+ redeem_points?: "REDEEM_ALL" | "REDEEM_NONE" | undefined;
249
+ };
250
+ checkout_method: "TOKENIZED_PAYMENT";
251
+ amount: number;
252
+ payment_method_id: string;
253
+ metadata?: {} | undefined;
254
+ channel_code?: "ID_OVO" | "ID_DANA" | "ID_LINKAJA" | "ID_SHOPEEPAY" | "ID_ASTRAPAY" | "ID_JENIUSPAY" | "ID_SAKUKU" | "PH_PAYMAYA" | "PH_GCASH" | "PH_GRABPAY" | "PH_SHOPEEPAY" | "VN_APPOTA" | "VN_MOMO" | "VN_SHOPEEPAY" | "VN_VNPTWALLET" | "VN_VIETTELPAY" | "VN_ZALOPAY" | "TH_WECHATPAY" | "TH_LINEPAY" | "TH_TRUEMONEY" | "TH_SHOPEEPAY" | "MY_TOUCHNGO" | "MY_SHOPEEPAY" | "MY_GRABPAY" | undefined;
255
+ customer_id?: string | undefined;
256
+ basket?: {
257
+ type: "PRODUCT" | "SERVICE";
258
+ category: string;
259
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
260
+ reference_id: string;
261
+ name: string;
262
+ price: number;
263
+ quantity: number;
264
+ url?: string | undefined;
265
+ description?: string | undefined;
266
+ metadata?: {} | undefined;
267
+ subcategory?: string | undefined;
268
+ }[] | undefined;
269
+ }, {
270
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
271
+ reference_id: string;
272
+ channel_properties: {
273
+ mobile_number?: string | undefined;
274
+ cashtag?: string | undefined;
275
+ success_redirect_url?: string | undefined;
276
+ failure_redirect_url?: string | undefined;
277
+ cancel_redirect_url?: string | undefined;
278
+ redeem_points?: "REDEEM_ALL" | "REDEEM_NONE" | undefined;
279
+ };
280
+ checkout_method: "TOKENIZED_PAYMENT";
281
+ amount: number;
282
+ payment_method_id: string;
283
+ metadata?: {} | undefined;
284
+ channel_code?: "ID_OVO" | "ID_DANA" | "ID_LINKAJA" | "ID_SHOPEEPAY" | "ID_ASTRAPAY" | "ID_JENIUSPAY" | "ID_SAKUKU" | "PH_PAYMAYA" | "PH_GCASH" | "PH_GRABPAY" | "PH_SHOPEEPAY" | "VN_APPOTA" | "VN_MOMO" | "VN_SHOPEEPAY" | "VN_VNPTWALLET" | "VN_VIETTELPAY" | "VN_ZALOPAY" | "TH_WECHATPAY" | "TH_LINEPAY" | "TH_TRUEMONEY" | "TH_SHOPEEPAY" | "MY_TOUCHNGO" | "MY_SHOPEEPAY" | "MY_GRABPAY" | undefined;
285
+ customer_id?: string | undefined;
286
+ basket?: {
287
+ type: "PRODUCT" | "SERVICE";
288
+ category: string;
289
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
290
+ reference_id: string;
291
+ name: string;
292
+ price: number;
293
+ quantity: number;
294
+ url?: string | undefined;
295
+ description?: string | undefined;
296
+ metadata?: {} | undefined;
297
+ subcategory?: string | undefined;
298
+ }[] | undefined;
299
+ }>]>;
300
+ export type EWalletChargeParams = z.infer<typeof EWalletChargeSchema>;
301
+ export declare const EWalletStatusSchema: z.ZodUnion<[z.ZodLiteral<"SUCCEEDED">, z.ZodLiteral<"PENDING">, z.ZodLiteral<"FAILED">, z.ZodLiteral<"VOIDED">, z.ZodLiteral<"REFUNDED">]>;
302
+ export declare const EWalletResourceActionsSchema: z.ZodObject<{
303
+ desktop_web_checkout_url: z.ZodOptional<z.ZodString>;
304
+ mobile_web_checkout_url: z.ZodOptional<z.ZodString>;
305
+ mobile_deeplink_checkout_url: z.ZodOptional<z.ZodString>;
306
+ qr_checkout_string: z.ZodOptional<z.ZodString>;
307
+ }, "strip", z.ZodTypeAny, {
308
+ desktop_web_checkout_url?: string | undefined;
309
+ mobile_web_checkout_url?: string | undefined;
310
+ mobile_deeplink_checkout_url?: string | undefined;
311
+ qr_checkout_string?: string | undefined;
312
+ }, {
313
+ desktop_web_checkout_url?: string | undefined;
314
+ mobile_web_checkout_url?: string | undefined;
315
+ mobile_deeplink_checkout_url?: string | undefined;
316
+ qr_checkout_string?: string | undefined;
317
+ }>;
318
+ export type EWalletResourceActions = z.infer<typeof EWalletResourceActionsSchema>;
319
+ export declare const EWalletChargeResourceSchema: z.ZodObject<{
320
+ id: z.ZodString;
321
+ business_id: z.ZodString;
322
+ reference_id: z.ZodString;
323
+ status: z.ZodUnion<[z.ZodLiteral<"SUCCEEDED">, z.ZodLiteral<"PENDING">, z.ZodLiteral<"FAILED">, z.ZodLiteral<"VOIDED">, z.ZodLiteral<"REFUNDED">]>;
324
+ currency: z.ZodUnion<[z.ZodLiteral<"PHP">, z.ZodLiteral<"IDR">, z.ZodLiteral<"MYR">, z.ZodLiteral<"THB">, z.ZodLiteral<"VND">]>;
325
+ charge_amount: z.ZodNumber;
326
+ capture_amount: z.ZodOptional<z.ZodNumber>;
327
+ refunded_amount: z.ZodNullable<z.ZodNumber>;
328
+ checkout_method: z.ZodUnion<[z.ZodLiteral<"ONE_TIME_PAYMENT">, z.ZodLiteral<"TOKENIZED_PAYMENT">]>;
329
+ channel_code: z.ZodUnion<[z.ZodLiteral<"ID_OVO">, z.ZodLiteral<"ID_DANA">, z.ZodLiteral<"ID_LINKAJA">, z.ZodLiteral<"ID_SHOPEEPAY">, z.ZodLiteral<"ID_ASTRAPAY">, z.ZodLiteral<"ID_JENIUSPAY">, z.ZodLiteral<"ID_SAKUKU">, z.ZodLiteral<"PH_PAYMAYA">, z.ZodLiteral<"PH_GCASH">, z.ZodLiteral<"PH_GRABPAY">, z.ZodLiteral<"PH_SHOPEEPAY">, z.ZodLiteral<"VN_APPOTA">, z.ZodLiteral<"VN_MOMO">, z.ZodLiteral<"VN_SHOPEEPAY">, z.ZodLiteral<"VN_VNPTWALLET">, z.ZodLiteral<"VN_VIETTELPAY">, z.ZodLiteral<"VN_ZALOPAY">, z.ZodLiteral<"TH_WECHATPAY">, z.ZodLiteral<"TH_LINEPAY">, z.ZodLiteral<"TH_TRUEMONEY">, z.ZodLiteral<"TH_SHOPEEPAY">, z.ZodLiteral<"MY_TOUCHNGO">, z.ZodLiteral<"MY_SHOPEEPAY">, z.ZodLiteral<"MY_GRABPAY">]>;
330
+ channel_properties: z.ZodDiscriminatedUnion<"channel_code", [z.ZodObject<{
331
+ channel_code: z.ZodLiteral<"ID_OVO">;
332
+ channel_properties: z.ZodObject<{
333
+ mobile_number: z.ZodEffects<z.ZodString, string, string>;
334
+ }, "strip", z.ZodTypeAny, {
335
+ mobile_number: string;
336
+ }, {
337
+ mobile_number: string;
338
+ }>;
339
+ }, "strip", z.ZodTypeAny, {
340
+ channel_code: "ID_OVO";
341
+ channel_properties: {
342
+ mobile_number: string;
343
+ };
344
+ }, {
345
+ channel_code: "ID_OVO";
346
+ channel_properties: {
347
+ mobile_number: string;
348
+ };
349
+ }>, z.ZodObject<{
350
+ channel_code: z.ZodLiteral<"ID_JENIUSPAY">;
351
+ properties: z.ZodDiscriminatedUnion<"method", [z.ZodObject<{
352
+ method: z.ZodLiteral<"ONE_TIME_PAYMENT">;
353
+ properties: z.ZodObject<{
354
+ cashtag: z.ZodEffects<z.ZodString, string, string>;
355
+ }, "strip", z.ZodTypeAny, {
356
+ cashtag: string;
357
+ }, {
358
+ cashtag: string;
359
+ }>;
360
+ }, "strip", z.ZodTypeAny, {
361
+ method: "ONE_TIME_PAYMENT";
362
+ properties: {
363
+ cashtag: string;
364
+ };
365
+ }, {
366
+ method: "ONE_TIME_PAYMENT";
367
+ properties: {
368
+ cashtag: string;
369
+ };
370
+ }>, z.ZodObject<{
371
+ method: z.ZodLiteral<"TOKENIZED_PAYMENT">;
372
+ properties: z.ZodObject<{
373
+ success_redirect_url: z.ZodString;
374
+ failure_redirect_url: z.ZodString;
375
+ redeem_points: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"REDEEM_ALL">, z.ZodLiteral<"REDEEM_NONE">]>>>;
376
+ }, "strip", z.ZodTypeAny, {
377
+ success_redirect_url: string;
378
+ failure_redirect_url: string;
379
+ redeem_points?: "REDEEM_ALL" | "REDEEM_NONE" | undefined;
380
+ }, {
381
+ success_redirect_url: string;
382
+ failure_redirect_url: string;
383
+ redeem_points?: "REDEEM_ALL" | "REDEEM_NONE" | undefined;
384
+ }>;
385
+ }, "strip", z.ZodTypeAny, {
386
+ method: "TOKENIZED_PAYMENT";
387
+ properties: {
388
+ success_redirect_url: string;
389
+ failure_redirect_url: string;
390
+ redeem_points?: "REDEEM_ALL" | "REDEEM_NONE" | undefined;
391
+ };
392
+ }, {
393
+ method: "TOKENIZED_PAYMENT";
394
+ properties: {
395
+ success_redirect_url: string;
396
+ failure_redirect_url: string;
397
+ redeem_points?: "REDEEM_ALL" | "REDEEM_NONE" | undefined;
398
+ };
399
+ }>]>;
400
+ }, "strip", z.ZodTypeAny, {
401
+ properties: {
402
+ method: "ONE_TIME_PAYMENT";
403
+ properties: {
404
+ cashtag: string;
405
+ };
406
+ } | {
407
+ method: "TOKENIZED_PAYMENT";
408
+ properties: {
409
+ success_redirect_url: string;
410
+ failure_redirect_url: string;
411
+ redeem_points?: "REDEEM_ALL" | "REDEEM_NONE" | undefined;
412
+ };
413
+ };
414
+ channel_code: "ID_JENIUSPAY";
415
+ }, {
416
+ properties: {
417
+ method: "ONE_TIME_PAYMENT";
418
+ properties: {
419
+ cashtag: string;
420
+ };
421
+ } | {
422
+ method: "TOKENIZED_PAYMENT";
423
+ properties: {
424
+ success_redirect_url: string;
425
+ failure_redirect_url: string;
426
+ redeem_points?: "REDEEM_ALL" | "REDEEM_NONE" | undefined;
427
+ };
428
+ };
429
+ channel_code: "ID_JENIUSPAY";
430
+ }>, z.ZodObject<{
431
+ channel_code: z.ZodUnion<[z.ZodLiteral<"ID_DANA">, z.ZodLiteral<"ID_LINKAJA">, z.ZodLiteral<"ID_SHOPEEPAY">, z.ZodLiteral<"PH_SHOPEEPAY">, z.ZodLiteral<"TH_SHOPEEPAY">, z.ZodLiteral<"TH_WECHATPAY">, z.ZodLiteral<"TH_TOUCHNGO">, z.ZodLiteral<"TH_TRUEMONEY">, z.ZodLiteral<"ID_SAKUKU">]>;
432
+ properties: z.ZodDiscriminatedUnion<"method", [z.ZodObject<{
433
+ method: z.ZodLiteral<"ONE_TIME_PAYMENT">;
434
+ properties: z.ZodObject<{
435
+ success_redirect_url: z.ZodString;
436
+ }, "strip", z.ZodTypeAny, {
437
+ success_redirect_url: string;
438
+ }, {
439
+ success_redirect_url: string;
440
+ }>;
441
+ }, "strip", z.ZodTypeAny, {
442
+ method: "ONE_TIME_PAYMENT";
443
+ properties: {
444
+ success_redirect_url: string;
445
+ };
446
+ }, {
447
+ method: "ONE_TIME_PAYMENT";
448
+ properties: {
449
+ success_redirect_url: string;
450
+ };
451
+ }>, z.ZodObject<{
452
+ method: z.ZodLiteral<"TOKENIZED_PAYMENT">;
453
+ properties: z.ZodObject<{
454
+ success_redirect_url: z.ZodString;
455
+ failure_redirect_url: z.ZodString;
456
+ redeem_points: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"REDEEM_ALL">, z.ZodLiteral<"REDEEM_NONE">]>>>;
457
+ }, "strip", z.ZodTypeAny, {
458
+ success_redirect_url: string;
459
+ failure_redirect_url: string;
460
+ redeem_points?: "REDEEM_ALL" | "REDEEM_NONE" | undefined;
461
+ }, {
462
+ success_redirect_url: string;
463
+ failure_redirect_url: string;
464
+ redeem_points?: "REDEEM_ALL" | "REDEEM_NONE" | undefined;
465
+ }>;
466
+ }, "strip", z.ZodTypeAny, {
467
+ method: "TOKENIZED_PAYMENT";
468
+ properties: {
469
+ success_redirect_url: string;
470
+ failure_redirect_url: string;
471
+ redeem_points?: "REDEEM_ALL" | "REDEEM_NONE" | undefined;
472
+ };
473
+ }, {
474
+ method: "TOKENIZED_PAYMENT";
475
+ properties: {
476
+ success_redirect_url: string;
477
+ failure_redirect_url: string;
478
+ redeem_points?: "REDEEM_ALL" | "REDEEM_NONE" | undefined;
479
+ };
480
+ }>]>;
481
+ }, "strip", z.ZodTypeAny, {
482
+ properties: {
483
+ method: "ONE_TIME_PAYMENT";
484
+ properties: {
485
+ success_redirect_url: string;
486
+ };
487
+ } | {
488
+ method: "TOKENIZED_PAYMENT";
489
+ properties: {
490
+ success_redirect_url: string;
491
+ failure_redirect_url: string;
492
+ redeem_points?: "REDEEM_ALL" | "REDEEM_NONE" | undefined;
493
+ };
494
+ };
495
+ channel_code: "ID_DANA" | "ID_LINKAJA" | "ID_SHOPEEPAY" | "ID_SAKUKU" | "PH_SHOPEEPAY" | "TH_WECHATPAY" | "TH_TRUEMONEY" | "TH_SHOPEEPAY" | "TH_TOUCHNGO";
496
+ }, {
497
+ properties: {
498
+ method: "ONE_TIME_PAYMENT";
499
+ properties: {
500
+ success_redirect_url: string;
501
+ };
502
+ } | {
503
+ method: "TOKENIZED_PAYMENT";
504
+ properties: {
505
+ success_redirect_url: string;
506
+ failure_redirect_url: string;
507
+ redeem_points?: "REDEEM_ALL" | "REDEEM_NONE" | undefined;
508
+ };
509
+ };
510
+ channel_code: "ID_DANA" | "ID_LINKAJA" | "ID_SHOPEEPAY" | "ID_SAKUKU" | "PH_SHOPEEPAY" | "TH_WECHATPAY" | "TH_TRUEMONEY" | "TH_SHOPEEPAY" | "TH_TOUCHNGO";
511
+ }>, z.ZodObject<{
512
+ channel_code: z.ZodLiteral<"PH_PAYMAYA">;
513
+ properties: z.ZodObject<{
514
+ success_redirect_url: z.ZodString;
515
+ failure_redirect_url: z.ZodString;
516
+ cancel_redirect_url: z.ZodString;
517
+ }, "strip", z.ZodTypeAny, {
518
+ success_redirect_url: string;
519
+ failure_redirect_url: string;
520
+ cancel_redirect_url: string;
521
+ }, {
522
+ success_redirect_url: string;
523
+ failure_redirect_url: string;
524
+ cancel_redirect_url: string;
525
+ }>;
526
+ }, "strip", z.ZodTypeAny, {
527
+ properties: {
528
+ success_redirect_url: string;
529
+ failure_redirect_url: string;
530
+ cancel_redirect_url: string;
531
+ };
532
+ channel_code: "PH_PAYMAYA";
533
+ }, {
534
+ properties: {
535
+ success_redirect_url: string;
536
+ failure_redirect_url: string;
537
+ cancel_redirect_url: string;
538
+ };
539
+ channel_code: "PH_PAYMAYA";
540
+ }>]>;
541
+ actions: z.ZodOptional<z.ZodObject<{
542
+ desktop_web_checkout_url: z.ZodOptional<z.ZodString>;
543
+ mobile_web_checkout_url: z.ZodOptional<z.ZodString>;
544
+ mobile_deeplink_checkout_url: z.ZodOptional<z.ZodString>;
545
+ qr_checkout_string: z.ZodOptional<z.ZodString>;
546
+ }, "strip", z.ZodTypeAny, {
547
+ desktop_web_checkout_url?: string | undefined;
548
+ mobile_web_checkout_url?: string | undefined;
549
+ mobile_deeplink_checkout_url?: string | undefined;
550
+ qr_checkout_string?: string | undefined;
551
+ }, {
552
+ desktop_web_checkout_url?: string | undefined;
553
+ mobile_web_checkout_url?: string | undefined;
554
+ mobile_deeplink_checkout_url?: string | undefined;
555
+ qr_checkout_string?: string | undefined;
556
+ }>>;
557
+ is_redirect_required: z.ZodBoolean;
558
+ callback_url: z.ZodString;
559
+ created: z.ZodString;
560
+ updated: z.ZodString;
561
+ void_status: z.ZodNullable<z.ZodString>;
562
+ voided_at: z.ZodNullable<z.ZodString>;
563
+ capture_now: z.ZodBoolean;
564
+ customer_id: z.ZodNullable<z.ZodString>;
565
+ payment_method_id: z.ZodNullable<z.ZodString>;
566
+ failure_code: z.ZodNullable<z.ZodString>;
567
+ basket: z.ZodOptional<z.ZodArray<z.ZodObject<{
568
+ reference_id: z.ZodString;
569
+ name: z.ZodString;
570
+ category: z.ZodString;
571
+ currency: z.ZodUnion<[z.ZodLiteral<"PHP">, z.ZodLiteral<"IDR">, z.ZodLiteral<"MYR">, z.ZodLiteral<"THB">, z.ZodLiteral<"VND">]>;
572
+ price: z.ZodNumber;
573
+ quantity: z.ZodNumber;
574
+ type: z.ZodUnion<[z.ZodLiteral<"PRODUCT">, z.ZodLiteral<"SERVICE">]>;
575
+ url: z.ZodOptional<z.ZodString>;
576
+ description: z.ZodOptional<z.ZodString>;
577
+ subcategory: z.ZodOptional<z.ZodString>;
578
+ metadata: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
579
+ }, "strip", z.ZodTypeAny, {
580
+ type: "PRODUCT" | "SERVICE";
581
+ category: string;
582
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
583
+ reference_id: string;
584
+ name: string;
585
+ price: number;
586
+ quantity: number;
587
+ url?: string | undefined;
588
+ description?: string | undefined;
589
+ metadata?: {} | undefined;
590
+ subcategory?: string | undefined;
591
+ }, {
592
+ type: "PRODUCT" | "SERVICE";
593
+ category: string;
594
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
595
+ reference_id: string;
596
+ name: string;
597
+ price: number;
598
+ quantity: number;
599
+ url?: string | undefined;
600
+ description?: string | undefined;
601
+ metadata?: {} | undefined;
602
+ subcategory?: string | undefined;
603
+ }>, "many">>;
604
+ metadata: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
605
+ }, "strip", z.ZodTypeAny, {
606
+ status: "SUCCEEDED" | "PENDING" | "FAILED" | "VOIDED" | "REFUNDED";
607
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
608
+ reference_id: string;
609
+ id: string;
610
+ created: string;
611
+ updated: string;
612
+ channel_code: "ID_OVO" | "ID_DANA" | "ID_LINKAJA" | "ID_SHOPEEPAY" | "ID_ASTRAPAY" | "ID_JENIUSPAY" | "ID_SAKUKU" | "PH_PAYMAYA" | "PH_GCASH" | "PH_GRABPAY" | "PH_SHOPEEPAY" | "VN_APPOTA" | "VN_MOMO" | "VN_SHOPEEPAY" | "VN_VNPTWALLET" | "VN_VIETTELPAY" | "VN_ZALOPAY" | "TH_WECHATPAY" | "TH_LINEPAY" | "TH_TRUEMONEY" | "TH_SHOPEEPAY" | "MY_TOUCHNGO" | "MY_SHOPEEPAY" | "MY_GRABPAY";
613
+ channel_properties: {
614
+ channel_code: "ID_OVO";
615
+ channel_properties: {
616
+ mobile_number: string;
617
+ };
618
+ } | {
619
+ properties: {
620
+ method: "ONE_TIME_PAYMENT";
621
+ properties: {
622
+ cashtag: string;
623
+ };
624
+ } | {
625
+ method: "TOKENIZED_PAYMENT";
626
+ properties: {
627
+ success_redirect_url: string;
628
+ failure_redirect_url: string;
629
+ redeem_points?: "REDEEM_ALL" | "REDEEM_NONE" | undefined;
630
+ };
631
+ };
632
+ channel_code: "ID_JENIUSPAY";
633
+ } | {
634
+ properties: {
635
+ method: "ONE_TIME_PAYMENT";
636
+ properties: {
637
+ success_redirect_url: string;
638
+ };
639
+ } | {
640
+ method: "TOKENIZED_PAYMENT";
641
+ properties: {
642
+ success_redirect_url: string;
643
+ failure_redirect_url: string;
644
+ redeem_points?: "REDEEM_ALL" | "REDEEM_NONE" | undefined;
645
+ };
646
+ };
647
+ channel_code: "ID_DANA" | "ID_LINKAJA" | "ID_SHOPEEPAY" | "ID_SAKUKU" | "PH_SHOPEEPAY" | "TH_WECHATPAY" | "TH_TRUEMONEY" | "TH_SHOPEEPAY" | "TH_TOUCHNGO";
648
+ } | {
649
+ properties: {
650
+ success_redirect_url: string;
651
+ failure_redirect_url: string;
652
+ cancel_redirect_url: string;
653
+ };
654
+ channel_code: "PH_PAYMAYA";
655
+ };
656
+ checkout_method: "ONE_TIME_PAYMENT" | "TOKENIZED_PAYMENT";
657
+ payment_method_id: string | null;
658
+ customer_id: string | null;
659
+ business_id: string;
660
+ charge_amount: number;
661
+ refunded_amount: number | null;
662
+ is_redirect_required: boolean;
663
+ callback_url: string;
664
+ void_status: string | null;
665
+ voided_at: string | null;
666
+ capture_now: boolean;
667
+ failure_code: string | null;
668
+ metadata?: {} | undefined;
669
+ basket?: {
670
+ type: "PRODUCT" | "SERVICE";
671
+ category: string;
672
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
673
+ reference_id: string;
674
+ name: string;
675
+ price: number;
676
+ quantity: number;
677
+ url?: string | undefined;
678
+ description?: string | undefined;
679
+ metadata?: {} | undefined;
680
+ subcategory?: string | undefined;
681
+ }[] | undefined;
682
+ capture_amount?: number | undefined;
683
+ actions?: {
684
+ desktop_web_checkout_url?: string | undefined;
685
+ mobile_web_checkout_url?: string | undefined;
686
+ mobile_deeplink_checkout_url?: string | undefined;
687
+ qr_checkout_string?: string | undefined;
688
+ } | undefined;
689
+ }, {
690
+ status: "SUCCEEDED" | "PENDING" | "FAILED" | "VOIDED" | "REFUNDED";
691
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
692
+ reference_id: string;
693
+ id: string;
694
+ created: string;
695
+ updated: string;
696
+ channel_code: "ID_OVO" | "ID_DANA" | "ID_LINKAJA" | "ID_SHOPEEPAY" | "ID_ASTRAPAY" | "ID_JENIUSPAY" | "ID_SAKUKU" | "PH_PAYMAYA" | "PH_GCASH" | "PH_GRABPAY" | "PH_SHOPEEPAY" | "VN_APPOTA" | "VN_MOMO" | "VN_SHOPEEPAY" | "VN_VNPTWALLET" | "VN_VIETTELPAY" | "VN_ZALOPAY" | "TH_WECHATPAY" | "TH_LINEPAY" | "TH_TRUEMONEY" | "TH_SHOPEEPAY" | "MY_TOUCHNGO" | "MY_SHOPEEPAY" | "MY_GRABPAY";
697
+ channel_properties: {
698
+ channel_code: "ID_OVO";
699
+ channel_properties: {
700
+ mobile_number: string;
701
+ };
702
+ } | {
703
+ properties: {
704
+ method: "ONE_TIME_PAYMENT";
705
+ properties: {
706
+ cashtag: string;
707
+ };
708
+ } | {
709
+ method: "TOKENIZED_PAYMENT";
710
+ properties: {
711
+ success_redirect_url: string;
712
+ failure_redirect_url: string;
713
+ redeem_points?: "REDEEM_ALL" | "REDEEM_NONE" | undefined;
714
+ };
715
+ };
716
+ channel_code: "ID_JENIUSPAY";
717
+ } | {
718
+ properties: {
719
+ method: "ONE_TIME_PAYMENT";
720
+ properties: {
721
+ success_redirect_url: string;
722
+ };
723
+ } | {
724
+ method: "TOKENIZED_PAYMENT";
725
+ properties: {
726
+ success_redirect_url: string;
727
+ failure_redirect_url: string;
728
+ redeem_points?: "REDEEM_ALL" | "REDEEM_NONE" | undefined;
729
+ };
730
+ };
731
+ channel_code: "ID_DANA" | "ID_LINKAJA" | "ID_SHOPEEPAY" | "ID_SAKUKU" | "PH_SHOPEEPAY" | "TH_WECHATPAY" | "TH_TRUEMONEY" | "TH_SHOPEEPAY" | "TH_TOUCHNGO";
732
+ } | {
733
+ properties: {
734
+ success_redirect_url: string;
735
+ failure_redirect_url: string;
736
+ cancel_redirect_url: string;
737
+ };
738
+ channel_code: "PH_PAYMAYA";
739
+ };
740
+ checkout_method: "ONE_TIME_PAYMENT" | "TOKENIZED_PAYMENT";
741
+ payment_method_id: string | null;
742
+ customer_id: string | null;
743
+ business_id: string;
744
+ charge_amount: number;
745
+ refunded_amount: number | null;
746
+ is_redirect_required: boolean;
747
+ callback_url: string;
748
+ void_status: string | null;
749
+ voided_at: string | null;
750
+ capture_now: boolean;
751
+ failure_code: string | null;
752
+ metadata?: {} | undefined;
753
+ basket?: {
754
+ type: "PRODUCT" | "SERVICE";
755
+ category: string;
756
+ currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
757
+ reference_id: string;
758
+ name: string;
759
+ price: number;
760
+ quantity: number;
761
+ url?: string | undefined;
762
+ description?: string | undefined;
763
+ metadata?: {} | undefined;
764
+ subcategory?: string | undefined;
765
+ }[] | undefined;
766
+ capture_amount?: number | undefined;
767
+ actions?: {
768
+ desktop_web_checkout_url?: string | undefined;
769
+ mobile_web_checkout_url?: string | undefined;
770
+ mobile_deeplink_checkout_url?: string | undefined;
771
+ qr_checkout_string?: string | undefined;
772
+ } | undefined;
773
+ }>;
774
+ export type EWalletChargeResource = z.infer<typeof EWalletChargeResourceSchema>;
775
+ export declare const GetEWalletChargeSchema: z.ZodObject<{
776
+ id: z.ZodString;
777
+ }, "strip", z.ZodTypeAny, {
778
+ id: string;
779
+ }, {
780
+ id: string;
781
+ }>;
782
+ export type GetEWalletChargeParams = z.infer<typeof GetEWalletChargeSchema>;
783
+ //# sourceMappingURL=schema.d.ts.map