@deliverart/sdk-js-payment 0.0.4 → 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.
Files changed (48) hide show
  1. package/package.json +11 -26
  2. package/.changeset/config.json +0 -11
  3. package/.github/workflows/workflow.yml +0 -47
  4. package/.prettierrc +0 -7
  5. package/CHANGELOG.md +0 -55
  6. package/README.md +0 -3
  7. package/dist/index.cjs +0 -1122
  8. package/dist/index.d.cts +0 -4422
  9. package/dist/index.d.ts +0 -4422
  10. package/dist/index.js +0 -1006
  11. package/eslint.config.js +0 -41
  12. package/src/index.ts +0 -3
  13. package/src/models.ts +0 -168
  14. package/src/requests/index.ts +0 -2
  15. package/src/requests/payment-configs/DeletePaymentConfig.ts +0 -27
  16. package/src/requests/payment-configs/GetPaymentConfigDetails.ts +0 -33
  17. package/src/requests/payment-configs/GetPaymentConfigs.ts +0 -50
  18. package/src/requests/payment-configs/bank-transfer/CreatePaymentConfigBankTransfer.ts +0 -38
  19. package/src/requests/payment-configs/bank-transfer/DeletePaymentConfigBankTransfer.ts +0 -27
  20. package/src/requests/payment-configs/bank-transfer/GetPaymentConfigBankTransferDetails.ts +0 -37
  21. package/src/requests/payment-configs/bank-transfer/GetPaymentConfigBankTransferList.ts +0 -54
  22. package/src/requests/payment-configs/bank-transfer/UpdatePaymentConfigBankTransfer.ts +0 -45
  23. package/src/requests/payment-configs/bank-transfer/index.ts +0 -5
  24. package/src/requests/payment-configs/cash/CreatePaymentConfigCash.ts +0 -36
  25. package/src/requests/payment-configs/cash/DeletePaymentConfigCash.ts +0 -27
  26. package/src/requests/payment-configs/cash/GetPaymentConfigCashDetails.ts +0 -33
  27. package/src/requests/payment-configs/cash/GetPaymentConfigCashList.ts +0 -52
  28. package/src/requests/payment-configs/cash/index.ts +0 -4
  29. package/src/requests/payment-configs/credit-card/CreatePaymentConfigCreditCard.ts +0 -38
  30. package/src/requests/payment-configs/credit-card/DeletePaymentConfigCreditCard.ts +0 -27
  31. package/src/requests/payment-configs/credit-card/GetPaymentConfigCreditCardDetails.ts +0 -36
  32. package/src/requests/payment-configs/credit-card/GetPaymentConfigCreditCardList.ts +0 -54
  33. package/src/requests/payment-configs/credit-card/index.ts +0 -4
  34. package/src/requests/payment-configs/index.ts +0 -7
  35. package/src/requests/payment-configs/stripe/CreatePaymentConfigStripe.ts +0 -36
  36. package/src/requests/payment-configs/stripe/DeletePaymentConfigStripe.ts +0 -27
  37. package/src/requests/payment-configs/stripe/GetPaymentConfigStripeDetails.ts +0 -33
  38. package/src/requests/payment-configs/stripe/GetPaymentConfigStripeList.ts +0 -53
  39. package/src/requests/payment-configs/stripe/UpdatePaymentConfigStripe.ts +0 -43
  40. package/src/requests/payment-configs/stripe/index.ts +0 -5
  41. package/src/requests/payments/DeletePayment.ts +0 -27
  42. package/src/requests/payments/GetPaymentDetails.ts +0 -30
  43. package/src/requests/payments/GetPayments.ts +0 -45
  44. package/src/requests/payments/GetPaymentsForPaymentConfig.ts +0 -53
  45. package/src/requests/payments/UpdatePayment.ts +0 -32
  46. package/src/requests/payments/index.ts +0 -5
  47. package/src/types.ts +0 -194
  48. package/tsconfig.json +0 -15
