convex-saligpay 1.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 +21 -0
- package/README.md +288 -0
- package/dist/client/index.d.ts +169 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +222 -0
- package/dist/client/index.js.map +1 -0
- package/dist/component/_generated/component.d.ts +28 -0
- package/dist/component/_generated/component.d.ts.map +1 -0
- package/dist/component/_generated/component.js +2 -0
- package/dist/component/_generated/component.js.map +1 -0
- package/dist/component/_generated/server.d.ts +2 -0
- package/dist/component/_generated/server.d.ts.map +1 -0
- package/dist/component/_generated/server.js +2 -0
- package/dist/component/_generated/server.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 +4 -0
- package/dist/component/convex.config.js.map +1 -0
- package/dist/component/lib.d.ts +170 -0
- package/dist/component/lib.d.ts.map +1 -0
- package/dist/component/lib.js +568 -0
- package/dist/component/lib.js.map +1 -0
- package/dist/component/schema.d.ts +131 -0
- package/dist/component/schema.d.ts.map +1 -0
- package/dist/component/schema.js +73 -0
- package/dist/component/schema.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/dist/test.d.ts +139 -0
- package/dist/test.d.ts.map +1 -0
- package/dist/test.js +5 -0
- package/dist/test.js.map +1 -0
- package/dist/types/index.d.ts +140 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -0
- package/package.json +88 -0
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { mutationGeneric, queryGeneric } from "convex/server";
|
|
2
|
+
import { v } from "convex/values";
|
|
3
|
+
export function createCheckout(ctx, component, args) {
|
|
4
|
+
return ctx.runMutation(component.lib.createCheckout, args);
|
|
5
|
+
}
|
|
6
|
+
export function getSession(ctx, component, args) {
|
|
7
|
+
return ctx.runQuery(component.lib.getSession, args);
|
|
8
|
+
}
|
|
9
|
+
export function listCheckouts(ctx, component, args) {
|
|
10
|
+
return ctx.runQuery(component.lib.listCheckouts, args);
|
|
11
|
+
}
|
|
12
|
+
export function createPaymentIntent(ctx, component, args) {
|
|
13
|
+
return ctx.runMutation(component.lib.createPaymentIntent, args);
|
|
14
|
+
}
|
|
15
|
+
export function confirmPaymentIntent(ctx, component, args) {
|
|
16
|
+
return ctx.runMutation(component.lib.confirmPaymentIntent, args);
|
|
17
|
+
}
|
|
18
|
+
export function getPaymentIntentStatus(ctx, component, args) {
|
|
19
|
+
return ctx.runQuery(component.lib.getPaymentIntentStatus, args);
|
|
20
|
+
}
|
|
21
|
+
export function listPaymentIntents(ctx, component, args) {
|
|
22
|
+
return ctx.runQuery(component.lib.listPaymentIntents, args);
|
|
23
|
+
}
|
|
24
|
+
export function receiveWebhook(ctx, component, args) {
|
|
25
|
+
return ctx.runMutation(component.lib.receiveWebhook, args);
|
|
26
|
+
}
|
|
27
|
+
export function exposeApi(component, options) {
|
|
28
|
+
return {
|
|
29
|
+
authenticate: mutationGeneric({
|
|
30
|
+
args: {
|
|
31
|
+
merchantId: v.string(),
|
|
32
|
+
clientId: v.optional(v.string()),
|
|
33
|
+
clientSecret: v.optional(v.string()),
|
|
34
|
+
env: v.optional(v.union(v.literal("sandbox"), v.literal("production"))),
|
|
35
|
+
},
|
|
36
|
+
handler: async (ctx, args) => {
|
|
37
|
+
await options.auth(ctx, {
|
|
38
|
+
type: "write",
|
|
39
|
+
merchantId: args.merchantId,
|
|
40
|
+
});
|
|
41
|
+
return await ctx.runMutation(component.lib.authenticate, args);
|
|
42
|
+
},
|
|
43
|
+
}),
|
|
44
|
+
getStoredTokens: queryGeneric({
|
|
45
|
+
args: { merchantId: v.string() },
|
|
46
|
+
handler: async (ctx, args) => {
|
|
47
|
+
await options.auth(ctx, {
|
|
48
|
+
type: "read",
|
|
49
|
+
merchantId: args.merchantId,
|
|
50
|
+
});
|
|
51
|
+
return await ctx.runQuery(component.lib.getStoredTokens, args);
|
|
52
|
+
},
|
|
53
|
+
}),
|
|
54
|
+
validateToken: queryGeneric({
|
|
55
|
+
args: { merchantId: v.string() },
|
|
56
|
+
handler: async (ctx, args) => {
|
|
57
|
+
await options.auth(ctx, {
|
|
58
|
+
type: "read",
|
|
59
|
+
merchantId: args.merchantId,
|
|
60
|
+
});
|
|
61
|
+
return await ctx.runQuery(component.lib.validateToken, args);
|
|
62
|
+
},
|
|
63
|
+
}),
|
|
64
|
+
createCheckout: mutationGeneric({
|
|
65
|
+
args: {
|
|
66
|
+
merchantId: v.string(),
|
|
67
|
+
externalId: v.string(),
|
|
68
|
+
amount: v.number(),
|
|
69
|
+
description: v.string(),
|
|
70
|
+
webhookUrl: v.optional(v.string()),
|
|
71
|
+
returnUrl: v.optional(v.string()),
|
|
72
|
+
metadata: v.optional(v.record(v.string(), v.any())),
|
|
73
|
+
},
|
|
74
|
+
handler: async (ctx, args) => {
|
|
75
|
+
await options.auth(ctx, {
|
|
76
|
+
type: "write",
|
|
77
|
+
merchantId: args.merchantId,
|
|
78
|
+
});
|
|
79
|
+
return await ctx.runMutation(component.lib.createCheckout, args);
|
|
80
|
+
},
|
|
81
|
+
}),
|
|
82
|
+
getSession: queryGeneric({
|
|
83
|
+
args: {
|
|
84
|
+
externalId: v.optional(v.string()),
|
|
85
|
+
sessionId: v.optional(v.string()),
|
|
86
|
+
},
|
|
87
|
+
handler: async (ctx, args) => {
|
|
88
|
+
if (args.externalId) {
|
|
89
|
+
await options.auth(ctx, {
|
|
90
|
+
type: "read",
|
|
91
|
+
merchantId: args.externalId,
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
return await ctx.runQuery(component.lib.getSession, args);
|
|
95
|
+
},
|
|
96
|
+
}),
|
|
97
|
+
listCheckouts: queryGeneric({
|
|
98
|
+
args: {
|
|
99
|
+
merchantId: v.string(),
|
|
100
|
+
status: v.optional(v.string()),
|
|
101
|
+
limit: v.optional(v.number()),
|
|
102
|
+
},
|
|
103
|
+
handler: async (ctx, args) => {
|
|
104
|
+
await options.auth(ctx, {
|
|
105
|
+
type: "read",
|
|
106
|
+
merchantId: args.merchantId,
|
|
107
|
+
});
|
|
108
|
+
return await ctx.runQuery(component.lib.listCheckouts, args);
|
|
109
|
+
},
|
|
110
|
+
}),
|
|
111
|
+
createPaymentIntent: mutationGeneric({
|
|
112
|
+
args: {
|
|
113
|
+
merchantId: v.string(),
|
|
114
|
+
amount: v.number(),
|
|
115
|
+
description: v.optional(v.string()),
|
|
116
|
+
externalId: v.optional(v.string()),
|
|
117
|
+
webhookUrl: v.optional(v.string()),
|
|
118
|
+
returnUrl: v.optional(v.string()),
|
|
119
|
+
metadata: v.optional(v.record(v.string(), v.any())),
|
|
120
|
+
},
|
|
121
|
+
handler: async (ctx, args) => {
|
|
122
|
+
await options.auth(ctx, {
|
|
123
|
+
type: "write",
|
|
124
|
+
merchantId: args.merchantId,
|
|
125
|
+
});
|
|
126
|
+
return await ctx.runMutation(component.lib.createPaymentIntent, args);
|
|
127
|
+
},
|
|
128
|
+
}),
|
|
129
|
+
confirmPaymentIntent: mutationGeneric({
|
|
130
|
+
args: {
|
|
131
|
+
merchantId: v.string(),
|
|
132
|
+
intentId: v.string(),
|
|
133
|
+
paymentMethod: v.string(),
|
|
134
|
+
},
|
|
135
|
+
handler: async (ctx, args) => {
|
|
136
|
+
await options.auth(ctx, {
|
|
137
|
+
type: "write",
|
|
138
|
+
merchantId: args.merchantId,
|
|
139
|
+
});
|
|
140
|
+
return await ctx.runMutation(component.lib.confirmPaymentIntent, args);
|
|
141
|
+
},
|
|
142
|
+
}),
|
|
143
|
+
getPaymentIntentStatus: queryGeneric({
|
|
144
|
+
args: { intentId: v.string() },
|
|
145
|
+
handler: async (ctx, args) => {
|
|
146
|
+
return await ctx.runQuery(component.lib.getPaymentIntentStatus, args);
|
|
147
|
+
},
|
|
148
|
+
}),
|
|
149
|
+
listPaymentIntents: queryGeneric({
|
|
150
|
+
args: {
|
|
151
|
+
merchantId: v.string(),
|
|
152
|
+
status: v.optional(v.string()),
|
|
153
|
+
limit: v.optional(v.number()),
|
|
154
|
+
},
|
|
155
|
+
handler: async (ctx, args) => {
|
|
156
|
+
await options.auth(ctx, {
|
|
157
|
+
type: "read",
|
|
158
|
+
merchantId: args.merchantId,
|
|
159
|
+
});
|
|
160
|
+
return await ctx.runQuery(component.lib.listPaymentIntents, args);
|
|
161
|
+
},
|
|
162
|
+
}),
|
|
163
|
+
receiveWebhook: mutationGeneric({
|
|
164
|
+
args: {
|
|
165
|
+
payload: v.string(),
|
|
166
|
+
signature: v.string(),
|
|
167
|
+
timestamp: v.string(),
|
|
168
|
+
signingSecret: v.string(),
|
|
169
|
+
},
|
|
170
|
+
handler: async (ctx, args) => {
|
|
171
|
+
return await ctx.runMutation(component.lib.receiveWebhook, args);
|
|
172
|
+
},
|
|
173
|
+
}),
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
export class SaligPayComponent {
|
|
177
|
+
component;
|
|
178
|
+
constructor(component) {
|
|
179
|
+
this.component = component;
|
|
180
|
+
}
|
|
181
|
+
get auth() {
|
|
182
|
+
return {
|
|
183
|
+
authenticate: this.component.lib.authenticate,
|
|
184
|
+
refreshToken: this.component.lib.refreshToken,
|
|
185
|
+
getStoredTokens: this.component.lib.getStoredTokens,
|
|
186
|
+
validateToken: this.component.lib.validateToken,
|
|
187
|
+
loginAndRetrieveCredentials: this.component.lib.loginAndRetrieveCredentials,
|
|
188
|
+
internalAuthentication: this.component.lib.internalAuthentication,
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
get checkout() {
|
|
192
|
+
return {
|
|
193
|
+
create: this.component.lib.createCheckout,
|
|
194
|
+
getSession: this.component.lib.getSession,
|
|
195
|
+
getCheckoutByUrl: this.component.lib.getCheckoutByUrl,
|
|
196
|
+
listCheckouts: this.component.lib.listCheckouts,
|
|
197
|
+
expireSession: this.component.lib.expireSession,
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
get paymentIntent() {
|
|
201
|
+
return {
|
|
202
|
+
create: this.component.lib.createPaymentIntent,
|
|
203
|
+
confirm: this.component.lib.confirmPaymentIntent,
|
|
204
|
+
getStatus: this.component.lib.getPaymentIntentStatus,
|
|
205
|
+
list: this.component.lib.listPaymentIntents,
|
|
206
|
+
cancel: this.component.lib.cancelPaymentIntent,
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
get webhook() {
|
|
210
|
+
return {
|
|
211
|
+
receive: this.component.lib.receiveWebhook,
|
|
212
|
+
handleCheckoutCompleted: this.component.lib.handleCheckoutCompleted,
|
|
213
|
+
handleCheckoutFailed: this.component.lib.handleCheckoutFailed,
|
|
214
|
+
handlePaymentIntentSucceeded: this.component.lib.handlePaymentIntentSucceeded,
|
|
215
|
+
handleRefundCreated: this.component.lib.handleRefundCreated,
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
export function makeSaligPayComponent(component) {
|
|
220
|
+
return new SaligPayComponent(component);
|
|
221
|
+
}
|
|
222
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE9D,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAGlC,MAAM,UAAU,cAAc,CAC1B,GAAuE,EACvE,SAAuB,EACvB,IAQC;IAED,OAAO,GAAG,CAAC,WAAW,CAAC,SAAS,CAAC,GAAG,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,UAAU,UAAU,CACtB,GAAiE,EACjE,SAAuB,EACvB,IAAiD;IAEjD,OAAO,GAAG,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,EAAE,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CAAC,GAAG,CAAC,uBAAuB;YACnE,oBAAoB,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,oBAAoB;YAC7D,4BAA4B,EACxB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,4BAA4B;YACnD,mBAAmB,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,mBAAmB;SAC9D,CAAC;IACN,CAAC;CACJ;AAED,MAAM,UAAU,qBAAqB,CACjC,SAAuB;IAEvB,OAAO,IAAI,iBAAiB,CAAC,SAAS,CAAC,CAAC;AAC5C,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { FunctionReference } from "convex/server";
|
|
2
|
+
export type ComponentApi = {
|
|
3
|
+
lib: {
|
|
4
|
+
getStoredTokens: FunctionReference<"query", "public">;
|
|
5
|
+
getMerchantCredentials: FunctionReference<"query", "internal">;
|
|
6
|
+
validateToken: FunctionReference<"query", "public">;
|
|
7
|
+
authenticate: FunctionReference<"mutation", "public">;
|
|
8
|
+
refreshToken: FunctionReference<"mutation", "public">;
|
|
9
|
+
loginAndRetrieveCredentials: FunctionReference<"action", "public">;
|
|
10
|
+
internalAuthentication: FunctionReference<"action", "public">;
|
|
11
|
+
createCheckout: FunctionReference<"mutation", "public">;
|
|
12
|
+
getSession: FunctionReference<"query", "public">;
|
|
13
|
+
getCheckoutByUrl: FunctionReference<"query", "public">;
|
|
14
|
+
listCheckouts: FunctionReference<"query", "public">;
|
|
15
|
+
expireSession: FunctionReference<"mutation", "public">;
|
|
16
|
+
createPaymentIntent: FunctionReference<"mutation", "public">;
|
|
17
|
+
confirmPaymentIntent: FunctionReference<"mutation", "public">;
|
|
18
|
+
getPaymentIntentStatus: FunctionReference<"query", "public">;
|
|
19
|
+
listPaymentIntents: FunctionReference<"query", "public">;
|
|
20
|
+
cancelPaymentIntent: FunctionReference<"mutation", "public">;
|
|
21
|
+
receiveWebhook: FunctionReference<"mutation", "public">;
|
|
22
|
+
handleCheckoutCompleted: FunctionReference<"mutation", "public">;
|
|
23
|
+
handleCheckoutFailed: FunctionReference<"mutation", "public">;
|
|
24
|
+
handlePaymentIntentSucceeded: FunctionReference<"mutation", "public">;
|
|
25
|
+
handleRefundCreated: FunctionReference<"mutation", "public">;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/component/_generated/component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEvD,MAAM,MAAM,YAAY,GAAG;IACvB,GAAG,EAAE;QACD,eAAe,EAAE,iBAAiB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QACtD,sBAAsB,EAAE,iBAAiB,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;QAC/D,aAAa,EAAE,iBAAiB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QACpD,YAAY,EAAE,iBAAiB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QACtD,YAAY,EAAE,iBAAiB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QACtD,2BAA2B,EAAE,iBAAiB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QACnE,sBAAsB,EAAE,iBAAiB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QAC9D,cAAc,EAAE,iBAAiB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QACxD,UAAU,EAAE,iBAAiB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QACjD,gBAAgB,EAAE,iBAAiB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QACvD,aAAa,EAAE,iBAAiB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QACpD,aAAa,EAAE,iBAAiB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QACvD,mBAAmB,EAAE,iBAAiB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAC7D,oBAAoB,EAAE,iBAAiB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAC9D,sBAAsB,EAAE,iBAAiB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QAC7D,kBAAkB,EAAE,iBAAiB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QACzD,mBAAmB,EAAE,iBAAiB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAC7D,cAAc,EAAE,iBAAiB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QACxD,uBAAuB,EAAE,iBAAiB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QACjE,oBAAoB,EAAE,iBAAiB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAC9D,4BAA4B,EAAE,iBAAiB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QACtE,mBAAmB,EAAE,iBAAiB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;KAChE,CAAC;CACL,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../src/component/_generated/component.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { queryGeneric as query, mutationGeneric as mutation, actionGeneric as action, internalQueryGeneric as internalQuery, internalMutationGeneric as internalMutation, internalActionGeneric as internalAction, httpActionGeneric, } from "convex/server";
|
|
2
|
+
//# sourceMappingURL=server.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../src/component/_generated/server.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,IAAI,KAAK,EACrB,eAAe,IAAI,QAAQ,EAC3B,aAAa,IAAI,MAAM,EACvB,oBAAoB,IAAI,aAAa,EACrC,uBAAuB,IAAI,gBAAgB,EAC3C,qBAAqB,IAAI,cAAc,EACvC,iBAAiB,GACpB,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { queryGeneric as query, mutationGeneric as mutation, actionGeneric as action, internalQueryGeneric as internalQuery, internalMutationGeneric as internalMutation, internalActionGeneric as internalAction, httpActionGeneric, } from "convex/server";
|
|
2
|
+
//# sourceMappingURL=server.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../../src/component/_generated/server.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,IAAI,KAAK,EACrB,eAAe,IAAI,QAAQ,EAC3B,aAAa,IAAI,MAAM,EACvB,oBAAoB,IAAI,aAAa,EACrC,uBAAuB,IAAI,gBAAgB,EAC3C,qBAAqB,IAAI,cAAc,EACvC,iBAAiB,GACpB,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"convex.config.d.ts","sourceRoot":"","sources":["../../src/component/convex.config.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,SAAS,kDAA8B,CAAC;AAE9C,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"convex.config.js","sourceRoot":"","sources":["../../src/component/convex.config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,MAAM,SAAS,GAAG,eAAe,CAAC,UAAU,CAAC,CAAC;AAE9C,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
export declare const getStoredTokens: import("convex/server").RegisteredQuery<"public", {
|
|
2
|
+
merchantId: string;
|
|
3
|
+
}, Promise<any>>;
|
|
4
|
+
export declare const validateToken: import("convex/server").RegisteredQuery<"public", {
|
|
5
|
+
merchantId: string;
|
|
6
|
+
}, Promise<boolean>>;
|
|
7
|
+
export declare const getMerchantCredentials: import("convex/server").RegisteredQuery<"internal", {
|
|
8
|
+
merchantId: string;
|
|
9
|
+
}, Promise<any>>;
|
|
10
|
+
export declare const authenticate: import("convex/server").RegisteredMutation<"public", {
|
|
11
|
+
clientId?: string | undefined;
|
|
12
|
+
clientSecret?: string | undefined;
|
|
13
|
+
env?: "sandbox" | "production" | undefined;
|
|
14
|
+
merchantId: string;
|
|
15
|
+
}, Promise<any>>;
|
|
16
|
+
export declare const refreshToken: import("convex/server").RegisteredMutation<"public", {
|
|
17
|
+
refreshTokenArg?: string | undefined;
|
|
18
|
+
merchantId: string;
|
|
19
|
+
}, Promise<any>>;
|
|
20
|
+
export declare const loginAndRetrieveCredentials: import("convex/server").RegisteredAction<"public", {
|
|
21
|
+
env?: "sandbox" | "production" | undefined;
|
|
22
|
+
email: string;
|
|
23
|
+
password: string;
|
|
24
|
+
adminKey: string;
|
|
25
|
+
}, Promise<{
|
|
26
|
+
user: {
|
|
27
|
+
id: string;
|
|
28
|
+
email: string;
|
|
29
|
+
name: string;
|
|
30
|
+
};
|
|
31
|
+
merchant: {
|
|
32
|
+
id: string;
|
|
33
|
+
email: string;
|
|
34
|
+
tradeName: string;
|
|
35
|
+
};
|
|
36
|
+
credentials: {
|
|
37
|
+
clientId: string;
|
|
38
|
+
clientSecret: string;
|
|
39
|
+
};
|
|
40
|
+
tokens: {
|
|
41
|
+
accessToken: string;
|
|
42
|
+
refreshToken: string;
|
|
43
|
+
expiresIn: number;
|
|
44
|
+
expiresAt: number;
|
|
45
|
+
};
|
|
46
|
+
}>>;
|
|
47
|
+
export declare const internalAuthentication: import("convex/server").RegisteredAction<"public", {
|
|
48
|
+
env?: "sandbox" | "production" | undefined;
|
|
49
|
+
adminKey: string;
|
|
50
|
+
userId: string;
|
|
51
|
+
}, Promise<{
|
|
52
|
+
user: {
|
|
53
|
+
id: string;
|
|
54
|
+
email: string;
|
|
55
|
+
name: string;
|
|
56
|
+
};
|
|
57
|
+
merchant: {
|
|
58
|
+
id: string;
|
|
59
|
+
email: string;
|
|
60
|
+
tradeName: string;
|
|
61
|
+
};
|
|
62
|
+
credentials: {
|
|
63
|
+
clientId: string;
|
|
64
|
+
clientSecret: string;
|
|
65
|
+
};
|
|
66
|
+
tokens: {
|
|
67
|
+
accessToken: string;
|
|
68
|
+
refreshToken: string;
|
|
69
|
+
expiresIn: number;
|
|
70
|
+
expiresAt: number;
|
|
71
|
+
};
|
|
72
|
+
}>>;
|
|
73
|
+
export declare const createCheckout: import("convex/server").RegisteredMutation<"public", {
|
|
74
|
+
webhookUrl?: string | undefined;
|
|
75
|
+
returnUrl?: string | undefined;
|
|
76
|
+
metadata?: Record<string, any> | undefined;
|
|
77
|
+
contact?: {
|
|
78
|
+
phone?: string | undefined;
|
|
79
|
+
email: string;
|
|
80
|
+
name: string;
|
|
81
|
+
} | undefined;
|
|
82
|
+
isThirdParty?: boolean | undefined;
|
|
83
|
+
merchantId: string;
|
|
84
|
+
externalId: string;
|
|
85
|
+
amount: number;
|
|
86
|
+
description: string;
|
|
87
|
+
}, Promise<any>>;
|
|
88
|
+
export declare const getSession: import("convex/server").RegisteredQuery<"public", {
|
|
89
|
+
externalId?: string | undefined;
|
|
90
|
+
sessionId?: string | undefined;
|
|
91
|
+
}, Promise<any>>;
|
|
92
|
+
export declare const getCheckoutByUrl: import("convex/server").RegisteredQuery<"public", {
|
|
93
|
+
sessionToken: string;
|
|
94
|
+
}, Promise<any>>;
|
|
95
|
+
export declare const listCheckouts: import("convex/server").RegisteredQuery<"public", {
|
|
96
|
+
status?: string | undefined;
|
|
97
|
+
limit?: number | undefined;
|
|
98
|
+
merchantId: string;
|
|
99
|
+
}, Promise<any[]>>;
|
|
100
|
+
export declare const expireSession: import("convex/server").RegisteredMutation<"public", {
|
|
101
|
+
sessionId: string;
|
|
102
|
+
}, Promise<null>>;
|
|
103
|
+
export declare const createPaymentIntent: import("convex/server").RegisteredMutation<"public", {
|
|
104
|
+
externalId?: string | undefined;
|
|
105
|
+
description?: string | undefined;
|
|
106
|
+
webhookUrl?: string | undefined;
|
|
107
|
+
returnUrl?: string | undefined;
|
|
108
|
+
metadata?: Record<string, any> | undefined;
|
|
109
|
+
contact?: {
|
|
110
|
+
phone?: string | undefined;
|
|
111
|
+
email: string;
|
|
112
|
+
name: string;
|
|
113
|
+
} | undefined;
|
|
114
|
+
merchantId: string;
|
|
115
|
+
amount: number;
|
|
116
|
+
}, Promise<any>>;
|
|
117
|
+
export declare const confirmPaymentIntent: import("convex/server").RegisteredMutation<"public", {
|
|
118
|
+
contact?: {
|
|
119
|
+
contact?: string | undefined;
|
|
120
|
+
email: string;
|
|
121
|
+
name: string;
|
|
122
|
+
} | undefined;
|
|
123
|
+
creditCardDetails?: {
|
|
124
|
+
card_number: string;
|
|
125
|
+
exp_month: string;
|
|
126
|
+
exp_year: string;
|
|
127
|
+
cvc: string;
|
|
128
|
+
} | undefined;
|
|
129
|
+
merchantId: string;
|
|
130
|
+
intentId: string;
|
|
131
|
+
paymentMethod: string;
|
|
132
|
+
}, Promise<{
|
|
133
|
+
intentId: string;
|
|
134
|
+
status: string;
|
|
135
|
+
redirectUrl: string;
|
|
136
|
+
requiresAction: boolean;
|
|
137
|
+
}>>;
|
|
138
|
+
export declare const getPaymentIntentStatus: import("convex/server").RegisteredQuery<"public", {
|
|
139
|
+
intentId: string;
|
|
140
|
+
}, Promise<any>>;
|
|
141
|
+
export declare const listPaymentIntents: import("convex/server").RegisteredQuery<"public", {
|
|
142
|
+
status?: string | undefined;
|
|
143
|
+
limit?: number | undefined;
|
|
144
|
+
merchantId: string;
|
|
145
|
+
}, Promise<any[]>>;
|
|
146
|
+
export declare const cancelPaymentIntent: import("convex/server").RegisteredMutation<"public", {
|
|
147
|
+
intentId: string;
|
|
148
|
+
}, Promise<null>>;
|
|
149
|
+
export declare const receiveWebhook: import("convex/server").RegisteredMutation<"public", {
|
|
150
|
+
payload: string;
|
|
151
|
+
signature: string;
|
|
152
|
+
timestamp: string;
|
|
153
|
+
signingSecret: string;
|
|
154
|
+
}, Promise<{
|
|
155
|
+
received: boolean;
|
|
156
|
+
}>>;
|
|
157
|
+
export declare const handleCheckoutCompleted: import("convex/server").RegisteredMutation<"public", {
|
|
158
|
+
externalId: string;
|
|
159
|
+
}, Promise<null>>;
|
|
160
|
+
export declare const handleCheckoutFailed: import("convex/server").RegisteredMutation<"public", {
|
|
161
|
+
externalId: string;
|
|
162
|
+
}, Promise<null>>;
|
|
163
|
+
export declare const handlePaymentIntentSucceeded: import("convex/server").RegisteredMutation<"public", {
|
|
164
|
+
transactionId?: string | undefined;
|
|
165
|
+
externalId: string;
|
|
166
|
+
}, Promise<null>>;
|
|
167
|
+
export declare const handleRefundCreated: import("convex/server").RegisteredMutation<"public", {
|
|
168
|
+
externalId: string;
|
|
169
|
+
}, Promise<null>>;
|
|
170
|
+
//# sourceMappingURL=lib.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../src/component/lib.ts"],"names":[],"mappings":"AA0BA,eAAO,MAAM,eAAe;;gBAW1B,CAAC;AAEH,eAAO,MAAM,aAAa;;oBAaxB,CAAC;AAEH,eAAO,MAAM,sBAAsB;;gBAiBjC,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;gBAkDvB,CAAC;AAEH,eAAO,MAAM,YAAY;;;gBAsCvB,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BtC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;GA+BjC,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;gBA8CzB,CAAC;AAEH,eAAO,MAAM,UAAU;;;gBAwBrB,CAAC;AAEH,eAAO,MAAM,gBAAgB;;gBAW3B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;kBAoBxB,CAAC;AAEH,eAAO,MAAM,aAAa;;iBAkBxB,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;gBAiD9B,CAAC;A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