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.
- package/LICENSE +21 -0
- package/README.md +442 -0
- package/lib/index.cjs +1588 -0
- package/lib/index.d.cts +9574 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.esm.d.ts +9574 -0
- package/lib/index.esm.js +1544 -0
- package/lib/sdk/axios.d.ts +3 -0
- package/lib/sdk/axios.d.ts.map +1 -0
- package/lib/sdk/card/index.d.ts +2 -0
- package/lib/sdk/card/index.d.ts.map +1 -0
- package/lib/sdk/card/schema.d.ts +586 -0
- package/lib/sdk/card/schema.d.ts.map +1 -0
- package/lib/sdk/common.d.ts +28 -0
- package/lib/sdk/common.d.ts.map +1 -0
- package/lib/sdk/customer/index.d.ts +7 -0
- package/lib/sdk/customer/index.d.ts.map +1 -0
- package/lib/sdk/customer/schema.d.ts +5933 -0
- package/lib/sdk/customer/schema.d.ts.map +1 -0
- package/lib/sdk/ewallet/create.d.ts +173 -0
- package/lib/sdk/ewallet/create.d.ts.map +1 -0
- package/lib/sdk/ewallet/schema.d.ts +783 -0
- package/lib/sdk/ewallet/schema.d.ts.map +1 -0
- package/lib/sdk/index.d.ts +2201 -0
- package/lib/sdk/index.d.ts.map +1 -0
- package/lib/sdk/invoice/index.d.ts +8 -0
- package/lib/sdk/invoice/index.d.ts.map +1 -0
- package/lib/sdk/invoice/schema.d.ts +2198 -0
- package/lib/sdk/invoice/schema.d.ts.map +1 -0
- package/lib/sdk/payment-method/index.d.ts +7 -0
- package/lib/sdk/payment-method/index.d.ts.map +1 -0
- package/lib/sdk/payment-method/schema.d.ts +990 -0
- package/lib/sdk/payment-method/schema.d.ts.map +1 -0
- package/lib/utils/errors.d.ts +58 -0
- package/lib/utils/errors.d.ts.map +1 -0
- package/lib/utils/index.d.ts +6 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/utils/pagination.d.ts +134 -0
- package/lib/utils/pagination.d.ts.map +1 -0
- package/lib/utils/rate-limit.d.ts +90 -0
- package/lib/utils/rate-limit.d.ts.map +1 -0
- package/lib/utils/type-guards.d.ts +13 -0
- package/lib/utils/type-guards.d.ts.map +1 -0
- package/lib/utils/webhook.d.ts +101 -0
- package/lib/utils/webhook.d.ts.map +1 -0
- package/package.json +83 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/sdk/customer/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,kBAAkB,oEAG7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,kBAAkB,qNAQ7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAI/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;EASxB,CAAC;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD,eAAO,MAAM,iBAAiB,yMAQ5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,iBAAiB;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import type { AxiosInstance, AxiosRequestConfig } from "axios";
|
|
2
|
+
import type { EWalletChargeParams, GetEWalletChargeParams } from "./schema";
|
|
3
|
+
export declare const createEwalletCharge: (params: EWalletChargeParams, axiosInstance: AxiosInstance, config?: AxiosRequestConfig) => Promise<{
|
|
4
|
+
status: "SUCCEEDED" | "PENDING" | "FAILED" | "VOIDED" | "REFUNDED";
|
|
5
|
+
currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
|
|
6
|
+
reference_id: string;
|
|
7
|
+
id: string;
|
|
8
|
+
created: string;
|
|
9
|
+
updated: string;
|
|
10
|
+
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";
|
|
11
|
+
channel_properties: {
|
|
12
|
+
channel_code: "ID_OVO";
|
|
13
|
+
channel_properties: {
|
|
14
|
+
mobile_number: string;
|
|
15
|
+
};
|
|
16
|
+
} | {
|
|
17
|
+
properties: {
|
|
18
|
+
method: "ONE_TIME_PAYMENT";
|
|
19
|
+
properties: {
|
|
20
|
+
cashtag: string;
|
|
21
|
+
};
|
|
22
|
+
} | {
|
|
23
|
+
method: "TOKENIZED_PAYMENT";
|
|
24
|
+
properties: {
|
|
25
|
+
success_redirect_url: string;
|
|
26
|
+
failure_redirect_url: string;
|
|
27
|
+
redeem_points?: "REDEEM_ALL" | "REDEEM_NONE" | undefined;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
channel_code: "ID_JENIUSPAY";
|
|
31
|
+
} | {
|
|
32
|
+
properties: {
|
|
33
|
+
method: "ONE_TIME_PAYMENT";
|
|
34
|
+
properties: {
|
|
35
|
+
success_redirect_url: string;
|
|
36
|
+
};
|
|
37
|
+
} | {
|
|
38
|
+
method: "TOKENIZED_PAYMENT";
|
|
39
|
+
properties: {
|
|
40
|
+
success_redirect_url: string;
|
|
41
|
+
failure_redirect_url: string;
|
|
42
|
+
redeem_points?: "REDEEM_ALL" | "REDEEM_NONE" | undefined;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
channel_code: "ID_DANA" | "ID_LINKAJA" | "ID_SHOPEEPAY" | "ID_SAKUKU" | "PH_SHOPEEPAY" | "TH_WECHATPAY" | "TH_TRUEMONEY" | "TH_SHOPEEPAY" | "TH_TOUCHNGO";
|
|
46
|
+
} | {
|
|
47
|
+
properties: {
|
|
48
|
+
success_redirect_url: string;
|
|
49
|
+
failure_redirect_url: string;
|
|
50
|
+
cancel_redirect_url: string;
|
|
51
|
+
};
|
|
52
|
+
channel_code: "PH_PAYMAYA";
|
|
53
|
+
};
|
|
54
|
+
checkout_method: "ONE_TIME_PAYMENT" | "TOKENIZED_PAYMENT";
|
|
55
|
+
payment_method_id: string | null;
|
|
56
|
+
customer_id: string | null;
|
|
57
|
+
business_id: string;
|
|
58
|
+
charge_amount: number;
|
|
59
|
+
refunded_amount: number | null;
|
|
60
|
+
is_redirect_required: boolean;
|
|
61
|
+
callback_url: string;
|
|
62
|
+
void_status: string | null;
|
|
63
|
+
voided_at: string | null;
|
|
64
|
+
capture_now: boolean;
|
|
65
|
+
failure_code: string | null;
|
|
66
|
+
metadata?: {} | undefined;
|
|
67
|
+
basket?: {
|
|
68
|
+
type: "PRODUCT" | "SERVICE";
|
|
69
|
+
category: string;
|
|
70
|
+
currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
|
|
71
|
+
reference_id: string;
|
|
72
|
+
name: string;
|
|
73
|
+
price: number;
|
|
74
|
+
quantity: number;
|
|
75
|
+
url?: string | undefined;
|
|
76
|
+
description?: string | undefined;
|
|
77
|
+
metadata?: {} | undefined;
|
|
78
|
+
subcategory?: string | undefined;
|
|
79
|
+
}[] | undefined;
|
|
80
|
+
capture_amount?: number | undefined;
|
|
81
|
+
actions?: {
|
|
82
|
+
desktop_web_checkout_url?: string | undefined;
|
|
83
|
+
mobile_web_checkout_url?: string | undefined;
|
|
84
|
+
mobile_deeplink_checkout_url?: string | undefined;
|
|
85
|
+
qr_checkout_string?: string | undefined;
|
|
86
|
+
} | undefined;
|
|
87
|
+
}>;
|
|
88
|
+
export declare const getEwalletCharge: (params: GetEWalletChargeParams, axiosInstance: AxiosInstance, config?: AxiosRequestConfig) => Promise<{
|
|
89
|
+
status: "SUCCEEDED" | "PENDING" | "FAILED" | "VOIDED" | "REFUNDED";
|
|
90
|
+
currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
|
|
91
|
+
reference_id: string;
|
|
92
|
+
id: string;
|
|
93
|
+
created: string;
|
|
94
|
+
updated: string;
|
|
95
|
+
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";
|
|
96
|
+
channel_properties: {
|
|
97
|
+
channel_code: "ID_OVO";
|
|
98
|
+
channel_properties: {
|
|
99
|
+
mobile_number: string;
|
|
100
|
+
};
|
|
101
|
+
} | {
|
|
102
|
+
properties: {
|
|
103
|
+
method: "ONE_TIME_PAYMENT";
|
|
104
|
+
properties: {
|
|
105
|
+
cashtag: string;
|
|
106
|
+
};
|
|
107
|
+
} | {
|
|
108
|
+
method: "TOKENIZED_PAYMENT";
|
|
109
|
+
properties: {
|
|
110
|
+
success_redirect_url: string;
|
|
111
|
+
failure_redirect_url: string;
|
|
112
|
+
redeem_points?: "REDEEM_ALL" | "REDEEM_NONE" | undefined;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
channel_code: "ID_JENIUSPAY";
|
|
116
|
+
} | {
|
|
117
|
+
properties: {
|
|
118
|
+
method: "ONE_TIME_PAYMENT";
|
|
119
|
+
properties: {
|
|
120
|
+
success_redirect_url: string;
|
|
121
|
+
};
|
|
122
|
+
} | {
|
|
123
|
+
method: "TOKENIZED_PAYMENT";
|
|
124
|
+
properties: {
|
|
125
|
+
success_redirect_url: string;
|
|
126
|
+
failure_redirect_url: string;
|
|
127
|
+
redeem_points?: "REDEEM_ALL" | "REDEEM_NONE" | undefined;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
channel_code: "ID_DANA" | "ID_LINKAJA" | "ID_SHOPEEPAY" | "ID_SAKUKU" | "PH_SHOPEEPAY" | "TH_WECHATPAY" | "TH_TRUEMONEY" | "TH_SHOPEEPAY" | "TH_TOUCHNGO";
|
|
131
|
+
} | {
|
|
132
|
+
properties: {
|
|
133
|
+
success_redirect_url: string;
|
|
134
|
+
failure_redirect_url: string;
|
|
135
|
+
cancel_redirect_url: string;
|
|
136
|
+
};
|
|
137
|
+
channel_code: "PH_PAYMAYA";
|
|
138
|
+
};
|
|
139
|
+
checkout_method: "ONE_TIME_PAYMENT" | "TOKENIZED_PAYMENT";
|
|
140
|
+
payment_method_id: string | null;
|
|
141
|
+
customer_id: string | null;
|
|
142
|
+
business_id: string;
|
|
143
|
+
charge_amount: number;
|
|
144
|
+
refunded_amount: number | null;
|
|
145
|
+
is_redirect_required: boolean;
|
|
146
|
+
callback_url: string;
|
|
147
|
+
void_status: string | null;
|
|
148
|
+
voided_at: string | null;
|
|
149
|
+
capture_now: boolean;
|
|
150
|
+
failure_code: string | null;
|
|
151
|
+
metadata?: {} | undefined;
|
|
152
|
+
basket?: {
|
|
153
|
+
type: "PRODUCT" | "SERVICE";
|
|
154
|
+
category: string;
|
|
155
|
+
currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
|
|
156
|
+
reference_id: string;
|
|
157
|
+
name: string;
|
|
158
|
+
price: number;
|
|
159
|
+
quantity: number;
|
|
160
|
+
url?: string | undefined;
|
|
161
|
+
description?: string | undefined;
|
|
162
|
+
metadata?: {} | undefined;
|
|
163
|
+
subcategory?: string | undefined;
|
|
164
|
+
}[] | undefined;
|
|
165
|
+
capture_amount?: number | undefined;
|
|
166
|
+
actions?: {
|
|
167
|
+
desktop_web_checkout_url?: string | undefined;
|
|
168
|
+
mobile_web_checkout_url?: string | undefined;
|
|
169
|
+
mobile_deeplink_checkout_url?: string | undefined;
|
|
170
|
+
qr_checkout_string?: string | undefined;
|
|
171
|
+
} | undefined;
|
|
172
|
+
}>;
|
|
173
|
+
//# sourceMappingURL=create.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/sdk/ewallet/create.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,KAAK,EACV,mBAAmB,EAEnB,sBAAsB,EACvB,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,mBAAmB,WACtB,mBAAmB,iBACZ,aAAa,WACnB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQrB,CAAC;AAET,eAAO,MAAM,gBAAgB,WACnB,sBAAsB,iBACf,aAAa,WACnB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOrB,CAAC"}
|