@pulgueta/epayco-convex 0.1.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 +201 -0
- package/README.md +945 -0
- package/dist/client/_generated/_ignore.d.ts +1 -0
- package/dist/client/_generated/_ignore.d.ts.map +1 -0
- package/dist/client/_generated/_ignore.js +3 -0
- package/dist/client/_generated/_ignore.js.map +1 -0
- package/dist/client/index.d.ts +222 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +355 -0
- package/dist/client/index.js.map +1 -0
- package/dist/component/_generated/api.d.ts +78 -0
- package/dist/component/_generated/api.d.ts.map +1 -0
- package/dist/component/_generated/api.js +31 -0
- package/dist/component/_generated/api.js.map +1 -0
- package/dist/component/_generated/component.d.ts +580 -0
- package/dist/component/_generated/component.d.ts.map +1 -0
- package/dist/component/_generated/component.js +11 -0
- package/dist/component/_generated/component.js.map +1 -0
- package/dist/component/_generated/dataModel.d.ts +46 -0
- package/dist/component/_generated/dataModel.d.ts.map +1 -0
- package/dist/component/_generated/dataModel.js +11 -0
- package/dist/component/_generated/dataModel.js.map +1 -0
- package/dist/component/_generated/server.d.ts +121 -0
- package/dist/component/_generated/server.d.ts.map +1 -0
- package/dist/component/_generated/server.js +78 -0
- package/dist/component/_generated/server.js.map +1 -0
- package/dist/component/banks.d.ts +14 -0
- package/dist/component/banks.d.ts.map +1 -0
- package/dist/component/banks.js +37 -0
- package/dist/component/banks.js.map +1 -0
- package/dist/component/cashApi.d.ts +59 -0
- package/dist/component/cashApi.d.ts.map +1 -0
- package/dist/component/cashApi.js +88 -0
- package/dist/component/cashApi.js.map +1 -0
- package/dist/component/chargesApi.d.ts +64 -0
- package/dist/component/chargesApi.d.ts.map +1 -0
- package/dist/component/chargesApi.js +106 -0
- package/dist/component/chargesApi.js.map +1 -0
- package/dist/component/convex.config.d.ts +3 -0
- package/dist/component/convex.config.d.ts.map +1 -0
- package/dist/component/convex.config.js +6 -0
- package/dist/component/convex.config.js.map +1 -0
- package/dist/component/customers.d.ts +67 -0
- package/dist/component/customers.d.ts.map +1 -0
- package/dist/component/customers.js +103 -0
- package/dist/component/customers.js.map +1 -0
- package/dist/component/customersApi.d.ts +99 -0
- package/dist/component/customersApi.d.ts.map +1 -0
- package/dist/component/customersApi.js +176 -0
- package/dist/component/customersApi.js.map +1 -0
- package/dist/component/daviplataApi.d.ts +43 -0
- package/dist/component/daviplataApi.d.ts.map +1 -0
- package/dist/component/daviplataApi.js +103 -0
- package/dist/component/daviplataApi.js.map +1 -0
- package/dist/component/epaycoClient.d.ts +84 -0
- package/dist/component/epaycoClient.d.ts.map +1 -0
- package/dist/component/epaycoClient.js +422 -0
- package/dist/component/epaycoClient.js.map +1 -0
- package/dist/component/payloads.d.ts +34 -0
- package/dist/component/payloads.d.ts.map +1 -0
- package/dist/component/payloads.js +45 -0
- package/dist/component/payloads.js.map +1 -0
- package/dist/component/plans.d.ts +47 -0
- package/dist/component/plans.d.ts.map +1 -0
- package/dist/component/plans.js +83 -0
- package/dist/component/plans.js.map +1 -0
- package/dist/component/plansApi.d.ts +64 -0
- package/dist/component/plansApi.d.ts.map +1 -0
- package/dist/component/plansApi.js +121 -0
- package/dist/component/plansApi.js.map +1 -0
- package/dist/component/pseApi.d.ts +68 -0
- package/dist/component/pseApi.d.ts.map +1 -0
- package/dist/component/pseApi.js +113 -0
- package/dist/component/pseApi.js.map +1 -0
- package/dist/component/rateLimits.d.ts +69 -0
- package/dist/component/rateLimits.d.ts.map +1 -0
- package/dist/component/rateLimits.js +67 -0
- package/dist/component/rateLimits.js.map +1 -0
- package/dist/component/safetypayApi.d.ts +35 -0
- package/dist/component/safetypayApi.d.ts.map +1 -0
- package/dist/component/safetypayApi.js +68 -0
- package/dist/component/safetypayApi.js.map +1 -0
- package/dist/component/schema.d.ts +200 -0
- package/dist/component/schema.d.ts.map +1 -0
- package/dist/component/schema.js +104 -0
- package/dist/component/schema.js.map +1 -0
- package/dist/component/signature.d.ts +11 -0
- package/dist/component/signature.d.ts.map +1 -0
- package/dist/component/signature.js +28 -0
- package/dist/component/signature.js.map +1 -0
- package/dist/component/status.d.ts +12 -0
- package/dist/component/status.d.ts.map +1 -0
- package/dist/component/status.js +55 -0
- package/dist/component/status.js.map +1 -0
- package/dist/component/subscriptions.d.ts +69 -0
- package/dist/component/subscriptions.d.ts.map +1 -0
- package/dist/component/subscriptions.js +114 -0
- package/dist/component/subscriptions.js.map +1 -0
- package/dist/component/subscriptionsApi.d.ts +62 -0
- package/dist/component/subscriptionsApi.d.ts.map +1 -0
- package/dist/component/subscriptionsApi.js +147 -0
- package/dist/component/subscriptionsApi.js.map +1 -0
- package/dist/component/tokens.d.ts +31 -0
- package/dist/component/tokens.d.ts.map +1 -0
- package/dist/component/tokens.js +79 -0
- package/dist/component/tokens.js.map +1 -0
- package/dist/component/tokensApi.d.ts +18 -0
- package/dist/component/tokensApi.d.ts.map +1 -0
- package/dist/component/tokensApi.js +53 -0
- package/dist/component/tokensApi.js.map +1 -0
- package/dist/component/transactions.d.ts +103 -0
- package/dist/component/transactions.d.ts.map +1 -0
- package/dist/component/transactions.js +177 -0
- package/dist/component/transactions.js.map +1 -0
- package/dist/component/validators.d.ts +571 -0
- package/dist/component/validators.d.ts.map +1 -0
- package/dist/component/validators.js +203 -0
- package/dist/component/validators.js.map +1 -0
- package/dist/component/webhooks.d.ts +55 -0
- package/dist/component/webhooks.d.ts.map +1 -0
- package/dist/component/webhooks.js +172 -0
- package/dist/component/webhooks.js.map +1 -0
- package/dist/react/index.d.ts +16 -0
- package/dist/react/index.d.ts.map +1 -0
- package/dist/react/index.js +43 -0
- package/dist/react/index.js.map +1 -0
- package/package.json +106 -0
- package/src/client/_generated/_ignore.ts +1 -0
- package/src/client/index.test.ts +66 -0
- package/src/client/index.ts +633 -0
- package/src/client/setup.test.ts +26 -0
- package/src/component/_generated/api.ts +94 -0
- package/src/component/_generated/component.ts +809 -0
- package/src/component/_generated/dataModel.ts +60 -0
- package/src/component/_generated/server.ts +156 -0
- package/src/component/banks.ts +41 -0
- package/src/component/cashApi.ts +100 -0
- package/src/component/chargesApi.ts +119 -0
- package/src/component/convex.config.ts +7 -0
- package/src/component/customers.test.ts +122 -0
- package/src/component/customers.ts +116 -0
- package/src/component/customersApi.ts +206 -0
- package/src/component/daviplataApi.ts +119 -0
- package/src/component/epaycoApi.test.ts +110 -0
- package/src/component/epaycoClient.ts +578 -0
- package/src/component/payloads.ts +67 -0
- package/src/component/plans.test.ts +129 -0
- package/src/component/plans.ts +86 -0
- package/src/component/plansApi.ts +135 -0
- package/src/component/pseApi.ts +125 -0
- package/src/component/rateLimits.ts +67 -0
- package/src/component/safetypayApi.ts +78 -0
- package/src/component/schema.ts +124 -0
- package/src/component/setup.test.helper.ts +10 -0
- package/src/component/setup.test.ts +22 -0
- package/src/component/signature.ts +38 -0
- package/src/component/status.ts +71 -0
- package/src/component/subscriptions.test.ts +117 -0
- package/src/component/subscriptions.ts +128 -0
- package/src/component/subscriptionsApi.ts +172 -0
- package/src/component/tokens.ts +89 -0
- package/src/component/tokensApi.ts +63 -0
- package/src/component/transactions.test.ts +227 -0
- package/src/component/transactions.ts +200 -0
- package/src/component/validators.ts +245 -0
- package/src/component/webhooks.test.ts +137 -0
- package/src/component/webhooks.ts +229 -0
- package/src/react/index.ts +71 -0
- package/src/test.ts +13 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated `api` utility.
|
|
3
|
+
*
|
|
4
|
+
* THIS CODE IS AUTOMATICALLY GENERATED.
|
|
5
|
+
*
|
|
6
|
+
* To regenerate, run `npx convex dev`.
|
|
7
|
+
* @module
|
|
8
|
+
*/
|
|
9
|
+
import type * as banks from "../banks.js";
|
|
10
|
+
import type * as cashApi from "../cashApi.js";
|
|
11
|
+
import type * as chargesApi from "../chargesApi.js";
|
|
12
|
+
import type * as customers from "../customers.js";
|
|
13
|
+
import type * as customersApi from "../customersApi.js";
|
|
14
|
+
import type * as daviplataApi from "../daviplataApi.js";
|
|
15
|
+
import type * as epaycoClient from "../epaycoClient.js";
|
|
16
|
+
import type * as payloads from "../payloads.js";
|
|
17
|
+
import type * as plans from "../plans.js";
|
|
18
|
+
import type * as plansApi from "../plansApi.js";
|
|
19
|
+
import type * as pseApi from "../pseApi.js";
|
|
20
|
+
import type * as rateLimits from "../rateLimits.js";
|
|
21
|
+
import type * as safetypayApi from "../safetypayApi.js";
|
|
22
|
+
import type * as signature from "../signature.js";
|
|
23
|
+
import type * as status from "../status.js";
|
|
24
|
+
import type * as subscriptions from "../subscriptions.js";
|
|
25
|
+
import type * as subscriptionsApi from "../subscriptionsApi.js";
|
|
26
|
+
import type * as tokens from "../tokens.js";
|
|
27
|
+
import type * as tokensApi from "../tokensApi.js";
|
|
28
|
+
import type * as transactions from "../transactions.js";
|
|
29
|
+
import type * as validators from "../validators.js";
|
|
30
|
+
import type * as webhooks from "../webhooks.js";
|
|
31
|
+
import type { ApiFromModules, FilterApi, FunctionReference } from "convex/server";
|
|
32
|
+
declare const fullApi: ApiFromModules<{
|
|
33
|
+
banks: typeof banks;
|
|
34
|
+
cashApi: typeof cashApi;
|
|
35
|
+
chargesApi: typeof chargesApi;
|
|
36
|
+
customers: typeof customers;
|
|
37
|
+
customersApi: typeof customersApi;
|
|
38
|
+
daviplataApi: typeof daviplataApi;
|
|
39
|
+
epaycoClient: typeof epaycoClient;
|
|
40
|
+
payloads: typeof payloads;
|
|
41
|
+
plans: typeof plans;
|
|
42
|
+
plansApi: typeof plansApi;
|
|
43
|
+
pseApi: typeof pseApi;
|
|
44
|
+
rateLimits: typeof rateLimits;
|
|
45
|
+
safetypayApi: typeof safetypayApi;
|
|
46
|
+
signature: typeof signature;
|
|
47
|
+
status: typeof status;
|
|
48
|
+
subscriptions: typeof subscriptions;
|
|
49
|
+
subscriptionsApi: typeof subscriptionsApi;
|
|
50
|
+
tokens: typeof tokens;
|
|
51
|
+
tokensApi: typeof tokensApi;
|
|
52
|
+
transactions: typeof transactions;
|
|
53
|
+
validators: typeof validators;
|
|
54
|
+
webhooks: typeof webhooks;
|
|
55
|
+
}>;
|
|
56
|
+
/**
|
|
57
|
+
* A utility for referencing Convex functions in your app's public API.
|
|
58
|
+
*
|
|
59
|
+
* Usage:
|
|
60
|
+
* ```js
|
|
61
|
+
* const myFunctionReference = api.myModule.myFunction;
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
export declare const api: FilterApi<typeof fullApi, FunctionReference<any, "public">>;
|
|
65
|
+
/**
|
|
66
|
+
* A utility for referencing Convex functions in your app's internal API.
|
|
67
|
+
*
|
|
68
|
+
* Usage:
|
|
69
|
+
* ```js
|
|
70
|
+
* const myFunctionReference = internal.myModule.myFunction;
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
export declare const internal: FilterApi<typeof fullApi, FunctionReference<any, "internal">>;
|
|
74
|
+
export declare const components: {
|
|
75
|
+
rateLimiter: import("@convex-dev/rate-limiter/_generated/component.js").ComponentApi<"rateLimiter">;
|
|
76
|
+
};
|
|
77
|
+
export {};
|
|
78
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/component/_generated/api.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/**
|
|
3
|
+
* Generated `api` utility.
|
|
4
|
+
*
|
|
5
|
+
* THIS CODE IS AUTOMATICALLY GENERATED.
|
|
6
|
+
*
|
|
7
|
+
* To regenerate, run `npx convex dev`.
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
import { anyApi, componentsGeneric } from "convex/server";
|
|
11
|
+
const fullApi = anyApi;
|
|
12
|
+
/**
|
|
13
|
+
* A utility for referencing Convex functions in your app's public API.
|
|
14
|
+
*
|
|
15
|
+
* Usage:
|
|
16
|
+
* ```js
|
|
17
|
+
* const myFunctionReference = api.myModule.myFunction;
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export const api = anyApi;
|
|
21
|
+
/**
|
|
22
|
+
* A utility for referencing Convex functions in your app's internal API.
|
|
23
|
+
*
|
|
24
|
+
* Usage:
|
|
25
|
+
* ```js
|
|
26
|
+
* const myFunctionReference = internal.myModule.myFunction;
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export const internal = anyApi;
|
|
30
|
+
export const components = componentsGeneric();
|
|
31
|
+
//# sourceMappingURL=api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/component/_generated/api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;;;;;GAOG;AA8BH,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAE1D,MAAM,OAAO,GAuBR,MAAa,CAAC;AAEnB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,GAAG,GAGZ,MAAa,CAAC;AAElB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,QAAQ,GAGjB,MAAa,CAAC;AAElB,MAAM,CAAC,MAAM,UAAU,GAAG,iBAAiB,EAE1C,CAAC"}
|
|
@@ -0,0 +1,580 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated `ComponentApi` utility.
|
|
3
|
+
*
|
|
4
|
+
* THIS CODE IS AUTOMATICALLY GENERATED.
|
|
5
|
+
*
|
|
6
|
+
* To regenerate, run `npx convex dev`.
|
|
7
|
+
* @module
|
|
8
|
+
*/
|
|
9
|
+
import type { FunctionReference } from "convex/server";
|
|
10
|
+
/**
|
|
11
|
+
* A utility for referencing a Convex component's exposed API.
|
|
12
|
+
*
|
|
13
|
+
* Useful when expecting a parameter like `components.myComponent`.
|
|
14
|
+
* Usage:
|
|
15
|
+
* ```ts
|
|
16
|
+
* async function myFunction(ctx: QueryCtx, component: ComponentApi) {
|
|
17
|
+
* return ctx.runQuery(component.someFile.someQuery, { ...args });
|
|
18
|
+
* }
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export type ComponentApi<Name extends string | undefined = string | undefined> = {
|
|
22
|
+
banks: {
|
|
23
|
+
listLocalBanks: FunctionReference<"query", "internal", {}, any, Name>;
|
|
24
|
+
};
|
|
25
|
+
cashApi: {
|
|
26
|
+
createCashPayment: FunctionReference<"action", "internal", {
|
|
27
|
+
cashInfo: {
|
|
28
|
+
bill: string;
|
|
29
|
+
cellPhone: string;
|
|
30
|
+
currency?: string;
|
|
31
|
+
description: string;
|
|
32
|
+
docNumber: string;
|
|
33
|
+
docType: string;
|
|
34
|
+
email: string;
|
|
35
|
+
endDate?: string;
|
|
36
|
+
extra1?: string;
|
|
37
|
+
extra2?: string;
|
|
38
|
+
extra3?: string;
|
|
39
|
+
ip?: string;
|
|
40
|
+
lastName: string;
|
|
41
|
+
name: string;
|
|
42
|
+
split?: {
|
|
43
|
+
splitAppId?: string;
|
|
44
|
+
splitMerchantId?: string;
|
|
45
|
+
splitPrimaryReceiver?: string;
|
|
46
|
+
splitPrimaryReceiverFee?: string;
|
|
47
|
+
splitReceivers?: Array<{
|
|
48
|
+
base_iva: string;
|
|
49
|
+
fee?: string;
|
|
50
|
+
id: string;
|
|
51
|
+
iva: string;
|
|
52
|
+
total: string;
|
|
53
|
+
}>;
|
|
54
|
+
splitRule?: string;
|
|
55
|
+
splitType?: string;
|
|
56
|
+
};
|
|
57
|
+
tax: number;
|
|
58
|
+
taxBase: number;
|
|
59
|
+
typePerson?: "0" | "1";
|
|
60
|
+
urlConfirmation?: string;
|
|
61
|
+
urlResponse?: string;
|
|
62
|
+
value: number;
|
|
63
|
+
};
|
|
64
|
+
credentials: {
|
|
65
|
+
apiKey: string;
|
|
66
|
+
lang?: string;
|
|
67
|
+
privateKey: string;
|
|
68
|
+
testMode?: boolean;
|
|
69
|
+
};
|
|
70
|
+
provider: "efecty" | "baloto" | "gana" | "redservi" | "puntored" | "sured";
|
|
71
|
+
userId: string;
|
|
72
|
+
}, any, Name>;
|
|
73
|
+
getCashPayment: FunctionReference<"action", "internal", {
|
|
74
|
+
credentials: {
|
|
75
|
+
apiKey: string;
|
|
76
|
+
lang?: string;
|
|
77
|
+
privateKey: string;
|
|
78
|
+
testMode?: boolean;
|
|
79
|
+
};
|
|
80
|
+
epaycoRef: string;
|
|
81
|
+
}, any, Name>;
|
|
82
|
+
};
|
|
83
|
+
chargesApi: {
|
|
84
|
+
createCharge: FunctionReference<"action", "internal", {
|
|
85
|
+
chargeInfo: {
|
|
86
|
+
address?: string;
|
|
87
|
+
bill: string;
|
|
88
|
+
cellPhone?: string;
|
|
89
|
+
city?: string;
|
|
90
|
+
currency?: string;
|
|
91
|
+
customerId: string;
|
|
92
|
+
description: string;
|
|
93
|
+
docNumber: string;
|
|
94
|
+
docType: string;
|
|
95
|
+
dues?: number;
|
|
96
|
+
email: string;
|
|
97
|
+
extra1?: string;
|
|
98
|
+
extra2?: string;
|
|
99
|
+
extra3?: string;
|
|
100
|
+
ip?: string;
|
|
101
|
+
lastName: string;
|
|
102
|
+
methodConfirmation?: string;
|
|
103
|
+
name: string;
|
|
104
|
+
phone?: string;
|
|
105
|
+
split?: {
|
|
106
|
+
splitAppId?: string;
|
|
107
|
+
splitMerchantId?: string;
|
|
108
|
+
splitPrimaryReceiver?: string;
|
|
109
|
+
splitPrimaryReceiverFee?: string;
|
|
110
|
+
splitReceivers?: Array<{
|
|
111
|
+
base_iva: string;
|
|
112
|
+
fee?: string;
|
|
113
|
+
id: string;
|
|
114
|
+
iva: string;
|
|
115
|
+
total: string;
|
|
116
|
+
}>;
|
|
117
|
+
splitRule?: string;
|
|
118
|
+
splitType?: string;
|
|
119
|
+
};
|
|
120
|
+
tax: number;
|
|
121
|
+
taxBase: number;
|
|
122
|
+
tokenCard: string;
|
|
123
|
+
urlConfirmation?: string;
|
|
124
|
+
urlResponse?: string;
|
|
125
|
+
useDefaultCardCustomer?: boolean;
|
|
126
|
+
value: number;
|
|
127
|
+
};
|
|
128
|
+
credentials: {
|
|
129
|
+
apiKey: string;
|
|
130
|
+
lang?: string;
|
|
131
|
+
privateKey: string;
|
|
132
|
+
testMode?: boolean;
|
|
133
|
+
};
|
|
134
|
+
userId: string;
|
|
135
|
+
}, any, Name>;
|
|
136
|
+
getCharge: FunctionReference<"action", "internal", {
|
|
137
|
+
credentials: {
|
|
138
|
+
apiKey: string;
|
|
139
|
+
lang?: string;
|
|
140
|
+
privateKey: string;
|
|
141
|
+
testMode?: boolean;
|
|
142
|
+
};
|
|
143
|
+
epaycoRef: string;
|
|
144
|
+
}, any, Name>;
|
|
145
|
+
};
|
|
146
|
+
customers: {
|
|
147
|
+
getLocalCustomer: FunctionReference<"query", "internal", {
|
|
148
|
+
userId: string;
|
|
149
|
+
}, any, Name>;
|
|
150
|
+
getLocalCustomerByEpaycoId: FunctionReference<"query", "internal", {
|
|
151
|
+
epaycoCustomerId: string;
|
|
152
|
+
}, any, Name>;
|
|
153
|
+
listLocalCustomers: FunctionReference<"query", "internal", {
|
|
154
|
+
limit?: number;
|
|
155
|
+
}, any, Name>;
|
|
156
|
+
};
|
|
157
|
+
customersApi: {
|
|
158
|
+
addDefaultCard: FunctionReference<"action", "internal", {
|
|
159
|
+
credentials: {
|
|
160
|
+
apiKey: string;
|
|
161
|
+
lang?: string;
|
|
162
|
+
privateKey: string;
|
|
163
|
+
testMode?: boolean;
|
|
164
|
+
};
|
|
165
|
+
customerId: string;
|
|
166
|
+
franchise: string;
|
|
167
|
+
mask: string;
|
|
168
|
+
token: string;
|
|
169
|
+
}, any, Name>;
|
|
170
|
+
addNewToken: FunctionReference<"action", "internal", {
|
|
171
|
+
credentials: {
|
|
172
|
+
apiKey: string;
|
|
173
|
+
lang?: string;
|
|
174
|
+
privateKey: string;
|
|
175
|
+
testMode?: boolean;
|
|
176
|
+
};
|
|
177
|
+
customerId: string;
|
|
178
|
+
tokenCard: string;
|
|
179
|
+
}, any, Name>;
|
|
180
|
+
createCustomer: FunctionReference<"action", "internal", {
|
|
181
|
+
credentials: {
|
|
182
|
+
apiKey: string;
|
|
183
|
+
lang?: string;
|
|
184
|
+
privateKey: string;
|
|
185
|
+
testMode?: boolean;
|
|
186
|
+
};
|
|
187
|
+
customerInfo: {
|
|
188
|
+
address?: string;
|
|
189
|
+
cellPhone?: string;
|
|
190
|
+
city?: string;
|
|
191
|
+
docNumber?: string;
|
|
192
|
+
docType?: string;
|
|
193
|
+
email: string;
|
|
194
|
+
isDefault?: boolean;
|
|
195
|
+
lastName?: string;
|
|
196
|
+
name: string;
|
|
197
|
+
phone?: string;
|
|
198
|
+
tokenCard: string;
|
|
199
|
+
};
|
|
200
|
+
userId: string;
|
|
201
|
+
}, any, Name>;
|
|
202
|
+
deleteCustomerCard: FunctionReference<"action", "internal", {
|
|
203
|
+
credentials: {
|
|
204
|
+
apiKey: string;
|
|
205
|
+
lang?: string;
|
|
206
|
+
privateKey: string;
|
|
207
|
+
testMode?: boolean;
|
|
208
|
+
};
|
|
209
|
+
customerId: string;
|
|
210
|
+
franchise: string;
|
|
211
|
+
mask: string;
|
|
212
|
+
}, any, Name>;
|
|
213
|
+
getCustomer: FunctionReference<"action", "internal", {
|
|
214
|
+
credentials: {
|
|
215
|
+
apiKey: string;
|
|
216
|
+
lang?: string;
|
|
217
|
+
privateKey: string;
|
|
218
|
+
testMode?: boolean;
|
|
219
|
+
};
|
|
220
|
+
epaycoCustomerId: string;
|
|
221
|
+
}, any, Name>;
|
|
222
|
+
listCustomers: FunctionReference<"action", "internal", {
|
|
223
|
+
credentials: {
|
|
224
|
+
apiKey: string;
|
|
225
|
+
lang?: string;
|
|
226
|
+
privateKey: string;
|
|
227
|
+
testMode?: boolean;
|
|
228
|
+
};
|
|
229
|
+
page?: number;
|
|
230
|
+
perPage?: number;
|
|
231
|
+
}, any, Name>;
|
|
232
|
+
updateCustomer: FunctionReference<"action", "internal", {
|
|
233
|
+
address?: string;
|
|
234
|
+
cellPhone?: string;
|
|
235
|
+
city?: string;
|
|
236
|
+
credentials: {
|
|
237
|
+
apiKey: string;
|
|
238
|
+
lang?: string;
|
|
239
|
+
privateKey: string;
|
|
240
|
+
testMode?: boolean;
|
|
241
|
+
};
|
|
242
|
+
email?: string;
|
|
243
|
+
epaycoCustomerId: string;
|
|
244
|
+
lastName?: string;
|
|
245
|
+
name?: string;
|
|
246
|
+
phone?: string;
|
|
247
|
+
userId: string;
|
|
248
|
+
}, any, Name>;
|
|
249
|
+
};
|
|
250
|
+
daviplataApi: {
|
|
251
|
+
confirmDaviplataPayment: FunctionReference<"action", "internal", {
|
|
252
|
+
credentials: {
|
|
253
|
+
apiKey: string;
|
|
254
|
+
lang?: string;
|
|
255
|
+
privateKey: string;
|
|
256
|
+
testMode?: boolean;
|
|
257
|
+
};
|
|
258
|
+
idSessionToken: string;
|
|
259
|
+
otp: string;
|
|
260
|
+
refPayco: string;
|
|
261
|
+
}, any, Name>;
|
|
262
|
+
createDaviplataPayment: FunctionReference<"action", "internal", {
|
|
263
|
+
credentials: {
|
|
264
|
+
apiKey: string;
|
|
265
|
+
lang?: string;
|
|
266
|
+
privateKey: string;
|
|
267
|
+
testMode?: boolean;
|
|
268
|
+
};
|
|
269
|
+
daviplataInfo: {
|
|
270
|
+
address?: string;
|
|
271
|
+
city?: string;
|
|
272
|
+
country?: string;
|
|
273
|
+
currency?: string;
|
|
274
|
+
description: string;
|
|
275
|
+
docNumber: string;
|
|
276
|
+
docType: string;
|
|
277
|
+
email: string;
|
|
278
|
+
indCountry?: string;
|
|
279
|
+
ip?: string;
|
|
280
|
+
lastName: string;
|
|
281
|
+
methodConfirmation?: string;
|
|
282
|
+
name: string;
|
|
283
|
+
phone: string;
|
|
284
|
+
tax: number;
|
|
285
|
+
taxBase: number;
|
|
286
|
+
urlConfirmation?: string;
|
|
287
|
+
value: number;
|
|
288
|
+
};
|
|
289
|
+
userId: string;
|
|
290
|
+
}, any, Name>;
|
|
291
|
+
};
|
|
292
|
+
plans: {
|
|
293
|
+
getLocalPlan: FunctionReference<"query", "internal", {
|
|
294
|
+
epaycoPlanId: string;
|
|
295
|
+
}, any, Name>;
|
|
296
|
+
listLocalPlans: FunctionReference<"query", "internal", {
|
|
297
|
+
limit?: number;
|
|
298
|
+
status?: string;
|
|
299
|
+
}, any, Name>;
|
|
300
|
+
};
|
|
301
|
+
plansApi: {
|
|
302
|
+
createPlan: FunctionReference<"action", "internal", {
|
|
303
|
+
credentials: {
|
|
304
|
+
apiKey: string;
|
|
305
|
+
lang?: string;
|
|
306
|
+
privateKey: string;
|
|
307
|
+
testMode?: boolean;
|
|
308
|
+
};
|
|
309
|
+
planInfo: {
|
|
310
|
+
amount: number;
|
|
311
|
+
currency: string;
|
|
312
|
+
description: string;
|
|
313
|
+
ico?: number;
|
|
314
|
+
idPlan: string;
|
|
315
|
+
interval: string;
|
|
316
|
+
intervalCount: number;
|
|
317
|
+
iva?: number;
|
|
318
|
+
name: string;
|
|
319
|
+
trialDays: number;
|
|
320
|
+
};
|
|
321
|
+
}, any, Name>;
|
|
322
|
+
deletePlan: FunctionReference<"action", "internal", {
|
|
323
|
+
credentials: {
|
|
324
|
+
apiKey: string;
|
|
325
|
+
lang?: string;
|
|
326
|
+
privateKey: string;
|
|
327
|
+
testMode?: boolean;
|
|
328
|
+
};
|
|
329
|
+
epaycoPlanId: string;
|
|
330
|
+
}, any, Name>;
|
|
331
|
+
getPlan: FunctionReference<"action", "internal", {
|
|
332
|
+
credentials: {
|
|
333
|
+
apiKey: string;
|
|
334
|
+
lang?: string;
|
|
335
|
+
privateKey: string;
|
|
336
|
+
testMode?: boolean;
|
|
337
|
+
};
|
|
338
|
+
epaycoPlanId: string;
|
|
339
|
+
}, any, Name>;
|
|
340
|
+
listPlans: FunctionReference<"action", "internal", {
|
|
341
|
+
credentials: {
|
|
342
|
+
apiKey: string;
|
|
343
|
+
lang?: string;
|
|
344
|
+
privateKey: string;
|
|
345
|
+
testMode?: boolean;
|
|
346
|
+
};
|
|
347
|
+
}, any, Name>;
|
|
348
|
+
updatePlan: FunctionReference<"action", "internal", {
|
|
349
|
+
amount?: number;
|
|
350
|
+
credentials: {
|
|
351
|
+
apiKey: string;
|
|
352
|
+
lang?: string;
|
|
353
|
+
privateKey: string;
|
|
354
|
+
testMode?: boolean;
|
|
355
|
+
};
|
|
356
|
+
currency?: string;
|
|
357
|
+
description?: string;
|
|
358
|
+
epaycoPlanId: string;
|
|
359
|
+
interval?: string;
|
|
360
|
+
intervalCount?: number;
|
|
361
|
+
name?: string;
|
|
362
|
+
trialDays?: number;
|
|
363
|
+
}, any, Name>;
|
|
364
|
+
};
|
|
365
|
+
pseApi: {
|
|
366
|
+
createPseTransaction: FunctionReference<"action", "internal", {
|
|
367
|
+
credentials: {
|
|
368
|
+
apiKey: string;
|
|
369
|
+
lang?: string;
|
|
370
|
+
privateKey: string;
|
|
371
|
+
testMode?: boolean;
|
|
372
|
+
};
|
|
373
|
+
pseInfo: {
|
|
374
|
+
bank: string;
|
|
375
|
+
bill: string;
|
|
376
|
+
cellPhone: string;
|
|
377
|
+
country?: string;
|
|
378
|
+
currency?: string;
|
|
379
|
+
description: string;
|
|
380
|
+
docNumber: string;
|
|
381
|
+
docType: string;
|
|
382
|
+
email: string;
|
|
383
|
+
extra1?: string;
|
|
384
|
+
extra2?: string;
|
|
385
|
+
extra3?: string;
|
|
386
|
+
ip?: string;
|
|
387
|
+
lastName: string;
|
|
388
|
+
name: string;
|
|
389
|
+
split?: {
|
|
390
|
+
splitAppId?: string;
|
|
391
|
+
splitMerchantId?: string;
|
|
392
|
+
splitPrimaryReceiver?: string;
|
|
393
|
+
splitPrimaryReceiverFee?: string;
|
|
394
|
+
splitReceivers?: Array<{
|
|
395
|
+
base_iva: string;
|
|
396
|
+
fee?: string;
|
|
397
|
+
id: string;
|
|
398
|
+
iva: string;
|
|
399
|
+
total: string;
|
|
400
|
+
}>;
|
|
401
|
+
splitRule?: string;
|
|
402
|
+
splitType?: string;
|
|
403
|
+
};
|
|
404
|
+
tax: number;
|
|
405
|
+
taxBase: number;
|
|
406
|
+
typePerson: "0" | "1";
|
|
407
|
+
urlConfirmation?: string;
|
|
408
|
+
urlResponse?: string;
|
|
409
|
+
value: number;
|
|
410
|
+
};
|
|
411
|
+
userId: string;
|
|
412
|
+
}, any, Name>;
|
|
413
|
+
getBanks: FunctionReference<"action", "internal", {
|
|
414
|
+
credentials: {
|
|
415
|
+
apiKey: string;
|
|
416
|
+
lang?: string;
|
|
417
|
+
privateKey: string;
|
|
418
|
+
testMode?: boolean;
|
|
419
|
+
};
|
|
420
|
+
}, any, Name>;
|
|
421
|
+
getPseTransaction: FunctionReference<"action", "internal", {
|
|
422
|
+
credentials: {
|
|
423
|
+
apiKey: string;
|
|
424
|
+
lang?: string;
|
|
425
|
+
privateKey: string;
|
|
426
|
+
testMode?: boolean;
|
|
427
|
+
};
|
|
428
|
+
ticketId: string;
|
|
429
|
+
}, any, Name>;
|
|
430
|
+
};
|
|
431
|
+
safetypayApi: {
|
|
432
|
+
createSafetyPayPayment: FunctionReference<"action", "internal", {
|
|
433
|
+
credentials: {
|
|
434
|
+
apiKey: string;
|
|
435
|
+
lang?: string;
|
|
436
|
+
privateKey: string;
|
|
437
|
+
testMode?: boolean;
|
|
438
|
+
};
|
|
439
|
+
safetypayInfo: {
|
|
440
|
+
address?: string;
|
|
441
|
+
cash: "1" | "2";
|
|
442
|
+
city?: string;
|
|
443
|
+
country?: string;
|
|
444
|
+
currency?: string;
|
|
445
|
+
description: string;
|
|
446
|
+
docNumber: string;
|
|
447
|
+
docType: string;
|
|
448
|
+
email: string;
|
|
449
|
+
endDate?: string;
|
|
450
|
+
ico?: number;
|
|
451
|
+
indCountry?: string;
|
|
452
|
+
invoice?: string;
|
|
453
|
+
ip?: string;
|
|
454
|
+
lastName: string;
|
|
455
|
+
methodConfirmation?: string;
|
|
456
|
+
name: string;
|
|
457
|
+
phone: string;
|
|
458
|
+
tax: number;
|
|
459
|
+
taxBase: number;
|
|
460
|
+
urlConfirmation?: string;
|
|
461
|
+
value: number;
|
|
462
|
+
};
|
|
463
|
+
userId: string;
|
|
464
|
+
}, any, Name>;
|
|
465
|
+
};
|
|
466
|
+
subscriptions: {
|
|
467
|
+
getActiveSubscription: FunctionReference<"query", "internal", {
|
|
468
|
+
userId: string;
|
|
469
|
+
}, any, Name>;
|
|
470
|
+
getLocalSubscription: FunctionReference<"query", "internal", {
|
|
471
|
+
epaycoSubscriptionId: string;
|
|
472
|
+
}, any, Name>;
|
|
473
|
+
listLocalSubscriptionsByUser: FunctionReference<"query", "internal", {
|
|
474
|
+
userId: string;
|
|
475
|
+
}, any, Name>;
|
|
476
|
+
};
|
|
477
|
+
subscriptionsApi: {
|
|
478
|
+
cancelSubscription: FunctionReference<"action", "internal", {
|
|
479
|
+
credentials: {
|
|
480
|
+
apiKey: string;
|
|
481
|
+
lang?: string;
|
|
482
|
+
privateKey: string;
|
|
483
|
+
testMode?: boolean;
|
|
484
|
+
};
|
|
485
|
+
epaycoSubscriptionId: string;
|
|
486
|
+
}, any, Name>;
|
|
487
|
+
chargeSubscription: FunctionReference<"action", "internal", {
|
|
488
|
+
credentials: {
|
|
489
|
+
apiKey: string;
|
|
490
|
+
lang?: string;
|
|
491
|
+
privateKey: string;
|
|
492
|
+
testMode?: boolean;
|
|
493
|
+
};
|
|
494
|
+
customer: string;
|
|
495
|
+
docNumber: string;
|
|
496
|
+
docType: string;
|
|
497
|
+
idPlan: string;
|
|
498
|
+
ip?: string;
|
|
499
|
+
tokenCard: string;
|
|
500
|
+
userId: string;
|
|
501
|
+
}, any, Name>;
|
|
502
|
+
createSubscription: FunctionReference<"action", "internal", {
|
|
503
|
+
credentials: {
|
|
504
|
+
apiKey: string;
|
|
505
|
+
lang?: string;
|
|
506
|
+
privateKey: string;
|
|
507
|
+
testMode?: boolean;
|
|
508
|
+
};
|
|
509
|
+
subscriptionInfo: {
|
|
510
|
+
customer: string;
|
|
511
|
+
docNumber: string;
|
|
512
|
+
docType: string;
|
|
513
|
+
idPlan: string;
|
|
514
|
+
methodConfirmation?: string;
|
|
515
|
+
tokenCard: string;
|
|
516
|
+
urlConfirmation?: string;
|
|
517
|
+
};
|
|
518
|
+
userId: string;
|
|
519
|
+
}, any, Name>;
|
|
520
|
+
getSubscription: FunctionReference<"action", "internal", {
|
|
521
|
+
credentials: {
|
|
522
|
+
apiKey: string;
|
|
523
|
+
lang?: string;
|
|
524
|
+
privateKey: string;
|
|
525
|
+
testMode?: boolean;
|
|
526
|
+
};
|
|
527
|
+
epaycoSubscriptionId: string;
|
|
528
|
+
}, any, Name>;
|
|
529
|
+
listSubscriptions: FunctionReference<"action", "internal", {
|
|
530
|
+
credentials: {
|
|
531
|
+
apiKey: string;
|
|
532
|
+
lang?: string;
|
|
533
|
+
privateKey: string;
|
|
534
|
+
testMode?: boolean;
|
|
535
|
+
};
|
|
536
|
+
}, any, Name>;
|
|
537
|
+
};
|
|
538
|
+
tokens: {
|
|
539
|
+
getLocalTokens: FunctionReference<"query", "internal", {
|
|
540
|
+
userId: string;
|
|
541
|
+
}, any, Name>;
|
|
542
|
+
};
|
|
543
|
+
tokensApi: {
|
|
544
|
+
createToken: FunctionReference<"action", "internal", {
|
|
545
|
+
credentials: {
|
|
546
|
+
apiKey: string;
|
|
547
|
+
lang?: string;
|
|
548
|
+
privateKey: string;
|
|
549
|
+
testMode?: boolean;
|
|
550
|
+
};
|
|
551
|
+
tokenInfo: {
|
|
552
|
+
cardNumber: string;
|
|
553
|
+
cvc: string;
|
|
554
|
+
expMonth: string;
|
|
555
|
+
expYear: string;
|
|
556
|
+
hasCvv?: boolean;
|
|
557
|
+
};
|
|
558
|
+
userId: string;
|
|
559
|
+
}, any, Name>;
|
|
560
|
+
};
|
|
561
|
+
transactions: {
|
|
562
|
+
getLocalTransaction: FunctionReference<"query", "internal", {
|
|
563
|
+
epaycoRef: string;
|
|
564
|
+
}, any, Name>;
|
|
565
|
+
listLocalTransactions: FunctionReference<"query", "internal", {
|
|
566
|
+
limit?: number;
|
|
567
|
+
paymentMethod?: "credit_card" | "pse" | "cash" | "daviplata" | "safetypay";
|
|
568
|
+
status?: string;
|
|
569
|
+
userId: string;
|
|
570
|
+
}, any, Name>;
|
|
571
|
+
};
|
|
572
|
+
webhooks: {
|
|
573
|
+
processConfirmation: FunctionReference<"action", "internal", {
|
|
574
|
+
custIdCliente: string;
|
|
575
|
+
pKey: string;
|
|
576
|
+
payload: any;
|
|
577
|
+
}, any, Name>;
|
|
578
|
+
};
|
|
579
|
+
};
|
|
580
|
+
//# sourceMappingURL=component.d.ts.map
|