@jaicome/contracts 0.0.73 → 0.0.76
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/dist/fulfillment-states.d.mts +43 -3
- package/dist/fulfillment-states.mjs +67 -2
- package/dist/index.d.mts +2673 -317
- package/dist/index.mjs +450 -68
- package/dist/{orders-yFOPRYZw.d.mts → orders-CHXvc7L7.d.mts} +810 -255
- package/dist/payments-Qea5Yb_X.d.mts +387 -0
- package/dist/schema/index.d.mts +1266 -554
- package/dist/schema/index.mjs +2 -2
- package/dist/utils/payment-resolver.d.mts +87 -0
- package/dist/utils/payment-resolver.mjs +118 -0
- package/dist/{schema-0qCwa7QX.mjs → zatca-CEInGWOH.mjs} +761 -274
- package/package.json +9 -3
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/schema/payment-methods.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Payment Method: What the user/customer chooses to pay with (user-facing).
|
|
6
|
+
* - COD: Cash on Delivery/Pickup
|
|
7
|
+
* - ONLINE: Online card payment
|
|
8
|
+
*/
|
|
9
|
+
declare const paymentMethodIds: readonly ["COD", "ONLINE"];
|
|
10
|
+
type PaymentMethod = (typeof paymentMethodIds)[number];
|
|
11
|
+
/**
|
|
12
|
+
* Accepted Payments: Payment methods a location/fulfillment accepts.
|
|
13
|
+
* Used in fulfillment configuration (pickup, delivery, dinein, curbside).
|
|
14
|
+
* Must always be COD and/or ONLINE - no legacy CASH values.
|
|
15
|
+
*/
|
|
16
|
+
declare const acceptedPaymentIds: readonly ["COD", "ONLINE"];
|
|
17
|
+
type AcceptedPaymentMethod = (typeof acceptedPaymentIds)[number];
|
|
18
|
+
/**
|
|
19
|
+
* Payment Gateway: Which backend processor handled the payment (backend/storage).
|
|
20
|
+
* - MOYASAR: Moyasar payment gateway
|
|
21
|
+
* - null: Internal/offline payment (COD, manual, etc)
|
|
22
|
+
*/
|
|
23
|
+
declare const paymentGatewayIds: readonly ["MOYASAR"];
|
|
24
|
+
type PaymentGateway = (typeof paymentGatewayIds)[number] | null;
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region src/schema/payments.d.ts
|
|
27
|
+
declare const gatewayIds: readonly ["MOYASAR"];
|
|
28
|
+
declare const paymentStatuses: readonly ["INITIATED", "PAID", "AUTHORIZED", "FAILED", "REFUNDED", "CAPTURED", "VOIDED", "VERIFIED"];
|
|
29
|
+
type PaymentStatus = (typeof paymentStatuses)[number];
|
|
30
|
+
declare const initiatePaymentInputSchema: z.ZodObject<{
|
|
31
|
+
entities: z.ZodObject<{
|
|
32
|
+
merchantId: z.ZodString;
|
|
33
|
+
customerId: z.ZodString;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
payment: z.ZodObject<{
|
|
36
|
+
method: z.ZodEnum<{
|
|
37
|
+
COD: "COD";
|
|
38
|
+
ONLINE: "ONLINE";
|
|
39
|
+
}>;
|
|
40
|
+
orderId: z.ZodString;
|
|
41
|
+
amount: z.ZodNumber;
|
|
42
|
+
currency: z.ZodString;
|
|
43
|
+
description: z.ZodString;
|
|
44
|
+
language: z.ZodString;
|
|
45
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
46
|
+
success_url: z.ZodString;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
type InitiatePaymentInput = z.infer<typeof initiatePaymentInputSchema>;
|
|
51
|
+
declare const initiatePaymentOutputSchema: z.ZodObject<{
|
|
52
|
+
url: z.ZodString;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
type InitiatePaymentOutput = z.infer<typeof initiatePaymentOutputSchema>;
|
|
55
|
+
declare const paymentSourceSchema: z.ZodObject<{
|
|
56
|
+
type: z.ZodOptional<z.ZodString>;
|
|
57
|
+
company: z.ZodOptional<z.ZodString>;
|
|
58
|
+
entryMethod: z.ZodOptional<z.ZodString>;
|
|
59
|
+
card: z.ZodOptional<z.ZodObject<{
|
|
60
|
+
bin: z.ZodOptional<z.ZodString>;
|
|
61
|
+
expMonth: z.ZodOptional<z.ZodNumber>;
|
|
62
|
+
expYear: z.ZodOptional<z.ZodNumber>;
|
|
63
|
+
fingerprint: z.ZodOptional<z.ZodString>;
|
|
64
|
+
last4: z.ZodOptional<z.ZodString>;
|
|
65
|
+
}, z.core.$strip>>;
|
|
66
|
+
digitalWalletDetails: z.ZodOptional<z.ZodObject<{
|
|
67
|
+
type: z.ZodOptional<z.ZodString>;
|
|
68
|
+
brand: z.ZodOptional<z.ZodString>;
|
|
69
|
+
applicationDetails: z.ZodOptional<z.ZodUnknown>;
|
|
70
|
+
}, z.core.$strip>>;
|
|
71
|
+
receivedMoney: z.ZodOptional<z.ZodUnknown>;
|
|
72
|
+
changeMoney: z.ZodOptional<z.ZodUnknown>;
|
|
73
|
+
}, z.core.$strip>;
|
|
74
|
+
type PaymentSource = z.infer<typeof paymentSourceSchema>;
|
|
75
|
+
declare const recordPaymentInputSchema: z.ZodObject<{
|
|
76
|
+
merchantId: z.ZodString;
|
|
77
|
+
orderId: z.ZodString;
|
|
78
|
+
payment: z.ZodObject<{
|
|
79
|
+
paymentId: z.ZodString;
|
|
80
|
+
amount: z.ZodNumber;
|
|
81
|
+
currency: z.ZodString;
|
|
82
|
+
fee: z.ZodNumber;
|
|
83
|
+
status: z.ZodEnum<{
|
|
84
|
+
FAILED: "FAILED";
|
|
85
|
+
REFUNDED: "REFUNDED";
|
|
86
|
+
INITIATED: "INITIATED";
|
|
87
|
+
PAID: "PAID";
|
|
88
|
+
AUTHORIZED: "AUTHORIZED";
|
|
89
|
+
CAPTURED: "CAPTURED";
|
|
90
|
+
VOIDED: "VOIDED";
|
|
91
|
+
VERIFIED: "VERIFIED";
|
|
92
|
+
}>;
|
|
93
|
+
gateway: z.ZodNullable<z.ZodEnum<{
|
|
94
|
+
MOYASAR: "MOYASAR";
|
|
95
|
+
}>>;
|
|
96
|
+
source: z.ZodObject<{
|
|
97
|
+
type: z.ZodOptional<z.ZodString>;
|
|
98
|
+
company: z.ZodOptional<z.ZodString>;
|
|
99
|
+
entryMethod: z.ZodOptional<z.ZodString>;
|
|
100
|
+
card: z.ZodOptional<z.ZodObject<{
|
|
101
|
+
bin: z.ZodOptional<z.ZodString>;
|
|
102
|
+
expMonth: z.ZodOptional<z.ZodNumber>;
|
|
103
|
+
expYear: z.ZodOptional<z.ZodNumber>;
|
|
104
|
+
fingerprint: z.ZodOptional<z.ZodString>;
|
|
105
|
+
last4: z.ZodOptional<z.ZodString>;
|
|
106
|
+
}, z.core.$strip>>;
|
|
107
|
+
digitalWalletDetails: z.ZodOptional<z.ZodObject<{
|
|
108
|
+
type: z.ZodOptional<z.ZodString>;
|
|
109
|
+
brand: z.ZodOptional<z.ZodString>;
|
|
110
|
+
applicationDetails: z.ZodOptional<z.ZodUnknown>;
|
|
111
|
+
}, z.core.$strip>>;
|
|
112
|
+
receivedMoney: z.ZodOptional<z.ZodUnknown>;
|
|
113
|
+
changeMoney: z.ZodOptional<z.ZodUnknown>;
|
|
114
|
+
}, z.core.$strip>;
|
|
115
|
+
metadata: z.ZodUnknown;
|
|
116
|
+
ip: z.ZodOptional<z.ZodString>;
|
|
117
|
+
}, z.core.$strip>;
|
|
118
|
+
}, z.core.$strip>;
|
|
119
|
+
type RecordPaymentInput = z.infer<typeof recordPaymentInputSchema>;
|
|
120
|
+
declare const refundPaymentInputSchema: z.ZodObject<{
|
|
121
|
+
paymentId: z.ZodString;
|
|
122
|
+
amount: z.ZodNumber;
|
|
123
|
+
}, z.core.$strip>;
|
|
124
|
+
type RefundPaymentInput = z.infer<typeof refundPaymentInputSchema>;
|
|
125
|
+
declare const paymentOutputSchema: z.ZodObject<{
|
|
126
|
+
id: z.ZodString;
|
|
127
|
+
amount: z.ZodNumber;
|
|
128
|
+
currency: z.ZodString;
|
|
129
|
+
fee: z.ZodNumber;
|
|
130
|
+
status: z.ZodEnum<{
|
|
131
|
+
FAILED: "FAILED";
|
|
132
|
+
REFUNDED: "REFUNDED";
|
|
133
|
+
INITIATED: "INITIATED";
|
|
134
|
+
PAID: "PAID";
|
|
135
|
+
AUTHORIZED: "AUTHORIZED";
|
|
136
|
+
CAPTURED: "CAPTURED";
|
|
137
|
+
VOIDED: "VOIDED";
|
|
138
|
+
VERIFIED: "VERIFIED";
|
|
139
|
+
}>;
|
|
140
|
+
gateway: z.ZodNullable<z.ZodEnum<{
|
|
141
|
+
MOYASAR: "MOYASAR";
|
|
142
|
+
}>>;
|
|
143
|
+
source: z.ZodObject<{
|
|
144
|
+
type: z.ZodOptional<z.ZodString>;
|
|
145
|
+
company: z.ZodOptional<z.ZodString>;
|
|
146
|
+
entryMethod: z.ZodOptional<z.ZodString>;
|
|
147
|
+
card: z.ZodOptional<z.ZodObject<{
|
|
148
|
+
bin: z.ZodOptional<z.ZodString>;
|
|
149
|
+
expMonth: z.ZodOptional<z.ZodNumber>;
|
|
150
|
+
expYear: z.ZodOptional<z.ZodNumber>;
|
|
151
|
+
fingerprint: z.ZodOptional<z.ZodString>;
|
|
152
|
+
last4: z.ZodOptional<z.ZodString>;
|
|
153
|
+
}, z.core.$strip>>;
|
|
154
|
+
digitalWalletDetails: z.ZodOptional<z.ZodObject<{
|
|
155
|
+
type: z.ZodOptional<z.ZodString>;
|
|
156
|
+
brand: z.ZodOptional<z.ZodString>;
|
|
157
|
+
applicationDetails: z.ZodOptional<z.ZodUnknown>;
|
|
158
|
+
}, z.core.$strip>>;
|
|
159
|
+
receivedMoney: z.ZodOptional<z.ZodUnknown>;
|
|
160
|
+
changeMoney: z.ZodOptional<z.ZodUnknown>;
|
|
161
|
+
}, z.core.$strip>;
|
|
162
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
163
|
+
ip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
164
|
+
orderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
165
|
+
createdAt: z.ZodDate;
|
|
166
|
+
updatedAt: z.ZodDate;
|
|
167
|
+
}, z.core.$strip>;
|
|
168
|
+
type PaymentOutput = z.infer<typeof paymentOutputSchema>;
|
|
169
|
+
declare const paymentListItemSchema: z.ZodObject<{
|
|
170
|
+
id: z.ZodString;
|
|
171
|
+
amount: z.ZodNumber;
|
|
172
|
+
currency: z.ZodString;
|
|
173
|
+
fee: z.ZodNumber;
|
|
174
|
+
status: z.ZodEnum<{
|
|
175
|
+
FAILED: "FAILED";
|
|
176
|
+
REFUNDED: "REFUNDED";
|
|
177
|
+
INITIATED: "INITIATED";
|
|
178
|
+
PAID: "PAID";
|
|
179
|
+
AUTHORIZED: "AUTHORIZED";
|
|
180
|
+
CAPTURED: "CAPTURED";
|
|
181
|
+
VOIDED: "VOIDED";
|
|
182
|
+
VERIFIED: "VERIFIED";
|
|
183
|
+
}>;
|
|
184
|
+
gateway: z.ZodNullable<z.ZodEnum<{
|
|
185
|
+
MOYASAR: "MOYASAR";
|
|
186
|
+
}>>;
|
|
187
|
+
source: z.ZodObject<{
|
|
188
|
+
type: z.ZodOptional<z.ZodString>;
|
|
189
|
+
company: z.ZodOptional<z.ZodString>;
|
|
190
|
+
entryMethod: z.ZodOptional<z.ZodString>;
|
|
191
|
+
card: z.ZodOptional<z.ZodObject<{
|
|
192
|
+
bin: z.ZodOptional<z.ZodString>;
|
|
193
|
+
expMonth: z.ZodOptional<z.ZodNumber>;
|
|
194
|
+
expYear: z.ZodOptional<z.ZodNumber>;
|
|
195
|
+
fingerprint: z.ZodOptional<z.ZodString>;
|
|
196
|
+
last4: z.ZodOptional<z.ZodString>;
|
|
197
|
+
}, z.core.$strip>>;
|
|
198
|
+
digitalWalletDetails: z.ZodOptional<z.ZodObject<{
|
|
199
|
+
type: z.ZodOptional<z.ZodString>;
|
|
200
|
+
brand: z.ZodOptional<z.ZodString>;
|
|
201
|
+
applicationDetails: z.ZodOptional<z.ZodUnknown>;
|
|
202
|
+
}, z.core.$strip>>;
|
|
203
|
+
receivedMoney: z.ZodOptional<z.ZodUnknown>;
|
|
204
|
+
changeMoney: z.ZodOptional<z.ZodUnknown>;
|
|
205
|
+
}, z.core.$strip>;
|
|
206
|
+
orderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
207
|
+
createdAt: z.ZodDate;
|
|
208
|
+
}, z.core.$strip>;
|
|
209
|
+
type PaymentListItem = z.infer<typeof paymentListItemSchema>;
|
|
210
|
+
declare const paymentFilterSchema: z.ZodObject<{
|
|
211
|
+
merchantId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
212
|
+
locationId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
213
|
+
orderId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
214
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
215
|
+
FAILED: "FAILED";
|
|
216
|
+
REFUNDED: "REFUNDED";
|
|
217
|
+
INITIATED: "INITIATED";
|
|
218
|
+
PAID: "PAID";
|
|
219
|
+
AUTHORIZED: "AUTHORIZED";
|
|
220
|
+
CAPTURED: "CAPTURED";
|
|
221
|
+
VOIDED: "VOIDED";
|
|
222
|
+
VERIFIED: "VERIFIED";
|
|
223
|
+
}>>>;
|
|
224
|
+
gateway: z.ZodOptional<z.ZodNullable<z.ZodNullable<z.ZodEnum<{
|
|
225
|
+
MOYASAR: "MOYASAR";
|
|
226
|
+
}>>>>;
|
|
227
|
+
startTime: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
228
|
+
endTime: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
229
|
+
}, z.core.$strip>;
|
|
230
|
+
type PaymentFilter = z.infer<typeof paymentFilterSchema>;
|
|
231
|
+
declare const listPaymentsInputSchema: z.ZodObject<{
|
|
232
|
+
pagination: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
233
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
234
|
+
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
235
|
+
}, z.core.$strip>>>;
|
|
236
|
+
filter: z.ZodOptional<z.ZodObject<{
|
|
237
|
+
merchantId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
238
|
+
locationId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
239
|
+
orderId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
240
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
241
|
+
FAILED: "FAILED";
|
|
242
|
+
REFUNDED: "REFUNDED";
|
|
243
|
+
INITIATED: "INITIATED";
|
|
244
|
+
PAID: "PAID";
|
|
245
|
+
AUTHORIZED: "AUTHORIZED";
|
|
246
|
+
CAPTURED: "CAPTURED";
|
|
247
|
+
VOIDED: "VOIDED";
|
|
248
|
+
VERIFIED: "VERIFIED";
|
|
249
|
+
}>>>;
|
|
250
|
+
gateway: z.ZodOptional<z.ZodNullable<z.ZodNullable<z.ZodEnum<{
|
|
251
|
+
MOYASAR: "MOYASAR";
|
|
252
|
+
}>>>>;
|
|
253
|
+
startTime: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
254
|
+
endTime: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
255
|
+
}, z.core.$strip>>;
|
|
256
|
+
sort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
257
|
+
asc: "asc";
|
|
258
|
+
desc: "desc";
|
|
259
|
+
}>>>;
|
|
260
|
+
}, z.core.$strip>;
|
|
261
|
+
type ListPaymentsInput = z.infer<typeof listPaymentsInputSchema>;
|
|
262
|
+
declare const listPaymentsOutputSchema: z.ZodObject<{
|
|
263
|
+
items: z.ZodArray<z.ZodObject<{
|
|
264
|
+
id: z.ZodString;
|
|
265
|
+
amount: z.ZodNumber;
|
|
266
|
+
currency: z.ZodString;
|
|
267
|
+
fee: z.ZodNumber;
|
|
268
|
+
status: z.ZodEnum<{
|
|
269
|
+
FAILED: "FAILED";
|
|
270
|
+
REFUNDED: "REFUNDED";
|
|
271
|
+
INITIATED: "INITIATED";
|
|
272
|
+
PAID: "PAID";
|
|
273
|
+
AUTHORIZED: "AUTHORIZED";
|
|
274
|
+
CAPTURED: "CAPTURED";
|
|
275
|
+
VOIDED: "VOIDED";
|
|
276
|
+
VERIFIED: "VERIFIED";
|
|
277
|
+
}>;
|
|
278
|
+
gateway: z.ZodNullable<z.ZodEnum<{
|
|
279
|
+
MOYASAR: "MOYASAR";
|
|
280
|
+
}>>;
|
|
281
|
+
source: z.ZodObject<{
|
|
282
|
+
type: z.ZodOptional<z.ZodString>;
|
|
283
|
+
company: z.ZodOptional<z.ZodString>;
|
|
284
|
+
entryMethod: z.ZodOptional<z.ZodString>;
|
|
285
|
+
card: z.ZodOptional<z.ZodObject<{
|
|
286
|
+
bin: z.ZodOptional<z.ZodString>;
|
|
287
|
+
expMonth: z.ZodOptional<z.ZodNumber>;
|
|
288
|
+
expYear: z.ZodOptional<z.ZodNumber>;
|
|
289
|
+
fingerprint: z.ZodOptional<z.ZodString>;
|
|
290
|
+
last4: z.ZodOptional<z.ZodString>;
|
|
291
|
+
}, z.core.$strip>>;
|
|
292
|
+
digitalWalletDetails: z.ZodOptional<z.ZodObject<{
|
|
293
|
+
type: z.ZodOptional<z.ZodString>;
|
|
294
|
+
brand: z.ZodOptional<z.ZodString>;
|
|
295
|
+
applicationDetails: z.ZodOptional<z.ZodUnknown>;
|
|
296
|
+
}, z.core.$strip>>;
|
|
297
|
+
receivedMoney: z.ZodOptional<z.ZodUnknown>;
|
|
298
|
+
changeMoney: z.ZodOptional<z.ZodUnknown>;
|
|
299
|
+
}, z.core.$strip>;
|
|
300
|
+
orderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
301
|
+
createdAt: z.ZodDate;
|
|
302
|
+
}, z.core.$strip>>;
|
|
303
|
+
pagination: z.ZodObject<{
|
|
304
|
+
page: z.ZodNumber;
|
|
305
|
+
pageSize: z.ZodNumber;
|
|
306
|
+
totalItems: z.ZodNumber;
|
|
307
|
+
totalPages: z.ZodNumber;
|
|
308
|
+
}, z.core.$strip>;
|
|
309
|
+
}, z.core.$strip>;
|
|
310
|
+
type ListPaymentsOutput = z.infer<typeof listPaymentsOutputSchema>;
|
|
311
|
+
declare const getPaymentInputSchema: z.ZodObject<{
|
|
312
|
+
paymentId: z.ZodUUID;
|
|
313
|
+
}, z.core.$strip>;
|
|
314
|
+
type GetPaymentInput = z.infer<typeof getPaymentInputSchema>;
|
|
315
|
+
declare const refundOrderInputSchema: z.ZodObject<{
|
|
316
|
+
orderId: z.ZodUUID;
|
|
317
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
318
|
+
}, z.core.$strip>;
|
|
319
|
+
type RefundOrderInput = z.infer<typeof refundOrderInputSchema>;
|
|
320
|
+
declare const refundOrderOutputSchema: z.ZodObject<{
|
|
321
|
+
orderId: z.ZodString;
|
|
322
|
+
refundInitiated: z.ZodBoolean;
|
|
323
|
+
paymentIds: z.ZodArray<z.ZodString>;
|
|
324
|
+
message: z.ZodString;
|
|
325
|
+
}, z.core.$strip>;
|
|
326
|
+
type RefundOrderOutput = z.infer<typeof refundOrderOutputSchema>;
|
|
327
|
+
/** Payment types for COD (Cash on Delivery) orders. */
|
|
328
|
+
declare const codPaymentTypeIds: readonly ["CASH", "ONLINE"];
|
|
329
|
+
type CodPaymentType = (typeof codPaymentTypeIds)[number];
|
|
330
|
+
/** Mark a COD payment as paid. */
|
|
331
|
+
declare const setPaidInputSchema: z.ZodObject<{
|
|
332
|
+
paymentId: z.ZodUUID;
|
|
333
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
334
|
+
ONLINE: "ONLINE";
|
|
335
|
+
CASH: "CASH";
|
|
336
|
+
}>>;
|
|
337
|
+
}, z.core.$strip>;
|
|
338
|
+
type SetPaidInput = z.infer<typeof setPaidInputSchema>;
|
|
339
|
+
declare const setPaidOutputSchema: z.ZodObject<{
|
|
340
|
+
success: z.ZodBoolean;
|
|
341
|
+
payment: z.ZodObject<{
|
|
342
|
+
id: z.ZodString;
|
|
343
|
+
amount: z.ZodNumber;
|
|
344
|
+
currency: z.ZodString;
|
|
345
|
+
fee: z.ZodNumber;
|
|
346
|
+
status: z.ZodEnum<{
|
|
347
|
+
FAILED: "FAILED";
|
|
348
|
+
REFUNDED: "REFUNDED";
|
|
349
|
+
INITIATED: "INITIATED";
|
|
350
|
+
PAID: "PAID";
|
|
351
|
+
AUTHORIZED: "AUTHORIZED";
|
|
352
|
+
CAPTURED: "CAPTURED";
|
|
353
|
+
VOIDED: "VOIDED";
|
|
354
|
+
VERIFIED: "VERIFIED";
|
|
355
|
+
}>;
|
|
356
|
+
gateway: z.ZodNullable<z.ZodEnum<{
|
|
357
|
+
MOYASAR: "MOYASAR";
|
|
358
|
+
}>>;
|
|
359
|
+
source: z.ZodObject<{
|
|
360
|
+
type: z.ZodOptional<z.ZodString>;
|
|
361
|
+
company: z.ZodOptional<z.ZodString>;
|
|
362
|
+
entryMethod: z.ZodOptional<z.ZodString>;
|
|
363
|
+
card: z.ZodOptional<z.ZodObject<{
|
|
364
|
+
bin: z.ZodOptional<z.ZodString>;
|
|
365
|
+
expMonth: z.ZodOptional<z.ZodNumber>;
|
|
366
|
+
expYear: z.ZodOptional<z.ZodNumber>;
|
|
367
|
+
fingerprint: z.ZodOptional<z.ZodString>;
|
|
368
|
+
last4: z.ZodOptional<z.ZodString>;
|
|
369
|
+
}, z.core.$strip>>;
|
|
370
|
+
digitalWalletDetails: z.ZodOptional<z.ZodObject<{
|
|
371
|
+
type: z.ZodOptional<z.ZodString>;
|
|
372
|
+
brand: z.ZodOptional<z.ZodString>;
|
|
373
|
+
applicationDetails: z.ZodOptional<z.ZodUnknown>;
|
|
374
|
+
}, z.core.$strip>>;
|
|
375
|
+
receivedMoney: z.ZodOptional<z.ZodUnknown>;
|
|
376
|
+
changeMoney: z.ZodOptional<z.ZodUnknown>;
|
|
377
|
+
}, z.core.$strip>;
|
|
378
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
379
|
+
ip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
380
|
+
orderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
381
|
+
createdAt: z.ZodDate;
|
|
382
|
+
updatedAt: z.ZodDate;
|
|
383
|
+
}, z.core.$strip>;
|
|
384
|
+
}, z.core.$strip>;
|
|
385
|
+
type SetPaidOutput = z.infer<typeof setPaidOutputSchema>;
|
|
386
|
+
//#endregion
|
|
387
|
+
export { recordPaymentInputSchema as A, paymentGatewayIds as B, listPaymentsInputSchema as C, paymentOutputSchema as D, paymentListItemSchema as E, setPaidOutputSchema as F, AcceptedPaymentMethod as I, PaymentGateway as L, refundOrderOutputSchema as M, refundPaymentInputSchema as N, paymentSourceSchema as O, setPaidInputSchema as P, PaymentMethod as R, initiatePaymentOutputSchema as S, paymentFilterSchema as T, paymentMethodIds as V, SetPaidOutput as _, ListPaymentsInput as a, getPaymentInputSchema as b, PaymentListItem as c, PaymentStatus as d, RecordPaymentInput as f, SetPaidInput as g, RefundPaymentInput as h, InitiatePaymentOutput as i, refundOrderInputSchema as j, paymentStatuses as k, PaymentOutput as l, RefundOrderOutput as m, GetPaymentInput as n, ListPaymentsOutput as o, RefundOrderInput as p, InitiatePaymentInput as r, PaymentFilter as s, CodPaymentType as t, PaymentSource as u, codPaymentTypeIds as v, listPaymentsOutputSchema as w, initiatePaymentInputSchema as x, gatewayIds as y, acceptedPaymentIds as z };
|