package/dist/index.d.cts DELETED
@@ -1,4422 +0,0 @@
1
- import { z } from 'zod';
2
- import { AbstractApiRequest } from '@deliverart/sdk-js-core';
3
- import { Paginated } from '@deliverart/sdk-js-global-types';
4
- import { AxiosResponse } from 'axios';
5
-
6
- declare const paymentSchema: z.ZodObject<{
7
- id: z.ZodString;
8
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
9
- status: z.ZodEnum<["pending", "pending_verification", "paid", "canceled", "refunded", "failed"]>;
10
- amount: z.ZodString;
11
- internalReference: z.ZodNullable<z.ZodString>;
12
- externalReference: z.ZodNullable<z.ZodString>;
13
- response: z.ZodNullable<z.ZodString>;
14
- validUntil: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
15
- createdAt: z.ZodEffects<z.ZodString, string, string>;
16
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
17
- }, "strip", z.ZodTypeAny, {
18
- status: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed";
19
- id: string;
20
- method: "stripe" | "bank_transfer" | "cash" | "credit_card";
21
- amount: string;
22
- internalReference: string | null;
23
- externalReference: string | null;
24
- response: string | null;
25
- validUntil: string | null;
26
- createdAt: string;
27
- updatedAt: string;
28
- }, {
29
- status: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed";
30
- id: string;
31
- method: "stripe" | "bank_transfer" | "cash" | "credit_card";
32
- amount: string;
33
- internalReference: string | null;
34
- externalReference: string | null;
35
- response: string | null;
36
- validUntil: string | null;
37
- createdAt: string;
38
- updatedAt: string;
39
- }>;
40
- type Payment = z.infer<typeof paymentSchema>;
41
- declare const paymentDetailsSchema: z.ZodObject<{
42
- id: z.ZodString;
43
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
44
- status: z.ZodEnum<["pending", "pending_verification", "paid", "canceled", "refunded", "failed"]>;
45
- amount: z.ZodString;
46
- internalReference: z.ZodNullable<z.ZodString>;
47
- externalReference: z.ZodNullable<z.ZodString>;
48
- response: z.ZodNullable<z.ZodString>;
49
- validUntil: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
50
- createdAt: z.ZodEffects<z.ZodString, string, string>;
51
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
52
- } & {
53
- config: z.ZodEffects<z.ZodString, string, string>;
54
- }, "strip", z.ZodTypeAny, {
55
- status: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed";
56
- id: string;
57
- method: "stripe" | "bank_transfer" | "cash" | "credit_card";
58
- amount: string;
59
- internalReference: string | null;
60
- externalReference: string | null;
61
- response: string | null;
62
- validUntil: string | null;
63
- createdAt: string;
64
- updatedAt: string;
65
- config: string;
66
- }, {
67
- status: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed";
68
- id: string;
69
- method: "stripe" | "bank_transfer" | "cash" | "credit_card";
70
- amount: string;
71
- internalReference: string | null;
72
- externalReference: string | null;
73
- response: string | null;
74
- validUntil: string | null;
75
- createdAt: string;
76
- updatedAt: string;
77
- config: string;
78
- }>;
79
- type PaymentDetails = z.infer<typeof paymentDetailsSchema>;
80
- declare const writablePaymentSchema: z.ZodObject<Pick<{
81
- id: z.ZodString;
82
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
83
- status: z.ZodEnum<["pending", "pending_verification", "paid", "canceled", "refunded", "failed"]>;
84
- amount: z.ZodString;
85
- internalReference: z.ZodNullable<z.ZodString>;
86
- externalReference: z.ZodNullable<z.ZodString>;
87
- response: z.ZodNullable<z.ZodString>;
88
- validUntil: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
89
- createdAt: z.ZodEffects<z.ZodString, string, string>;
90
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
91
- } & {
92
- config: z.ZodEffects<z.ZodString, string, string>;
93
- }, "status" | "response">, "strip", z.ZodTypeAny, {
94
- status: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed";
95
- response: string | null;
96
- }, {
97
- status: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed";
98
- response: string | null;
99
- }>;
100
- declare const paymentConfigBaseSchema: z.ZodObject<{
101
- id: z.ZodString;
102
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
103
- configurationCompleted: z.ZodBoolean;
104
- createdAt: z.ZodEffects<z.ZodString, string, string>;
105
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
106
- }, "strip", z.ZodTypeAny, {
107
- id: string;
108
- method: "stripe" | "bank_transfer" | "cash" | "credit_card";
109
- createdAt: string;
110
- updatedAt: string;
111
- configurationCompleted: boolean;
112
- }, {
113
- id: string;
114
- method: "stripe" | "bank_transfer" | "cash" | "credit_card";
115
- createdAt: string;
116
- updatedAt: string;
117
- configurationCompleted: boolean;
118
- }>;
119
- declare const paymentConfigDetailsFieldsSchema: z.ZodObject<{
120
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
121
- }, "strip", z.ZodTypeAny, {
122
- pointOfSale: string;
123
- }, {
124
- pointOfSale: string;
125
- }>;
126
- declare const paymentConfigBankTransferSchema: z.ZodObject<Omit<{
127
- id: z.ZodString;
128
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
129
- configurationCompleted: z.ZodBoolean;
130
- createdAt: z.ZodEffects<z.ZodString, string, string>;
131
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
132
- }, "method"> & {
133
- method: z.ZodEnum<["bank_transfer"]>;
134
- iban: z.ZodString;
135
- bic: z.ZodString;
136
- accountHolder: z.ZodString;
137
- bankName: z.ZodString;
138
- bankAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
139
- currency: z.ZodString;
140
- }, "strip", z.ZodTypeAny, {
141
- id: string;
142
- method: "bank_transfer";
143
- createdAt: string;
144
- updatedAt: string;
145
- configurationCompleted: boolean;
146
- iban: string;
147
- bic: string;
148
- accountHolder: string;
149
- bankName: string;
150
- currency: string;
151
- bankAddress?: string | null | undefined;
152
- }, {
153
- id: string;
154
- method: "bank_transfer";
155
- createdAt: string;
156
- updatedAt: string;
157
- configurationCompleted: boolean;
158
- iban: string;
159
- bic: string;
160
- accountHolder: string;
161
- bankName: string;
162
- currency: string;
163
- bankAddress?: string | null | undefined;
164
- }>;
165
- type PaymentConfigBankTransfer = z.infer<typeof paymentConfigBankTransferSchema>;
166
- declare const paymentConfigBankTransferDetailsSchema: z.ZodObject<Omit<{
167
- id: z.ZodString;
168
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
169
- configurationCompleted: z.ZodBoolean;
170
- createdAt: z.ZodEffects<z.ZodString, string, string>;
171
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
172
- }, "method"> & {
173
- method: z.ZodEnum<["bank_transfer"]>;
174
- iban: z.ZodString;
175
- bic: z.ZodString;
176
- accountHolder: z.ZodString;
177
- bankName: z.ZodString;
178
- bankAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
179
- currency: z.ZodString;
180
- } & {
181
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
182
- }, "strip", z.ZodTypeAny, {
183
- id: string;
184
- method: "bank_transfer";
185
- createdAt: string;
186
- updatedAt: string;
187
- configurationCompleted: boolean;
188
- pointOfSale: string;
189
- iban: string;
190
- bic: string;
191
- accountHolder: string;
192
- bankName: string;
193
- currency: string;
194
- bankAddress?: string | null | undefined;
195
- }, {
196
- id: string;
197
- method: "bank_transfer";
198
- createdAt: string;
199
- updatedAt: string;
200
- configurationCompleted: boolean;
201
- pointOfSale: string;
202
- iban: string;
203
- bic: string;
204
- accountHolder: string;
205
- bankName: string;
206
- currency: string;
207
- bankAddress?: string | null | undefined;
208
- }>;
209
- type PaymentConfigBankTransferDetails = z.infer<typeof paymentConfigBankTransferDetailsSchema>;
210
- declare const writablePaymentConfigBankTransferSchema: z.ZodObject<Pick<Omit<{
211
- id: z.ZodString;
212
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
213
- configurationCompleted: z.ZodBoolean;
214
- createdAt: z.ZodEffects<z.ZodString, string, string>;
215
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
216
- }, "method"> & {
217
- method: z.ZodEnum<["bank_transfer"]>;
218
- iban: z.ZodString;
219
- bic: z.ZodString;
220
- accountHolder: z.ZodString;
221
- bankName: z.ZodString;
222
- bankAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
223
- currency: z.ZodString;
224
- } & {
225
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
226
- }, "pointOfSale" | "iban" | "bic" | "accountHolder" | "bankName" | "bankAddress" | "currency">, "strip", z.ZodTypeAny, {
227
- pointOfSale: string;
228
- iban: string;
229
- bic: string;
230
- accountHolder: string;
231
- bankName: string;
232
- currency: string;
233
- bankAddress?: string | null | undefined;
234
- }, {
235
- pointOfSale: string;
236
- iban: string;
237
- bic: string;
238
- accountHolder: string;
239
- bankName: string;
240
- currency: string;
241
- bankAddress?: string | null | undefined;
242
- }>;
243
- declare const paymentConfigCashSchema: z.ZodObject<Omit<{
244
- id: z.ZodString;
245
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
246
- configurationCompleted: z.ZodBoolean;
247
- createdAt: z.ZodEffects<z.ZodString, string, string>;
248
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
249
- }, "method"> & {
250
- method: z.ZodEnum<["cash"]>;
251
- }, "strip", z.ZodTypeAny, {
252
- id: string;
253
- method: "cash";
254
- createdAt: string;
255
- updatedAt: string;
256
- configurationCompleted: boolean;
257
- }, {
258
- id: string;
259
- method: "cash";
260
- createdAt: string;
261
- updatedAt: string;
262
- configurationCompleted: boolean;
263
- }>;
264
- type PaymentConfigCash = z.infer<typeof paymentConfigCashSchema>;
265
- declare const paymentConfigCashDetailsSchema: z.ZodObject<Omit<{
266
- id: z.ZodString;
267
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
268
- configurationCompleted: z.ZodBoolean;
269
- createdAt: z.ZodEffects<z.ZodString, string, string>;
270
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
271
- }, "method"> & {
272
- method: z.ZodEnum<["cash"]>;
273
- } & {
274
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
275
- }, "strip", z.ZodTypeAny, {
276
- id: string;
277
- method: "cash";
278
- createdAt: string;
279
- updatedAt: string;
280
- configurationCompleted: boolean;
281
- pointOfSale: string;
282
- }, {
283
- id: string;
284
- method: "cash";
285
- createdAt: string;
286
- updatedAt: string;
287
- configurationCompleted: boolean;
288
- pointOfSale: string;
289
- }>;
290
- type PaymentConfigCashDetails = z.infer<typeof paymentConfigCashDetailsSchema>;
291
- declare const writablePaymentConfigCashSchema: z.ZodObject<Pick<Omit<{
292
- id: z.ZodString;
293
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
294
- configurationCompleted: z.ZodBoolean;
295
- createdAt: z.ZodEffects<z.ZodString, string, string>;
296
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
297
- }, "method"> & {
298
- method: z.ZodEnum<["cash"]>;
299
- } & {
300
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
301
- }, "pointOfSale">, "strip", z.ZodTypeAny, {
302
- pointOfSale: string;
303
- }, {
304
- pointOfSale: string;
305
- }>;
306
- declare const paymentConfigCreditCardSchema: z.ZodObject<Omit<{
307
- id: z.ZodString;
308
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
309
- configurationCompleted: z.ZodBoolean;
310
- createdAt: z.ZodEffects<z.ZodString, string, string>;
311
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
312
- }, "method"> & {
313
- method: z.ZodEnum<["credit_card"]>;
314
- }, "strip", z.ZodTypeAny, {
315
- id: string;
316
- method: "credit_card";
317
- createdAt: string;
318
- updatedAt: string;
319
- configurationCompleted: boolean;
320
- }, {
321
- id: string;
322
- method: "credit_card";
323
- createdAt: string;
324
- updatedAt: string;
325
- configurationCompleted: boolean;
326
- }>;
327
- type PaymentConfigCreditCard = z.infer<typeof paymentConfigCreditCardSchema>;
328
- declare const paymentConfigCreditCardDetailsSchema: z.ZodObject<Omit<{
329
- id: z.ZodString;
330
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
331
- configurationCompleted: z.ZodBoolean;
332
- createdAt: z.ZodEffects<z.ZodString, string, string>;
333
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
334
- }, "method"> & {
335
- method: z.ZodEnum<["credit_card"]>;
336
- } & {
337
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
338
- }, "strip", z.ZodTypeAny, {
339
- id: string;
340
- method: "credit_card";
341
- createdAt: string;
342
- updatedAt: string;
343
- configurationCompleted: boolean;
344
- pointOfSale: string;
345
- }, {
346
- id: string;
347
- method: "credit_card";
348
- createdAt: string;
349
- updatedAt: string;
350
- configurationCompleted: boolean;
351
- pointOfSale: string;
352
- }>;
353
- type PaymentConfigCreditCardDetails = z.infer<typeof paymentConfigCreditCardDetailsSchema>;
354
- declare const writablePaymentConfigCreditCardSchema: z.ZodObject<Pick<Omit<{
355
- id: z.ZodString;
356
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
357
- configurationCompleted: z.ZodBoolean;
358
- createdAt: z.ZodEffects<z.ZodString, string, string>;
359
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
360
- }, "method"> & {
361
- method: z.ZodEnum<["credit_card"]>;
362
- } & {
363
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
364
- }, "pointOfSale">, "strip", z.ZodTypeAny, {
365
- pointOfSale: string;
366
- }, {
367
- pointOfSale: string;
368
- }>;
369
- declare const paymentConfigStripeSchema: z.ZodObject<Omit<{
370
- id: z.ZodString;
371
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
372
- configurationCompleted: z.ZodBoolean;
373
- createdAt: z.ZodEffects<z.ZodString, string, string>;
374
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
375
- }, "method"> & {
376
- method: z.ZodEnum<["stripe"]>;
377
- secretKey: z.ZodString;
378
- webhookSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
379
- webhookId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
380
- }, "strip", z.ZodTypeAny, {
381
- id: string;
382
- method: "stripe";
383
- createdAt: string;
384
- updatedAt: string;
385
- configurationCompleted: boolean;
386
- secretKey: string;
387
- webhookSecret?: string | null | undefined;
388
- webhookId?: string | null | undefined;
389
- }, {
390
- id: string;
391
- method: "stripe";
392
- createdAt: string;
393
- updatedAt: string;
394
- configurationCompleted: boolean;
395
- secretKey: string;
396
- webhookSecret?: string | null | undefined;
397
- webhookId?: string | null | undefined;
398
- }>;
399
- type PaymentConfigStripe = z.infer<typeof paymentConfigStripeSchema>;
400
- declare const paymentConfigStripeDetailsSchema: z.ZodObject<Omit<{
401
- id: z.ZodString;
402
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
403
- configurationCompleted: z.ZodBoolean;
404
- createdAt: z.ZodEffects<z.ZodString, string, string>;
405
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
406
- }, "method"> & {
407
- method: z.ZodEnum<["stripe"]>;
408
- secretKey: z.ZodString;
409
- webhookSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
410
- webhookId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
411
- } & {
412
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
413
- }, "strip", z.ZodTypeAny, {
414
- id: string;
415
- method: "stripe";
416
- createdAt: string;
417
- updatedAt: string;
418
- configurationCompleted: boolean;
419
- pointOfSale: string;
420
- secretKey: string;
421
- webhookSecret?: string | null | undefined;
422
- webhookId?: string | null | undefined;
423
- }, {
424
- id: string;
425
- method: "stripe";
426
- createdAt: string;
427
- updatedAt: string;
428
- configurationCompleted: boolean;
429
- pointOfSale: string;
430
- secretKey: string;
431
- webhookSecret?: string | null | undefined;
432
- webhookId?: string | null | undefined;
433
- }>;
434
- type PaymentConfigStripeDetails = z.infer<typeof paymentConfigStripeDetailsSchema>;
435
- declare const writablePaymentConfigStripeSchema: z.ZodObject<Pick<Omit<{
436
- id: z.ZodString;
437
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
438
- configurationCompleted: z.ZodBoolean;
439
- createdAt: z.ZodEffects<z.ZodString, string, string>;
440
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
441
- }, "method"> & {
442
- method: z.ZodEnum<["stripe"]>;
443
- secretKey: z.ZodString;
444
- webhookSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
445
- webhookId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
446
- } & {
447
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
448
- }, "pointOfSale" | "secretKey">, "strip", z.ZodTypeAny, {
449
- pointOfSale: string;
450
- secretKey: string;
451
- }, {
452
- pointOfSale: string;
453
- secretKey: string;
454
- }>;
455
- declare const paymentConfigSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObject<Omit<{
456
- id: z.ZodString;
457
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
458
- configurationCompleted: z.ZodBoolean;
459
- createdAt: z.ZodEffects<z.ZodString, string, string>;
460
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
461
- }, "method"> & {
462
- method: z.ZodEnum<["bank_transfer"]>;
463
- iban: z.ZodString;
464
- bic: z.ZodString;
465
- accountHolder: z.ZodString;
466
- bankName: z.ZodString;
467
- bankAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
468
- currency: z.ZodString;
469
- }, "strip", z.ZodTypeAny, {
470
- id: string;
471
- method: "bank_transfer";
472
- createdAt: string;
473
- updatedAt: string;
474
- configurationCompleted: boolean;
475
- iban: string;
476
- bic: string;
477
- accountHolder: string;
478
- bankName: string;
479
- currency: string;
480
- bankAddress?: string | null | undefined;
481
- }, {
482
- id: string;
483
- method: "bank_transfer";
484
- createdAt: string;
485
- updatedAt: string;
486
- configurationCompleted: boolean;
487
- iban: string;
488
- bic: string;
489
- accountHolder: string;
490
- bankName: string;
491
- currency: string;
492
- bankAddress?: string | null | undefined;
493
- }>, z.ZodObject<Omit<{
494
- id: z.ZodString;
495
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
496
- configurationCompleted: z.ZodBoolean;
497
- createdAt: z.ZodEffects<z.ZodString, string, string>;
498
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
499
- }, "method"> & {
500
- method: z.ZodEnum<["cash"]>;
501
- }, "strip", z.ZodTypeAny, {
502
- id: string;
503
- method: "cash";
504
- createdAt: string;
505
- updatedAt: string;
506
- configurationCompleted: boolean;
507
- }, {
508
- id: string;
509
- method: "cash";
510
- createdAt: string;
511
- updatedAt: string;
512
- configurationCompleted: boolean;
513
- }>, z.ZodObject<Omit<{
514
- id: z.ZodString;
515
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
516
- configurationCompleted: z.ZodBoolean;
517
- createdAt: z.ZodEffects<z.ZodString, string, string>;
518
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
519
- }, "method"> & {
520
- method: z.ZodEnum<["credit_card"]>;
521
- }, "strip", z.ZodTypeAny, {
522
- id: string;
523
- method: "credit_card";
524
- createdAt: string;
525
- updatedAt: string;
526
- configurationCompleted: boolean;
527
- }, {
528
- id: string;
529
- method: "credit_card";
530
- createdAt: string;
531
- updatedAt: string;
532
- configurationCompleted: boolean;
533
- }>, z.ZodObject<Omit<{
534
- id: z.ZodString;
535
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
536
- configurationCompleted: z.ZodBoolean;
537
- createdAt: z.ZodEffects<z.ZodString, string, string>;
538
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
539
- }, "method"> & {
540
- method: z.ZodEnum<["stripe"]>;
541
- secretKey: z.ZodString;
542
- webhookSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
543
- webhookId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
544
- }, "strip", z.ZodTypeAny, {
545
- id: string;
546
- method: "stripe";
547
- createdAt: string;
548
- updatedAt: string;
549
- configurationCompleted: boolean;
550
- secretKey: string;
551
- webhookSecret?: string | null | undefined;
552
- webhookId?: string | null | undefined;
553
- }, {
554
- id: string;
555
- method: "stripe";
556
- createdAt: string;
557
- updatedAt: string;
558
- configurationCompleted: boolean;
559
- secretKey: string;
560
- webhookSecret?: string | null | undefined;
561
- webhookId?: string | null | undefined;
562
- }>]>;
563
- type PaymentConfig = z.infer<typeof paymentConfigSchema>;
564
- declare const paymentConfigDetailsSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObject<Omit<{
565
- id: z.ZodString;
566
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
567
- configurationCompleted: z.ZodBoolean;
568
- createdAt: z.ZodEffects<z.ZodString, string, string>;
569
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
570
- }, "method"> & {
571
- method: z.ZodEnum<["bank_transfer"]>;
572
- iban: z.ZodString;
573
- bic: z.ZodString;
574
- accountHolder: z.ZodString;
575
- bankName: z.ZodString;
576
- bankAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
577
- currency: z.ZodString;
578
- } & {
579
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
580
- }, "strip", z.ZodTypeAny, {
581
- id: string;
582
- method: "bank_transfer";
583
- createdAt: string;
584
- updatedAt: string;
585
- configurationCompleted: boolean;
586
- pointOfSale: string;
587
- iban: string;
588
- bic: string;
589
- accountHolder: string;
590
- bankName: string;
591
- currency: string;
592
- bankAddress?: string | null | undefined;
593
- }, {
594
- id: string;
595
- method: "bank_transfer";
596
- createdAt: string;
597
- updatedAt: string;
598
- configurationCompleted: boolean;
599
- pointOfSale: string;
600
- iban: string;
601
- bic: string;
602
- accountHolder: string;
603
- bankName: string;
604
- currency: string;
605
- bankAddress?: string | null | undefined;
606
- }>, z.ZodObject<Omit<{
607
- id: z.ZodString;
608
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
609
- configurationCompleted: z.ZodBoolean;
610
- createdAt: z.ZodEffects<z.ZodString, string, string>;
611
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
612
- }, "method"> & {
613
- method: z.ZodEnum<["cash"]>;
614
- } & {
615
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
616
- }, "strip", z.ZodTypeAny, {
617
- id: string;
618
- method: "cash";
619
- createdAt: string;
620
- updatedAt: string;
621
- configurationCompleted: boolean;
622
- pointOfSale: string;
623
- }, {
624
- id: string;
625
- method: "cash";
626
- createdAt: string;
627
- updatedAt: string;
628
- configurationCompleted: boolean;
629
- pointOfSale: string;
630
- }>, z.ZodObject<Omit<{
631
- id: z.ZodString;
632
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
633
- configurationCompleted: z.ZodBoolean;
634
- createdAt: z.ZodEffects<z.ZodString, string, string>;
635
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
636
- }, "method"> & {
637
- method: z.ZodEnum<["credit_card"]>;
638
- } & {
639
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
640
- }, "strip", z.ZodTypeAny, {
641
- id: string;
642
- method: "credit_card";
643
- createdAt: string;
644
- updatedAt: string;
645
- configurationCompleted: boolean;
646
- pointOfSale: string;
647
- }, {
648
- id: string;
649
- method: "credit_card";
650
- createdAt: string;
651
- updatedAt: string;
652
- configurationCompleted: boolean;
653
- pointOfSale: string;
654
- }>, z.ZodObject<Omit<{
655
- id: z.ZodString;
656
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
657
- configurationCompleted: z.ZodBoolean;
658
- createdAt: z.ZodEffects<z.ZodString, string, string>;
659
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
660
- }, "method"> & {
661
- method: z.ZodEnum<["stripe"]>;
662
- secretKey: z.ZodString;
663
- webhookSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
664
- webhookId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
665
- } & {
666
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
667
- }, "strip", z.ZodTypeAny, {
668
- id: string;
669
- method: "stripe";
670
- createdAt: string;
671
- updatedAt: string;
672
- configurationCompleted: boolean;
673
- pointOfSale: string;
674
- secretKey: string;
675
- webhookSecret?: string | null | undefined;
676
- webhookId?: string | null | undefined;
677
- }, {
678
- id: string;
679
- method: "stripe";
680
- createdAt: string;
681
- updatedAt: string;
682
- configurationCompleted: boolean;
683
- pointOfSale: string;
684
- secretKey: string;
685
- webhookSecret?: string | null | undefined;
686
- webhookId?: string | null | undefined;
687
- }>]>;
688
- type PaymentConfigDetails = z.infer<typeof paymentConfigDetailsSchema>;
689
- declare const paymentQuerySchema: z.ZodObject<{
690
- internalReference: z.ZodOptional<z.ZodString>;
691
- externalReference: z.ZodOptional<z.ZodString>;
692
- method: z.ZodOptional<z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>>;
693
- 'method[]': z.ZodOptional<z.ZodArray<z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>, "many">>;
694
- status: z.ZodOptional<z.ZodEnum<["pending", "pending_verification", "paid", "canceled", "refunded", "failed"]>>;
695
- 'status[]': z.ZodOptional<z.ZodArray<z.ZodEnum<["pending", "pending_verification", "paid", "canceled", "refunded", "failed"]>, "many">>;
696
- 'amount[between]': z.ZodOptional<z.ZodNumber>;
697
- 'amount[gt]': z.ZodOptional<z.ZodNumber>;
698
- 'amount[gte]': z.ZodOptional<z.ZodNumber>;
699
- 'amount[lt]': z.ZodOptional<z.ZodNumber>;
700
- 'amount[lte]': z.ZodOptional<z.ZodNumber>;
701
- 'order[createdAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
702
- 'order[updatedAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
703
- page: z.ZodOptional<z.ZodNumber>;
704
- } & {
705
- 'createdAt[before]': z.ZodOptional<z.ZodString>;
706
- 'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
707
- 'createdAt[after]': z.ZodOptional<z.ZodString>;
708
- 'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
709
- 'updatedAt[before]': z.ZodOptional<z.ZodString>;
710
- 'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
711
- 'updatedAt[after]': z.ZodOptional<z.ZodString>;
712
- 'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
713
- }, "strip", z.ZodTypeAny, {
714
- status?: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed" | undefined;
715
- method?: "stripe" | "bank_transfer" | "cash" | "credit_card" | undefined;
716
- internalReference?: string | undefined;
717
- externalReference?: string | undefined;
718
- 'method[]'?: ("stripe" | "bank_transfer" | "cash" | "credit_card")[] | undefined;
719
- 'status[]'?: ("pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed")[] | undefined;
720
- 'amount[between]'?: number | undefined;
721
- 'amount[gt]'?: number | undefined;
722
- 'amount[gte]'?: number | undefined;
723
- 'amount[lt]'?: number | undefined;
724
- 'amount[lte]'?: number | undefined;
725
- 'order[createdAt]'?: "asc" | "desc" | undefined;
726
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
727
- page?: number | undefined;
728
- 'createdAt[before]'?: string | undefined;
729
- 'createdAt[strictly_before]'?: string | undefined;
730
- 'createdAt[after]'?: string | undefined;
731
- 'createdAt[strictly_after]'?: string | undefined;
732
- 'updatedAt[before]'?: string | undefined;
733
- 'updatedAt[strictly_before]'?: string | undefined;
734
- 'updatedAt[after]'?: string | undefined;
735
- 'updatedAt[strictly_after]'?: string | undefined;
736
- }, {
737
- status?: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed" | undefined;
738
- method?: "stripe" | "bank_transfer" | "cash" | "credit_card" | undefined;
739
- internalReference?: string | undefined;
740
- externalReference?: string | undefined;
741
- 'method[]'?: ("stripe" | "bank_transfer" | "cash" | "credit_card")[] | undefined;
742
- 'status[]'?: ("pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed")[] | undefined;
743
- 'amount[between]'?: number | undefined;
744
- 'amount[gt]'?: number | undefined;
745
- 'amount[gte]'?: number | undefined;
746
- 'amount[lt]'?: number | undefined;
747
- 'amount[lte]'?: number | undefined;
748
- 'order[createdAt]'?: "asc" | "desc" | undefined;
749
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
750
- page?: number | undefined;
751
- 'createdAt[before]'?: string | undefined;
752
- 'createdAt[strictly_before]'?: string | undefined;
753
- 'createdAt[after]'?: string | undefined;
754
- 'createdAt[strictly_after]'?: string | undefined;
755
- 'updatedAt[before]'?: string | undefined;
756
- 'updatedAt[strictly_before]'?: string | undefined;
757
- 'updatedAt[after]'?: string | undefined;
758
- 'updatedAt[strictly_after]'?: string | undefined;
759
- }>;
760
- type PaymentQueryParams = z.infer<typeof paymentQuerySchema>;
761
- declare const paymentConfigsQuerySchema: z.ZodObject<{
762
- method: z.ZodOptional<z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>>;
763
- configurationCompleted: z.ZodOptional<z.ZodBoolean>;
764
- 'order[createdAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
765
- 'order[updatedAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
766
- page: z.ZodOptional<z.ZodNumber>;
767
- } & {
768
- 'createdAt[before]': z.ZodOptional<z.ZodString>;
769
- 'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
770
- 'createdAt[after]': z.ZodOptional<z.ZodString>;
771
- 'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
772
- 'updatedAt[before]': z.ZodOptional<z.ZodString>;
773
- 'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
774
- 'updatedAt[after]': z.ZodOptional<z.ZodString>;
775
- 'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
776
- }, "strip", z.ZodTypeAny, {
777
- method?: "stripe" | "bank_transfer" | "cash" | "credit_card" | undefined;
778
- configurationCompleted?: boolean | undefined;
779
- 'order[createdAt]'?: "asc" | "desc" | undefined;
780
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
781
- page?: number | undefined;
782
- 'createdAt[before]'?: string | undefined;
783
- 'createdAt[strictly_before]'?: string | undefined;
784
- 'createdAt[after]'?: string | undefined;
785
- 'createdAt[strictly_after]'?: string | undefined;
786
- 'updatedAt[before]'?: string | undefined;
787
- 'updatedAt[strictly_before]'?: string | undefined;
788
- 'updatedAt[after]'?: string | undefined;
789
- 'updatedAt[strictly_after]'?: string | undefined;
790
- }, {
791
- method?: "stripe" | "bank_transfer" | "cash" | "credit_card" | undefined;
792
- configurationCompleted?: boolean | undefined;
793
- 'order[createdAt]'?: "asc" | "desc" | undefined;
794
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
795
- page?: number | undefined;
796
- 'createdAt[before]'?: string | undefined;
797
- 'createdAt[strictly_before]'?: string | undefined;
798
- 'createdAt[after]'?: string | undefined;
799
- 'createdAt[strictly_after]'?: string | undefined;
800
- 'updatedAt[before]'?: string | undefined;
801
- 'updatedAt[strictly_before]'?: string | undefined;
802
- 'updatedAt[after]'?: string | undefined;
803
- 'updatedAt[strictly_after]'?: string | undefined;
804
- }>;
805
- type PaymentConfigsQueryParams = z.infer<typeof paymentConfigsQuerySchema>;
806
-
807
- declare const createPaymentConfigBankTransferInputSchema: z.ZodObject<Pick<Omit<{
808
- id: z.ZodString;
809
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
810
- configurationCompleted: z.ZodBoolean;
811
- createdAt: z.ZodEffects<z.ZodString, string, string>;
812
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
813
- }, "method"> & {
814
- method: z.ZodEnum<["bank_transfer"]>;
815
- iban: z.ZodString;
816
- bic: z.ZodString;
817
- accountHolder: z.ZodString;
818
- bankName: z.ZodString;
819
- bankAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
820
- currency: z.ZodString;
821
- } & {
822
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
823
- }, "pointOfSale" | "iban" | "bic" | "accountHolder" | "bankName" | "bankAddress" | "currency">, "strip", z.ZodTypeAny, {
824
- pointOfSale: string;
825
- iban: string;
826
- bic: string;
827
- accountHolder: string;
828
- bankName: string;
829
- currency: string;
830
- bankAddress?: string | null | undefined;
831
- }, {
832
- pointOfSale: string;
833
- iban: string;
834
- bic: string;
835
- accountHolder: string;
836
- bankName: string;
837
- currency: string;
838
- bankAddress?: string | null | undefined;
839
- }>;
840
- type CreatePaymentConfigBankTransferInput = z.infer<typeof createPaymentConfigBankTransferInputSchema>;
841
- declare const createPaymentConfigBankTransferResponseSchema: z.ZodObject<Omit<{
842
- id: z.ZodString;
843
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
844
- configurationCompleted: z.ZodBoolean;
845
- createdAt: z.ZodEffects<z.ZodString, string, string>;
846
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
847
- }, "method"> & {
848
- method: z.ZodEnum<["bank_transfer"]>;
849
- iban: z.ZodString;
850
- bic: z.ZodString;
851
- accountHolder: z.ZodString;
852
- bankName: z.ZodString;
853
- bankAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
854
- currency: z.ZodString;
855
- } & {
856
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
857
- }, "strip", z.ZodTypeAny, {
858
- id: string;
859
- method: "bank_transfer";
860
- createdAt: string;
861
- updatedAt: string;
862
- configurationCompleted: boolean;
863
- pointOfSale: string;
864
- iban: string;
865
- bic: string;
866
- accountHolder: string;
867
- bankName: string;
868
- currency: string;
869
- bankAddress?: string | null | undefined;
870
- }, {
871
- id: string;
872
- method: "bank_transfer";
873
- createdAt: string;
874
- updatedAt: string;
875
- configurationCompleted: boolean;
876
- pointOfSale: string;
877
- iban: string;
878
- bic: string;
879
- accountHolder: string;
880
- bankName: string;
881
- currency: string;
882
- bankAddress?: string | null | undefined;
883
- }>;
884
- type CreatePaymentConfigBankTransferResponse = PaymentConfigBankTransferDetails;
885
- declare class CreatePaymentConfigBankTransfer extends AbstractApiRequest<CreatePaymentConfigBankTransferInput, CreatePaymentConfigBankTransferResponse> {
886
- readonly method = "POST";
887
- readonly contentType = "application/json";
888
- readonly accept = "application/json";
889
- readonly inputSchema: z.ZodObject<Pick<Omit<{
890
- id: z.ZodString;
891
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
892
- configurationCompleted: z.ZodBoolean;
893
- createdAt: z.ZodEffects<z.ZodString, string, string>;
894
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
895
- }, "method"> & {
896
- method: z.ZodEnum<["bank_transfer"]>;
897
- iban: z.ZodString;
898
- bic: z.ZodString;
899
- accountHolder: z.ZodString;
900
- bankName: z.ZodString;
901
- bankAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
902
- currency: z.ZodString;
903
- } & {
904
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
905
- }, "pointOfSale" | "iban" | "bic" | "accountHolder" | "bankName" | "bankAddress" | "currency">, "strip", z.ZodTypeAny, {
906
- pointOfSale: string;
907
- iban: string;
908
- bic: string;
909
- accountHolder: string;
910
- bankName: string;
911
- currency: string;
912
- bankAddress?: string | null | undefined;
913
- }, {
914
- pointOfSale: string;
915
- iban: string;
916
- bic: string;
917
- accountHolder: string;
918
- bankName: string;
919
- currency: string;
920
- bankAddress?: string | null | undefined;
921
- }>;
922
- readonly outputSchema: z.ZodObject<Omit<{
923
- id: z.ZodString;
924
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
925
- configurationCompleted: z.ZodBoolean;
926
- createdAt: z.ZodEffects<z.ZodString, string, string>;
927
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
928
- }, "method"> & {
929
- method: z.ZodEnum<["bank_transfer"]>;
930
- iban: z.ZodString;
931
- bic: z.ZodString;
932
- accountHolder: z.ZodString;
933
- bankName: z.ZodString;
934
- bankAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
935
- currency: z.ZodString;
936
- } & {
937
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
938
- }, "strip", z.ZodTypeAny, {
939
- id: string;
940
- method: "bank_transfer";
941
- createdAt: string;
942
- updatedAt: string;
943
- configurationCompleted: boolean;
944
- pointOfSale: string;
945
- iban: string;
946
- bic: string;
947
- accountHolder: string;
948
- bankName: string;
949
- currency: string;
950
- bankAddress?: string | null | undefined;
951
- }, {
952
- id: string;
953
- method: "bank_transfer";
954
- createdAt: string;
955
- updatedAt: string;
956
- configurationCompleted: boolean;
957
- pointOfSale: string;
958
- iban: string;
959
- bic: string;
960
- accountHolder: string;
961
- bankName: string;
962
- currency: string;
963
- bankAddress?: string | null | undefined;
964
- }>;
965
- readonly querySchema: undefined;
966
- readonly headersSchema: undefined;
967
- constructor(input: CreatePaymentConfigBankTransferInput);
968
- getPath(): string;
969
- }
970
-
971
- declare const deletePaymentConfigBankTransferInputSchema: z.ZodUndefined;
972
- declare const deletePaymentConfigBankTransferResponseSchema: z.ZodUndefined;
973
- declare class DeletePaymentConfigBankTransfer extends AbstractApiRequest<void, void> {
974
- readonly method = "DELETE";
975
- readonly contentType = "application/json";
976
- readonly accept = "application/json";
977
- readonly inputSchema: z.ZodUndefined;
978
- readonly outputSchema: z.ZodUndefined;
979
- readonly querySchema: undefined;
980
- readonly headersSchema: undefined;
981
- private readonly paymentConfigId;
982
- constructor(paymentConfigId: string);
983
- getPath(): string;
984
- }
985
-
986
- declare const getPaymentConfigBankTransferDetailsInputSchema: z.ZodUndefined;
987
- declare const getPaymentConfigBankTransferDetailsResponseSchema: z.ZodObject<Omit<{
988
- id: z.ZodString;
989
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
990
- configurationCompleted: z.ZodBoolean;
991
- createdAt: z.ZodEffects<z.ZodString, string, string>;
992
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
993
- }, "method"> & {
994
- method: z.ZodEnum<["bank_transfer"]>;
995
- iban: z.ZodString;
996
- bic: z.ZodString;
997
- accountHolder: z.ZodString;
998
- bankName: z.ZodString;
999
- bankAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1000
- currency: z.ZodString;
1001
- } & {
1002
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
1003
- }, "strip", z.ZodTypeAny, {
1004
- id: string;
1005
- method: "bank_transfer";
1006
- createdAt: string;
1007
- updatedAt: string;
1008
- configurationCompleted: boolean;
1009
- pointOfSale: string;
1010
- iban: string;
1011
- bic: string;
1012
- accountHolder: string;
1013
- bankName: string;
1014
- currency: string;
1015
- bankAddress?: string | null | undefined;
1016
- }, {
1017
- id: string;
1018
- method: "bank_transfer";
1019
- createdAt: string;
1020
- updatedAt: string;
1021
- configurationCompleted: boolean;
1022
- pointOfSale: string;
1023
- iban: string;
1024
- bic: string;
1025
- accountHolder: string;
1026
- bankName: string;
1027
- currency: string;
1028
- bankAddress?: string | null | undefined;
1029
- }>;
1030
- type GetPaymentConfigBankTransferDetailsResponse = PaymentConfigBankTransferDetails;
1031
- declare class GetPaymentConfigBankTransferDetails extends AbstractApiRequest<void, GetPaymentConfigBankTransferDetailsResponse> {
1032
- readonly method = "GET";
1033
- readonly contentType = "application/json";
1034
- readonly accept = "application/json";
1035
- readonly inputSchema: z.ZodUndefined;
1036
- readonly outputSchema: z.ZodObject<Omit<{
1037
- id: z.ZodString;
1038
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
1039
- configurationCompleted: z.ZodBoolean;
1040
- createdAt: z.ZodEffects<z.ZodString, string, string>;
1041
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
1042
- }, "method"> & {
1043
- method: z.ZodEnum<["bank_transfer"]>;
1044
- iban: z.ZodString;
1045
- bic: z.ZodString;
1046
- accountHolder: z.ZodString;
1047
- bankName: z.ZodString;
1048
- bankAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1049
- currency: z.ZodString;
1050
- } & {
1051
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
1052
- }, "strip", z.ZodTypeAny, {
1053
- id: string;
1054
- method: "bank_transfer";
1055
- createdAt: string;
1056
- updatedAt: string;
1057
- configurationCompleted: boolean;
1058
- pointOfSale: string;
1059
- iban: string;
1060
- bic: string;
1061
- accountHolder: string;
1062
- bankName: string;
1063
- currency: string;
1064
- bankAddress?: string | null | undefined;
1065
- }, {
1066
- id: string;
1067
- method: "bank_transfer";
1068
- createdAt: string;
1069
- updatedAt: string;
1070
- configurationCompleted: boolean;
1071
- pointOfSale: string;
1072
- iban: string;
1073
- bic: string;
1074
- accountHolder: string;
1075
- bankName: string;
1076
- currency: string;
1077
- bankAddress?: string | null | undefined;
1078
- }>;
1079
- readonly querySchema: undefined;
1080
- readonly headersSchema: undefined;
1081
- private readonly paymentConfigId;
1082
- constructor(paymentConfigId: string);
1083
- getPath(): string;
1084
- }
1085
-
1086
- type GetPaymentConfigBankTransferListQueryParams = PaymentConfigsQueryParams;
1087
- declare const getPaymentConfigBankTransferListResponseSchema: z.ZodObject<{
1088
- data: z.ZodArray<z.ZodObject<Omit<{
1089
- id: z.ZodString;
1090
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
1091
- configurationCompleted: z.ZodBoolean;
1092
- createdAt: z.ZodEffects<z.ZodString, string, string>;
1093
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
1094
- }, "method"> & {
1095
- method: z.ZodEnum<["bank_transfer"]>;
1096
- iban: z.ZodString;
1097
- bic: z.ZodString;
1098
- accountHolder: z.ZodString;
1099
- bankName: z.ZodString;
1100
- bankAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1101
- currency: z.ZodString;
1102
- }, "strip", z.ZodTypeAny, {
1103
- id: string;
1104
- method: "bank_transfer";
1105
- createdAt: string;
1106
- updatedAt: string;
1107
- configurationCompleted: boolean;
1108
- iban: string;
1109
- bic: string;
1110
- accountHolder: string;
1111
- bankName: string;
1112
- currency: string;
1113
- bankAddress?: string | null | undefined;
1114
- }, {
1115
- id: string;
1116
- method: "bank_transfer";
1117
- createdAt: string;
1118
- updatedAt: string;
1119
- configurationCompleted: boolean;
1120
- iban: string;
1121
- bic: string;
1122
- accountHolder: string;
1123
- bankName: string;
1124
- currency: string;
1125
- bankAddress?: string | null | undefined;
1126
- }>, "many">;
1127
- pagination: z.ZodObject<{
1128
- from: z.ZodNumber;
1129
- to: z.ZodNumber;
1130
- itemsPerPage: z.ZodNumber;
1131
- totalItems: z.ZodNumber;
1132
- currentPage: z.ZodNumber;
1133
- lastPage: z.ZodNumber;
1134
- }, "strip", z.ZodTypeAny, {
1135
- from: number;
1136
- to: number;
1137
- itemsPerPage: number;
1138
- totalItems: number;
1139
- currentPage: number;
1140
- lastPage: number;
1141
- }, {
1142
- from: number;
1143
- to: number;
1144
- itemsPerPage: number;
1145
- totalItems: number;
1146
- currentPage: number;
1147
- lastPage: number;
1148
- }>;
1149
- }, "strip", z.ZodTypeAny, {
1150
- data: {
1151
- id: string;
1152
- method: "bank_transfer";
1153
- createdAt: string;
1154
- updatedAt: string;
1155
- configurationCompleted: boolean;
1156
- iban: string;
1157
- bic: string;
1158
- accountHolder: string;
1159
- bankName: string;
1160
- currency: string;
1161
- bankAddress?: string | null | undefined;
1162
- }[];
1163
- pagination: {
1164
- from: number;
1165
- to: number;
1166
- itemsPerPage: number;
1167
- totalItems: number;
1168
- currentPage: number;
1169
- lastPage: number;
1170
- };
1171
- }, {
1172
- data: {
1173
- id: string;
1174
- method: "bank_transfer";
1175
- createdAt: string;
1176
- updatedAt: string;
1177
- configurationCompleted: boolean;
1178
- iban: string;
1179
- bic: string;
1180
- accountHolder: string;
1181
- bankName: string;
1182
- currency: string;
1183
- bankAddress?: string | null | undefined;
1184
- }[];
1185
- pagination: {
1186
- from: number;
1187
- to: number;
1188
- itemsPerPage: number;
1189
- totalItems: number;
1190
- currentPage: number;
1191
- lastPage: number;
1192
- };
1193
- }>;
1194
- type GetPaymentConfigBankTransferListResponse = z.infer<typeof getPaymentConfigBankTransferListResponseSchema>;
1195
- declare const getPaymentConfigBankTransferListInputSchema: z.ZodUndefined;
1196
- declare class GetPaymentConfigBankTransferList extends AbstractApiRequest<void, GetPaymentConfigBankTransferListResponse, GetPaymentConfigBankTransferListQueryParams> {
1197
- readonly method = "GET";
1198
- readonly contentType = "application/json";
1199
- readonly accept = "application/json";
1200
- readonly inputSchema: z.ZodUndefined;
1201
- readonly outputSchema: z.ZodObject<{
1202
- data: z.ZodArray<z.ZodObject<Omit<{
1203
- id: z.ZodString;
1204
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
1205
- configurationCompleted: z.ZodBoolean;
1206
- createdAt: z.ZodEffects<z.ZodString, string, string>;
1207
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
1208
- }, "method"> & {
1209
- method: z.ZodEnum<["bank_transfer"]>;
1210
- iban: z.ZodString;
1211
- bic: z.ZodString;
1212
- accountHolder: z.ZodString;
1213
- bankName: z.ZodString;
1214
- bankAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1215
- currency: z.ZodString;
1216
- }, "strip", z.ZodTypeAny, {
1217
- id: string;
1218
- method: "bank_transfer";
1219
- createdAt: string;
1220
- updatedAt: string;
1221
- configurationCompleted: boolean;
1222
- iban: string;
1223
- bic: string;
1224
- accountHolder: string;
1225
- bankName: string;
1226
- currency: string;
1227
- bankAddress?: string | null | undefined;
1228
- }, {
1229
- id: string;
1230
- method: "bank_transfer";
1231
- createdAt: string;
1232
- updatedAt: string;
1233
- configurationCompleted: boolean;
1234
- iban: string;
1235
- bic: string;
1236
- accountHolder: string;
1237
- bankName: string;
1238
- currency: string;
1239
- bankAddress?: string | null | undefined;
1240
- }>, "many">;
1241
- pagination: z.ZodObject<{
1242
- from: z.ZodNumber;
1243
- to: z.ZodNumber;
1244
- itemsPerPage: z.ZodNumber;
1245
- totalItems: z.ZodNumber;
1246
- currentPage: z.ZodNumber;
1247
- lastPage: z.ZodNumber;
1248
- }, "strip", z.ZodTypeAny, {
1249
- from: number;
1250
- to: number;
1251
- itemsPerPage: number;
1252
- totalItems: number;
1253
- currentPage: number;
1254
- lastPage: number;
1255
- }, {
1256
- from: number;
1257
- to: number;
1258
- itemsPerPage: number;
1259
- totalItems: number;
1260
- currentPage: number;
1261
- lastPage: number;
1262
- }>;
1263
- }, "strip", z.ZodTypeAny, {
1264
- data: {
1265
- id: string;
1266
- method: "bank_transfer";
1267
- createdAt: string;
1268
- updatedAt: string;
1269
- configurationCompleted: boolean;
1270
- iban: string;
1271
- bic: string;
1272
- accountHolder: string;
1273
- bankName: string;
1274
- currency: string;
1275
- bankAddress?: string | null | undefined;
1276
- }[];
1277
- pagination: {
1278
- from: number;
1279
- to: number;
1280
- itemsPerPage: number;
1281
- totalItems: number;
1282
- currentPage: number;
1283
- lastPage: number;
1284
- };
1285
- }, {
1286
- data: {
1287
- id: string;
1288
- method: "bank_transfer";
1289
- createdAt: string;
1290
- updatedAt: string;
1291
- configurationCompleted: boolean;
1292
- iban: string;
1293
- bic: string;
1294
- accountHolder: string;
1295
- bankName: string;
1296
- currency: string;
1297
- bankAddress?: string | null | undefined;
1298
- }[];
1299
- pagination: {
1300
- from: number;
1301
- to: number;
1302
- itemsPerPage: number;
1303
- totalItems: number;
1304
- currentPage: number;
1305
- lastPage: number;
1306
- };
1307
- }>;
1308
- readonly querySchema: z.ZodObject<{
1309
- method: z.ZodOptional<z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>>;
1310
- configurationCompleted: z.ZodOptional<z.ZodBoolean>;
1311
- 'order[createdAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1312
- 'order[updatedAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1313
- page: z.ZodOptional<z.ZodNumber>;
1314
- } & {
1315
- 'createdAt[before]': z.ZodOptional<z.ZodString>;
1316
- 'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
1317
- 'createdAt[after]': z.ZodOptional<z.ZodString>;
1318
- 'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
1319
- 'updatedAt[before]': z.ZodOptional<z.ZodString>;
1320
- 'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
1321
- 'updatedAt[after]': z.ZodOptional<z.ZodString>;
1322
- 'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
1323
- }, "strip", z.ZodTypeAny, {
1324
- method?: "stripe" | "bank_transfer" | "cash" | "credit_card" | undefined;
1325
- configurationCompleted?: boolean | undefined;
1326
- 'order[createdAt]'?: "asc" | "desc" | undefined;
1327
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
1328
- page?: number | undefined;
1329
- 'createdAt[before]'?: string | undefined;
1330
- 'createdAt[strictly_before]'?: string | undefined;
1331
- 'createdAt[after]'?: string | undefined;
1332
- 'createdAt[strictly_after]'?: string | undefined;
1333
- 'updatedAt[before]'?: string | undefined;
1334
- 'updatedAt[strictly_before]'?: string | undefined;
1335
- 'updatedAt[after]'?: string | undefined;
1336
- 'updatedAt[strictly_after]'?: string | undefined;
1337
- }, {
1338
- method?: "stripe" | "bank_transfer" | "cash" | "credit_card" | undefined;
1339
- configurationCompleted?: boolean | undefined;
1340
- 'order[createdAt]'?: "asc" | "desc" | undefined;
1341
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
1342
- page?: number | undefined;
1343
- 'createdAt[before]'?: string | undefined;
1344
- 'createdAt[strictly_before]'?: string | undefined;
1345
- 'createdAt[after]'?: string | undefined;
1346
- 'createdAt[strictly_after]'?: string | undefined;
1347
- 'updatedAt[before]'?: string | undefined;
1348
- 'updatedAt[strictly_before]'?: string | undefined;
1349
- 'updatedAt[after]'?: string | undefined;
1350
- 'updatedAt[strictly_after]'?: string | undefined;
1351
- }>;
1352
- readonly headersSchema: undefined;
1353
- constructor(options?: {
1354
- query?: GetPaymentConfigBankTransferListQueryParams;
1355
- });
1356
- getPath(): string;
1357
- parseResponse(data: unknown, rawResponse: AxiosResponse): Paginated<PaymentConfigBankTransfer>;
1358
- }
1359
-
1360
- declare const updatePaymentConfigBankTransferInputSchema: z.ZodObject<{
1361
- iban: z.ZodOptional<z.ZodString>;
1362
- bic: z.ZodOptional<z.ZodString>;
1363
- accountHolder: z.ZodOptional<z.ZodString>;
1364
- bankName: z.ZodOptional<z.ZodString>;
1365
- bankAddress: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1366
- currency: z.ZodOptional<z.ZodString>;
1367
- }, "strip", z.ZodTypeAny, {
1368
- iban?: string | undefined;
1369
- bic?: string | undefined;
1370
- accountHolder?: string | undefined;
1371
- bankName?: string | undefined;
1372
- bankAddress?: string | null | undefined;
1373
- currency?: string | undefined;
1374
- }, {
1375
- iban?: string | undefined;
1376
- bic?: string | undefined;
1377
- accountHolder?: string | undefined;
1378
- bankName?: string | undefined;
1379
- bankAddress?: string | null | undefined;
1380
- currency?: string | undefined;
1381
- }>;
1382
- type UpdatePaymentConfigBankTransferInput = z.infer<typeof updatePaymentConfigBankTransferInputSchema>;
1383
- declare const updatePaymentConfigBankTransferResponseSchema: z.ZodObject<Omit<{
1384
- id: z.ZodString;
1385
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
1386
- configurationCompleted: z.ZodBoolean;
1387
- createdAt: z.ZodEffects<z.ZodString, string, string>;
1388
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
1389
- }, "method"> & {
1390
- method: z.ZodEnum<["bank_transfer"]>;
1391
- iban: z.ZodString;
1392
- bic: z.ZodString;
1393
- accountHolder: z.ZodString;
1394
- bankName: z.ZodString;
1395
- bankAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1396
- currency: z.ZodString;
1397
- } & {
1398
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
1399
- }, "strip", z.ZodTypeAny, {
1400
- id: string;
1401
- method: "bank_transfer";
1402
- createdAt: string;
1403
- updatedAt: string;
1404
- configurationCompleted: boolean;
1405
- pointOfSale: string;
1406
- iban: string;
1407
- bic: string;
1408
- accountHolder: string;
1409
- bankName: string;
1410
- currency: string;
1411
- bankAddress?: string | null | undefined;
1412
- }, {
1413
- id: string;
1414
- method: "bank_transfer";
1415
- createdAt: string;
1416
- updatedAt: string;
1417
- configurationCompleted: boolean;
1418
- pointOfSale: string;
1419
- iban: string;
1420
- bic: string;
1421
- accountHolder: string;
1422
- bankName: string;
1423
- currency: string;
1424
- bankAddress?: string | null | undefined;
1425
- }>;
1426
- type UpdatePaymentConfigBankTransferResponse = PaymentConfigBankTransferDetails;
1427
- declare class UpdatePaymentConfigBankTransfer extends AbstractApiRequest<UpdatePaymentConfigBankTransferInput, UpdatePaymentConfigBankTransferResponse> {
1428
- readonly method = "PATCH";
1429
- readonly contentType = "application/merge-patch+json";
1430
- readonly accept = "application/json";
1431
- readonly inputSchema: z.ZodObject<{
1432
- iban: z.ZodOptional<z.ZodString>;
1433
- bic: z.ZodOptional<z.ZodString>;
1434
- accountHolder: z.ZodOptional<z.ZodString>;
1435
- bankName: z.ZodOptional<z.ZodString>;
1436
- bankAddress: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1437
- currency: z.ZodOptional<z.ZodString>;
1438
- }, "strip", z.ZodTypeAny, {
1439
- iban?: string | undefined;
1440
- bic?: string | undefined;
1441
- accountHolder?: string | undefined;
1442
- bankName?: string | undefined;
1443
- bankAddress?: string | null | undefined;
1444
- currency?: string | undefined;
1445
- }, {
1446
- iban?: string | undefined;
1447
- bic?: string | undefined;
1448
- accountHolder?: string | undefined;
1449
- bankName?: string | undefined;
1450
- bankAddress?: string | null | undefined;
1451
- currency?: string | undefined;
1452
- }>;
1453
- readonly outputSchema: z.ZodObject<Omit<{
1454
- id: z.ZodString;
1455
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
1456
- configurationCompleted: z.ZodBoolean;
1457
- createdAt: z.ZodEffects<z.ZodString, string, string>;
1458
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
1459
- }, "method"> & {
1460
- method: z.ZodEnum<["bank_transfer"]>;
1461
- iban: z.ZodString;
1462
- bic: z.ZodString;
1463
- accountHolder: z.ZodString;
1464
- bankName: z.ZodString;
1465
- bankAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1466
- currency: z.ZodString;
1467
- } & {
1468
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
1469
- }, "strip", z.ZodTypeAny, {
1470
- id: string;
1471
- method: "bank_transfer";
1472
- createdAt: string;
1473
- updatedAt: string;
1474
- configurationCompleted: boolean;
1475
- pointOfSale: string;
1476
- iban: string;
1477
- bic: string;
1478
- accountHolder: string;
1479
- bankName: string;
1480
- currency: string;
1481
- bankAddress?: string | null | undefined;
1482
- }, {
1483
- id: string;
1484
- method: "bank_transfer";
1485
- createdAt: string;
1486
- updatedAt: string;
1487
- configurationCompleted: boolean;
1488
- pointOfSale: string;
1489
- iban: string;
1490
- bic: string;
1491
- accountHolder: string;
1492
- bankName: string;
1493
- currency: string;
1494
- bankAddress?: string | null | undefined;
1495
- }>;
1496
- readonly querySchema: undefined;
1497
- readonly headersSchema: undefined;
1498
- private readonly paymentConfigId;
1499
- constructor(paymentConfigId: string, input: UpdatePaymentConfigBankTransferInput);
1500
- getPath(): string;
1501
- }
1502
-
1503
- declare const createPaymentConfigCashInputSchema: z.ZodObject<Pick<Omit<{
1504
- id: z.ZodString;
1505
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
1506
- configurationCompleted: z.ZodBoolean;
1507
- createdAt: z.ZodEffects<z.ZodString, string, string>;
1508
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
1509
- }, "method"> & {
1510
- method: z.ZodEnum<["cash"]>;
1511
- } & {
1512
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
1513
- }, "pointOfSale">, "strip", z.ZodTypeAny, {
1514
- pointOfSale: string;
1515
- }, {
1516
- pointOfSale: string;
1517
- }>;
1518
- type CreatePaymentConfigCashInput = z.infer<typeof createPaymentConfigCashInputSchema>;
1519
- declare const createPaymentConfigCashResponseSchema: z.ZodObject<Omit<{
1520
- id: z.ZodString;
1521
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
1522
- configurationCompleted: z.ZodBoolean;
1523
- createdAt: z.ZodEffects<z.ZodString, string, string>;
1524
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
1525
- }, "method"> & {
1526
- method: z.ZodEnum<["cash"]>;
1527
- } & {
1528
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
1529
- }, "strip", z.ZodTypeAny, {
1530
- id: string;
1531
- method: "cash";
1532
- createdAt: string;
1533
- updatedAt: string;
1534
- configurationCompleted: boolean;
1535
- pointOfSale: string;
1536
- }, {
1537
- id: string;
1538
- method: "cash";
1539
- createdAt: string;
1540
- updatedAt: string;
1541
- configurationCompleted: boolean;
1542
- pointOfSale: string;
1543
- }>;
1544
- type CreatePaymentConfigCashResponse = PaymentConfigCashDetails;
1545
- declare class CreatePaymentConfigCash extends AbstractApiRequest<CreatePaymentConfigCashInput, CreatePaymentConfigCashResponse> {
1546
- readonly method = "POST";
1547
- readonly contentType = "application/json";
1548
- readonly accept = "application/json";
1549
- readonly inputSchema: z.ZodObject<Pick<Omit<{
1550
- id: z.ZodString;
1551
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
1552
- configurationCompleted: z.ZodBoolean;
1553
- createdAt: z.ZodEffects<z.ZodString, string, string>;
1554
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
1555
- }, "method"> & {
1556
- method: z.ZodEnum<["cash"]>;
1557
- } & {
1558
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
1559
- }, "pointOfSale">, "strip", z.ZodTypeAny, {
1560
- pointOfSale: string;
1561
- }, {
1562
- pointOfSale: string;
1563
- }>;
1564
- readonly outputSchema: z.ZodObject<Omit<{
1565
- id: z.ZodString;
1566
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
1567
- configurationCompleted: z.ZodBoolean;
1568
- createdAt: z.ZodEffects<z.ZodString, string, string>;
1569
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
1570
- }, "method"> & {
1571
- method: z.ZodEnum<["cash"]>;
1572
- } & {
1573
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
1574
- }, "strip", z.ZodTypeAny, {
1575
- id: string;
1576
- method: "cash";
1577
- createdAt: string;
1578
- updatedAt: string;
1579
- configurationCompleted: boolean;
1580
- pointOfSale: string;
1581
- }, {
1582
- id: string;
1583
- method: "cash";
1584
- createdAt: string;
1585
- updatedAt: string;
1586
- configurationCompleted: boolean;
1587
- pointOfSale: string;
1588
- }>;
1589
- readonly querySchema: undefined;
1590
- readonly headersSchema: undefined;
1591
- constructor(input: CreatePaymentConfigCashInput);
1592
- getPath(): string;
1593
- }
1594
-
1595
- declare const deletePaymentConfigCashInputSchema: z.ZodUndefined;
1596
- declare const deletePaymentConfigCashResponseSchema: z.ZodUndefined;
1597
- declare class DeletePaymentConfigCash extends AbstractApiRequest<void, void> {
1598
- readonly method = "DELETE";
1599
- readonly contentType = "application/json";
1600
- readonly accept = "application/json";
1601
- readonly inputSchema: z.ZodUndefined;
1602
- readonly outputSchema: z.ZodUndefined;
1603
- readonly querySchema: undefined;
1604
- readonly headersSchema: undefined;
1605
- private readonly paymentConfigId;
1606
- constructor(paymentConfigId: string);
1607
- getPath(): string;
1608
- }
1609
-
1610
- declare const getPaymentConfigCashDetailsInputSchema: z.ZodUndefined;
1611
- declare const getPaymentConfigCashDetailsResponseSchema: z.ZodObject<Omit<{
1612
- id: z.ZodString;
1613
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
1614
- configurationCompleted: z.ZodBoolean;
1615
- createdAt: z.ZodEffects<z.ZodString, string, string>;
1616
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
1617
- }, "method"> & {
1618
- method: z.ZodEnum<["cash"]>;
1619
- } & {
1620
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
1621
- }, "strip", z.ZodTypeAny, {
1622
- id: string;
1623
- method: "cash";
1624
- createdAt: string;
1625
- updatedAt: string;
1626
- configurationCompleted: boolean;
1627
- pointOfSale: string;
1628
- }, {
1629
- id: string;
1630
- method: "cash";
1631
- createdAt: string;
1632
- updatedAt: string;
1633
- configurationCompleted: boolean;
1634
- pointOfSale: string;
1635
- }>;
1636
- type GetPaymentConfigCashDetailsResponse = PaymentConfigCashDetails;
1637
- declare class GetPaymentConfigCashDetails extends AbstractApiRequest<void, GetPaymentConfigCashDetailsResponse> {
1638
- readonly method = "GET";
1639
- readonly contentType = "application/json";
1640
- readonly accept = "application/json";
1641
- readonly inputSchema: z.ZodUndefined;
1642
- readonly outputSchema: z.ZodObject<Omit<{
1643
- id: z.ZodString;
1644
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
1645
- configurationCompleted: z.ZodBoolean;
1646
- createdAt: z.ZodEffects<z.ZodString, string, string>;
1647
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
1648
- }, "method"> & {
1649
- method: z.ZodEnum<["cash"]>;
1650
- } & {
1651
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
1652
- }, "strip", z.ZodTypeAny, {
1653
- id: string;
1654
- method: "cash";
1655
- createdAt: string;
1656
- updatedAt: string;
1657
- configurationCompleted: boolean;
1658
- pointOfSale: string;
1659
- }, {
1660
- id: string;
1661
- method: "cash";
1662
- createdAt: string;
1663
- updatedAt: string;
1664
- configurationCompleted: boolean;
1665
- pointOfSale: string;
1666
- }>;
1667
- readonly querySchema: undefined;
1668
- readonly headersSchema: undefined;
1669
- private readonly paymentConfigId;
1670
- constructor(paymentConfigId: string);
1671
- getPath(): string;
1672
- }
1673
-
1674
- type GetPaymentConfigCashListQueryParams = PaymentConfigsQueryParams;
1675
- declare const getPaymentConfigCashListResponseSchema: z.ZodObject<{
1676
- data: z.ZodArray<z.ZodObject<Omit<{
1677
- id: z.ZodString;
1678
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
1679
- configurationCompleted: z.ZodBoolean;
1680
- createdAt: z.ZodEffects<z.ZodString, string, string>;
1681
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
1682
- }, "method"> & {
1683
- method: z.ZodEnum<["cash"]>;
1684
- }, "strip", z.ZodTypeAny, {
1685
- id: string;
1686
- method: "cash";
1687
- createdAt: string;
1688
- updatedAt: string;
1689
- configurationCompleted: boolean;
1690
- }, {
1691
- id: string;
1692
- method: "cash";
1693
- createdAt: string;
1694
- updatedAt: string;
1695
- configurationCompleted: boolean;
1696
- }>, "many">;
1697
- pagination: z.ZodObject<{
1698
- from: z.ZodNumber;
1699
- to: z.ZodNumber;
1700
- itemsPerPage: z.ZodNumber;
1701
- totalItems: z.ZodNumber;
1702
- currentPage: z.ZodNumber;
1703
- lastPage: z.ZodNumber;
1704
- }, "strip", z.ZodTypeAny, {
1705
- from: number;
1706
- to: number;
1707
- itemsPerPage: number;
1708
- totalItems: number;
1709
- currentPage: number;
1710
- lastPage: number;
1711
- }, {
1712
- from: number;
1713
- to: number;
1714
- itemsPerPage: number;
1715
- totalItems: number;
1716
- currentPage: number;
1717
- lastPage: number;
1718
- }>;
1719
- }, "strip", z.ZodTypeAny, {
1720
- data: {
1721
- id: string;
1722
- method: "cash";
1723
- createdAt: string;
1724
- updatedAt: string;
1725
- configurationCompleted: boolean;
1726
- }[];
1727
- pagination: {
1728
- from: number;
1729
- to: number;
1730
- itemsPerPage: number;
1731
- totalItems: number;
1732
- currentPage: number;
1733
- lastPage: number;
1734
- };
1735
- }, {
1736
- data: {
1737
- id: string;
1738
- method: "cash";
1739
- createdAt: string;
1740
- updatedAt: string;
1741
- configurationCompleted: boolean;
1742
- }[];
1743
- pagination: {
1744
- from: number;
1745
- to: number;
1746
- itemsPerPage: number;
1747
- totalItems: number;
1748
- currentPage: number;
1749
- lastPage: number;
1750
- };
1751
- }>;
1752
- type GetPaymentConfigCashListResponse = z.infer<typeof getPaymentConfigCashListResponseSchema>;
1753
- declare const getPaymentConfigCashListInputSchema: z.ZodUndefined;
1754
- declare class GetPaymentConfigCashList extends AbstractApiRequest<void, GetPaymentConfigCashListResponse, GetPaymentConfigCashListQueryParams> {
1755
- readonly method = "GET";
1756
- readonly contentType = "application/json";
1757
- readonly accept = "application/json";
1758
- readonly inputSchema: z.ZodUndefined;
1759
- readonly outputSchema: z.ZodObject<{
1760
- data: z.ZodArray<z.ZodObject<Omit<{
1761
- id: z.ZodString;
1762
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
1763
- configurationCompleted: z.ZodBoolean;
1764
- createdAt: z.ZodEffects<z.ZodString, string, string>;
1765
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
1766
- }, "method"> & {
1767
- method: z.ZodEnum<["cash"]>;
1768
- }, "strip", z.ZodTypeAny, {
1769
- id: string;
1770
- method: "cash";
1771
- createdAt: string;
1772
- updatedAt: string;
1773
- configurationCompleted: boolean;
1774
- }, {
1775
- id: string;
1776
- method: "cash";
1777
- createdAt: string;
1778
- updatedAt: string;
1779
- configurationCompleted: boolean;
1780
- }>, "many">;
1781
- pagination: z.ZodObject<{
1782
- from: z.ZodNumber;
1783
- to: z.ZodNumber;
1784
- itemsPerPage: z.ZodNumber;
1785
- totalItems: z.ZodNumber;
1786
- currentPage: z.ZodNumber;
1787
- lastPage: z.ZodNumber;
1788
- }, "strip", z.ZodTypeAny, {
1789
- from: number;
1790
- to: number;
1791
- itemsPerPage: number;
1792
- totalItems: number;
1793
- currentPage: number;
1794
- lastPage: number;
1795
- }, {
1796
- from: number;
1797
- to: number;
1798
- itemsPerPage: number;
1799
- totalItems: number;
1800
- currentPage: number;
1801
- lastPage: number;
1802
- }>;
1803
- }, "strip", z.ZodTypeAny, {
1804
- data: {
1805
- id: string;
1806
- method: "cash";
1807
- createdAt: string;
1808
- updatedAt: string;
1809
- configurationCompleted: boolean;
1810
- }[];
1811
- pagination: {
1812
- from: number;
1813
- to: number;
1814
- itemsPerPage: number;
1815
- totalItems: number;
1816
- currentPage: number;
1817
- lastPage: number;
1818
- };
1819
- }, {
1820
- data: {
1821
- id: string;
1822
- method: "cash";
1823
- createdAt: string;
1824
- updatedAt: string;
1825
- configurationCompleted: boolean;
1826
- }[];
1827
- pagination: {
1828
- from: number;
1829
- to: number;
1830
- itemsPerPage: number;
1831
- totalItems: number;
1832
- currentPage: number;
1833
- lastPage: number;
1834
- };
1835
- }>;
1836
- readonly querySchema: z.ZodObject<{
1837
- method: z.ZodOptional<z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>>;
1838
- configurationCompleted: z.ZodOptional<z.ZodBoolean>;
1839
- 'order[createdAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1840
- 'order[updatedAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1841
- page: z.ZodOptional<z.ZodNumber>;
1842
- } & {
1843
- 'createdAt[before]': z.ZodOptional<z.ZodString>;
1844
- 'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
1845
- 'createdAt[after]': z.ZodOptional<z.ZodString>;
1846
- 'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
1847
- 'updatedAt[before]': z.ZodOptional<z.ZodString>;
1848
- 'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
1849
- 'updatedAt[after]': z.ZodOptional<z.ZodString>;
1850
- 'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
1851
- }, "strip", z.ZodTypeAny, {
1852
- method?: "stripe" | "bank_transfer" | "cash" | "credit_card" | undefined;
1853
- configurationCompleted?: boolean | undefined;
1854
- 'order[createdAt]'?: "asc" | "desc" | undefined;
1855
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
1856
- page?: number | undefined;
1857
- 'createdAt[before]'?: string | undefined;
1858
- 'createdAt[strictly_before]'?: string | undefined;
1859
- 'createdAt[after]'?: string | undefined;
1860
- 'createdAt[strictly_after]'?: string | undefined;
1861
- 'updatedAt[before]'?: string | undefined;
1862
- 'updatedAt[strictly_before]'?: string | undefined;
1863
- 'updatedAt[after]'?: string | undefined;
1864
- 'updatedAt[strictly_after]'?: string | undefined;
1865
- }, {
1866
- method?: "stripe" | "bank_transfer" | "cash" | "credit_card" | undefined;
1867
- configurationCompleted?: boolean | undefined;
1868
- 'order[createdAt]'?: "asc" | "desc" | undefined;
1869
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
1870
- page?: number | undefined;
1871
- 'createdAt[before]'?: string | undefined;
1872
- 'createdAt[strictly_before]'?: string | undefined;
1873
- 'createdAt[after]'?: string | undefined;
1874
- 'createdAt[strictly_after]'?: string | undefined;
1875
- 'updatedAt[before]'?: string | undefined;
1876
- 'updatedAt[strictly_before]'?: string | undefined;
1877
- 'updatedAt[after]'?: string | undefined;
1878
- 'updatedAt[strictly_after]'?: string | undefined;
1879
- }>;
1880
- readonly headersSchema: undefined;
1881
- constructor(options?: {
1882
- query?: GetPaymentConfigCashListQueryParams;
1883
- });
1884
- getPath(): string;
1885
- parseResponse(data: unknown, rawResponse: AxiosResponse): Paginated<PaymentConfigCash>;
1886
- }
1887
-
1888
- declare const createPaymentConfigCreditCardInputSchema: z.ZodObject<Pick<Omit<{
1889
- id: z.ZodString;
1890
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
1891
- configurationCompleted: z.ZodBoolean;
1892
- createdAt: z.ZodEffects<z.ZodString, string, string>;
1893
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
1894
- }, "method"> & {
1895
- method: z.ZodEnum<["credit_card"]>;
1896
- } & {
1897
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
1898
- }, "pointOfSale">, "strip", z.ZodTypeAny, {
1899
- pointOfSale: string;
1900
- }, {
1901
- pointOfSale: string;
1902
- }>;
1903
- type CreatePaymentConfigCreditCardInput = z.infer<typeof createPaymentConfigCreditCardInputSchema>;
1904
- declare const createPaymentConfigCreditCardResponseSchema: z.ZodObject<Omit<{
1905
- id: z.ZodString;
1906
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
1907
- configurationCompleted: z.ZodBoolean;
1908
- createdAt: z.ZodEffects<z.ZodString, string, string>;
1909
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
1910
- }, "method"> & {
1911
- method: z.ZodEnum<["credit_card"]>;
1912
- } & {
1913
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
1914
- }, "strip", z.ZodTypeAny, {
1915
- id: string;
1916
- method: "credit_card";
1917
- createdAt: string;
1918
- updatedAt: string;
1919
- configurationCompleted: boolean;
1920
- pointOfSale: string;
1921
- }, {
1922
- id: string;
1923
- method: "credit_card";
1924
- createdAt: string;
1925
- updatedAt: string;
1926
- configurationCompleted: boolean;
1927
- pointOfSale: string;
1928
- }>;
1929
- type CreatePaymentConfigCreditCardResponse = PaymentConfigCreditCardDetails;
1930
- declare class CreatePaymentConfigCreditCard extends AbstractApiRequest<CreatePaymentConfigCreditCardInput, CreatePaymentConfigCreditCardResponse> {
1931
- readonly method = "POST";
1932
- readonly contentType = "application/json";
1933
- readonly accept = "application/json";
1934
- readonly inputSchema: z.ZodObject<Pick<Omit<{
1935
- id: z.ZodString;
1936
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
1937
- configurationCompleted: z.ZodBoolean;
1938
- createdAt: z.ZodEffects<z.ZodString, string, string>;
1939
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
1940
- }, "method"> & {
1941
- method: z.ZodEnum<["credit_card"]>;
1942
- } & {
1943
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
1944
- }, "pointOfSale">, "strip", z.ZodTypeAny, {
1945
- pointOfSale: string;
1946
- }, {
1947
- pointOfSale: string;
1948
- }>;
1949
- readonly outputSchema: z.ZodObject<Omit<{
1950
- id: z.ZodString;
1951
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
1952
- configurationCompleted: z.ZodBoolean;
1953
- createdAt: z.ZodEffects<z.ZodString, string, string>;
1954
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
1955
- }, "method"> & {
1956
- method: z.ZodEnum<["credit_card"]>;
1957
- } & {
1958
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
1959
- }, "strip", z.ZodTypeAny, {
1960
- id: string;
1961
- method: "credit_card";
1962
- createdAt: string;
1963
- updatedAt: string;
1964
- configurationCompleted: boolean;
1965
- pointOfSale: string;
1966
- }, {
1967
- id: string;
1968
- method: "credit_card";
1969
- createdAt: string;
1970
- updatedAt: string;
1971
- configurationCompleted: boolean;
1972
- pointOfSale: string;
1973
- }>;
1974
- readonly querySchema: undefined;
1975
- readonly headersSchema: undefined;
1976
- constructor(input: CreatePaymentConfigCreditCardInput);
1977
- getPath(): string;
1978
- }
1979
-
1980
- declare const deletePaymentConfigCreditCardInputSchema: z.ZodUndefined;
1981
- declare const deletePaymentConfigCreditCardResponseSchema: z.ZodUndefined;
1982
- declare class DeletePaymentConfigCreditCard extends AbstractApiRequest<void, void> {
1983
- readonly method = "DELETE";
1984
- readonly contentType = "application/json";
1985
- readonly accept = "application/json";
1986
- readonly inputSchema: z.ZodUndefined;
1987
- readonly outputSchema: z.ZodUndefined;
1988
- readonly querySchema: undefined;
1989
- readonly headersSchema: undefined;
1990
- private readonly paymentConfigId;
1991
- constructor(paymentConfigId: string);
1992
- getPath(): string;
1993
- }
1994
-
1995
- declare const getPaymentConfigCreditCardDetailsInputSchema: z.ZodUndefined;
1996
- declare const getPaymentConfigCreditCardDetailsResponseSchema: z.ZodObject<Omit<{
1997
- id: z.ZodString;
1998
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
1999
- configurationCompleted: z.ZodBoolean;
2000
- createdAt: z.ZodEffects<z.ZodString, string, string>;
2001
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
2002
- }, "method"> & {
2003
- method: z.ZodEnum<["credit_card"]>;
2004
- } & {
2005
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
2006
- }, "strip", z.ZodTypeAny, {
2007
- id: string;
2008
- method: "credit_card";
2009
- createdAt: string;
2010
- updatedAt: string;
2011
- configurationCompleted: boolean;
2012
- pointOfSale: string;
2013
- }, {
2014
- id: string;
2015
- method: "credit_card";
2016
- createdAt: string;
2017
- updatedAt: string;
2018
- configurationCompleted: boolean;
2019
- pointOfSale: string;
2020
- }>;
2021
- type GetPaymentConfigCreditCardDetailsResponse = PaymentConfigCreditCardDetails;
2022
- declare class GetPaymentConfigCreditCardDetails extends AbstractApiRequest<void, GetPaymentConfigCreditCardDetailsResponse> {
2023
- readonly method = "GET";
2024
- readonly contentType = "application/json";
2025
- readonly accept = "application/json";
2026
- readonly inputSchema: z.ZodUndefined;
2027
- readonly outputSchema: z.ZodObject<Omit<{
2028
- id: z.ZodString;
2029
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
2030
- configurationCompleted: z.ZodBoolean;
2031
- createdAt: z.ZodEffects<z.ZodString, string, string>;
2032
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
2033
- }, "method"> & {
2034
- method: z.ZodEnum<["credit_card"]>;
2035
- } & {
2036
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
2037
- }, "strip", z.ZodTypeAny, {
2038
- id: string;
2039
- method: "credit_card";
2040
- createdAt: string;
2041
- updatedAt: string;
2042
- configurationCompleted: boolean;
2043
- pointOfSale: string;
2044
- }, {
2045
- id: string;
2046
- method: "credit_card";
2047
- createdAt: string;
2048
- updatedAt: string;
2049
- configurationCompleted: boolean;
2050
- pointOfSale: string;
2051
- }>;
2052
- readonly querySchema: undefined;
2053
- readonly headersSchema: undefined;
2054
- private readonly paymentConfigId;
2055
- constructor(paymentConfigId: string);
2056
- getPath(): string;
2057
- }
2058
-
2059
- type GetPaymentConfigCreditCardListQueryParams = PaymentConfigsQueryParams;
2060
- declare const getPaymentConfigCreditCardListResponseSchema: z.ZodObject<{
2061
- data: z.ZodArray<z.ZodObject<Omit<{
2062
- id: z.ZodString;
2063
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
2064
- configurationCompleted: z.ZodBoolean;
2065
- createdAt: z.ZodEffects<z.ZodString, string, string>;
2066
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
2067
- }, "method"> & {
2068
- method: z.ZodEnum<["credit_card"]>;
2069
- }, "strip", z.ZodTypeAny, {
2070
- id: string;
2071
- method: "credit_card";
2072
- createdAt: string;
2073
- updatedAt: string;
2074
- configurationCompleted: boolean;
2075
- }, {
2076
- id: string;
2077
- method: "credit_card";
2078
- createdAt: string;
2079
- updatedAt: string;
2080
- configurationCompleted: boolean;
2081
- }>, "many">;
2082
- pagination: z.ZodObject<{
2083
- from: z.ZodNumber;
2084
- to: z.ZodNumber;
2085
- itemsPerPage: z.ZodNumber;
2086
- totalItems: z.ZodNumber;
2087
- currentPage: z.ZodNumber;
2088
- lastPage: z.ZodNumber;
2089
- }, "strip", z.ZodTypeAny, {
2090
- from: number;
2091
- to: number;
2092
- itemsPerPage: number;
2093
- totalItems: number;
2094
- currentPage: number;
2095
- lastPage: number;
2096
- }, {
2097
- from: number;
2098
- to: number;
2099
- itemsPerPage: number;
2100
- totalItems: number;
2101
- currentPage: number;
2102
- lastPage: number;
2103
- }>;
2104
- }, "strip", z.ZodTypeAny, {
2105
- data: {
2106
- id: string;
2107
- method: "credit_card";
2108
- createdAt: string;
2109
- updatedAt: string;
2110
- configurationCompleted: boolean;
2111
- }[];
2112
- pagination: {
2113
- from: number;
2114
- to: number;
2115
- itemsPerPage: number;
2116
- totalItems: number;
2117
- currentPage: number;
2118
- lastPage: number;
2119
- };
2120
- }, {
2121
- data: {
2122
- id: string;
2123
- method: "credit_card";
2124
- createdAt: string;
2125
- updatedAt: string;
2126
- configurationCompleted: boolean;
2127
- }[];
2128
- pagination: {
2129
- from: number;
2130
- to: number;
2131
- itemsPerPage: number;
2132
- totalItems: number;
2133
- currentPage: number;
2134
- lastPage: number;
2135
- };
2136
- }>;
2137
- type GetPaymentConfigCreditCardListResponse = z.infer<typeof getPaymentConfigCreditCardListResponseSchema>;
2138
- declare const getPaymentConfigCreditCardListInputSchema: z.ZodUndefined;
2139
- declare class GetPaymentConfigCreditCardList extends AbstractApiRequest<void, GetPaymentConfigCreditCardListResponse, GetPaymentConfigCreditCardListQueryParams> {
2140
- readonly method = "GET";
2141
- readonly contentType = "application/json";
2142
- readonly accept = "application/json";
2143
- readonly inputSchema: z.ZodUndefined;
2144
- readonly outputSchema: z.ZodObject<{
2145
- data: z.ZodArray<z.ZodObject<Omit<{
2146
- id: z.ZodString;
2147
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
2148
- configurationCompleted: z.ZodBoolean;
2149
- createdAt: z.ZodEffects<z.ZodString, string, string>;
2150
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
2151
- }, "method"> & {
2152
- method: z.ZodEnum<["credit_card"]>;
2153
- }, "strip", z.ZodTypeAny, {
2154
- id: string;
2155
- method: "credit_card";
2156
- createdAt: string;
2157
- updatedAt: string;
2158
- configurationCompleted: boolean;
2159
- }, {
2160
- id: string;
2161
- method: "credit_card";
2162
- createdAt: string;
2163
- updatedAt: string;
2164
- configurationCompleted: boolean;
2165
- }>, "many">;
2166
- pagination: z.ZodObject<{
2167
- from: z.ZodNumber;
2168
- to: z.ZodNumber;
2169
- itemsPerPage: z.ZodNumber;
2170
- totalItems: z.ZodNumber;
2171
- currentPage: z.ZodNumber;
2172
- lastPage: z.ZodNumber;
2173
- }, "strip", z.ZodTypeAny, {
2174
- from: number;
2175
- to: number;
2176
- itemsPerPage: number;
2177
- totalItems: number;
2178
- currentPage: number;
2179
- lastPage: number;
2180
- }, {
2181
- from: number;
2182
- to: number;
2183
- itemsPerPage: number;
2184
- totalItems: number;
2185
- currentPage: number;
2186
- lastPage: number;
2187
- }>;
2188
- }, "strip", z.ZodTypeAny, {
2189
- data: {
2190
- id: string;
2191
- method: "credit_card";
2192
- createdAt: string;
2193
- updatedAt: string;
2194
- configurationCompleted: boolean;
2195
- }[];
2196
- pagination: {
2197
- from: number;
2198
- to: number;
2199
- itemsPerPage: number;
2200
- totalItems: number;
2201
- currentPage: number;
2202
- lastPage: number;
2203
- };
2204
- }, {
2205
- data: {
2206
- id: string;
2207
- method: "credit_card";
2208
- createdAt: string;
2209
- updatedAt: string;
2210
- configurationCompleted: boolean;
2211
- }[];
2212
- pagination: {
2213
- from: number;
2214
- to: number;
2215
- itemsPerPage: number;
2216
- totalItems: number;
2217
- currentPage: number;
2218
- lastPage: number;
2219
- };
2220
- }>;
2221
- readonly querySchema: z.ZodObject<{
2222
- method: z.ZodOptional<z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>>;
2223
- configurationCompleted: z.ZodOptional<z.ZodBoolean>;
2224
- 'order[createdAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
2225
- 'order[updatedAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
2226
- page: z.ZodOptional<z.ZodNumber>;
2227
- } & {
2228
- 'createdAt[before]': z.ZodOptional<z.ZodString>;
2229
- 'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
2230
- 'createdAt[after]': z.ZodOptional<z.ZodString>;
2231
- 'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
2232
- 'updatedAt[before]': z.ZodOptional<z.ZodString>;
2233
- 'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
2234
- 'updatedAt[after]': z.ZodOptional<z.ZodString>;
2235
- 'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
2236
- }, "strip", z.ZodTypeAny, {
2237
- method?: "stripe" | "bank_transfer" | "cash" | "credit_card" | undefined;
2238
- configurationCompleted?: boolean | undefined;
2239
- 'order[createdAt]'?: "asc" | "desc" | undefined;
2240
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
2241
- page?: number | undefined;
2242
- 'createdAt[before]'?: string | undefined;
2243
- 'createdAt[strictly_before]'?: string | undefined;
2244
- 'createdAt[after]'?: string | undefined;
2245
- 'createdAt[strictly_after]'?: string | undefined;
2246
- 'updatedAt[before]'?: string | undefined;
2247
- 'updatedAt[strictly_before]'?: string | undefined;
2248
- 'updatedAt[after]'?: string | undefined;
2249
- 'updatedAt[strictly_after]'?: string | undefined;
2250
- }, {
2251
- method?: "stripe" | "bank_transfer" | "cash" | "credit_card" | undefined;
2252
- configurationCompleted?: boolean | undefined;
2253
- 'order[createdAt]'?: "asc" | "desc" | undefined;
2254
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
2255
- page?: number | undefined;
2256
- 'createdAt[before]'?: string | undefined;
2257
- 'createdAt[strictly_before]'?: string | undefined;
2258
- 'createdAt[after]'?: string | undefined;
2259
- 'createdAt[strictly_after]'?: string | undefined;
2260
- 'updatedAt[before]'?: string | undefined;
2261
- 'updatedAt[strictly_before]'?: string | undefined;
2262
- 'updatedAt[after]'?: string | undefined;
2263
- 'updatedAt[strictly_after]'?: string | undefined;
2264
- }>;
2265
- readonly headersSchema: undefined;
2266
- constructor(options?: {
2267
- query?: GetPaymentConfigCreditCardListQueryParams;
2268
- });
2269
- getPath(): string;
2270
- parseResponse(data: unknown, rawResponse: AxiosResponse): Paginated<PaymentConfigCreditCard>;
2271
- }
2272
-
2273
- declare const deletePaymentConfigInputSchema: z.ZodUndefined;
2274
- declare const deletePaymentConfigResponseSchema: z.ZodUndefined;
2275
- declare class DeletePaymentConfig extends AbstractApiRequest<void, void> {
2276
- readonly method = "DELETE";
2277
- readonly contentType = "application/json";
2278
- readonly accept = "application/json";
2279
- readonly inputSchema: z.ZodUndefined;
2280
- readonly outputSchema: z.ZodUndefined;
2281
- readonly querySchema: undefined;
2282
- readonly headersSchema: undefined;
2283
- private readonly paymentConfigId;
2284
- constructor(paymentConfigId: string);
2285
- getPath(): string;
2286
- }
2287
-
2288
- declare const getPaymentConfigDetailsInputSchema: z.ZodUndefined;
2289
- declare const getPaymentConfigDetailsResponseSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObject<Omit<{
2290
- id: z.ZodString;
2291
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
2292
- configurationCompleted: z.ZodBoolean;
2293
- createdAt: z.ZodEffects<z.ZodString, string, string>;
2294
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
2295
- }, "method"> & {
2296
- method: z.ZodEnum<["bank_transfer"]>;
2297
- iban: z.ZodString;
2298
- bic: z.ZodString;
2299
- accountHolder: z.ZodString;
2300
- bankName: z.ZodString;
2301
- bankAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2302
- currency: z.ZodString;
2303
- } & {
2304
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
2305
- }, "strip", z.ZodTypeAny, {
2306
- id: string;
2307
- method: "bank_transfer";
2308
- createdAt: string;
2309
- updatedAt: string;
2310
- configurationCompleted: boolean;
2311
- pointOfSale: string;
2312
- iban: string;
2313
- bic: string;
2314
- accountHolder: string;
2315
- bankName: string;
2316
- currency: string;
2317
- bankAddress?: string | null | undefined;
2318
- }, {
2319
- id: string;
2320
- method: "bank_transfer";
2321
- createdAt: string;
2322
- updatedAt: string;
2323
- configurationCompleted: boolean;
2324
- pointOfSale: string;
2325
- iban: string;
2326
- bic: string;
2327
- accountHolder: string;
2328
- bankName: string;
2329
- currency: string;
2330
- bankAddress?: string | null | undefined;
2331
- }>, z.ZodObject<Omit<{
2332
- id: z.ZodString;
2333
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
2334
- configurationCompleted: z.ZodBoolean;
2335
- createdAt: z.ZodEffects<z.ZodString, string, string>;
2336
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
2337
- }, "method"> & {
2338
- method: z.ZodEnum<["cash"]>;
2339
- } & {
2340
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
2341
- }, "strip", z.ZodTypeAny, {
2342
- id: string;
2343
- method: "cash";
2344
- createdAt: string;
2345
- updatedAt: string;
2346
- configurationCompleted: boolean;
2347
- pointOfSale: string;
2348
- }, {
2349
- id: string;
2350
- method: "cash";
2351
- createdAt: string;
2352
- updatedAt: string;
2353
- configurationCompleted: boolean;
2354
- pointOfSale: string;
2355
- }>, z.ZodObject<Omit<{
2356
- id: z.ZodString;
2357
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
2358
- configurationCompleted: z.ZodBoolean;
2359
- createdAt: z.ZodEffects<z.ZodString, string, string>;
2360
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
2361
- }, "method"> & {
2362
- method: z.ZodEnum<["credit_card"]>;
2363
- } & {
2364
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
2365
- }, "strip", z.ZodTypeAny, {
2366
- id: string;
2367
- method: "credit_card";
2368
- createdAt: string;
2369
- updatedAt: string;
2370
- configurationCompleted: boolean;
2371
- pointOfSale: string;
2372
- }, {
2373
- id: string;
2374
- method: "credit_card";
2375
- createdAt: string;
2376
- updatedAt: string;
2377
- configurationCompleted: boolean;
2378
- pointOfSale: string;
2379
- }>, z.ZodObject<Omit<{
2380
- id: z.ZodString;
2381
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
2382
- configurationCompleted: z.ZodBoolean;
2383
- createdAt: z.ZodEffects<z.ZodString, string, string>;
2384
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
2385
- }, "method"> & {
2386
- method: z.ZodEnum<["stripe"]>;
2387
- secretKey: z.ZodString;
2388
- webhookSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2389
- webhookId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2390
- } & {
2391
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
2392
- }, "strip", z.ZodTypeAny, {
2393
- id: string;
2394
- method: "stripe";
2395
- createdAt: string;
2396
- updatedAt: string;
2397
- configurationCompleted: boolean;
2398
- pointOfSale: string;
2399
- secretKey: string;
2400
- webhookSecret?: string | null | undefined;
2401
- webhookId?: string | null | undefined;
2402
- }, {
2403
- id: string;
2404
- method: "stripe";
2405
- createdAt: string;
2406
- updatedAt: string;
2407
- configurationCompleted: boolean;
2408
- pointOfSale: string;
2409
- secretKey: string;
2410
- webhookSecret?: string | null | undefined;
2411
- webhookId?: string | null | undefined;
2412
- }>]>;
2413
- type GetPaymentConfigDetailsResponse = PaymentConfigDetails;
2414
- declare class GetPaymentConfigDetails extends AbstractApiRequest<void, GetPaymentConfigDetailsResponse> {
2415
- readonly method = "GET";
2416
- readonly contentType = "application/json";
2417
- readonly accept = "application/json";
2418
- readonly inputSchema: z.ZodUndefined;
2419
- readonly outputSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObject<Omit<{
2420
- id: z.ZodString;
2421
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
2422
- configurationCompleted: z.ZodBoolean;
2423
- createdAt: z.ZodEffects<z.ZodString, string, string>;
2424
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
2425
- }, "method"> & {
2426
- method: z.ZodEnum<["bank_transfer"]>;
2427
- iban: z.ZodString;
2428
- bic: z.ZodString;
2429
- accountHolder: z.ZodString;
2430
- bankName: z.ZodString;
2431
- bankAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2432
- currency: z.ZodString;
2433
- } & {
2434
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
2435
- }, "strip", z.ZodTypeAny, {
2436
- id: string;
2437
- method: "bank_transfer";
2438
- createdAt: string;
2439
- updatedAt: string;
2440
- configurationCompleted: boolean;
2441
- pointOfSale: string;
2442
- iban: string;
2443
- bic: string;
2444
- accountHolder: string;
2445
- bankName: string;
2446
- currency: string;
2447
- bankAddress?: string | null | undefined;
2448
- }, {
2449
- id: string;
2450
- method: "bank_transfer";
2451
- createdAt: string;
2452
- updatedAt: string;
2453
- configurationCompleted: boolean;
2454
- pointOfSale: string;
2455
- iban: string;
2456
- bic: string;
2457
- accountHolder: string;
2458
- bankName: string;
2459
- currency: string;
2460
- bankAddress?: string | null | undefined;
2461
- }>, z.ZodObject<Omit<{
2462
- id: z.ZodString;
2463
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
2464
- configurationCompleted: z.ZodBoolean;
2465
- createdAt: z.ZodEffects<z.ZodString, string, string>;
2466
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
2467
- }, "method"> & {
2468
- method: z.ZodEnum<["cash"]>;
2469
- } & {
2470
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
2471
- }, "strip", z.ZodTypeAny, {
2472
- id: string;
2473
- method: "cash";
2474
- createdAt: string;
2475
- updatedAt: string;
2476
- configurationCompleted: boolean;
2477
- pointOfSale: string;
2478
- }, {
2479
- id: string;
2480
- method: "cash";
2481
- createdAt: string;
2482
- updatedAt: string;
2483
- configurationCompleted: boolean;
2484
- pointOfSale: string;
2485
- }>, z.ZodObject<Omit<{
2486
- id: z.ZodString;
2487
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
2488
- configurationCompleted: z.ZodBoolean;
2489
- createdAt: z.ZodEffects<z.ZodString, string, string>;
2490
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
2491
- }, "method"> & {
2492
- method: z.ZodEnum<["credit_card"]>;
2493
- } & {
2494
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
2495
- }, "strip", z.ZodTypeAny, {
2496
- id: string;
2497
- method: "credit_card";
2498
- createdAt: string;
2499
- updatedAt: string;
2500
- configurationCompleted: boolean;
2501
- pointOfSale: string;
2502
- }, {
2503
- id: string;
2504
- method: "credit_card";
2505
- createdAt: string;
2506
- updatedAt: string;
2507
- configurationCompleted: boolean;
2508
- pointOfSale: string;
2509
- }>, z.ZodObject<Omit<{
2510
- id: z.ZodString;
2511
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
2512
- configurationCompleted: z.ZodBoolean;
2513
- createdAt: z.ZodEffects<z.ZodString, string, string>;
2514
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
2515
- }, "method"> & {
2516
- method: z.ZodEnum<["stripe"]>;
2517
- secretKey: z.ZodString;
2518
- webhookSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2519
- webhookId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2520
- } & {
2521
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
2522
- }, "strip", z.ZodTypeAny, {
2523
- id: string;
2524
- method: "stripe";
2525
- createdAt: string;
2526
- updatedAt: string;
2527
- configurationCompleted: boolean;
2528
- pointOfSale: string;
2529
- secretKey: string;
2530
- webhookSecret?: string | null | undefined;
2531
- webhookId?: string | null | undefined;
2532
- }, {
2533
- id: string;
2534
- method: "stripe";
2535
- createdAt: string;
2536
- updatedAt: string;
2537
- configurationCompleted: boolean;
2538
- pointOfSale: string;
2539
- secretKey: string;
2540
- webhookSecret?: string | null | undefined;
2541
- webhookId?: string | null | undefined;
2542
- }>]>;
2543
- readonly querySchema: undefined;
2544
- readonly headersSchema: undefined;
2545
- private readonly paymentConfigId;
2546
- constructor(paymentConfigId: string);
2547
- getPath(): string;
2548
- }
2549
-
2550
- type GetPaymentConfigsQueryParams = PaymentConfigsQueryParams;
2551
- declare const getPaymentConfigsResponseSchema: z.ZodObject<{
2552
- data: z.ZodArray<z.ZodDiscriminatedUnion<"method", [z.ZodObject<Omit<{
2553
- id: z.ZodString;
2554
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
2555
- configurationCompleted: z.ZodBoolean;
2556
- createdAt: z.ZodEffects<z.ZodString, string, string>;
2557
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
2558
- }, "method"> & {
2559
- method: z.ZodEnum<["bank_transfer"]>;
2560
- iban: z.ZodString;
2561
- bic: z.ZodString;
2562
- accountHolder: z.ZodString;
2563
- bankName: z.ZodString;
2564
- bankAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2565
- currency: z.ZodString;
2566
- }, "strip", z.ZodTypeAny, {
2567
- id: string;
2568
- method: "bank_transfer";
2569
- createdAt: string;
2570
- updatedAt: string;
2571
- configurationCompleted: boolean;
2572
- iban: string;
2573
- bic: string;
2574
- accountHolder: string;
2575
- bankName: string;
2576
- currency: string;
2577
- bankAddress?: string | null | undefined;
2578
- }, {
2579
- id: string;
2580
- method: "bank_transfer";
2581
- createdAt: string;
2582
- updatedAt: string;
2583
- configurationCompleted: boolean;
2584
- iban: string;
2585
- bic: string;
2586
- accountHolder: string;
2587
- bankName: string;
2588
- currency: string;
2589
- bankAddress?: string | null | undefined;
2590
- }>, z.ZodObject<Omit<{
2591
- id: z.ZodString;
2592
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
2593
- configurationCompleted: z.ZodBoolean;
2594
- createdAt: z.ZodEffects<z.ZodString, string, string>;
2595
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
2596
- }, "method"> & {
2597
- method: z.ZodEnum<["cash"]>;
2598
- }, "strip", z.ZodTypeAny, {
2599
- id: string;
2600
- method: "cash";
2601
- createdAt: string;
2602
- updatedAt: string;
2603
- configurationCompleted: boolean;
2604
- }, {
2605
- id: string;
2606
- method: "cash";
2607
- createdAt: string;
2608
- updatedAt: string;
2609
- configurationCompleted: boolean;
2610
- }>, z.ZodObject<Omit<{
2611
- id: z.ZodString;
2612
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
2613
- configurationCompleted: z.ZodBoolean;
2614
- createdAt: z.ZodEffects<z.ZodString, string, string>;
2615
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
2616
- }, "method"> & {
2617
- method: z.ZodEnum<["credit_card"]>;
2618
- }, "strip", z.ZodTypeAny, {
2619
- id: string;
2620
- method: "credit_card";
2621
- createdAt: string;
2622
- updatedAt: string;
2623
- configurationCompleted: boolean;
2624
- }, {
2625
- id: string;
2626
- method: "credit_card";
2627
- createdAt: string;
2628
- updatedAt: string;
2629
- configurationCompleted: boolean;
2630
- }>, z.ZodObject<Omit<{
2631
- id: z.ZodString;
2632
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
2633
- configurationCompleted: z.ZodBoolean;
2634
- createdAt: z.ZodEffects<z.ZodString, string, string>;
2635
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
2636
- }, "method"> & {
2637
- method: z.ZodEnum<["stripe"]>;
2638
- secretKey: z.ZodString;
2639
- webhookSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2640
- webhookId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2641
- }, "strip", z.ZodTypeAny, {
2642
- id: string;
2643
- method: "stripe";
2644
- createdAt: string;
2645
- updatedAt: string;
2646
- configurationCompleted: boolean;
2647
- secretKey: string;
2648
- webhookSecret?: string | null | undefined;
2649
- webhookId?: string | null | undefined;
2650
- }, {
2651
- id: string;
2652
- method: "stripe";
2653
- createdAt: string;
2654
- updatedAt: string;
2655
- configurationCompleted: boolean;
2656
- secretKey: string;
2657
- webhookSecret?: string | null | undefined;
2658
- webhookId?: string | null | undefined;
2659
- }>]>, "many">;
2660
- pagination: z.ZodObject<{
2661
- from: z.ZodNumber;
2662
- to: z.ZodNumber;
2663
- itemsPerPage: z.ZodNumber;
2664
- totalItems: z.ZodNumber;
2665
- currentPage: z.ZodNumber;
2666
- lastPage: z.ZodNumber;
2667
- }, "strip", z.ZodTypeAny, {
2668
- from: number;
2669
- to: number;
2670
- itemsPerPage: number;
2671
- totalItems: number;
2672
- currentPage: number;
2673
- lastPage: number;
2674
- }, {
2675
- from: number;
2676
- to: number;
2677
- itemsPerPage: number;
2678
- totalItems: number;
2679
- currentPage: number;
2680
- lastPage: number;
2681
- }>;
2682
- }, "strip", z.ZodTypeAny, {
2683
- data: ({
2684
- id: string;
2685
- method: "bank_transfer";
2686
- createdAt: string;
2687
- updatedAt: string;
2688
- configurationCompleted: boolean;
2689
- iban: string;
2690
- bic: string;
2691
- accountHolder: string;
2692
- bankName: string;
2693
- currency: string;
2694
- bankAddress?: string | null | undefined;
2695
- } | {
2696
- id: string;
2697
- method: "cash";
2698
- createdAt: string;
2699
- updatedAt: string;
2700
- configurationCompleted: boolean;
2701
- } | {
2702
- id: string;
2703
- method: "credit_card";
2704
- createdAt: string;
2705
- updatedAt: string;
2706
- configurationCompleted: boolean;
2707
- } | {
2708
- id: string;
2709
- method: "stripe";
2710
- createdAt: string;
2711
- updatedAt: string;
2712
- configurationCompleted: boolean;
2713
- secretKey: string;
2714
- webhookSecret?: string | null | undefined;
2715
- webhookId?: string | null | undefined;
2716
- })[];
2717
- pagination: {
2718
- from: number;
2719
- to: number;
2720
- itemsPerPage: number;
2721
- totalItems: number;
2722
- currentPage: number;
2723
- lastPage: number;
2724
- };
2725
- }, {
2726
- data: ({
2727
- id: string;
2728
- method: "bank_transfer";
2729
- createdAt: string;
2730
- updatedAt: string;
2731
- configurationCompleted: boolean;
2732
- iban: string;
2733
- bic: string;
2734
- accountHolder: string;
2735
- bankName: string;
2736
- currency: string;
2737
- bankAddress?: string | null | undefined;
2738
- } | {
2739
- id: string;
2740
- method: "cash";
2741
- createdAt: string;
2742
- updatedAt: string;
2743
- configurationCompleted: boolean;
2744
- } | {
2745
- id: string;
2746
- method: "credit_card";
2747
- createdAt: string;
2748
- updatedAt: string;
2749
- configurationCompleted: boolean;
2750
- } | {
2751
- id: string;
2752
- method: "stripe";
2753
- createdAt: string;
2754
- updatedAt: string;
2755
- configurationCompleted: boolean;
2756
- secretKey: string;
2757
- webhookSecret?: string | null | undefined;
2758
- webhookId?: string | null | undefined;
2759
- })[];
2760
- pagination: {
2761
- from: number;
2762
- to: number;
2763
- itemsPerPage: number;
2764
- totalItems: number;
2765
- currentPage: number;
2766
- lastPage: number;
2767
- };
2768
- }>;
2769
- type GetPaymentConfigsResponse = z.infer<typeof getPaymentConfigsResponseSchema>;
2770
- declare const getPaymentConfigsInputSchema: z.ZodUndefined;
2771
- declare class GetPaymentConfigs extends AbstractApiRequest<void, GetPaymentConfigsResponse, GetPaymentConfigsQueryParams> {
2772
- readonly method = "GET";
2773
- readonly contentType = "application/json";
2774
- readonly accept = "application/json";
2775
- readonly inputSchema: z.ZodUndefined;
2776
- readonly outputSchema: z.ZodObject<{
2777
- data: z.ZodArray<z.ZodDiscriminatedUnion<"method", [z.ZodObject<Omit<{
2778
- id: z.ZodString;
2779
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
2780
- configurationCompleted: z.ZodBoolean;
2781
- createdAt: z.ZodEffects<z.ZodString, string, string>;
2782
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
2783
- }, "method"> & {
2784
- method: z.ZodEnum<["bank_transfer"]>;
2785
- iban: z.ZodString;
2786
- bic: z.ZodString;
2787
- accountHolder: z.ZodString;
2788
- bankName: z.ZodString;
2789
- bankAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2790
- currency: z.ZodString;
2791
- }, "strip", z.ZodTypeAny, {
2792
- id: string;
2793
- method: "bank_transfer";
2794
- createdAt: string;
2795
- updatedAt: string;
2796
- configurationCompleted: boolean;
2797
- iban: string;
2798
- bic: string;
2799
- accountHolder: string;
2800
- bankName: string;
2801
- currency: string;
2802
- bankAddress?: string | null | undefined;
2803
- }, {
2804
- id: string;
2805
- method: "bank_transfer";
2806
- createdAt: string;
2807
- updatedAt: string;
2808
- configurationCompleted: boolean;
2809
- iban: string;
2810
- bic: string;
2811
- accountHolder: string;
2812
- bankName: string;
2813
- currency: string;
2814
- bankAddress?: string | null | undefined;
2815
- }>, z.ZodObject<Omit<{
2816
- id: z.ZodString;
2817
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
2818
- configurationCompleted: z.ZodBoolean;
2819
- createdAt: z.ZodEffects<z.ZodString, string, string>;
2820
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
2821
- }, "method"> & {
2822
- method: z.ZodEnum<["cash"]>;
2823
- }, "strip", z.ZodTypeAny, {
2824
- id: string;
2825
- method: "cash";
2826
- createdAt: string;
2827
- updatedAt: string;
2828
- configurationCompleted: boolean;
2829
- }, {
2830
- id: string;
2831
- method: "cash";
2832
- createdAt: string;
2833
- updatedAt: string;
2834
- configurationCompleted: boolean;
2835
- }>, z.ZodObject<Omit<{
2836
- id: z.ZodString;
2837
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
2838
- configurationCompleted: z.ZodBoolean;
2839
- createdAt: z.ZodEffects<z.ZodString, string, string>;
2840
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
2841
- }, "method"> & {
2842
- method: z.ZodEnum<["credit_card"]>;
2843
- }, "strip", z.ZodTypeAny, {
2844
- id: string;
2845
- method: "credit_card";
2846
- createdAt: string;
2847
- updatedAt: string;
2848
- configurationCompleted: boolean;
2849
- }, {
2850
- id: string;
2851
- method: "credit_card";
2852
- createdAt: string;
2853
- updatedAt: string;
2854
- configurationCompleted: boolean;
2855
- }>, z.ZodObject<Omit<{
2856
- id: z.ZodString;
2857
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
2858
- configurationCompleted: z.ZodBoolean;
2859
- createdAt: z.ZodEffects<z.ZodString, string, string>;
2860
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
2861
- }, "method"> & {
2862
- method: z.ZodEnum<["stripe"]>;
2863
- secretKey: z.ZodString;
2864
- webhookSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2865
- webhookId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2866
- }, "strip", z.ZodTypeAny, {
2867
- id: string;
2868
- method: "stripe";
2869
- createdAt: string;
2870
- updatedAt: string;
2871
- configurationCompleted: boolean;
2872
- secretKey: string;
2873
- webhookSecret?: string | null | undefined;
2874
- webhookId?: string | null | undefined;
2875
- }, {
2876
- id: string;
2877
- method: "stripe";
2878
- createdAt: string;
2879
- updatedAt: string;
2880
- configurationCompleted: boolean;
2881
- secretKey: string;
2882
- webhookSecret?: string | null | undefined;
2883
- webhookId?: string | null | undefined;
2884
- }>]>, "many">;
2885
- pagination: z.ZodObject<{
2886
- from: z.ZodNumber;
2887
- to: z.ZodNumber;
2888
- itemsPerPage: z.ZodNumber;
2889
- totalItems: z.ZodNumber;
2890
- currentPage: z.ZodNumber;
2891
- lastPage: z.ZodNumber;
2892
- }, "strip", z.ZodTypeAny, {
2893
- from: number;
2894
- to: number;
2895
- itemsPerPage: number;
2896
- totalItems: number;
2897
- currentPage: number;
2898
- lastPage: number;
2899
- }, {
2900
- from: number;
2901
- to: number;
2902
- itemsPerPage: number;
2903
- totalItems: number;
2904
- currentPage: number;
2905
- lastPage: number;
2906
- }>;
2907
- }, "strip", z.ZodTypeAny, {
2908
- data: ({
2909
- id: string;
2910
- method: "bank_transfer";
2911
- createdAt: string;
2912
- updatedAt: string;
2913
- configurationCompleted: boolean;
2914
- iban: string;
2915
- bic: string;
2916
- accountHolder: string;
2917
- bankName: string;
2918
- currency: string;
2919
- bankAddress?: string | null | undefined;
2920
- } | {
2921
- id: string;
2922
- method: "cash";
2923
- createdAt: string;
2924
- updatedAt: string;
2925
- configurationCompleted: boolean;
2926
- } | {
2927
- id: string;
2928
- method: "credit_card";
2929
- createdAt: string;
2930
- updatedAt: string;
2931
- configurationCompleted: boolean;
2932
- } | {
2933
- id: string;
2934
- method: "stripe";
2935
- createdAt: string;
2936
- updatedAt: string;
2937
- configurationCompleted: boolean;
2938
- secretKey: string;
2939
- webhookSecret?: string | null | undefined;
2940
- webhookId?: string | null | undefined;
2941
- })[];
2942
- pagination: {
2943
- from: number;
2944
- to: number;
2945
- itemsPerPage: number;
2946
- totalItems: number;
2947
- currentPage: number;
2948
- lastPage: number;
2949
- };
2950
- }, {
2951
- data: ({
2952
- id: string;
2953
- method: "bank_transfer";
2954
- createdAt: string;
2955
- updatedAt: string;
2956
- configurationCompleted: boolean;
2957
- iban: string;
2958
- bic: string;
2959
- accountHolder: string;
2960
- bankName: string;
2961
- currency: string;
2962
- bankAddress?: string | null | undefined;
2963
- } | {
2964
- id: string;
2965
- method: "cash";
2966
- createdAt: string;
2967
- updatedAt: string;
2968
- configurationCompleted: boolean;
2969
- } | {
2970
- id: string;
2971
- method: "credit_card";
2972
- createdAt: string;
2973
- updatedAt: string;
2974
- configurationCompleted: boolean;
2975
- } | {
2976
- id: string;
2977
- method: "stripe";
2978
- createdAt: string;
2979
- updatedAt: string;
2980
- configurationCompleted: boolean;
2981
- secretKey: string;
2982
- webhookSecret?: string | null | undefined;
2983
- webhookId?: string | null | undefined;
2984
- })[];
2985
- pagination: {
2986
- from: number;
2987
- to: number;
2988
- itemsPerPage: number;
2989
- totalItems: number;
2990
- currentPage: number;
2991
- lastPage: number;
2992
- };
2993
- }>;
2994
- readonly querySchema: z.ZodObject<{
2995
- method: z.ZodOptional<z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>>;
2996
- configurationCompleted: z.ZodOptional<z.ZodBoolean>;
2997
- 'order[createdAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
2998
- 'order[updatedAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
2999
- page: z.ZodOptional<z.ZodNumber>;
3000
- } & {
3001
- 'createdAt[before]': z.ZodOptional<z.ZodString>;
3002
- 'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
3003
- 'createdAt[after]': z.ZodOptional<z.ZodString>;
3004
- 'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
3005
- 'updatedAt[before]': z.ZodOptional<z.ZodString>;
3006
- 'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
3007
- 'updatedAt[after]': z.ZodOptional<z.ZodString>;
3008
- 'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
3009
- }, "strip", z.ZodTypeAny, {
3010
- method?: "stripe" | "bank_transfer" | "cash" | "credit_card" | undefined;
3011
- configurationCompleted?: boolean | undefined;
3012
- 'order[createdAt]'?: "asc" | "desc" | undefined;
3013
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
3014
- page?: number | undefined;
3015
- 'createdAt[before]'?: string | undefined;
3016
- 'createdAt[strictly_before]'?: string | undefined;
3017
- 'createdAt[after]'?: string | undefined;
3018
- 'createdAt[strictly_after]'?: string | undefined;
3019
- 'updatedAt[before]'?: string | undefined;
3020
- 'updatedAt[strictly_before]'?: string | undefined;
3021
- 'updatedAt[after]'?: string | undefined;
3022
- 'updatedAt[strictly_after]'?: string | undefined;
3023
- }, {
3024
- method?: "stripe" | "bank_transfer" | "cash" | "credit_card" | undefined;
3025
- configurationCompleted?: boolean | undefined;
3026
- 'order[createdAt]'?: "asc" | "desc" | undefined;
3027
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
3028
- page?: number | undefined;
3029
- 'createdAt[before]'?: string | undefined;
3030
- 'createdAt[strictly_before]'?: string | undefined;
3031
- 'createdAt[after]'?: string | undefined;
3032
- 'createdAt[strictly_after]'?: string | undefined;
3033
- 'updatedAt[before]'?: string | undefined;
3034
- 'updatedAt[strictly_before]'?: string | undefined;
3035
- 'updatedAt[after]'?: string | undefined;
3036
- 'updatedAt[strictly_after]'?: string | undefined;
3037
- }>;
3038
- readonly headersSchema: undefined;
3039
- constructor(options?: {
3040
- query?: GetPaymentConfigsQueryParams;
3041
- });
3042
- getPath(): string;
3043
- parseResponse(data: unknown, rawResponse: AxiosResponse): Paginated<PaymentConfig>;
3044
- }
3045
-
3046
- declare const createPaymentConfigStripeInputSchema: z.ZodObject<Pick<Omit<{
3047
- id: z.ZodString;
3048
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
3049
- configurationCompleted: z.ZodBoolean;
3050
- createdAt: z.ZodEffects<z.ZodString, string, string>;
3051
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
3052
- }, "method"> & {
3053
- method: z.ZodEnum<["stripe"]>;
3054
- secretKey: z.ZodString;
3055
- webhookSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3056
- webhookId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3057
- } & {
3058
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
3059
- }, "pointOfSale" | "secretKey">, "strip", z.ZodTypeAny, {
3060
- pointOfSale: string;
3061
- secretKey: string;
3062
- }, {
3063
- pointOfSale: string;
3064
- secretKey: string;
3065
- }>;
3066
- type CreatePaymentConfigStripeInput = z.infer<typeof createPaymentConfigStripeInputSchema>;
3067
- declare const createPaymentConfigStripeResponseSchema: z.ZodObject<Omit<{
3068
- id: z.ZodString;
3069
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
3070
- configurationCompleted: z.ZodBoolean;
3071
- createdAt: z.ZodEffects<z.ZodString, string, string>;
3072
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
3073
- }, "method"> & {
3074
- method: z.ZodEnum<["stripe"]>;
3075
- secretKey: z.ZodString;
3076
- webhookSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3077
- webhookId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3078
- } & {
3079
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
3080
- }, "strip", z.ZodTypeAny, {
3081
- id: string;
3082
- method: "stripe";
3083
- createdAt: string;
3084
- updatedAt: string;
3085
- configurationCompleted: boolean;
3086
- pointOfSale: string;
3087
- secretKey: string;
3088
- webhookSecret?: string | null | undefined;
3089
- webhookId?: string | null | undefined;
3090
- }, {
3091
- id: string;
3092
- method: "stripe";
3093
- createdAt: string;
3094
- updatedAt: string;
3095
- configurationCompleted: boolean;
3096
- pointOfSale: string;
3097
- secretKey: string;
3098
- webhookSecret?: string | null | undefined;
3099
- webhookId?: string | null | undefined;
3100
- }>;
3101
- type CreatePaymentConfigStripeResponse = PaymentConfigStripeDetails;
3102
- declare class CreatePaymentConfigStripe extends AbstractApiRequest<CreatePaymentConfigStripeInput, CreatePaymentConfigStripeResponse> {
3103
- readonly method = "POST";
3104
- readonly contentType = "application/json";
3105
- readonly accept = "application/json";
3106
- readonly inputSchema: z.ZodObject<Pick<Omit<{
3107
- id: z.ZodString;
3108
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
3109
- configurationCompleted: z.ZodBoolean;
3110
- createdAt: z.ZodEffects<z.ZodString, string, string>;
3111
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
3112
- }, "method"> & {
3113
- method: z.ZodEnum<["stripe"]>;
3114
- secretKey: z.ZodString;
3115
- webhookSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3116
- webhookId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3117
- } & {
3118
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
3119
- }, "pointOfSale" | "secretKey">, "strip", z.ZodTypeAny, {
3120
- pointOfSale: string;
3121
- secretKey: string;
3122
- }, {
3123
- pointOfSale: string;
3124
- secretKey: string;
3125
- }>;
3126
- readonly outputSchema: z.ZodObject<Omit<{
3127
- id: z.ZodString;
3128
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
3129
- configurationCompleted: z.ZodBoolean;
3130
- createdAt: z.ZodEffects<z.ZodString, string, string>;
3131
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
3132
- }, "method"> & {
3133
- method: z.ZodEnum<["stripe"]>;
3134
- secretKey: z.ZodString;
3135
- webhookSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3136
- webhookId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3137
- } & {
3138
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
3139
- }, "strip", z.ZodTypeAny, {
3140
- id: string;
3141
- method: "stripe";
3142
- createdAt: string;
3143
- updatedAt: string;
3144
- configurationCompleted: boolean;
3145
- pointOfSale: string;
3146
- secretKey: string;
3147
- webhookSecret?: string | null | undefined;
3148
- webhookId?: string | null | undefined;
3149
- }, {
3150
- id: string;
3151
- method: "stripe";
3152
- createdAt: string;
3153
- updatedAt: string;
3154
- configurationCompleted: boolean;
3155
- pointOfSale: string;
3156
- secretKey: string;
3157
- webhookSecret?: string | null | undefined;
3158
- webhookId?: string | null | undefined;
3159
- }>;
3160
- readonly querySchema: undefined;
3161
- readonly headersSchema: undefined;
3162
- constructor(input: CreatePaymentConfigStripeInput);
3163
- getPath(): string;
3164
- }
3165
-
3166
- declare const deletePaymentConfigStripeInputSchema: z.ZodUndefined;
3167
- declare const deletePaymentConfigStripeResponseSchema: z.ZodUndefined;
3168
- declare class DeletePaymentConfigStripe extends AbstractApiRequest<void, void> {
3169
- readonly method = "DELETE";
3170
- readonly contentType = "application/json";
3171
- readonly accept = "application/json";
3172
- readonly inputSchema: z.ZodUndefined;
3173
- readonly outputSchema: z.ZodUndefined;
3174
- readonly querySchema: undefined;
3175
- readonly headersSchema: undefined;
3176
- private readonly paymentConfigId;
3177
- constructor(paymentConfigId: string);
3178
- getPath(): string;
3179
- }
3180
-
3181
- declare const getPaymentConfigStripeDetailsInputSchema: z.ZodUndefined;
3182
- declare const getPaymentConfigStripeDetailsResponseSchema: z.ZodObject<Omit<{
3183
- id: z.ZodString;
3184
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
3185
- configurationCompleted: z.ZodBoolean;
3186
- createdAt: z.ZodEffects<z.ZodString, string, string>;
3187
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
3188
- }, "method"> & {
3189
- method: z.ZodEnum<["stripe"]>;
3190
- secretKey: z.ZodString;
3191
- webhookSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3192
- webhookId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3193
- } & {
3194
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
3195
- }, "strip", z.ZodTypeAny, {
3196
- id: string;
3197
- method: "stripe";
3198
- createdAt: string;
3199
- updatedAt: string;
3200
- configurationCompleted: boolean;
3201
- pointOfSale: string;
3202
- secretKey: string;
3203
- webhookSecret?: string | null | undefined;
3204
- webhookId?: string | null | undefined;
3205
- }, {
3206
- id: string;
3207
- method: "stripe";
3208
- createdAt: string;
3209
- updatedAt: string;
3210
- configurationCompleted: boolean;
3211
- pointOfSale: string;
3212
- secretKey: string;
3213
- webhookSecret?: string | null | undefined;
3214
- webhookId?: string | null | undefined;
3215
- }>;
3216
- type GetPaymentConfigStripeDetailsResponse = PaymentConfigStripeDetails;
3217
- declare class GetPaymentConfigStripeDetails extends AbstractApiRequest<void, GetPaymentConfigStripeDetailsResponse> {
3218
- readonly method = "GET";
3219
- readonly contentType = "application/json";
3220
- readonly accept = "application/json";
3221
- readonly inputSchema: z.ZodUndefined;
3222
- readonly outputSchema: z.ZodObject<Omit<{
3223
- id: z.ZodString;
3224
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
3225
- configurationCompleted: z.ZodBoolean;
3226
- createdAt: z.ZodEffects<z.ZodString, string, string>;
3227
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
3228
- }, "method"> & {
3229
- method: z.ZodEnum<["stripe"]>;
3230
- secretKey: z.ZodString;
3231
- webhookSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3232
- webhookId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3233
- } & {
3234
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
3235
- }, "strip", z.ZodTypeAny, {
3236
- id: string;
3237
- method: "stripe";
3238
- createdAt: string;
3239
- updatedAt: string;
3240
- configurationCompleted: boolean;
3241
- pointOfSale: string;
3242
- secretKey: string;
3243
- webhookSecret?: string | null | undefined;
3244
- webhookId?: string | null | undefined;
3245
- }, {
3246
- id: string;
3247
- method: "stripe";
3248
- createdAt: string;
3249
- updatedAt: string;
3250
- configurationCompleted: boolean;
3251
- pointOfSale: string;
3252
- secretKey: string;
3253
- webhookSecret?: string | null | undefined;
3254
- webhookId?: string | null | undefined;
3255
- }>;
3256
- readonly querySchema: undefined;
3257
- readonly headersSchema: undefined;
3258
- private readonly paymentConfigId;
3259
- constructor(paymentConfigId: string);
3260
- getPath(): string;
3261
- }
3262
-
3263
- type GetPaymentConfigStripeListQueryParams = PaymentConfigsQueryParams;
3264
- declare const getPaymentConfigStripeListResponseSchema: z.ZodObject<{
3265
- data: z.ZodArray<z.ZodObject<Omit<{
3266
- id: z.ZodString;
3267
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
3268
- configurationCompleted: z.ZodBoolean;
3269
- createdAt: z.ZodEffects<z.ZodString, string, string>;
3270
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
3271
- }, "method"> & {
3272
- method: z.ZodEnum<["stripe"]>;
3273
- secretKey: z.ZodString;
3274
- webhookSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3275
- webhookId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3276
- }, "strip", z.ZodTypeAny, {
3277
- id: string;
3278
- method: "stripe";
3279
- createdAt: string;
3280
- updatedAt: string;
3281
- configurationCompleted: boolean;
3282
- secretKey: string;
3283
- webhookSecret?: string | null | undefined;
3284
- webhookId?: string | null | undefined;
3285
- }, {
3286
- id: string;
3287
- method: "stripe";
3288
- createdAt: string;
3289
- updatedAt: string;
3290
- configurationCompleted: boolean;
3291
- secretKey: string;
3292
- webhookSecret?: string | null | undefined;
3293
- webhookId?: string | null | undefined;
3294
- }>, "many">;
3295
- pagination: z.ZodObject<{
3296
- from: z.ZodNumber;
3297
- to: z.ZodNumber;
3298
- itemsPerPage: z.ZodNumber;
3299
- totalItems: z.ZodNumber;
3300
- currentPage: z.ZodNumber;
3301
- lastPage: z.ZodNumber;
3302
- }, "strip", z.ZodTypeAny, {
3303
- from: number;
3304
- to: number;
3305
- itemsPerPage: number;
3306
- totalItems: number;
3307
- currentPage: number;
3308
- lastPage: number;
3309
- }, {
3310
- from: number;
3311
- to: number;
3312
- itemsPerPage: number;
3313
- totalItems: number;
3314
- currentPage: number;
3315
- lastPage: number;
3316
- }>;
3317
- }, "strip", z.ZodTypeAny, {
3318
- data: {
3319
- id: string;
3320
- method: "stripe";
3321
- createdAt: string;
3322
- updatedAt: string;
3323
- configurationCompleted: boolean;
3324
- secretKey: string;
3325
- webhookSecret?: string | null | undefined;
3326
- webhookId?: string | null | undefined;
3327
- }[];
3328
- pagination: {
3329
- from: number;
3330
- to: number;
3331
- itemsPerPage: number;
3332
- totalItems: number;
3333
- currentPage: number;
3334
- lastPage: number;
3335
- };
3336
- }, {
3337
- data: {
3338
- id: string;
3339
- method: "stripe";
3340
- createdAt: string;
3341
- updatedAt: string;
3342
- configurationCompleted: boolean;
3343
- secretKey: string;
3344
- webhookSecret?: string | null | undefined;
3345
- webhookId?: string | null | undefined;
3346
- }[];
3347
- pagination: {
3348
- from: number;
3349
- to: number;
3350
- itemsPerPage: number;
3351
- totalItems: number;
3352
- currentPage: number;
3353
- lastPage: number;
3354
- };
3355
- }>;
3356
- type GetPaymentConfigStripeListResponse = z.infer<typeof getPaymentConfigStripeListResponseSchema>;
3357
- declare const getPaymentConfigStripeListInputSchema: z.ZodUndefined;
3358
- declare class GetPaymentConfigStripeList extends AbstractApiRequest<void, GetPaymentConfigStripeListResponse, GetPaymentConfigStripeListQueryParams> {
3359
- readonly method = "GET";
3360
- readonly contentType = "application/json";
3361
- readonly accept = "application/json";
3362
- readonly inputSchema: z.ZodUndefined;
3363
- readonly outputSchema: z.ZodObject<{
3364
- data: z.ZodArray<z.ZodObject<Omit<{
3365
- id: z.ZodString;
3366
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
3367
- configurationCompleted: z.ZodBoolean;
3368
- createdAt: z.ZodEffects<z.ZodString, string, string>;
3369
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
3370
- }, "method"> & {
3371
- method: z.ZodEnum<["stripe"]>;
3372
- secretKey: z.ZodString;
3373
- webhookSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3374
- webhookId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3375
- }, "strip", z.ZodTypeAny, {
3376
- id: string;
3377
- method: "stripe";
3378
- createdAt: string;
3379
- updatedAt: string;
3380
- configurationCompleted: boolean;
3381
- secretKey: string;
3382
- webhookSecret?: string | null | undefined;
3383
- webhookId?: string | null | undefined;
3384
- }, {
3385
- id: string;
3386
- method: "stripe";
3387
- createdAt: string;
3388
- updatedAt: string;
3389
- configurationCompleted: boolean;
3390
- secretKey: string;
3391
- webhookSecret?: string | null | undefined;
3392
- webhookId?: string | null | undefined;
3393
- }>, "many">;
3394
- pagination: z.ZodObject<{
3395
- from: z.ZodNumber;
3396
- to: z.ZodNumber;
3397
- itemsPerPage: z.ZodNumber;
3398
- totalItems: z.ZodNumber;
3399
- currentPage: z.ZodNumber;
3400
- lastPage: z.ZodNumber;
3401
- }, "strip", z.ZodTypeAny, {
3402
- from: number;
3403
- to: number;
3404
- itemsPerPage: number;
3405
- totalItems: number;
3406
- currentPage: number;
3407
- lastPage: number;
3408
- }, {
3409
- from: number;
3410
- to: number;
3411
- itemsPerPage: number;
3412
- totalItems: number;
3413
- currentPage: number;
3414
- lastPage: number;
3415
- }>;
3416
- }, "strip", z.ZodTypeAny, {
3417
- data: {
3418
- id: string;
3419
- method: "stripe";
3420
- createdAt: string;
3421
- updatedAt: string;
3422
- configurationCompleted: boolean;
3423
- secretKey: string;
3424
- webhookSecret?: string | null | undefined;
3425
- webhookId?: string | null | undefined;
3426
- }[];
3427
- pagination: {
3428
- from: number;
3429
- to: number;
3430
- itemsPerPage: number;
3431
- totalItems: number;
3432
- currentPage: number;
3433
- lastPage: number;
3434
- };
3435
- }, {
3436
- data: {
3437
- id: string;
3438
- method: "stripe";
3439
- createdAt: string;
3440
- updatedAt: string;
3441
- configurationCompleted: boolean;
3442
- secretKey: string;
3443
- webhookSecret?: string | null | undefined;
3444
- webhookId?: string | null | undefined;
3445
- }[];
3446
- pagination: {
3447
- from: number;
3448
- to: number;
3449
- itemsPerPage: number;
3450
- totalItems: number;
3451
- currentPage: number;
3452
- lastPage: number;
3453
- };
3454
- }>;
3455
- readonly querySchema: z.ZodObject<{
3456
- method: z.ZodOptional<z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>>;
3457
- configurationCompleted: z.ZodOptional<z.ZodBoolean>;
3458
- 'order[createdAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
3459
- 'order[updatedAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
3460
- page: z.ZodOptional<z.ZodNumber>;
3461
- } & {
3462
- 'createdAt[before]': z.ZodOptional<z.ZodString>;
3463
- 'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
3464
- 'createdAt[after]': z.ZodOptional<z.ZodString>;
3465
- 'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
3466
- 'updatedAt[before]': z.ZodOptional<z.ZodString>;
3467
- 'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
3468
- 'updatedAt[after]': z.ZodOptional<z.ZodString>;
3469
- 'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
3470
- }, "strip", z.ZodTypeAny, {
3471
- method?: "stripe" | "bank_transfer" | "cash" | "credit_card" | undefined;
3472
- configurationCompleted?: boolean | undefined;
3473
- 'order[createdAt]'?: "asc" | "desc" | undefined;
3474
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
3475
- page?: number | undefined;
3476
- 'createdAt[before]'?: string | undefined;
3477
- 'createdAt[strictly_before]'?: string | undefined;
3478
- 'createdAt[after]'?: string | undefined;
3479
- 'createdAt[strictly_after]'?: string | undefined;
3480
- 'updatedAt[before]'?: string | undefined;
3481
- 'updatedAt[strictly_before]'?: string | undefined;
3482
- 'updatedAt[after]'?: string | undefined;
3483
- 'updatedAt[strictly_after]'?: string | undefined;
3484
- }, {
3485
- method?: "stripe" | "bank_transfer" | "cash" | "credit_card" | undefined;
3486
- configurationCompleted?: boolean | undefined;
3487
- 'order[createdAt]'?: "asc" | "desc" | undefined;
3488
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
3489
- page?: number | undefined;
3490
- 'createdAt[before]'?: string | undefined;
3491
- 'createdAt[strictly_before]'?: string | undefined;
3492
- 'createdAt[after]'?: string | undefined;
3493
- 'createdAt[strictly_after]'?: string | undefined;
3494
- 'updatedAt[before]'?: string | undefined;
3495
- 'updatedAt[strictly_before]'?: string | undefined;
3496
- 'updatedAt[after]'?: string | undefined;
3497
- 'updatedAt[strictly_after]'?: string | undefined;
3498
- }>;
3499
- readonly headersSchema: undefined;
3500
- constructor(options?: {
3501
- query?: GetPaymentConfigStripeListQueryParams;
3502
- });
3503
- getPath(): string;
3504
- parseResponse(data: unknown, rawResponse: AxiosResponse): Paginated<PaymentConfigStripe>;
3505
- }
3506
-
3507
- declare const updatePaymentConfigStripeInputSchema: z.ZodObject<{
3508
- secretKey: z.ZodOptional<z.ZodString>;
3509
- }, "strip", z.ZodTypeAny, {
3510
- secretKey?: string | undefined;
3511
- }, {
3512
- secretKey?: string | undefined;
3513
- }>;
3514
- type UpdatePaymentConfigStripeInput = z.infer<typeof updatePaymentConfigStripeInputSchema>;
3515
- declare const updatePaymentConfigStripeResponseSchema: z.ZodObject<Omit<{
3516
- id: z.ZodString;
3517
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
3518
- configurationCompleted: z.ZodBoolean;
3519
- createdAt: z.ZodEffects<z.ZodString, string, string>;
3520
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
3521
- }, "method"> & {
3522
- method: z.ZodEnum<["stripe"]>;
3523
- secretKey: z.ZodString;
3524
- webhookSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3525
- webhookId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3526
- } & {
3527
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
3528
- }, "strip", z.ZodTypeAny, {
3529
- id: string;
3530
- method: "stripe";
3531
- createdAt: string;
3532
- updatedAt: string;
3533
- configurationCompleted: boolean;
3534
- pointOfSale: string;
3535
- secretKey: string;
3536
- webhookSecret?: string | null | undefined;
3537
- webhookId?: string | null | undefined;
3538
- }, {
3539
- id: string;
3540
- method: "stripe";
3541
- createdAt: string;
3542
- updatedAt: string;
3543
- configurationCompleted: boolean;
3544
- pointOfSale: string;
3545
- secretKey: string;
3546
- webhookSecret?: string | null | undefined;
3547
- webhookId?: string | null | undefined;
3548
- }>;
3549
- type UpdatePaymentConfigStripeResponse = PaymentConfigStripeDetails;
3550
- declare class UpdatePaymentConfigStripe extends AbstractApiRequest<UpdatePaymentConfigStripeInput, UpdatePaymentConfigStripeResponse> {
3551
- readonly method = "PATCH";
3552
- readonly contentType = "application/merge-patch+json";
3553
- readonly accept = "application/json";
3554
- readonly inputSchema: z.ZodObject<{
3555
- secretKey: z.ZodOptional<z.ZodString>;
3556
- }, "strip", z.ZodTypeAny, {
3557
- secretKey?: string | undefined;
3558
- }, {
3559
- secretKey?: string | undefined;
3560
- }>;
3561
- readonly outputSchema: z.ZodObject<Omit<{
3562
- id: z.ZodString;
3563
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
3564
- configurationCompleted: z.ZodBoolean;
3565
- createdAt: z.ZodEffects<z.ZodString, string, string>;
3566
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
3567
- }, "method"> & {
3568
- method: z.ZodEnum<["stripe"]>;
3569
- secretKey: z.ZodString;
3570
- webhookSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3571
- webhookId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3572
- } & {
3573
- pointOfSale: z.ZodEffects<z.ZodString, string, string>;
3574
- }, "strip", z.ZodTypeAny, {
3575
- id: string;
3576
- method: "stripe";
3577
- createdAt: string;
3578
- updatedAt: string;
3579
- configurationCompleted: boolean;
3580
- pointOfSale: string;
3581
- secretKey: string;
3582
- webhookSecret?: string | null | undefined;
3583
- webhookId?: string | null | undefined;
3584
- }, {
3585
- id: string;
3586
- method: "stripe";
3587
- createdAt: string;
3588
- updatedAt: string;
3589
- configurationCompleted: boolean;
3590
- pointOfSale: string;
3591
- secretKey: string;
3592
- webhookSecret?: string | null | undefined;
3593
- webhookId?: string | null | undefined;
3594
- }>;
3595
- readonly querySchema: undefined;
3596
- readonly headersSchema: undefined;
3597
- private readonly paymentConfigId;
3598
- constructor(paymentConfigId: string, input: UpdatePaymentConfigStripeInput);
3599
- getPath(): string;
3600
- }
3601
-
3602
- declare const deletePaymentInputSchema: z.ZodUndefined;
3603
- declare const deletePaymentResponseSchema: z.ZodUndefined;
3604
- declare class DeletePayment extends AbstractApiRequest<void, void> {
3605
- readonly method = "DELETE";
3606
- readonly contentType = "application/json";
3607
- readonly accept = "application/json";
3608
- readonly inputSchema: z.ZodUndefined;
3609
- readonly outputSchema: z.ZodUndefined;
3610
- readonly querySchema: undefined;
3611
- readonly headersSchema: undefined;
3612
- private readonly paymentId;
3613
- constructor(paymentId: string);
3614
- getPath(): string;
3615
- }
3616
-
3617
- declare const getPaymentDetailsInputSchema: z.ZodUndefined;
3618
- declare const getPaymentDetailsResponseSchema: z.ZodObject<{
3619
- id: z.ZodString;
3620
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
3621
- status: z.ZodEnum<["pending", "pending_verification", "paid", "canceled", "refunded", "failed"]>;
3622
- amount: z.ZodString;
3623
- internalReference: z.ZodNullable<z.ZodString>;
3624
- externalReference: z.ZodNullable<z.ZodString>;
3625
- response: z.ZodNullable<z.ZodString>;
3626
- validUntil: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
3627
- createdAt: z.ZodEffects<z.ZodString, string, string>;
3628
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
3629
- } & {
3630
- config: z.ZodEffects<z.ZodString, string, string>;
3631
- }, "strip", z.ZodTypeAny, {
3632
- status: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed";
3633
- id: string;
3634
- method: "stripe" | "bank_transfer" | "cash" | "credit_card";
3635
- amount: string;
3636
- internalReference: string | null;
3637
- externalReference: string | null;
3638
- response: string | null;
3639
- validUntil: string | null;
3640
- createdAt: string;
3641
- updatedAt: string;
3642
- config: string;
3643
- }, {
3644
- status: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed";
3645
- id: string;
3646
- method: "stripe" | "bank_transfer" | "cash" | "credit_card";
3647
- amount: string;
3648
- internalReference: string | null;
3649
- externalReference: string | null;
3650
- response: string | null;
3651
- validUntil: string | null;
3652
- createdAt: string;
3653
- updatedAt: string;
3654
- config: string;
3655
- }>;
3656
- type GetPaymentDetailsResponse = PaymentDetails;
3657
- declare class GetPaymentDetails extends AbstractApiRequest<void, GetPaymentDetailsResponse> {
3658
- readonly method = "GET";
3659
- readonly contentType = "application/json";
3660
- readonly accept = "application/json";
3661
- readonly inputSchema: z.ZodUndefined;
3662
- readonly outputSchema: z.ZodObject<{
3663
- id: z.ZodString;
3664
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
3665
- status: z.ZodEnum<["pending", "pending_verification", "paid", "canceled", "refunded", "failed"]>;
3666
- amount: z.ZodString;
3667
- internalReference: z.ZodNullable<z.ZodString>;
3668
- externalReference: z.ZodNullable<z.ZodString>;
3669
- response: z.ZodNullable<z.ZodString>;
3670
- validUntil: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
3671
- createdAt: z.ZodEffects<z.ZodString, string, string>;
3672
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
3673
- } & {
3674
- config: z.ZodEffects<z.ZodString, string, string>;
3675
- }, "strip", z.ZodTypeAny, {
3676
- status: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed";
3677
- id: string;
3678
- method: "stripe" | "bank_transfer" | "cash" | "credit_card";
3679
- amount: string;
3680
- internalReference: string | null;
3681
- externalReference: string | null;
3682
- response: string | null;
3683
- validUntil: string | null;
3684
- createdAt: string;
3685
- updatedAt: string;
3686
- config: string;
3687
- }, {
3688
- status: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed";
3689
- id: string;
3690
- method: "stripe" | "bank_transfer" | "cash" | "credit_card";
3691
- amount: string;
3692
- internalReference: string | null;
3693
- externalReference: string | null;
3694
- response: string | null;
3695
- validUntil: string | null;
3696
- createdAt: string;
3697
- updatedAt: string;
3698
- config: string;
3699
- }>;
3700
- readonly querySchema: undefined;
3701
- readonly headersSchema: undefined;
3702
- private readonly paymentId;
3703
- constructor(paymentId: string);
3704
- getPath(): string;
3705
- }
3706
-
3707
- type GetPaymentsQueryParams = PaymentQueryParams;
3708
- declare const getPaymentsResponseSchema: z.ZodObject<{
3709
- data: z.ZodArray<z.ZodObject<{
3710
- id: z.ZodString;
3711
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
3712
- status: z.ZodEnum<["pending", "pending_verification", "paid", "canceled", "refunded", "failed"]>;
3713
- amount: z.ZodString;
3714
- internalReference: z.ZodNullable<z.ZodString>;
3715
- externalReference: z.ZodNullable<z.ZodString>;
3716
- response: z.ZodNullable<z.ZodString>;
3717
- validUntil: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
3718
- createdAt: z.ZodEffects<z.ZodString, string, string>;
3719
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
3720
- }, "strip", z.ZodTypeAny, {
3721
- status: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed";
3722
- id: string;
3723
- method: "stripe" | "bank_transfer" | "cash" | "credit_card";
3724
- amount: string;
3725
- internalReference: string | null;
3726
- externalReference: string | null;
3727
- response: string | null;
3728
- validUntil: string | null;
3729
- createdAt: string;
3730
- updatedAt: string;
3731
- }, {
3732
- status: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed";
3733
- id: string;
3734
- method: "stripe" | "bank_transfer" | "cash" | "credit_card";
3735
- amount: string;
3736
- internalReference: string | null;
3737
- externalReference: string | null;
3738
- response: string | null;
3739
- validUntil: string | null;
3740
- createdAt: string;
3741
- updatedAt: string;
3742
- }>, "many">;
3743
- pagination: z.ZodObject<{
3744
- from: z.ZodNumber;
3745
- to: z.ZodNumber;
3746
- itemsPerPage: z.ZodNumber;
3747
- totalItems: z.ZodNumber;
3748
- currentPage: z.ZodNumber;
3749
- lastPage: z.ZodNumber;
3750
- }, "strip", z.ZodTypeAny, {
3751
- from: number;
3752
- to: number;
3753
- itemsPerPage: number;
3754
- totalItems: number;
3755
- currentPage: number;
3756
- lastPage: number;
3757
- }, {
3758
- from: number;
3759
- to: number;
3760
- itemsPerPage: number;
3761
- totalItems: number;
3762
- currentPage: number;
3763
- lastPage: number;
3764
- }>;
3765
- }, "strip", z.ZodTypeAny, {
3766
- data: {
3767
- status: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed";
3768
- id: string;
3769
- method: "stripe" | "bank_transfer" | "cash" | "credit_card";
3770
- amount: string;
3771
- internalReference: string | null;
3772
- externalReference: string | null;
3773
- response: string | null;
3774
- validUntil: string | null;
3775
- createdAt: string;
3776
- updatedAt: string;
3777
- }[];
3778
- pagination: {
3779
- from: number;
3780
- to: number;
3781
- itemsPerPage: number;
3782
- totalItems: number;
3783
- currentPage: number;
3784
- lastPage: number;
3785
- };
3786
- }, {
3787
- data: {
3788
- status: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed";
3789
- id: string;
3790
- method: "stripe" | "bank_transfer" | "cash" | "credit_card";
3791
- amount: string;
3792
- internalReference: string | null;
3793
- externalReference: string | null;
3794
- response: string | null;
3795
- validUntil: string | null;
3796
- createdAt: string;
3797
- updatedAt: string;
3798
- }[];
3799
- pagination: {
3800
- from: number;
3801
- to: number;
3802
- itemsPerPage: number;
3803
- totalItems: number;
3804
- currentPage: number;
3805
- lastPage: number;
3806
- };
3807
- }>;
3808
- type GetPaymentsResponse = z.infer<typeof getPaymentsResponseSchema>;
3809
- declare const getPaymentsInputSchema: z.ZodUndefined;
3810
- declare class GetPayments extends AbstractApiRequest<void, GetPaymentsResponse, GetPaymentsQueryParams> {
3811
- readonly method = "GET";
3812
- readonly contentType = "application/json";
3813
- readonly accept = "application/json";
3814
- readonly inputSchema: z.ZodUndefined;
3815
- readonly outputSchema: z.ZodObject<{
3816
- data: z.ZodArray<z.ZodObject<{
3817
- id: z.ZodString;
3818
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
3819
- status: z.ZodEnum<["pending", "pending_verification", "paid", "canceled", "refunded", "failed"]>;
3820
- amount: z.ZodString;
3821
- internalReference: z.ZodNullable<z.ZodString>;
3822
- externalReference: z.ZodNullable<z.ZodString>;
3823
- response: z.ZodNullable<z.ZodString>;
3824
- validUntil: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
3825
- createdAt: z.ZodEffects<z.ZodString, string, string>;
3826
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
3827
- }, "strip", z.ZodTypeAny, {
3828
- status: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed";
3829
- id: string;
3830
- method: "stripe" | "bank_transfer" | "cash" | "credit_card";
3831
- amount: string;
3832
- internalReference: string | null;
3833
- externalReference: string | null;
3834
- response: string | null;
3835
- validUntil: string | null;
3836
- createdAt: string;
3837
- updatedAt: string;
3838
- }, {
3839
- status: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed";
3840
- id: string;
3841
- method: "stripe" | "bank_transfer" | "cash" | "credit_card";
3842
- amount: string;
3843
- internalReference: string | null;
3844
- externalReference: string | null;
3845
- response: string | null;
3846
- validUntil: string | null;
3847
- createdAt: string;
3848
- updatedAt: string;
3849
- }>, "many">;
3850
- pagination: z.ZodObject<{
3851
- from: z.ZodNumber;
3852
- to: z.ZodNumber;
3853
- itemsPerPage: z.ZodNumber;
3854
- totalItems: z.ZodNumber;
3855
- currentPage: z.ZodNumber;
3856
- lastPage: z.ZodNumber;
3857
- }, "strip", z.ZodTypeAny, {
3858
- from: number;
3859
- to: number;
3860
- itemsPerPage: number;
3861
- totalItems: number;
3862
- currentPage: number;
3863
- lastPage: number;
3864
- }, {
3865
- from: number;
3866
- to: number;
3867
- itemsPerPage: number;
3868
- totalItems: number;
3869
- currentPage: number;
3870
- lastPage: number;
3871
- }>;
3872
- }, "strip", z.ZodTypeAny, {
3873
- data: {
3874
- status: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed";
3875
- id: string;
3876
- method: "stripe" | "bank_transfer" | "cash" | "credit_card";
3877
- amount: string;
3878
- internalReference: string | null;
3879
- externalReference: string | null;
3880
- response: string | null;
3881
- validUntil: string | null;
3882
- createdAt: string;
3883
- updatedAt: string;
3884
- }[];
3885
- pagination: {
3886
- from: number;
3887
- to: number;
3888
- itemsPerPage: number;
3889
- totalItems: number;
3890
- currentPage: number;
3891
- lastPage: number;
3892
- };
3893
- }, {
3894
- data: {
3895
- status: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed";
3896
- id: string;
3897
- method: "stripe" | "bank_transfer" | "cash" | "credit_card";
3898
- amount: string;
3899
- internalReference: string | null;
3900
- externalReference: string | null;
3901
- response: string | null;
3902
- validUntil: string | null;
3903
- createdAt: string;
3904
- updatedAt: string;
3905
- }[];
3906
- pagination: {
3907
- from: number;
3908
- to: number;
3909
- itemsPerPage: number;
3910
- totalItems: number;
3911
- currentPage: number;
3912
- lastPage: number;
3913
- };
3914
- }>;
3915
- readonly querySchema: z.ZodObject<{
3916
- internalReference: z.ZodOptional<z.ZodString>;
3917
- externalReference: z.ZodOptional<z.ZodString>;
3918
- method: z.ZodOptional<z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>>;
3919
- 'method[]': z.ZodOptional<z.ZodArray<z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>, "many">>;
3920
- status: z.ZodOptional<z.ZodEnum<["pending", "pending_verification", "paid", "canceled", "refunded", "failed"]>>;
3921
- 'status[]': z.ZodOptional<z.ZodArray<z.ZodEnum<["pending", "pending_verification", "paid", "canceled", "refunded", "failed"]>, "many">>;
3922
- 'amount[between]': z.ZodOptional<z.ZodNumber>;
3923
- 'amount[gt]': z.ZodOptional<z.ZodNumber>;
3924
- 'amount[gte]': z.ZodOptional<z.ZodNumber>;
3925
- 'amount[lt]': z.ZodOptional<z.ZodNumber>;
3926
- 'amount[lte]': z.ZodOptional<z.ZodNumber>;
3927
- 'order[createdAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
3928
- 'order[updatedAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
3929
- page: z.ZodOptional<z.ZodNumber>;
3930
- } & {
3931
- 'createdAt[before]': z.ZodOptional<z.ZodString>;
3932
- 'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
3933
- 'createdAt[after]': z.ZodOptional<z.ZodString>;
3934
- 'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
3935
- 'updatedAt[before]': z.ZodOptional<z.ZodString>;
3936
- 'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
3937
- 'updatedAt[after]': z.ZodOptional<z.ZodString>;
3938
- 'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
3939
- }, "strip", z.ZodTypeAny, {
3940
- status?: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed" | undefined;
3941
- method?: "stripe" | "bank_transfer" | "cash" | "credit_card" | undefined;
3942
- internalReference?: string | undefined;
3943
- externalReference?: string | undefined;
3944
- 'method[]'?: ("stripe" | "bank_transfer" | "cash" | "credit_card")[] | undefined;
3945
- 'status[]'?: ("pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed")[] | undefined;
3946
- 'amount[between]'?: number | undefined;
3947
- 'amount[gt]'?: number | undefined;
3948
- 'amount[gte]'?: number | undefined;
3949
- 'amount[lt]'?: number | undefined;
3950
- 'amount[lte]'?: number | undefined;
3951
- 'order[createdAt]'?: "asc" | "desc" | undefined;
3952
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
3953
- page?: number | undefined;
3954
- 'createdAt[before]'?: string | undefined;
3955
- 'createdAt[strictly_before]'?: string | undefined;
3956
- 'createdAt[after]'?: string | undefined;
3957
- 'createdAt[strictly_after]'?: string | undefined;
3958
- 'updatedAt[before]'?: string | undefined;
3959
- 'updatedAt[strictly_before]'?: string | undefined;
3960
- 'updatedAt[after]'?: string | undefined;
3961
- 'updatedAt[strictly_after]'?: string | undefined;
3962
- }, {
3963
- status?: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed" | undefined;
3964
- method?: "stripe" | "bank_transfer" | "cash" | "credit_card" | undefined;
3965
- internalReference?: string | undefined;
3966
- externalReference?: string | undefined;
3967
- 'method[]'?: ("stripe" | "bank_transfer" | "cash" | "credit_card")[] | undefined;
3968
- 'status[]'?: ("pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed")[] | undefined;
3969
- 'amount[between]'?: number | undefined;
3970
- 'amount[gt]'?: number | undefined;
3971
- 'amount[gte]'?: number | undefined;
3972
- 'amount[lt]'?: number | undefined;
3973
- 'amount[lte]'?: number | undefined;
3974
- 'order[createdAt]'?: "asc" | "desc" | undefined;
3975
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
3976
- page?: number | undefined;
3977
- 'createdAt[before]'?: string | undefined;
3978
- 'createdAt[strictly_before]'?: string | undefined;
3979
- 'createdAt[after]'?: string | undefined;
3980
- 'createdAt[strictly_after]'?: string | undefined;
3981
- 'updatedAt[before]'?: string | undefined;
3982
- 'updatedAt[strictly_before]'?: string | undefined;
3983
- 'updatedAt[after]'?: string | undefined;
3984
- 'updatedAt[strictly_after]'?: string | undefined;
3985
- }>;
3986
- readonly headersSchema: undefined;
3987
- constructor(options?: {
3988
- query?: GetPaymentsQueryParams;
3989
- });
3990
- getPath(): string;
3991
- parseResponse(data: unknown, rawResponse: AxiosResponse): Paginated<Payment>;
3992
- }
3993
-
3994
- type GetPaymentsForPaymentConfigQueryParams = PaymentQueryParams;
3995
- declare const getPaymentsForPaymentConfigResponseSchema: z.ZodObject<{
3996
- data: z.ZodArray<z.ZodObject<{
3997
- id: z.ZodString;
3998
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
3999
- status: z.ZodEnum<["pending", "pending_verification", "paid", "canceled", "refunded", "failed"]>;
4000
- amount: z.ZodString;
4001
- internalReference: z.ZodNullable<z.ZodString>;
4002
- externalReference: z.ZodNullable<z.ZodString>;
4003
- response: z.ZodNullable<z.ZodString>;
4004
- validUntil: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
4005
- createdAt: z.ZodEffects<z.ZodString, string, string>;
4006
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
4007
- }, "strip", z.ZodTypeAny, {
4008
- status: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed";
4009
- id: string;
4010
- method: "stripe" | "bank_transfer" | "cash" | "credit_card";
4011
- amount: string;
4012
- internalReference: string | null;
4013
- externalReference: string | null;
4014
- response: string | null;
4015
- validUntil: string | null;
4016
- createdAt: string;
4017
- updatedAt: string;
4018
- }, {
4019
- status: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed";
4020
- id: string;
4021
- method: "stripe" | "bank_transfer" | "cash" | "credit_card";
4022
- amount: string;
4023
- internalReference: string | null;
4024
- externalReference: string | null;
4025
- response: string | null;
4026
- validUntil: string | null;
4027
- createdAt: string;
4028
- updatedAt: string;
4029
- }>, "many">;
4030
- pagination: z.ZodObject<{
4031
- from: z.ZodNumber;
4032
- to: z.ZodNumber;
4033
- itemsPerPage: z.ZodNumber;
4034
- totalItems: z.ZodNumber;
4035
- currentPage: z.ZodNumber;
4036
- lastPage: z.ZodNumber;
4037
- }, "strip", z.ZodTypeAny, {
4038
- from: number;
4039
- to: number;
4040
- itemsPerPage: number;
4041
- totalItems: number;
4042
- currentPage: number;
4043
- lastPage: number;
4044
- }, {
4045
- from: number;
4046
- to: number;
4047
- itemsPerPage: number;
4048
- totalItems: number;
4049
- currentPage: number;
4050
- lastPage: number;
4051
- }>;
4052
- }, "strip", z.ZodTypeAny, {
4053
- data: {
4054
- status: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed";
4055
- id: string;
4056
- method: "stripe" | "bank_transfer" | "cash" | "credit_card";
4057
- amount: string;
4058
- internalReference: string | null;
4059
- externalReference: string | null;
4060
- response: string | null;
4061
- validUntil: string | null;
4062
- createdAt: string;
4063
- updatedAt: string;
4064
- }[];
4065
- pagination: {
4066
- from: number;
4067
- to: number;
4068
- itemsPerPage: number;
4069
- totalItems: number;
4070
- currentPage: number;
4071
- lastPage: number;
4072
- };
4073
- }, {
4074
- data: {
4075
- status: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed";
4076
- id: string;
4077
- method: "stripe" | "bank_transfer" | "cash" | "credit_card";
4078
- amount: string;
4079
- internalReference: string | null;
4080
- externalReference: string | null;
4081
- response: string | null;
4082
- validUntil: string | null;
4083
- createdAt: string;
4084
- updatedAt: string;
4085
- }[];
4086
- pagination: {
4087
- from: number;
4088
- to: number;
4089
- itemsPerPage: number;
4090
- totalItems: number;
4091
- currentPage: number;
4092
- lastPage: number;
4093
- };
4094
- }>;
4095
- type GetPaymentsForPaymentConfigResponse = z.infer<typeof getPaymentsForPaymentConfigResponseSchema>;
4096
- declare const getPaymentsForPaymentConfigInputSchema: z.ZodUndefined;
4097
- declare class GetPaymentsForPaymentConfig extends AbstractApiRequest<void, GetPaymentsForPaymentConfigResponse, GetPaymentsForPaymentConfigQueryParams> {
4098
- readonly method = "GET";
4099
- readonly contentType = "application/json";
4100
- readonly accept = "application/json";
4101
- readonly inputSchema: z.ZodUndefined;
4102
- readonly outputSchema: z.ZodObject<{
4103
- data: z.ZodArray<z.ZodObject<{
4104
- id: z.ZodString;
4105
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
4106
- status: z.ZodEnum<["pending", "pending_verification", "paid", "canceled", "refunded", "failed"]>;
4107
- amount: z.ZodString;
4108
- internalReference: z.ZodNullable<z.ZodString>;
4109
- externalReference: z.ZodNullable<z.ZodString>;
4110
- response: z.ZodNullable<z.ZodString>;
4111
- validUntil: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
4112
- createdAt: z.ZodEffects<z.ZodString, string, string>;
4113
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
4114
- }, "strip", z.ZodTypeAny, {
4115
- status: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed";
4116
- id: string;
4117
- method: "stripe" | "bank_transfer" | "cash" | "credit_card";
4118
- amount: string;
4119
- internalReference: string | null;
4120
- externalReference: string | null;
4121
- response: string | null;
4122
- validUntil: string | null;
4123
- createdAt: string;
4124
- updatedAt: string;
4125
- }, {
4126
- status: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed";
4127
- id: string;
4128
- method: "stripe" | "bank_transfer" | "cash" | "credit_card";
4129
- amount: string;
4130
- internalReference: string | null;
4131
- externalReference: string | null;
4132
- response: string | null;
4133
- validUntil: string | null;
4134
- createdAt: string;
4135
- updatedAt: string;
4136
- }>, "many">;
4137
- pagination: z.ZodObject<{
4138
- from: z.ZodNumber;
4139
- to: z.ZodNumber;
4140
- itemsPerPage: z.ZodNumber;
4141
- totalItems: z.ZodNumber;
4142
- currentPage: z.ZodNumber;
4143
- lastPage: z.ZodNumber;
4144
- }, "strip", z.ZodTypeAny, {
4145
- from: number;
4146
- to: number;
4147
- itemsPerPage: number;
4148
- totalItems: number;
4149
- currentPage: number;
4150
- lastPage: number;
4151
- }, {
4152
- from: number;
4153
- to: number;
4154
- itemsPerPage: number;
4155
- totalItems: number;
4156
- currentPage: number;
4157
- lastPage: number;
4158
- }>;
4159
- }, "strip", z.ZodTypeAny, {
4160
- data: {
4161
- status: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed";
4162
- id: string;
4163
- method: "stripe" | "bank_transfer" | "cash" | "credit_card";
4164
- amount: string;
4165
- internalReference: string | null;
4166
- externalReference: string | null;
4167
- response: string | null;
4168
- validUntil: string | null;
4169
- createdAt: string;
4170
- updatedAt: string;
4171
- }[];
4172
- pagination: {
4173
- from: number;
4174
- to: number;
4175
- itemsPerPage: number;
4176
- totalItems: number;
4177
- currentPage: number;
4178
- lastPage: number;
4179
- };
4180
- }, {
4181
- data: {
4182
- status: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed";
4183
- id: string;
4184
- method: "stripe" | "bank_transfer" | "cash" | "credit_card";
4185
- amount: string;
4186
- internalReference: string | null;
4187
- externalReference: string | null;
4188
- response: string | null;
4189
- validUntil: string | null;
4190
- createdAt: string;
4191
- updatedAt: string;
4192
- }[];
4193
- pagination: {
4194
- from: number;
4195
- to: number;
4196
- itemsPerPage: number;
4197
- totalItems: number;
4198
- currentPage: number;
4199
- lastPage: number;
4200
- };
4201
- }>;
4202
- readonly querySchema: z.ZodObject<{
4203
- internalReference: z.ZodOptional<z.ZodString>;
4204
- externalReference: z.ZodOptional<z.ZodString>;
4205
- method: z.ZodOptional<z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>>;
4206
- 'method[]': z.ZodOptional<z.ZodArray<z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>, "many">>;
4207
- status: z.ZodOptional<z.ZodEnum<["pending", "pending_verification", "paid", "canceled", "refunded", "failed"]>>;
4208
- 'status[]': z.ZodOptional<z.ZodArray<z.ZodEnum<["pending", "pending_verification", "paid", "canceled", "refunded", "failed"]>, "many">>;
4209
- 'amount[between]': z.ZodOptional<z.ZodNumber>;
4210
- 'amount[gt]': z.ZodOptional<z.ZodNumber>;
4211
- 'amount[gte]': z.ZodOptional<z.ZodNumber>;
4212
- 'amount[lt]': z.ZodOptional<z.ZodNumber>;
4213
- 'amount[lte]': z.ZodOptional<z.ZodNumber>;
4214
- 'order[createdAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
4215
- 'order[updatedAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
4216
- page: z.ZodOptional<z.ZodNumber>;
4217
- } & {
4218
- 'createdAt[before]': z.ZodOptional<z.ZodString>;
4219
- 'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
4220
- 'createdAt[after]': z.ZodOptional<z.ZodString>;
4221
- 'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
4222
- 'updatedAt[before]': z.ZodOptional<z.ZodString>;
4223
- 'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
4224
- 'updatedAt[after]': z.ZodOptional<z.ZodString>;
4225
- 'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
4226
- }, "strip", z.ZodTypeAny, {
4227
- status?: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed" | undefined;
4228
- method?: "stripe" | "bank_transfer" | "cash" | "credit_card" | undefined;
4229
- internalReference?: string | undefined;
4230
- externalReference?: string | undefined;
4231
- 'method[]'?: ("stripe" | "bank_transfer" | "cash" | "credit_card")[] | undefined;
4232
- 'status[]'?: ("pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed")[] | undefined;
4233
- 'amount[between]'?: number | undefined;
4234
- 'amount[gt]'?: number | undefined;
4235
- 'amount[gte]'?: number | undefined;
4236
- 'amount[lt]'?: number | undefined;
4237
- 'amount[lte]'?: number | undefined;
4238
- 'order[createdAt]'?: "asc" | "desc" | undefined;
4239
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
4240
- page?: number | undefined;
4241
- 'createdAt[before]'?: string | undefined;
4242
- 'createdAt[strictly_before]'?: string | undefined;
4243
- 'createdAt[after]'?: string | undefined;
4244
- 'createdAt[strictly_after]'?: string | undefined;
4245
- 'updatedAt[before]'?: string | undefined;
4246
- 'updatedAt[strictly_before]'?: string | undefined;
4247
- 'updatedAt[after]'?: string | undefined;
4248
- 'updatedAt[strictly_after]'?: string | undefined;
4249
- }, {
4250
- status?: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed" | undefined;
4251
- method?: "stripe" | "bank_transfer" | "cash" | "credit_card" | undefined;
4252
- internalReference?: string | undefined;
4253
- externalReference?: string | undefined;
4254
- 'method[]'?: ("stripe" | "bank_transfer" | "cash" | "credit_card")[] | undefined;
4255
- 'status[]'?: ("pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed")[] | undefined;
4256
- 'amount[between]'?: number | undefined;
4257
- 'amount[gt]'?: number | undefined;
4258
- 'amount[gte]'?: number | undefined;
4259
- 'amount[lt]'?: number | undefined;
4260
- 'amount[lte]'?: number | undefined;
4261
- 'order[createdAt]'?: "asc" | "desc" | undefined;
4262
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
4263
- page?: number | undefined;
4264
- 'createdAt[before]'?: string | undefined;
4265
- 'createdAt[strictly_before]'?: string | undefined;
4266
- 'createdAt[after]'?: string | undefined;
4267
- 'createdAt[strictly_after]'?: string | undefined;
4268
- 'updatedAt[before]'?: string | undefined;
4269
- 'updatedAt[strictly_before]'?: string | undefined;
4270
- 'updatedAt[after]'?: string | undefined;
4271
- 'updatedAt[strictly_after]'?: string | undefined;
4272
- }>;
4273
- readonly headersSchema: undefined;
4274
- private readonly paymentConfigId;
4275
- constructor(paymentConfigId: string, options?: {
4276
- query?: GetPaymentsForPaymentConfigQueryParams;
4277
- });
4278
- getPath(): string;
4279
- parseResponse(data: unknown, rawResponse: AxiosResponse): Paginated<Payment>;
4280
- }
4281
-
4282
- declare const updatePaymentInputSchema: z.ZodObject<{
4283
- status: z.ZodOptional<z.ZodEnum<["pending", "pending_verification", "paid", "canceled", "refunded", "failed"]>>;
4284
- response: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4285
- }, "strip", z.ZodTypeAny, {
4286
- status?: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed" | undefined;
4287
- response?: string | null | undefined;
4288
- }, {
4289
- status?: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed" | undefined;
4290
- response?: string | null | undefined;
4291
- }>;
4292
- type UpdatePaymentInput = z.infer<typeof updatePaymentInputSchema>;
4293
- declare const updatePaymentResponseSchema: z.ZodObject<{
4294
- id: z.ZodString;
4295
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
4296
- status: z.ZodEnum<["pending", "pending_verification", "paid", "canceled", "refunded", "failed"]>;
4297
- amount: z.ZodString;
4298
- internalReference: z.ZodNullable<z.ZodString>;
4299
- externalReference: z.ZodNullable<z.ZodString>;
4300
- response: z.ZodNullable<z.ZodString>;
4301
- validUntil: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
4302
- createdAt: z.ZodEffects<z.ZodString, string, string>;
4303
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
4304
- } & {
4305
- config: z.ZodEffects<z.ZodString, string, string>;
4306
- }, "strip", z.ZodTypeAny, {
4307
- status: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed";
4308
- id: string;
4309
- method: "stripe" | "bank_transfer" | "cash" | "credit_card";
4310
- amount: string;
4311
- internalReference: string | null;
4312
- externalReference: string | null;
4313
- response: string | null;
4314
- validUntil: string | null;
4315
- createdAt: string;
4316
- updatedAt: string;
4317
- config: string;
4318
- }, {
4319
- status: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed";
4320
- id: string;
4321
- method: "stripe" | "bank_transfer" | "cash" | "credit_card";
4322
- amount: string;
4323
- internalReference: string | null;
4324
- externalReference: string | null;
4325
- response: string | null;
4326
- validUntil: string | null;
4327
- createdAt: string;
4328
- updatedAt: string;
4329
- config: string;
4330
- }>;
4331
- type UpdatePaymentResponse = PaymentDetails;
4332
- declare class UpdatePayment extends AbstractApiRequest<UpdatePaymentInput, UpdatePaymentResponse> {
4333
- readonly method = "PATCH";
4334
- readonly contentType = "application/merge-patch+json";
4335
- readonly accept = "application/json";
4336
- readonly inputSchema: z.ZodObject<{
4337
- status: z.ZodOptional<z.ZodEnum<["pending", "pending_verification", "paid", "canceled", "refunded", "failed"]>>;
4338
- response: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4339
- }, "strip", z.ZodTypeAny, {
4340
- status?: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed" | undefined;
4341
- response?: string | null | undefined;
4342
- }, {
4343
- status?: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed" | undefined;
4344
- response?: string | null | undefined;
4345
- }>;
4346
- readonly outputSchema: z.ZodObject<{
4347
- id: z.ZodString;
4348
- method: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
4349
- status: z.ZodEnum<["pending", "pending_verification", "paid", "canceled", "refunded", "failed"]>;
4350
- amount: z.ZodString;
4351
- internalReference: z.ZodNullable<z.ZodString>;
4352
- externalReference: z.ZodNullable<z.ZodString>;
4353
- response: z.ZodNullable<z.ZodString>;
4354
- validUntil: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
4355
- createdAt: z.ZodEffects<z.ZodString, string, string>;
4356
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
4357
- } & {
4358
- config: z.ZodEffects<z.ZodString, string, string>;
4359
- }, "strip", z.ZodTypeAny, {
4360
- status: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed";
4361
- id: string;
4362
- method: "stripe" | "bank_transfer" | "cash" | "credit_card";
4363
- amount: string;
4364
- internalReference: string | null;
4365
- externalReference: string | null;
4366
- response: string | null;
4367
- validUntil: string | null;
4368
- createdAt: string;
4369
- updatedAt: string;
4370
- config: string;
4371
- }, {
4372
- status: "pending" | "pending_verification" | "paid" | "canceled" | "refunded" | "failed";
4373
- id: string;
4374
- method: "stripe" | "bank_transfer" | "cash" | "credit_card";
4375
- amount: string;
4376
- internalReference: string | null;
4377
- externalReference: string | null;
4378
- response: string | null;
4379
- validUntil: string | null;
4380
- createdAt: string;
4381
- updatedAt: string;
4382
- config: string;
4383
- }>;
4384
- readonly querySchema: undefined;
4385
- readonly headersSchema: undefined;
4386
- private readonly paymentId;
4387
- constructor(paymentId: string, input: UpdatePaymentInput);
4388
- getPath(): string;
4389
- }
4390
-
4391
- declare const paymentMethods: readonly ["stripe", "bank_transfer", "cash", "credit_card"];
4392
- declare const paymentMethodSchema: z.ZodEnum<["stripe", "bank_transfer", "cash", "credit_card"]>;
4393
- type PaymentMethod = z.infer<typeof paymentMethodSchema>;
4394
- declare const paymentStatuses: readonly ["pending", "pending_verification", "paid", "canceled", "refunded", "failed"];
4395
- declare const paymentStatusSchema: z.ZodEnum<["pending", "pending_verification", "paid", "canceled", "refunded", "failed"]>;
4396
- type PaymentStatus = z.infer<typeof paymentStatusSchema>;
4397
- declare const paymentPathSchema: z.ZodEffects<z.ZodString, string, string>;
4398
- type PaymentPath = z.infer<typeof paymentPathSchema>;
4399
- declare const paymentNullablePathSchema: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
4400
- type PaymentNullablePath = z.infer<typeof paymentNullablePathSchema>;
4401
- declare const paymentConfigPathSchema: z.ZodEffects<z.ZodString, string, string>;
4402
- type PaymentConfigPath = z.infer<typeof paymentConfigPathSchema>;
4403
- declare const paymentConfigNullablePathSchema: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
4404
- type PaymentConfigNullablePath = z.infer<typeof paymentConfigNullablePathSchema>;
4405
- declare const paymentConfigBankTransferPathSchema: z.ZodEffects<z.ZodString, string, string>;
4406
- type PaymentConfigBankTransferPath = z.infer<typeof paymentConfigBankTransferPathSchema>;
4407
- declare const paymentConfigBankTransferNullablePathSchema: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
4408
- type PaymentConfigBankTransferNullablePath = z.infer<typeof paymentConfigBankTransferNullablePathSchema>;
4409
- declare const paymentConfigCashPathSchema: z.ZodEffects<z.ZodString, string, string>;
4410
- type PaymentConfigCashPath = z.infer<typeof paymentConfigCashPathSchema>;
4411
- declare const paymentConfigCashNullablePathSchema: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
4412
- type PaymentConfigCashNullablePath = z.infer<typeof paymentConfigCashNullablePathSchema>;
4413
- declare const paymentConfigCreditCardPathSchema: z.ZodEffects<z.ZodString, string, string>;
4414
- type PaymentConfigCreditCardPath = z.infer<typeof paymentConfigCreditCardPathSchema>;
4415
- declare const paymentConfigCreditCardNullablePathSchema: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
4416
- type PaymentConfigCreditCardNullablePath = z.infer<typeof paymentConfigCreditCardNullablePathSchema>;
4417
- declare const paymentConfigStripePathSchema: z.ZodEffects<z.ZodString, string, string>;
4418
- type PaymentConfigStripePath = z.infer<typeof paymentConfigStripePathSchema>;
4419
- declare const paymentConfigStripeNullablePathSchema: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
4420
- type PaymentConfigStripeNullablePath = z.infer<typeof paymentConfigStripeNullablePathSchema>;
4421
-
4422
- export { CreatePaymentConfigBankTransfer, type CreatePaymentConfigBankTransferInput, type CreatePaymentConfigBankTransferResponse, CreatePaymentConfigCash, type CreatePaymentConfigCashInput, type CreatePaymentConfigCashResponse, CreatePaymentConfigCreditCard, type CreatePaymentConfigCreditCardInput, type CreatePaymentConfigCreditCardResponse, CreatePaymentConfigStripe, type CreatePaymentConfigStripeInput, type CreatePaymentConfigStripeResponse, DeletePayment, DeletePaymentConfig, DeletePaymentConfigBankTransfer, DeletePaymentConfigCash, DeletePaymentConfigCreditCard, DeletePaymentConfigStripe, GetPaymentConfigBankTransferDetails, type GetPaymentConfigBankTransferDetailsResponse, GetPaymentConfigBankTransferList, type GetPaymentConfigBankTransferListQueryParams, type GetPaymentConfigBankTransferListResponse, GetPaymentConfigCashDetails, type GetPaymentConfigCashDetailsResponse, GetPaymentConfigCashList, type GetPaymentConfigCashListQueryParams, type GetPaymentConfigCashListResponse, GetPaymentConfigCreditCardDetails, type GetPaymentConfigCreditCardDetailsResponse, GetPaymentConfigCreditCardList, type GetPaymentConfigCreditCardListQueryParams, type GetPaymentConfigCreditCardListResponse, GetPaymentConfigDetails, type GetPaymentConfigDetailsResponse, GetPaymentConfigStripeDetails, type GetPaymentConfigStripeDetailsResponse, GetPaymentConfigStripeList, type GetPaymentConfigStripeListQueryParams, type GetPaymentConfigStripeListResponse, GetPaymentConfigs, type GetPaymentConfigsQueryParams, type GetPaymentConfigsResponse, GetPaymentDetails, type GetPaymentDetailsResponse, GetPayments, GetPaymentsForPaymentConfig, type GetPaymentsForPaymentConfigQueryParams, type GetPaymentsForPaymentConfigResponse, type GetPaymentsQueryParams, type GetPaymentsResponse, type Payment, type PaymentConfig, type PaymentConfigBankTransfer, type PaymentConfigBankTransferDetails, type PaymentConfigBankTransferNullablePath, type PaymentConfigBankTransferPath, type PaymentConfigCash, type PaymentConfigCashDetails, type PaymentConfigCashNullablePath, type PaymentConfigCashPath, type PaymentConfigCreditCard, type PaymentConfigCreditCardDetails, type PaymentConfigCreditCardNullablePath, type PaymentConfigCreditCardPath, type PaymentConfigDetails, type PaymentConfigNullablePath, type PaymentConfigPath, type PaymentConfigStripe, type PaymentConfigStripeDetails, type PaymentConfigStripeNullablePath, type PaymentConfigStripePath, type PaymentConfigsQueryParams, type PaymentDetails, type PaymentMethod, type PaymentNullablePath, type PaymentPath, type PaymentQueryParams, type PaymentStatus, UpdatePayment, UpdatePaymentConfigBankTransfer, type UpdatePaymentConfigBankTransferInput, type UpdatePaymentConfigBankTransferResponse, UpdatePaymentConfigStripe, type UpdatePaymentConfigStripeInput, type UpdatePaymentConfigStripeResponse, type UpdatePaymentInput, type UpdatePaymentResponse, createPaymentConfigBankTransferInputSchema, createPaymentConfigBankTransferResponseSchema, createPaymentConfigCashInputSchema, createPaymentConfigCashResponseSchema, createPaymentConfigCreditCardInputSchema, createPaymentConfigCreditCardResponseSchema, createPaymentConfigStripeInputSchema, createPaymentConfigStripeResponseSchema, deletePaymentConfigBankTransferInputSchema, deletePaymentConfigBankTransferResponseSchema, deletePaymentConfigCashInputSchema, deletePaymentConfigCashResponseSchema, deletePaymentConfigCreditCardInputSchema, deletePaymentConfigCreditCardResponseSchema, deletePaymentConfigInputSchema, deletePaymentConfigResponseSchema, deletePaymentConfigStripeInputSchema, deletePaymentConfigStripeResponseSchema, deletePaymentInputSchema, deletePaymentResponseSchema, getPaymentConfigBankTransferDetailsInputSchema, getPaymentConfigBankTransferDetailsResponseSchema, getPaymentConfigBankTransferListInputSchema, getPaymentConfigBankTransferListResponseSchema, getPaymentConfigCashDetailsInputSchema, getPaymentConfigCashDetailsResponseSchema, getPaymentConfigCashListInputSchema, getPaymentConfigCashListResponseSchema, getPaymentConfigCreditCardDetailsInputSchema, getPaymentConfigCreditCardDetailsResponseSchema, getPaymentConfigCreditCardListInputSchema, getPaymentConfigCreditCardListResponseSchema, getPaymentConfigDetailsInputSchema, getPaymentConfigDetailsResponseSchema, getPaymentConfigStripeDetailsInputSchema, getPaymentConfigStripeDetailsResponseSchema, getPaymentConfigStripeListInputSchema, getPaymentConfigStripeListResponseSchema, getPaymentConfigsInputSchema, getPaymentConfigsResponseSchema, getPaymentDetailsInputSchema, getPaymentDetailsResponseSchema, getPaymentsForPaymentConfigInputSchema, getPaymentsForPaymentConfigResponseSchema, getPaymentsInputSchema, getPaymentsResponseSchema, paymentConfigBankTransferDetailsSchema, paymentConfigBankTransferNullablePathSchema, paymentConfigBankTransferPathSchema, paymentConfigBankTransferSchema, paymentConfigBaseSchema, paymentConfigCashDetailsSchema, paymentConfigCashNullablePathSchema, paymentConfigCashPathSchema, paymentConfigCashSchema, paymentConfigCreditCardDetailsSchema, paymentConfigCreditCardNullablePathSchema, paymentConfigCreditCardPathSchema, paymentConfigCreditCardSchema, paymentConfigDetailsFieldsSchema, paymentConfigDetailsSchema, paymentConfigNullablePathSchema, paymentConfigPathSchema, paymentConfigSchema, paymentConfigStripeDetailsSchema, paymentConfigStripeNullablePathSchema, paymentConfigStripePathSchema, paymentConfigStripeSchema, paymentConfigsQuerySchema, paymentDetailsSchema, paymentMethodSchema, paymentMethods, paymentNullablePathSchema, paymentPathSchema, paymentQuerySchema, paymentSchema, paymentStatusSchema, paymentStatuses, updatePaymentConfigBankTransferInputSchema, updatePaymentConfigBankTransferResponseSchema, updatePaymentConfigStripeInputSchema, updatePaymentConfigStripeResponseSchema, updatePaymentInputSchema, updatePaymentResponseSchema, writablePaymentConfigBankTransferSchema, writablePaymentConfigCashSchema, writablePaymentConfigCreditCardSchema, writablePaymentConfigStripeSchema, writablePaymentSchema };