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.
- package/README.md +515 -114
- package/lib/index.cjs +1273 -43
- package/lib/index.d.cts +9180 -6479
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.esm.d.ts +9180 -6479
- package/lib/index.esm.js +1273 -43
- package/lib/sdk/balance/index.d.ts +5 -0
- package/lib/sdk/balance/index.d.ts.map +1 -0
- package/lib/sdk/balance/schema.d.ts +170 -0
- package/lib/sdk/balance/schema.d.ts.map +1 -0
- package/lib/sdk/card/index.d.ts +14 -1
- package/lib/sdk/card/index.d.ts.map +1 -1
- package/lib/sdk/card/schema.d.ts +9 -8
- package/lib/sdk/card/schema.d.ts.map +1 -1
- package/lib/sdk/common.d.ts.map +1 -1
- package/lib/sdk/customer/index.d.ts.map +1 -1
- package/lib/sdk/ewallet/create.d.ts +3 -171
- package/lib/sdk/ewallet/create.d.ts.map +1 -1
- package/lib/sdk/index.d.ts +872 -2
- package/lib/sdk/index.d.ts.map +1 -1
- package/lib/sdk/invoice/index.d.ts.map +1 -1
- package/lib/sdk/payment-method/index.d.ts.map +1 -1
- package/lib/sdk/payment-request/index.d.ts +6 -0
- package/lib/sdk/payment-request/index.d.ts.map +1 -0
- package/lib/sdk/payment-request/schema.d.ts +1341 -0
- package/lib/sdk/payment-request/schema.d.ts.map +1 -0
- package/lib/sdk/payout/index.d.ts +7 -0
- package/lib/sdk/payout/index.d.ts.map +1 -0
- package/lib/sdk/payout/schema.d.ts +853 -0
- package/lib/sdk/payout/schema.d.ts.map +1 -0
- package/lib/sdk/refund/index.d.ts +6 -0
- package/lib/sdk/refund/index.d.ts.map +1 -0
- package/lib/sdk/refund/schema.d.ts +178 -0
- package/lib/sdk/refund/schema.d.ts.map +1 -0
- package/lib/utils/pagination.d.ts +1 -1
- package/lib/utils/pagination.d.ts.map +1 -1
- package/lib/utils/rate-limit.d.ts +3 -3
- package/lib/utils/rate-limit.d.ts.map +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { AxiosInstance, AxiosRequestConfig } from "axios";
|
|
2
|
+
import type { BalanceResource, ListTransactions, ListTransactionsResponse } from "./schema";
|
|
3
|
+
export declare const getBalance: (axiosInstance: AxiosInstance, config?: AxiosRequestConfig) => Promise<BalanceResource>;
|
|
4
|
+
export declare const listTransactions: (params?: ListTransactions, axiosInstance?: AxiosInstance, config?: AxiosRequestConfig) => Promise<ListTransactionsResponse>;
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/balance/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAc,MAAM,OAAO,CAAC;AAE3E,OAAO,KAAK,EACV,eAAe,EACf,gBAAgB,EAChB,wBAAwB,EACzB,MAAM,UAAU,CAAC;AAGlB,eAAO,MAAM,UAAU,kBACN,aAAa,WACnB,kBAAkB,KAC1B,OAAO,CAAC,eAAe,CAiBzB,CAAC;AAEF,eAAO,MAAM,gBAAgB,YAClB,gBAAgB,kBACT,aAAa,WACpB,kBAAkB,KAC1B,OAAO,CAAC,wBAAwB,CAsDlC,CAAC"}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const BalanceResourceSchema: z.ZodObject<{
|
|
3
|
+
balance: z.ZodNumber;
|
|
4
|
+
currency: z.ZodUnion<[z.ZodLiteral<"PHP">, z.ZodLiteral<"IDR">, z.ZodLiteral<"MYR">, z.ZodLiteral<"THB">, z.ZodLiteral<"VND">]>;
|
|
5
|
+
account_type: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
|
|
8
|
+
balance: number;
|
|
9
|
+
account_type?: string | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
|
|
12
|
+
balance: number;
|
|
13
|
+
account_type?: string | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
export type BalanceResource = z.infer<typeof BalanceResourceSchema>;
|
|
16
|
+
export declare const TransactionTypeSchema: z.ZodUnion<[z.ZodLiteral<"PAYMENT">, z.ZodLiteral<"PAYOUT">, z.ZodLiteral<"REFUND">, z.ZodLiteral<"FEE">, z.ZodLiteral<"ADJUSTMENT">]>;
|
|
17
|
+
export type TransactionType = z.infer<typeof TransactionTypeSchema>;
|
|
18
|
+
export declare const TransactionStatusSchema: z.ZodUnion<[z.ZodLiteral<"PENDING">, z.ZodLiteral<"SUCCEEDED">, z.ZodLiteral<"FAILED">, z.ZodLiteral<"CANCELLED">]>;
|
|
19
|
+
export type TransactionStatus = z.infer<typeof TransactionStatusSchema>;
|
|
20
|
+
export declare const TransactionResourceSchema: z.ZodObject<{
|
|
21
|
+
id: z.ZodString;
|
|
22
|
+
reference_id: z.ZodOptional<z.ZodString>;
|
|
23
|
+
type: z.ZodUnion<[z.ZodLiteral<"PAYMENT">, z.ZodLiteral<"PAYOUT">, z.ZodLiteral<"REFUND">, z.ZodLiteral<"FEE">, z.ZodLiteral<"ADJUSTMENT">]>;
|
|
24
|
+
status: z.ZodUnion<[z.ZodLiteral<"PENDING">, z.ZodLiteral<"SUCCEEDED">, z.ZodLiteral<"FAILED">, z.ZodLiteral<"CANCELLED">]>;
|
|
25
|
+
amount: z.ZodNumber;
|
|
26
|
+
currency: z.ZodUnion<[z.ZodLiteral<"PHP">, z.ZodLiteral<"IDR">, z.ZodLiteral<"MYR">, z.ZodLiteral<"THB">, z.ZodLiteral<"VND">]>;
|
|
27
|
+
created: z.ZodString;
|
|
28
|
+
updated: z.ZodString;
|
|
29
|
+
description: z.ZodOptional<z.ZodString>;
|
|
30
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
status: "SUCCEEDED" | "PENDING" | "FAILED" | "CANCELLED";
|
|
33
|
+
type: "PAYMENT" | "PAYOUT" | "REFUND" | "FEE" | "ADJUSTMENT";
|
|
34
|
+
currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
|
|
35
|
+
id: string;
|
|
36
|
+
created: string;
|
|
37
|
+
updated: string;
|
|
38
|
+
amount: number;
|
|
39
|
+
description?: string | undefined;
|
|
40
|
+
metadata?: Record<string, unknown> | undefined;
|
|
41
|
+
reference_id?: string | undefined;
|
|
42
|
+
}, {
|
|
43
|
+
status: "SUCCEEDED" | "PENDING" | "FAILED" | "CANCELLED";
|
|
44
|
+
type: "PAYMENT" | "PAYOUT" | "REFUND" | "FEE" | "ADJUSTMENT";
|
|
45
|
+
currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
|
|
46
|
+
id: string;
|
|
47
|
+
created: string;
|
|
48
|
+
updated: string;
|
|
49
|
+
amount: number;
|
|
50
|
+
description?: string | undefined;
|
|
51
|
+
metadata?: Record<string, unknown> | undefined;
|
|
52
|
+
reference_id?: string | undefined;
|
|
53
|
+
}>;
|
|
54
|
+
export type TransactionResource = z.infer<typeof TransactionResourceSchema>;
|
|
55
|
+
export declare const ListTransactionsSchema: z.ZodObject<{
|
|
56
|
+
types: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"PAYMENT">, z.ZodLiteral<"PAYOUT">, z.ZodLiteral<"REFUND">, z.ZodLiteral<"FEE">, z.ZodLiteral<"ADJUSTMENT">]>, "many">>;
|
|
57
|
+
statuses: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"PENDING">, z.ZodLiteral<"SUCCEEDED">, z.ZodLiteral<"FAILED">, z.ZodLiteral<"CANCELLED">]>, "many">>;
|
|
58
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
59
|
+
after_id: z.ZodOptional<z.ZodString>;
|
|
60
|
+
before_id: z.ZodOptional<z.ZodString>;
|
|
61
|
+
created_after: z.ZodOptional<z.ZodString>;
|
|
62
|
+
created_before: z.ZodOptional<z.ZodString>;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
after_id?: string | undefined;
|
|
65
|
+
before_id?: string | undefined;
|
|
66
|
+
limit?: number | undefined;
|
|
67
|
+
statuses?: ("SUCCEEDED" | "PENDING" | "FAILED" | "CANCELLED")[] | undefined;
|
|
68
|
+
created_after?: string | undefined;
|
|
69
|
+
created_before?: string | undefined;
|
|
70
|
+
types?: ("PAYMENT" | "PAYOUT" | "REFUND" | "FEE" | "ADJUSTMENT")[] | undefined;
|
|
71
|
+
}, {
|
|
72
|
+
after_id?: string | undefined;
|
|
73
|
+
before_id?: string | undefined;
|
|
74
|
+
limit?: number | undefined;
|
|
75
|
+
statuses?: ("SUCCEEDED" | "PENDING" | "FAILED" | "CANCELLED")[] | undefined;
|
|
76
|
+
created_after?: string | undefined;
|
|
77
|
+
created_before?: string | undefined;
|
|
78
|
+
types?: ("PAYMENT" | "PAYOUT" | "REFUND" | "FEE" | "ADJUSTMENT")[] | undefined;
|
|
79
|
+
}>;
|
|
80
|
+
export type ListTransactions = z.infer<typeof ListTransactionsSchema>;
|
|
81
|
+
export declare const ListTransactionsResponseSchema: z.ZodObject<{
|
|
82
|
+
data: z.ZodArray<z.ZodObject<{
|
|
83
|
+
id: z.ZodString;
|
|
84
|
+
reference_id: z.ZodOptional<z.ZodString>;
|
|
85
|
+
type: z.ZodUnion<[z.ZodLiteral<"PAYMENT">, z.ZodLiteral<"PAYOUT">, z.ZodLiteral<"REFUND">, z.ZodLiteral<"FEE">, z.ZodLiteral<"ADJUSTMENT">]>;
|
|
86
|
+
status: z.ZodUnion<[z.ZodLiteral<"PENDING">, z.ZodLiteral<"SUCCEEDED">, z.ZodLiteral<"FAILED">, z.ZodLiteral<"CANCELLED">]>;
|
|
87
|
+
amount: z.ZodNumber;
|
|
88
|
+
currency: z.ZodUnion<[z.ZodLiteral<"PHP">, z.ZodLiteral<"IDR">, z.ZodLiteral<"MYR">, z.ZodLiteral<"THB">, z.ZodLiteral<"VND">]>;
|
|
89
|
+
created: z.ZodString;
|
|
90
|
+
updated: z.ZodString;
|
|
91
|
+
description: z.ZodOptional<z.ZodString>;
|
|
92
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
93
|
+
}, "strip", z.ZodTypeAny, {
|
|
94
|
+
status: "SUCCEEDED" | "PENDING" | "FAILED" | "CANCELLED";
|
|
95
|
+
type: "PAYMENT" | "PAYOUT" | "REFUND" | "FEE" | "ADJUSTMENT";
|
|
96
|
+
currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
|
|
97
|
+
id: string;
|
|
98
|
+
created: string;
|
|
99
|
+
updated: string;
|
|
100
|
+
amount: number;
|
|
101
|
+
description?: string | undefined;
|
|
102
|
+
metadata?: Record<string, unknown> | undefined;
|
|
103
|
+
reference_id?: string | undefined;
|
|
104
|
+
}, {
|
|
105
|
+
status: "SUCCEEDED" | "PENDING" | "FAILED" | "CANCELLED";
|
|
106
|
+
type: "PAYMENT" | "PAYOUT" | "REFUND" | "FEE" | "ADJUSTMENT";
|
|
107
|
+
currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
|
|
108
|
+
id: string;
|
|
109
|
+
created: string;
|
|
110
|
+
updated: string;
|
|
111
|
+
amount: number;
|
|
112
|
+
description?: string | undefined;
|
|
113
|
+
metadata?: Record<string, unknown> | undefined;
|
|
114
|
+
reference_id?: string | undefined;
|
|
115
|
+
}>, "many">;
|
|
116
|
+
has_more: z.ZodBoolean;
|
|
117
|
+
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
118
|
+
href: z.ZodString;
|
|
119
|
+
rel: z.ZodString;
|
|
120
|
+
method: z.ZodString;
|
|
121
|
+
}, "strip", z.ZodTypeAny, {
|
|
122
|
+
method: string;
|
|
123
|
+
href: string;
|
|
124
|
+
rel: string;
|
|
125
|
+
}, {
|
|
126
|
+
method: string;
|
|
127
|
+
href: string;
|
|
128
|
+
rel: string;
|
|
129
|
+
}>, "many">>;
|
|
130
|
+
}, "strip", z.ZodTypeAny, {
|
|
131
|
+
data: {
|
|
132
|
+
status: "SUCCEEDED" | "PENDING" | "FAILED" | "CANCELLED";
|
|
133
|
+
type: "PAYMENT" | "PAYOUT" | "REFUND" | "FEE" | "ADJUSTMENT";
|
|
134
|
+
currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
|
|
135
|
+
id: string;
|
|
136
|
+
created: string;
|
|
137
|
+
updated: string;
|
|
138
|
+
amount: number;
|
|
139
|
+
description?: string | undefined;
|
|
140
|
+
metadata?: Record<string, unknown> | undefined;
|
|
141
|
+
reference_id?: string | undefined;
|
|
142
|
+
}[];
|
|
143
|
+
has_more: boolean;
|
|
144
|
+
links?: {
|
|
145
|
+
method: string;
|
|
146
|
+
href: string;
|
|
147
|
+
rel: string;
|
|
148
|
+
}[] | undefined;
|
|
149
|
+
}, {
|
|
150
|
+
data: {
|
|
151
|
+
status: "SUCCEEDED" | "PENDING" | "FAILED" | "CANCELLED";
|
|
152
|
+
type: "PAYMENT" | "PAYOUT" | "REFUND" | "FEE" | "ADJUSTMENT";
|
|
153
|
+
currency: "PHP" | "IDR" | "MYR" | "THB" | "VND";
|
|
154
|
+
id: string;
|
|
155
|
+
created: string;
|
|
156
|
+
updated: string;
|
|
157
|
+
amount: number;
|
|
158
|
+
description?: string | undefined;
|
|
159
|
+
metadata?: Record<string, unknown> | undefined;
|
|
160
|
+
reference_id?: string | undefined;
|
|
161
|
+
}[];
|
|
162
|
+
has_more: boolean;
|
|
163
|
+
links?: {
|
|
164
|
+
method: string;
|
|
165
|
+
href: string;
|
|
166
|
+
rel: string;
|
|
167
|
+
}[] | undefined;
|
|
168
|
+
}>;
|
|
169
|
+
export type ListTransactionsResponse = z.infer<typeof ListTransactionsResponseSchema>;
|
|
170
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/sdk/balance/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;EAIhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAGpE,eAAO,MAAM,qBAAqB,wIAMhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAGpE,eAAO,MAAM,uBAAuB,qHAKlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAGxE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAG5E,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;EAQjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAGtE,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,8BAA8B,CACtC,CAAC"}
|
package/lib/sdk/card/index.d.ts
CHANGED
|
@@ -1,2 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import type { AxiosInstance, AxiosRequestConfig } from "axios";
|
|
2
|
+
import type { TokenParams, TokenResource, TokenAuthentication, TokenAuthenticationResource, TokenAuthorization, ZeroAuthorization, ReverseAuthorizationParams, CreateCharge, ChargeResource } from "./schema";
|
|
3
|
+
export declare const createToken: (params: TokenParams, axiosInstance: AxiosInstance, config?: AxiosRequestConfig) => Promise<TokenResource>;
|
|
4
|
+
export declare const getToken: (params: {
|
|
5
|
+
credit_card_token_id: string;
|
|
6
|
+
}, axiosInstance: AxiosInstance, config?: AxiosRequestConfig) => Promise<TokenResource>;
|
|
7
|
+
export declare const authenticateToken: (params: TokenAuthentication, axiosInstance: AxiosInstance, config?: AxiosRequestConfig) => Promise<TokenAuthenticationResource>;
|
|
8
|
+
export declare const authorizeToken: (params: TokenAuthorization, axiosInstance: AxiosInstance, config?: AxiosRequestConfig) => Promise<ChargeResource>;
|
|
9
|
+
export declare const zeroAuthorization: (params: ZeroAuthorization, axiosInstance: AxiosInstance, config?: AxiosRequestConfig) => Promise<ChargeResource>;
|
|
10
|
+
export declare const reverseAuthorization: (params: ReverseAuthorizationParams, axiosInstance: AxiosInstance, config?: AxiosRequestConfig) => Promise<ChargeResource>;
|
|
11
|
+
export declare const createCharge: (params: CreateCharge, axiosInstance: AxiosInstance, config?: AxiosRequestConfig) => Promise<ChargeResource>;
|
|
12
|
+
export declare const getCharge: (params: {
|
|
13
|
+
id: string;
|
|
14
|
+
}, axiosInstance: AxiosInstance, config?: AxiosRequestConfig) => Promise<ChargeResource>;
|
|
2
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/card/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/card/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAc,MAAM,OAAO,CAAC;AAE3E,OAAO,KAAK,EACV,WAAW,EACX,aAAa,EACb,mBAAmB,EACnB,2BAA2B,EAC3B,kBAAkB,EAClB,iBAAiB,EACjB,0BAA0B,EAC1B,YAAY,EACZ,cAAc,EACf,MAAM,UAAU,CAAC;AAclB,eAAO,MAAM,WAAW,WACd,WAAW,iBACJ,aAAa,WACnB,kBAAkB,KAC1B,OAAO,CAAC,aAAa,CAmBvB,CAAC;AAEF,eAAO,MAAM,QAAQ,WACX;IAAE,oBAAoB,EAAE,MAAM,CAAA;CAAE,iBACzB,aAAa,WACnB,kBAAkB,KAC1B,OAAO,CAAC,aAAa,CAmBvB,CAAC;AAEF,eAAO,MAAM,iBAAiB,WACpB,mBAAmB,iBACZ,aAAa,WACnB,kBAAkB,KAC1B,OAAO,CAAC,2BAA2B,CAuBrC,CAAC;AAEF,eAAO,MAAM,cAAc,WACjB,kBAAkB,iBACX,aAAa,WACnB,kBAAkB,KAC1B,OAAO,CAAC,cAAc,CAuBxB,CAAC;AAEF,eAAO,MAAM,iBAAiB,WACpB,iBAAiB,iBACV,aAAa,WACnB,kBAAkB,KAC1B,OAAO,CAAC,cAAc,CAuBxB,CAAC;AAEF,eAAO,MAAM,oBAAoB,WACvB,0BAA0B,iBACnB,aAAa,WACnB,kBAAkB,KAC1B,OAAO,CAAC,cAAc,CAwBxB,CAAC;AAEF,eAAO,MAAM,YAAY,WACf,YAAY,iBACL,aAAa,WACnB,kBAAkB,KAC1B,OAAO,CAAC,cAAc,CAuBxB,CAAC;AAEF,eAAO,MAAM,SAAS,WACZ;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,iBACP,aAAa,WACnB,kBAAkB,KAC1B,OAAO,CAAC,cAAc,CAiBxB,CAAC"}
|
package/lib/sdk/card/schema.d.ts
CHANGED
|
@@ -189,8 +189,8 @@ export declare const TokenResourceSchema: z.ZodObject<{
|
|
|
189
189
|
authentication_id: string;
|
|
190
190
|
masked_card_number: string;
|
|
191
191
|
business_id?: string | undefined;
|
|
192
|
-
payer_authentication_url?: string | undefined;
|
|
193
192
|
failure_reason?: string | undefined;
|
|
193
|
+
payer_authentication_url?: string | undefined;
|
|
194
194
|
card_info?: {
|
|
195
195
|
type?: "CREDIT" | "DEBIT" | "PREPAID" | "UNKNOWN" | undefined;
|
|
196
196
|
country?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
|
|
@@ -207,8 +207,8 @@ export declare const TokenResourceSchema: z.ZodObject<{
|
|
|
207
207
|
authentication_id: string;
|
|
208
208
|
masked_card_number: string;
|
|
209
209
|
business_id?: string | undefined;
|
|
210
|
-
payer_authentication_url?: string | undefined;
|
|
211
210
|
failure_reason?: string | undefined;
|
|
211
|
+
payer_authentication_url?: string | undefined;
|
|
212
212
|
card_info?: {
|
|
213
213
|
type?: "CREDIT" | "DEBIT" | "PREPAID" | "UNKNOWN" | undefined;
|
|
214
214
|
country?: "PH" | "ID" | "MY" | "TH" | "VN" | undefined;
|
|
@@ -297,19 +297,19 @@ export declare const TokenAuthenticationResourceSchema: z.ZodObject<{
|
|
|
297
297
|
mid_label: z.ZodOptional<z.ZodString>;
|
|
298
298
|
failure_reason: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"AUTHENTICATION_FAILED">, z.ZodLiteral<"REVERSE_AUTHORIZATION_REJECTED_BY_BANK">, z.ZodLiteral<"PROCESSOR_ERROR">]>>;
|
|
299
299
|
}, "strip", z.ZodTypeAny, {
|
|
300
|
-
status: "SUCCEEDED" | "FAILED" | "
|
|
300
|
+
status: "SUCCEEDED" | "FAILED" | "REVERSED" | "IN_REVIEW" | "VERIFIED" | "CAPTURED" | "AUTHORISED";
|
|
301
301
|
id: string;
|
|
302
302
|
external_id?: string | undefined;
|
|
303
303
|
mid_label?: string | undefined;
|
|
304
|
-
payer_authentication_url?: string | undefined;
|
|
305
304
|
failure_reason?: "AUTHENTICATION_FAILED" | "REVERSE_AUTHORIZATION_REJECTED_BY_BANK" | "PROCESSOR_ERROR" | undefined;
|
|
305
|
+
payer_authentication_url?: string | undefined;
|
|
306
306
|
}, {
|
|
307
|
-
status: "SUCCEEDED" | "FAILED" | "
|
|
307
|
+
status: "SUCCEEDED" | "FAILED" | "REVERSED" | "IN_REVIEW" | "VERIFIED" | "CAPTURED" | "AUTHORISED";
|
|
308
308
|
id: string;
|
|
309
309
|
external_id?: string | undefined;
|
|
310
310
|
mid_label?: string | undefined;
|
|
311
|
-
payer_authentication_url?: string | undefined;
|
|
312
311
|
failure_reason?: "AUTHENTICATION_FAILED" | "REVERSE_AUTHORIZATION_REJECTED_BY_BANK" | "PROCESSOR_ERROR" | undefined;
|
|
312
|
+
payer_authentication_url?: string | undefined;
|
|
313
313
|
}>;
|
|
314
314
|
export type TokenAuthenticationResource = z.infer<typeof TokenAuthenticationResourceSchema>;
|
|
315
315
|
export declare const TokenAuthorizationSchema: z.ZodObject<{
|
|
@@ -484,6 +484,7 @@ export declare const CreateChargeSchema: z.ZodObject<{
|
|
|
484
484
|
} | undefined;
|
|
485
485
|
}>;
|
|
486
486
|
export declare const ChargeTypeSchema: z.ZodUnion<[z.ZodLiteral<"SINGLE_USE_TOKEN">, z.ZodLiteral<"MULTIPLE_USE_TOKEN">, z.ZodLiteral<"RECURRING">]>;
|
|
487
|
+
export type CreateCharge = z.infer<typeof CreateChargeSchema>;
|
|
487
488
|
export declare const ChargeResourceSchema: z.ZodObject<{
|
|
488
489
|
created: z.ZodString;
|
|
489
490
|
status: z.ZodUnion<[z.ZodLiteral<"IN_REVIEW">, z.ZodLiteral<"VERIFIED">, z.ZodLiteral<"FAILED">, z.ZodLiteral<"SUCCEEDED">, z.ZodLiteral<"CAPTURED">, z.ZodLiteral<"REVERSED">, z.ZodLiteral<"AUTHORISED">]>;
|
|
@@ -525,7 +526,7 @@ export declare const ChargeResourceSchema: z.ZodObject<{
|
|
|
525
526
|
interval?: "month" | undefined;
|
|
526
527
|
}>>;
|
|
527
528
|
}, "strip", z.ZodTypeAny, {
|
|
528
|
-
status: "SUCCEEDED" | "FAILED" | "
|
|
529
|
+
status: "SUCCEEDED" | "FAILED" | "REVERSED" | "IN_REVIEW" | "VERIFIED" | "CAPTURED" | "AUTHORISED";
|
|
529
530
|
id: string;
|
|
530
531
|
created: string;
|
|
531
532
|
business_id: string;
|
|
@@ -553,7 +554,7 @@ export declare const ChargeResourceSchema: z.ZodObject<{
|
|
|
553
554
|
eci?: "0" | "1" | "2" | "3" | "4" | "5" | undefined;
|
|
554
555
|
cvn_code?: "M" | "N" | "P" | undefined;
|
|
555
556
|
}, {
|
|
556
|
-
status: "SUCCEEDED" | "FAILED" | "
|
|
557
|
+
status: "SUCCEEDED" | "FAILED" | "REVERSED" | "IN_REVIEW" | "VERIFIED" | "CAPTURED" | "AUTHORISED";
|
|
557
558
|
id: string;
|
|
558
559
|
created: string;
|
|
559
560
|
business_id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/sdk/card/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmBxB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,QAAA,MAAM,iBAAiB,sMAQrB,CAAC;AACH,QAAA,MAAM,cAAc,+GAKlB,CAAC;AACH,QAAA,MAAM,eAAe,2GAKnB,CAAC;AACH,QAAA,MAAM,wBAAwB,8IAI5B,CAAC;AACH,eAAO,MAAM,oBAAoB,maAW/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;EAOzB,CAAC;AACH,MAAM,MAAM,QAAQ,GA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CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
package/lib/sdk/common.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/sdk/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/sdk/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,WAAW,2CAI2B,CAAC;AACpD,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEhD,eAAO,MAAM,aAAa,kHAMxB,CAAC;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD,eAAO,MAAM,cAAc,uHAMzB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;EAM9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/customer/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/customer/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAc,MAAM,OAAO,CAAC;AAE3E,OAAO,KAAK,EACV,QAAQ,EACR,gBAAgB,EAChB,WAAW,EACX,kBAAkB,EAClB,0BAA0B,EAC1B,YAAY,EACb,MAAM,UAAU,CAAC;AAQlB,eAAO,MAAM,cAAc,WACjB,QAAQ,iBACD,aAAa,WACnB,kBAAkB,KAC1B,OAAO,CAAC,gBAAgB,CAqB1B,CAAC;AAEF,eAAO,MAAM,aAAa,WAChB,WAAW,iBACJ,aAAa,WACnB,kBAAkB,KAC1B,OAAO,CAAC,gBAAgB,CAmB1B,CAAC;AAEF,eAAO,MAAM,gBAAgB,WACnB,kBAAkB,iBACX,aAAa,WACnB,kBAAkB,KAC1B,OAAO,CAAC,0BAA0B,CAmBpC,CAAC;AAEF,eAAO,MAAM,cAAc,WACjB,YAAY,iBACL,aAAa,WACnB,kBAAkB,KAC1B,OAAO,CAAC,gBAAgB,CAoB1B,CAAC"}
|
|
@@ -1,173 +1,5 @@
|
|
|
1
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
|
-
|
|
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
|
-
}>;
|
|
2
|
+
import type { EWalletChargeParams, EWalletChargeResource, GetEWalletChargeParams } from "./schema";
|
|
3
|
+
export declare const createEwalletCharge: (params: EWalletChargeParams, axiosInstance: AxiosInstance, config?: AxiosRequestConfig) => Promise<EWalletChargeResource>;
|
|
4
|
+
export declare const getEwalletCharge: (params: GetEWalletChargeParams, axiosInstance: AxiosInstance, config?: AxiosRequestConfig) => Promise<EWalletChargeResource>;
|
|
173
5
|
//# sourceMappingURL=create.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/sdk/ewallet/create.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/sdk/ewallet/create.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAc,MAAM,OAAO,CAAC;AAE3E,OAAO,KAAK,EACV,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,UAAU,CAAC;AAOlB,eAAO,MAAM,mBAAmB,WACtB,mBAAmB,iBACZ,aAAa,WACnB,kBAAkB,KAC1B,OAAO,CAAC,qBAAqB,CAuB/B,CAAC;AAEF,eAAO,MAAM,gBAAgB,WACnB,sBAAsB,iBACf,aAAa,WACnB,kBAAkB,KAC1B,OAAO,CAAC,qBAAqB,CAsB/B,CAAC"}
|