@deliverart/sdk-js-payment 2.4.9 → 2.4.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +5 -4
- package/dist/index.d.cts +148 -20
- package/dist/index.d.ts +148 -20
- package/dist/index.js +5 -4
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -11349,10 +11349,10 @@ function buildPaymentSchema(method, configSchema) {
|
|
|
11349
11349
|
});
|
|
11350
11350
|
}
|
|
11351
11351
|
var paymentMethodIriSchemaMap = {
|
|
11352
|
-
stripe:
|
|
11353
|
-
bank_transfer:
|
|
11354
|
-
cash:
|
|
11355
|
-
credit_card:
|
|
11352
|
+
stripe: paymentConfigStripeNullableIriSchema,
|
|
11353
|
+
bank_transfer: paymentConfigBankTransferNullableIriSchema,
|
|
11354
|
+
cash: paymentConfigCashNullableIriSchema,
|
|
11355
|
+
credit_card: paymentConfigCreditCardNullableIriSchema
|
|
11356
11356
|
};
|
|
11357
11357
|
var paymentSchemas = paymentMethods.map(
|
|
11358
11358
|
(method) => buildPaymentSchema(method, paymentMethodIriSchemaMap[method])
|
|
@@ -11451,6 +11451,7 @@ var writablePaymentConfigSchemas = {
|
|
|
11451
11451
|
var paymentInfoBaseSchema = external_exports.object({
|
|
11452
11452
|
id: external_exports.string(),
|
|
11453
11453
|
method: paymentMethodSchema,
|
|
11454
|
+
status: paymentStatusSchema,
|
|
11454
11455
|
amount: external_exports.string()
|
|
11455
11456
|
});
|
|
11456
11457
|
var paymentInfoStripeSchema = paymentInfoBaseSchema.extend({
|
package/dist/index.d.cts
CHANGED
|
@@ -30,7 +30,7 @@ declare const paymentSchema: z.ZodObject<{
|
|
|
30
30
|
type Payment = z.infer<typeof paymentSchema>;
|
|
31
31
|
declare const paymentDetailsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
32
32
|
method: z.ZodLiteral<"stripe">;
|
|
33
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/stripe/:id"
|
|
33
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/stripe/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/stripe/:id"> | null, unknown>>;
|
|
34
34
|
} & {
|
|
35
35
|
status: z.ZodEnum<{
|
|
36
36
|
pending: "pending";
|
|
@@ -50,7 +50,7 @@ declare const paymentDetailsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
50
50
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
51
51
|
}, z.core.$strip>, z.ZodObject<{
|
|
52
52
|
method: z.ZodLiteral<"bank_transfer">;
|
|
53
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/bank_transfer/:id"
|
|
53
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/bank_transfer/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/bank_transfer/:id"> | null, unknown>>;
|
|
54
54
|
} & {
|
|
55
55
|
status: z.ZodEnum<{
|
|
56
56
|
pending: "pending";
|
|
@@ -70,7 +70,7 @@ declare const paymentDetailsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
70
70
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
71
71
|
}, z.core.$strip>, z.ZodObject<{
|
|
72
72
|
method: z.ZodLiteral<"cash">;
|
|
73
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/cash/:id"
|
|
73
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/cash/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/cash/:id"> | null, unknown>>;
|
|
74
74
|
} & {
|
|
75
75
|
status: z.ZodEnum<{
|
|
76
76
|
pending: "pending";
|
|
@@ -90,7 +90,7 @@ declare const paymentDetailsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
90
90
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
91
91
|
}, z.core.$strip>, z.ZodObject<{
|
|
92
92
|
method: z.ZodLiteral<"credit_card">;
|
|
93
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/credit_card/:id"
|
|
93
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/credit_card/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/credit_card/:id"> | null, unknown>>;
|
|
94
94
|
} & {
|
|
95
95
|
status: z.ZodEnum<{
|
|
96
96
|
pending: "pending";
|
|
@@ -340,6 +340,14 @@ declare const writablePaymentConfigSchemas: {
|
|
|
340
340
|
};
|
|
341
341
|
declare const paymentInfoStripeSchema: z.ZodObject<{
|
|
342
342
|
id: z.ZodString;
|
|
343
|
+
status: z.ZodEnum<{
|
|
344
|
+
pending: "pending";
|
|
345
|
+
pending_verification: "pending_verification";
|
|
346
|
+
paid: "paid";
|
|
347
|
+
canceled: "canceled";
|
|
348
|
+
refunded: "refunded";
|
|
349
|
+
failed: "failed";
|
|
350
|
+
}>;
|
|
343
351
|
amount: z.ZodString;
|
|
344
352
|
method: z.ZodLiteral<"stripe">;
|
|
345
353
|
sessionUrl: z.ZodString;
|
|
@@ -348,6 +356,14 @@ declare const paymentInfoStripeSchema: z.ZodObject<{
|
|
|
348
356
|
type PaymentInfoStripe = z.infer<typeof paymentInfoStripeSchema>;
|
|
349
357
|
declare const paymentInfoBankTransferSchema: z.ZodObject<{
|
|
350
358
|
id: z.ZodString;
|
|
359
|
+
status: z.ZodEnum<{
|
|
360
|
+
pending: "pending";
|
|
361
|
+
pending_verification: "pending_verification";
|
|
362
|
+
paid: "paid";
|
|
363
|
+
canceled: "canceled";
|
|
364
|
+
refunded: "refunded";
|
|
365
|
+
failed: "failed";
|
|
366
|
+
}>;
|
|
351
367
|
amount: z.ZodString;
|
|
352
368
|
method: z.ZodLiteral<"bank_transfer">;
|
|
353
369
|
iban: z.ZodString;
|
|
@@ -361,24 +377,56 @@ declare const paymentInfoBankTransferSchema: z.ZodObject<{
|
|
|
361
377
|
type PaymentInfoBankTransfer = z.infer<typeof paymentInfoBankTransferSchema>;
|
|
362
378
|
declare const paymentInfoCashSchema: z.ZodObject<{
|
|
363
379
|
id: z.ZodString;
|
|
380
|
+
status: z.ZodEnum<{
|
|
381
|
+
pending: "pending";
|
|
382
|
+
pending_verification: "pending_verification";
|
|
383
|
+
paid: "paid";
|
|
384
|
+
canceled: "canceled";
|
|
385
|
+
refunded: "refunded";
|
|
386
|
+
failed: "failed";
|
|
387
|
+
}>;
|
|
364
388
|
amount: z.ZodString;
|
|
365
389
|
method: z.ZodLiteral<"cash">;
|
|
366
390
|
}, z.core.$strip>;
|
|
367
391
|
type PaymentInfoCash = z.infer<typeof paymentInfoCashSchema>;
|
|
368
392
|
declare const paymentInfoCreditCardSchema: z.ZodObject<{
|
|
369
393
|
id: z.ZodString;
|
|
394
|
+
status: z.ZodEnum<{
|
|
395
|
+
pending: "pending";
|
|
396
|
+
pending_verification: "pending_verification";
|
|
397
|
+
paid: "paid";
|
|
398
|
+
canceled: "canceled";
|
|
399
|
+
refunded: "refunded";
|
|
400
|
+
failed: "failed";
|
|
401
|
+
}>;
|
|
370
402
|
amount: z.ZodString;
|
|
371
403
|
method: z.ZodLiteral<"credit_card">;
|
|
372
404
|
}, z.core.$strip>;
|
|
373
405
|
type PaymentInfoCreditCard = z.infer<typeof paymentInfoCreditCardSchema>;
|
|
374
406
|
declare const paymentInfoSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
375
407
|
id: z.ZodString;
|
|
408
|
+
status: z.ZodEnum<{
|
|
409
|
+
pending: "pending";
|
|
410
|
+
pending_verification: "pending_verification";
|
|
411
|
+
paid: "paid";
|
|
412
|
+
canceled: "canceled";
|
|
413
|
+
refunded: "refunded";
|
|
414
|
+
failed: "failed";
|
|
415
|
+
}>;
|
|
376
416
|
amount: z.ZodString;
|
|
377
417
|
method: z.ZodLiteral<"stripe">;
|
|
378
418
|
sessionUrl: z.ZodString;
|
|
379
419
|
expiresAt: z.ZodString;
|
|
380
420
|
}, z.core.$strip>, z.ZodObject<{
|
|
381
421
|
id: z.ZodString;
|
|
422
|
+
status: z.ZodEnum<{
|
|
423
|
+
pending: "pending";
|
|
424
|
+
pending_verification: "pending_verification";
|
|
425
|
+
paid: "paid";
|
|
426
|
+
canceled: "canceled";
|
|
427
|
+
refunded: "refunded";
|
|
428
|
+
failed: "failed";
|
|
429
|
+
}>;
|
|
382
430
|
amount: z.ZodString;
|
|
383
431
|
method: z.ZodLiteral<"bank_transfer">;
|
|
384
432
|
iban: z.ZodString;
|
|
@@ -390,10 +438,26 @@ declare const paymentInfoSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
390
438
|
description: z.ZodString;
|
|
391
439
|
}, z.core.$strip>, z.ZodObject<{
|
|
392
440
|
id: z.ZodString;
|
|
441
|
+
status: z.ZodEnum<{
|
|
442
|
+
pending: "pending";
|
|
443
|
+
pending_verification: "pending_verification";
|
|
444
|
+
paid: "paid";
|
|
445
|
+
canceled: "canceled";
|
|
446
|
+
refunded: "refunded";
|
|
447
|
+
failed: "failed";
|
|
448
|
+
}>;
|
|
393
449
|
amount: z.ZodString;
|
|
394
450
|
method: z.ZodLiteral<"cash">;
|
|
395
451
|
}, z.core.$strip>, z.ZodObject<{
|
|
396
452
|
id: z.ZodString;
|
|
453
|
+
status: z.ZodEnum<{
|
|
454
|
+
pending: "pending";
|
|
455
|
+
pending_verification: "pending_verification";
|
|
456
|
+
paid: "paid";
|
|
457
|
+
canceled: "canceled";
|
|
458
|
+
refunded: "refunded";
|
|
459
|
+
failed: "failed";
|
|
460
|
+
}>;
|
|
397
461
|
amount: z.ZodString;
|
|
398
462
|
method: z.ZodLiteral<"credit_card">;
|
|
399
463
|
}, z.core.$strip>]>;
|
|
@@ -1641,7 +1705,7 @@ declare const getPaymentDetailsInputSchema: z.ZodUndefined;
|
|
|
1641
1705
|
type GetPaymentDetailsInput = z.input<typeof getPaymentDetailsInputSchema>;
|
|
1642
1706
|
declare const getPaymentDetailsResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1643
1707
|
method: z.ZodLiteral<"stripe">;
|
|
1644
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/stripe/:id"
|
|
1708
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/stripe/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/stripe/:id"> | null, unknown>>;
|
|
1645
1709
|
} & {
|
|
1646
1710
|
status: z.ZodEnum<{
|
|
1647
1711
|
pending: "pending";
|
|
@@ -1661,7 +1725,7 @@ declare const getPaymentDetailsResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1661
1725
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
1662
1726
|
}, z.core.$strip>, z.ZodObject<{
|
|
1663
1727
|
method: z.ZodLiteral<"bank_transfer">;
|
|
1664
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/bank_transfer/:id"
|
|
1728
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/bank_transfer/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/bank_transfer/:id"> | null, unknown>>;
|
|
1665
1729
|
} & {
|
|
1666
1730
|
status: z.ZodEnum<{
|
|
1667
1731
|
pending: "pending";
|
|
@@ -1681,7 +1745,7 @@ declare const getPaymentDetailsResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1681
1745
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
1682
1746
|
}, z.core.$strip>, z.ZodObject<{
|
|
1683
1747
|
method: z.ZodLiteral<"cash">;
|
|
1684
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/cash/:id"
|
|
1748
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/cash/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/cash/:id"> | null, unknown>>;
|
|
1685
1749
|
} & {
|
|
1686
1750
|
status: z.ZodEnum<{
|
|
1687
1751
|
pending: "pending";
|
|
@@ -1701,7 +1765,7 @@ declare const getPaymentDetailsResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1701
1765
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
1702
1766
|
}, z.core.$strip>, z.ZodObject<{
|
|
1703
1767
|
method: z.ZodLiteral<"credit_card">;
|
|
1704
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/credit_card/:id"
|
|
1768
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/credit_card/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/credit_card/:id"> | null, unknown>>;
|
|
1705
1769
|
} & {
|
|
1706
1770
|
status: z.ZodEnum<{
|
|
1707
1771
|
pending: "pending";
|
|
@@ -1728,7 +1792,7 @@ declare class GetPaymentDetails extends AbstractApiRequest<typeof getPaymentDeta
|
|
|
1728
1792
|
readonly inputSchema: z.ZodUndefined;
|
|
1729
1793
|
readonly outputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1730
1794
|
method: z.ZodLiteral<"stripe">;
|
|
1731
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/stripe/:id"
|
|
1795
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/stripe/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/stripe/:id"> | null, unknown>>;
|
|
1732
1796
|
} & {
|
|
1733
1797
|
status: z.ZodEnum<{
|
|
1734
1798
|
pending: "pending";
|
|
@@ -1748,7 +1812,7 @@ declare class GetPaymentDetails extends AbstractApiRequest<typeof getPaymentDeta
|
|
|
1748
1812
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
1749
1813
|
}, z.core.$strip>, z.ZodObject<{
|
|
1750
1814
|
method: z.ZodLiteral<"bank_transfer">;
|
|
1751
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/bank_transfer/:id"
|
|
1815
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/bank_transfer/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/bank_transfer/:id"> | null, unknown>>;
|
|
1752
1816
|
} & {
|
|
1753
1817
|
status: z.ZodEnum<{
|
|
1754
1818
|
pending: "pending";
|
|
@@ -1768,7 +1832,7 @@ declare class GetPaymentDetails extends AbstractApiRequest<typeof getPaymentDeta
|
|
|
1768
1832
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
1769
1833
|
}, z.core.$strip>, z.ZodObject<{
|
|
1770
1834
|
method: z.ZodLiteral<"cash">;
|
|
1771
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/cash/:id"
|
|
1835
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/cash/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/cash/:id"> | null, unknown>>;
|
|
1772
1836
|
} & {
|
|
1773
1837
|
status: z.ZodEnum<{
|
|
1774
1838
|
pending: "pending";
|
|
@@ -1788,7 +1852,7 @@ declare class GetPaymentDetails extends AbstractApiRequest<typeof getPaymentDeta
|
|
|
1788
1852
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
1789
1853
|
}, z.core.$strip>, z.ZodObject<{
|
|
1790
1854
|
method: z.ZodLiteral<"credit_card">;
|
|
1791
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/credit_card/:id"
|
|
1855
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/credit_card/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/credit_card/:id"> | null, unknown>>;
|
|
1792
1856
|
} & {
|
|
1793
1857
|
status: z.ZodEnum<{
|
|
1794
1858
|
pending: "pending";
|
|
@@ -1818,12 +1882,28 @@ declare const getPaymentInfoInputSchema: z.ZodUndefined;
|
|
|
1818
1882
|
type GetPaymentInfoInput = z.input<typeof getPaymentInfoInputSchema>;
|
|
1819
1883
|
declare const getPaymentInfoResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1820
1884
|
id: z.ZodString;
|
|
1885
|
+
status: z.ZodEnum<{
|
|
1886
|
+
pending: "pending";
|
|
1887
|
+
pending_verification: "pending_verification";
|
|
1888
|
+
paid: "paid";
|
|
1889
|
+
canceled: "canceled";
|
|
1890
|
+
refunded: "refunded";
|
|
1891
|
+
failed: "failed";
|
|
1892
|
+
}>;
|
|
1821
1893
|
amount: z.ZodString;
|
|
1822
1894
|
method: z.ZodLiteral<"stripe">;
|
|
1823
1895
|
sessionUrl: z.ZodString;
|
|
1824
1896
|
expiresAt: z.ZodString;
|
|
1825
1897
|
}, z.core.$strip>, z.ZodObject<{
|
|
1826
1898
|
id: z.ZodString;
|
|
1899
|
+
status: z.ZodEnum<{
|
|
1900
|
+
pending: "pending";
|
|
1901
|
+
pending_verification: "pending_verification";
|
|
1902
|
+
paid: "paid";
|
|
1903
|
+
canceled: "canceled";
|
|
1904
|
+
refunded: "refunded";
|
|
1905
|
+
failed: "failed";
|
|
1906
|
+
}>;
|
|
1827
1907
|
amount: z.ZodString;
|
|
1828
1908
|
method: z.ZodLiteral<"bank_transfer">;
|
|
1829
1909
|
iban: z.ZodString;
|
|
@@ -1835,10 +1915,26 @@ declare const getPaymentInfoResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1835
1915
|
description: z.ZodString;
|
|
1836
1916
|
}, z.core.$strip>, z.ZodObject<{
|
|
1837
1917
|
id: z.ZodString;
|
|
1918
|
+
status: z.ZodEnum<{
|
|
1919
|
+
pending: "pending";
|
|
1920
|
+
pending_verification: "pending_verification";
|
|
1921
|
+
paid: "paid";
|
|
1922
|
+
canceled: "canceled";
|
|
1923
|
+
refunded: "refunded";
|
|
1924
|
+
failed: "failed";
|
|
1925
|
+
}>;
|
|
1838
1926
|
amount: z.ZodString;
|
|
1839
1927
|
method: z.ZodLiteral<"cash">;
|
|
1840
1928
|
}, z.core.$strip>, z.ZodObject<{
|
|
1841
1929
|
id: z.ZodString;
|
|
1930
|
+
status: z.ZodEnum<{
|
|
1931
|
+
pending: "pending";
|
|
1932
|
+
pending_verification: "pending_verification";
|
|
1933
|
+
paid: "paid";
|
|
1934
|
+
canceled: "canceled";
|
|
1935
|
+
refunded: "refunded";
|
|
1936
|
+
failed: "failed";
|
|
1937
|
+
}>;
|
|
1842
1938
|
amount: z.ZodString;
|
|
1843
1939
|
method: z.ZodLiteral<"credit_card">;
|
|
1844
1940
|
}, z.core.$strip>]>;
|
|
@@ -1850,12 +1946,28 @@ declare class GetPaymentInfo extends AbstractApiRequest<typeof getPaymentInfoInp
|
|
|
1850
1946
|
readonly inputSchema: z.ZodUndefined;
|
|
1851
1947
|
readonly outputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1852
1948
|
id: z.ZodString;
|
|
1949
|
+
status: z.ZodEnum<{
|
|
1950
|
+
pending: "pending";
|
|
1951
|
+
pending_verification: "pending_verification";
|
|
1952
|
+
paid: "paid";
|
|
1953
|
+
canceled: "canceled";
|
|
1954
|
+
refunded: "refunded";
|
|
1955
|
+
failed: "failed";
|
|
1956
|
+
}>;
|
|
1853
1957
|
amount: z.ZodString;
|
|
1854
1958
|
method: z.ZodLiteral<"stripe">;
|
|
1855
1959
|
sessionUrl: z.ZodString;
|
|
1856
1960
|
expiresAt: z.ZodString;
|
|
1857
1961
|
}, z.core.$strip>, z.ZodObject<{
|
|
1858
1962
|
id: z.ZodString;
|
|
1963
|
+
status: z.ZodEnum<{
|
|
1964
|
+
pending: "pending";
|
|
1965
|
+
pending_verification: "pending_verification";
|
|
1966
|
+
paid: "paid";
|
|
1967
|
+
canceled: "canceled";
|
|
1968
|
+
refunded: "refunded";
|
|
1969
|
+
failed: "failed";
|
|
1970
|
+
}>;
|
|
1859
1971
|
amount: z.ZodString;
|
|
1860
1972
|
method: z.ZodLiteral<"bank_transfer">;
|
|
1861
1973
|
iban: z.ZodString;
|
|
@@ -1867,10 +1979,26 @@ declare class GetPaymentInfo extends AbstractApiRequest<typeof getPaymentInfoInp
|
|
|
1867
1979
|
description: z.ZodString;
|
|
1868
1980
|
}, z.core.$strip>, z.ZodObject<{
|
|
1869
1981
|
id: z.ZodString;
|
|
1982
|
+
status: z.ZodEnum<{
|
|
1983
|
+
pending: "pending";
|
|
1984
|
+
pending_verification: "pending_verification";
|
|
1985
|
+
paid: "paid";
|
|
1986
|
+
canceled: "canceled";
|
|
1987
|
+
refunded: "refunded";
|
|
1988
|
+
failed: "failed";
|
|
1989
|
+
}>;
|
|
1870
1990
|
amount: z.ZodString;
|
|
1871
1991
|
method: z.ZodLiteral<"cash">;
|
|
1872
1992
|
}, z.core.$strip>, z.ZodObject<{
|
|
1873
1993
|
id: z.ZodString;
|
|
1994
|
+
status: z.ZodEnum<{
|
|
1995
|
+
pending: "pending";
|
|
1996
|
+
pending_verification: "pending_verification";
|
|
1997
|
+
paid: "paid";
|
|
1998
|
+
canceled: "canceled";
|
|
1999
|
+
refunded: "refunded";
|
|
2000
|
+
failed: "failed";
|
|
2001
|
+
}>;
|
|
1874
2002
|
amount: z.ZodString;
|
|
1875
2003
|
method: z.ZodLiteral<"credit_card">;
|
|
1876
2004
|
}, z.core.$strip>]>;
|
|
@@ -2170,7 +2298,7 @@ declare const updatePaymentInputSchema: z.ZodObject<{
|
|
|
2170
2298
|
type UpdatePaymentInput = z.input<typeof updatePaymentInputSchema>;
|
|
2171
2299
|
declare const updatePaymentResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2172
2300
|
method: z.ZodLiteral<"stripe">;
|
|
2173
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/stripe/:id"
|
|
2301
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/stripe/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/stripe/:id"> | null, unknown>>;
|
|
2174
2302
|
} & {
|
|
2175
2303
|
status: z.ZodEnum<{
|
|
2176
2304
|
pending: "pending";
|
|
@@ -2190,7 +2318,7 @@ declare const updatePaymentResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
2190
2318
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
2191
2319
|
}, z.core.$strip>, z.ZodObject<{
|
|
2192
2320
|
method: z.ZodLiteral<"bank_transfer">;
|
|
2193
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/bank_transfer/:id"
|
|
2321
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/bank_transfer/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/bank_transfer/:id"> | null, unknown>>;
|
|
2194
2322
|
} & {
|
|
2195
2323
|
status: z.ZodEnum<{
|
|
2196
2324
|
pending: "pending";
|
|
@@ -2210,7 +2338,7 @@ declare const updatePaymentResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
2210
2338
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
2211
2339
|
}, z.core.$strip>, z.ZodObject<{
|
|
2212
2340
|
method: z.ZodLiteral<"cash">;
|
|
2213
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/cash/:id"
|
|
2341
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/cash/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/cash/:id"> | null, unknown>>;
|
|
2214
2342
|
} & {
|
|
2215
2343
|
status: z.ZodEnum<{
|
|
2216
2344
|
pending: "pending";
|
|
@@ -2230,7 +2358,7 @@ declare const updatePaymentResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
2230
2358
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
2231
2359
|
}, z.core.$strip>, z.ZodObject<{
|
|
2232
2360
|
method: z.ZodLiteral<"credit_card">;
|
|
2233
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/credit_card/:id"
|
|
2361
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/credit_card/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/credit_card/:id"> | null, unknown>>;
|
|
2234
2362
|
} & {
|
|
2235
2363
|
status: z.ZodEnum<{
|
|
2236
2364
|
pending: "pending";
|
|
@@ -2267,7 +2395,7 @@ declare class UpdatePayment extends AbstractApiRequest<typeof updatePaymentInput
|
|
|
2267
2395
|
}, z.core.$strip>;
|
|
2268
2396
|
readonly outputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2269
2397
|
method: z.ZodLiteral<"stripe">;
|
|
2270
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/stripe/:id"
|
|
2398
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/stripe/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/stripe/:id"> | null, unknown>>;
|
|
2271
2399
|
} & {
|
|
2272
2400
|
status: z.ZodEnum<{
|
|
2273
2401
|
pending: "pending";
|
|
@@ -2287,7 +2415,7 @@ declare class UpdatePayment extends AbstractApiRequest<typeof updatePaymentInput
|
|
|
2287
2415
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
2288
2416
|
}, z.core.$strip>, z.ZodObject<{
|
|
2289
2417
|
method: z.ZodLiteral<"bank_transfer">;
|
|
2290
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/bank_transfer/:id"
|
|
2418
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/bank_transfer/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/bank_transfer/:id"> | null, unknown>>;
|
|
2291
2419
|
} & {
|
|
2292
2420
|
status: z.ZodEnum<{
|
|
2293
2421
|
pending: "pending";
|
|
@@ -2307,7 +2435,7 @@ declare class UpdatePayment extends AbstractApiRequest<typeof updatePaymentInput
|
|
|
2307
2435
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
2308
2436
|
}, z.core.$strip>, z.ZodObject<{
|
|
2309
2437
|
method: z.ZodLiteral<"cash">;
|
|
2310
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/cash/:id"
|
|
2438
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/cash/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/cash/:id"> | null, unknown>>;
|
|
2311
2439
|
} & {
|
|
2312
2440
|
status: z.ZodEnum<{
|
|
2313
2441
|
pending: "pending";
|
|
@@ -2327,7 +2455,7 @@ declare class UpdatePayment extends AbstractApiRequest<typeof updatePaymentInput
|
|
|
2327
2455
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
2328
2456
|
}, z.core.$strip>, z.ZodObject<{
|
|
2329
2457
|
method: z.ZodLiteral<"credit_card">;
|
|
2330
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/credit_card/:id"
|
|
2458
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/credit_card/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/credit_card/:id"> | null, unknown>>;
|
|
2331
2459
|
} & {
|
|
2332
2460
|
status: z.ZodEnum<{
|
|
2333
2461
|
pending: "pending";
|
package/dist/index.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ declare const paymentSchema: z.ZodObject<{
|
|
|
30
30
|
type Payment = z.infer<typeof paymentSchema>;
|
|
31
31
|
declare const paymentDetailsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
32
32
|
method: z.ZodLiteral<"stripe">;
|
|
33
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/stripe/:id"
|
|
33
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/stripe/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/stripe/:id"> | null, unknown>>;
|
|
34
34
|
} & {
|
|
35
35
|
status: z.ZodEnum<{
|
|
36
36
|
pending: "pending";
|
|
@@ -50,7 +50,7 @@ declare const paymentDetailsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
50
50
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
51
51
|
}, z.core.$strip>, z.ZodObject<{
|
|
52
52
|
method: z.ZodLiteral<"bank_transfer">;
|
|
53
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/bank_transfer/:id"
|
|
53
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/bank_transfer/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/bank_transfer/:id"> | null, unknown>>;
|
|
54
54
|
} & {
|
|
55
55
|
status: z.ZodEnum<{
|
|
56
56
|
pending: "pending";
|
|
@@ -70,7 +70,7 @@ declare const paymentDetailsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
70
70
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
71
71
|
}, z.core.$strip>, z.ZodObject<{
|
|
72
72
|
method: z.ZodLiteral<"cash">;
|
|
73
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/cash/:id"
|
|
73
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/cash/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/cash/:id"> | null, unknown>>;
|
|
74
74
|
} & {
|
|
75
75
|
status: z.ZodEnum<{
|
|
76
76
|
pending: "pending";
|
|
@@ -90,7 +90,7 @@ declare const paymentDetailsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
90
90
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
91
91
|
}, z.core.$strip>, z.ZodObject<{
|
|
92
92
|
method: z.ZodLiteral<"credit_card">;
|
|
93
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/credit_card/:id"
|
|
93
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/credit_card/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/credit_card/:id"> | null, unknown>>;
|
|
94
94
|
} & {
|
|
95
95
|
status: z.ZodEnum<{
|
|
96
96
|
pending: "pending";
|
|
@@ -340,6 +340,14 @@ declare const writablePaymentConfigSchemas: {
|
|
|
340
340
|
};
|
|
341
341
|
declare const paymentInfoStripeSchema: z.ZodObject<{
|
|
342
342
|
id: z.ZodString;
|
|
343
|
+
status: z.ZodEnum<{
|
|
344
|
+
pending: "pending";
|
|
345
|
+
pending_verification: "pending_verification";
|
|
346
|
+
paid: "paid";
|
|
347
|
+
canceled: "canceled";
|
|
348
|
+
refunded: "refunded";
|
|
349
|
+
failed: "failed";
|
|
350
|
+
}>;
|
|
343
351
|
amount: z.ZodString;
|
|
344
352
|
method: z.ZodLiteral<"stripe">;
|
|
345
353
|
sessionUrl: z.ZodString;
|
|
@@ -348,6 +356,14 @@ declare const paymentInfoStripeSchema: z.ZodObject<{
|
|
|
348
356
|
type PaymentInfoStripe = z.infer<typeof paymentInfoStripeSchema>;
|
|
349
357
|
declare const paymentInfoBankTransferSchema: z.ZodObject<{
|
|
350
358
|
id: z.ZodString;
|
|
359
|
+
status: z.ZodEnum<{
|
|
360
|
+
pending: "pending";
|
|
361
|
+
pending_verification: "pending_verification";
|
|
362
|
+
paid: "paid";
|
|
363
|
+
canceled: "canceled";
|
|
364
|
+
refunded: "refunded";
|
|
365
|
+
failed: "failed";
|
|
366
|
+
}>;
|
|
351
367
|
amount: z.ZodString;
|
|
352
368
|
method: z.ZodLiteral<"bank_transfer">;
|
|
353
369
|
iban: z.ZodString;
|
|
@@ -361,24 +377,56 @@ declare const paymentInfoBankTransferSchema: z.ZodObject<{
|
|
|
361
377
|
type PaymentInfoBankTransfer = z.infer<typeof paymentInfoBankTransferSchema>;
|
|
362
378
|
declare const paymentInfoCashSchema: z.ZodObject<{
|
|
363
379
|
id: z.ZodString;
|
|
380
|
+
status: z.ZodEnum<{
|
|
381
|
+
pending: "pending";
|
|
382
|
+
pending_verification: "pending_verification";
|
|
383
|
+
paid: "paid";
|
|
384
|
+
canceled: "canceled";
|
|
385
|
+
refunded: "refunded";
|
|
386
|
+
failed: "failed";
|
|
387
|
+
}>;
|
|
364
388
|
amount: z.ZodString;
|
|
365
389
|
method: z.ZodLiteral<"cash">;
|
|
366
390
|
}, z.core.$strip>;
|
|
367
391
|
type PaymentInfoCash = z.infer<typeof paymentInfoCashSchema>;
|
|
368
392
|
declare const paymentInfoCreditCardSchema: z.ZodObject<{
|
|
369
393
|
id: z.ZodString;
|
|
394
|
+
status: z.ZodEnum<{
|
|
395
|
+
pending: "pending";
|
|
396
|
+
pending_verification: "pending_verification";
|
|
397
|
+
paid: "paid";
|
|
398
|
+
canceled: "canceled";
|
|
399
|
+
refunded: "refunded";
|
|
400
|
+
failed: "failed";
|
|
401
|
+
}>;
|
|
370
402
|
amount: z.ZodString;
|
|
371
403
|
method: z.ZodLiteral<"credit_card">;
|
|
372
404
|
}, z.core.$strip>;
|
|
373
405
|
type PaymentInfoCreditCard = z.infer<typeof paymentInfoCreditCardSchema>;
|
|
374
406
|
declare const paymentInfoSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
375
407
|
id: z.ZodString;
|
|
408
|
+
status: z.ZodEnum<{
|
|
409
|
+
pending: "pending";
|
|
410
|
+
pending_verification: "pending_verification";
|
|
411
|
+
paid: "paid";
|
|
412
|
+
canceled: "canceled";
|
|
413
|
+
refunded: "refunded";
|
|
414
|
+
failed: "failed";
|
|
415
|
+
}>;
|
|
376
416
|
amount: z.ZodString;
|
|
377
417
|
method: z.ZodLiteral<"stripe">;
|
|
378
418
|
sessionUrl: z.ZodString;
|
|
379
419
|
expiresAt: z.ZodString;
|
|
380
420
|
}, z.core.$strip>, z.ZodObject<{
|
|
381
421
|
id: z.ZodString;
|
|
422
|
+
status: z.ZodEnum<{
|
|
423
|
+
pending: "pending";
|
|
424
|
+
pending_verification: "pending_verification";
|
|
425
|
+
paid: "paid";
|
|
426
|
+
canceled: "canceled";
|
|
427
|
+
refunded: "refunded";
|
|
428
|
+
failed: "failed";
|
|
429
|
+
}>;
|
|
382
430
|
amount: z.ZodString;
|
|
383
431
|
method: z.ZodLiteral<"bank_transfer">;
|
|
384
432
|
iban: z.ZodString;
|
|
@@ -390,10 +438,26 @@ declare const paymentInfoSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
390
438
|
description: z.ZodString;
|
|
391
439
|
}, z.core.$strip>, z.ZodObject<{
|
|
392
440
|
id: z.ZodString;
|
|
441
|
+
status: z.ZodEnum<{
|
|
442
|
+
pending: "pending";
|
|
443
|
+
pending_verification: "pending_verification";
|
|
444
|
+
paid: "paid";
|
|
445
|
+
canceled: "canceled";
|
|
446
|
+
refunded: "refunded";
|
|
447
|
+
failed: "failed";
|
|
448
|
+
}>;
|
|
393
449
|
amount: z.ZodString;
|
|
394
450
|
method: z.ZodLiteral<"cash">;
|
|
395
451
|
}, z.core.$strip>, z.ZodObject<{
|
|
396
452
|
id: z.ZodString;
|
|
453
|
+
status: z.ZodEnum<{
|
|
454
|
+
pending: "pending";
|
|
455
|
+
pending_verification: "pending_verification";
|
|
456
|
+
paid: "paid";
|
|
457
|
+
canceled: "canceled";
|
|
458
|
+
refunded: "refunded";
|
|
459
|
+
failed: "failed";
|
|
460
|
+
}>;
|
|
397
461
|
amount: z.ZodString;
|
|
398
462
|
method: z.ZodLiteral<"credit_card">;
|
|
399
463
|
}, z.core.$strip>]>;
|
|
@@ -1641,7 +1705,7 @@ declare const getPaymentDetailsInputSchema: z.ZodUndefined;
|
|
|
1641
1705
|
type GetPaymentDetailsInput = z.input<typeof getPaymentDetailsInputSchema>;
|
|
1642
1706
|
declare const getPaymentDetailsResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1643
1707
|
method: z.ZodLiteral<"stripe">;
|
|
1644
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/stripe/:id"
|
|
1708
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/stripe/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/stripe/:id"> | null, unknown>>;
|
|
1645
1709
|
} & {
|
|
1646
1710
|
status: z.ZodEnum<{
|
|
1647
1711
|
pending: "pending";
|
|
@@ -1661,7 +1725,7 @@ declare const getPaymentDetailsResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1661
1725
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
1662
1726
|
}, z.core.$strip>, z.ZodObject<{
|
|
1663
1727
|
method: z.ZodLiteral<"bank_transfer">;
|
|
1664
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/bank_transfer/:id"
|
|
1728
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/bank_transfer/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/bank_transfer/:id"> | null, unknown>>;
|
|
1665
1729
|
} & {
|
|
1666
1730
|
status: z.ZodEnum<{
|
|
1667
1731
|
pending: "pending";
|
|
@@ -1681,7 +1745,7 @@ declare const getPaymentDetailsResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1681
1745
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
1682
1746
|
}, z.core.$strip>, z.ZodObject<{
|
|
1683
1747
|
method: z.ZodLiteral<"cash">;
|
|
1684
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/cash/:id"
|
|
1748
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/cash/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/cash/:id"> | null, unknown>>;
|
|
1685
1749
|
} & {
|
|
1686
1750
|
status: z.ZodEnum<{
|
|
1687
1751
|
pending: "pending";
|
|
@@ -1701,7 +1765,7 @@ declare const getPaymentDetailsResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1701
1765
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
1702
1766
|
}, z.core.$strip>, z.ZodObject<{
|
|
1703
1767
|
method: z.ZodLiteral<"credit_card">;
|
|
1704
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/credit_card/:id"
|
|
1768
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/credit_card/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/credit_card/:id"> | null, unknown>>;
|
|
1705
1769
|
} & {
|
|
1706
1770
|
status: z.ZodEnum<{
|
|
1707
1771
|
pending: "pending";
|
|
@@ -1728,7 +1792,7 @@ declare class GetPaymentDetails extends AbstractApiRequest<typeof getPaymentDeta
|
|
|
1728
1792
|
readonly inputSchema: z.ZodUndefined;
|
|
1729
1793
|
readonly outputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1730
1794
|
method: z.ZodLiteral<"stripe">;
|
|
1731
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/stripe/:id"
|
|
1795
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/stripe/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/stripe/:id"> | null, unknown>>;
|
|
1732
1796
|
} & {
|
|
1733
1797
|
status: z.ZodEnum<{
|
|
1734
1798
|
pending: "pending";
|
|
@@ -1748,7 +1812,7 @@ declare class GetPaymentDetails extends AbstractApiRequest<typeof getPaymentDeta
|
|
|
1748
1812
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
1749
1813
|
}, z.core.$strip>, z.ZodObject<{
|
|
1750
1814
|
method: z.ZodLiteral<"bank_transfer">;
|
|
1751
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/bank_transfer/:id"
|
|
1815
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/bank_transfer/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/bank_transfer/:id"> | null, unknown>>;
|
|
1752
1816
|
} & {
|
|
1753
1817
|
status: z.ZodEnum<{
|
|
1754
1818
|
pending: "pending";
|
|
@@ -1768,7 +1832,7 @@ declare class GetPaymentDetails extends AbstractApiRequest<typeof getPaymentDeta
|
|
|
1768
1832
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
1769
1833
|
}, z.core.$strip>, z.ZodObject<{
|
|
1770
1834
|
method: z.ZodLiteral<"cash">;
|
|
1771
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/cash/:id"
|
|
1835
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/cash/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/cash/:id"> | null, unknown>>;
|
|
1772
1836
|
} & {
|
|
1773
1837
|
status: z.ZodEnum<{
|
|
1774
1838
|
pending: "pending";
|
|
@@ -1788,7 +1852,7 @@ declare class GetPaymentDetails extends AbstractApiRequest<typeof getPaymentDeta
|
|
|
1788
1852
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
1789
1853
|
}, z.core.$strip>, z.ZodObject<{
|
|
1790
1854
|
method: z.ZodLiteral<"credit_card">;
|
|
1791
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/credit_card/:id"
|
|
1855
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/credit_card/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/credit_card/:id"> | null, unknown>>;
|
|
1792
1856
|
} & {
|
|
1793
1857
|
status: z.ZodEnum<{
|
|
1794
1858
|
pending: "pending";
|
|
@@ -1818,12 +1882,28 @@ declare const getPaymentInfoInputSchema: z.ZodUndefined;
|
|
|
1818
1882
|
type GetPaymentInfoInput = z.input<typeof getPaymentInfoInputSchema>;
|
|
1819
1883
|
declare const getPaymentInfoResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1820
1884
|
id: z.ZodString;
|
|
1885
|
+
status: z.ZodEnum<{
|
|
1886
|
+
pending: "pending";
|
|
1887
|
+
pending_verification: "pending_verification";
|
|
1888
|
+
paid: "paid";
|
|
1889
|
+
canceled: "canceled";
|
|
1890
|
+
refunded: "refunded";
|
|
1891
|
+
failed: "failed";
|
|
1892
|
+
}>;
|
|
1821
1893
|
amount: z.ZodString;
|
|
1822
1894
|
method: z.ZodLiteral<"stripe">;
|
|
1823
1895
|
sessionUrl: z.ZodString;
|
|
1824
1896
|
expiresAt: z.ZodString;
|
|
1825
1897
|
}, z.core.$strip>, z.ZodObject<{
|
|
1826
1898
|
id: z.ZodString;
|
|
1899
|
+
status: z.ZodEnum<{
|
|
1900
|
+
pending: "pending";
|
|
1901
|
+
pending_verification: "pending_verification";
|
|
1902
|
+
paid: "paid";
|
|
1903
|
+
canceled: "canceled";
|
|
1904
|
+
refunded: "refunded";
|
|
1905
|
+
failed: "failed";
|
|
1906
|
+
}>;
|
|
1827
1907
|
amount: z.ZodString;
|
|
1828
1908
|
method: z.ZodLiteral<"bank_transfer">;
|
|
1829
1909
|
iban: z.ZodString;
|
|
@@ -1835,10 +1915,26 @@ declare const getPaymentInfoResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1835
1915
|
description: z.ZodString;
|
|
1836
1916
|
}, z.core.$strip>, z.ZodObject<{
|
|
1837
1917
|
id: z.ZodString;
|
|
1918
|
+
status: z.ZodEnum<{
|
|
1919
|
+
pending: "pending";
|
|
1920
|
+
pending_verification: "pending_verification";
|
|
1921
|
+
paid: "paid";
|
|
1922
|
+
canceled: "canceled";
|
|
1923
|
+
refunded: "refunded";
|
|
1924
|
+
failed: "failed";
|
|
1925
|
+
}>;
|
|
1838
1926
|
amount: z.ZodString;
|
|
1839
1927
|
method: z.ZodLiteral<"cash">;
|
|
1840
1928
|
}, z.core.$strip>, z.ZodObject<{
|
|
1841
1929
|
id: z.ZodString;
|
|
1930
|
+
status: z.ZodEnum<{
|
|
1931
|
+
pending: "pending";
|
|
1932
|
+
pending_verification: "pending_verification";
|
|
1933
|
+
paid: "paid";
|
|
1934
|
+
canceled: "canceled";
|
|
1935
|
+
refunded: "refunded";
|
|
1936
|
+
failed: "failed";
|
|
1937
|
+
}>;
|
|
1842
1938
|
amount: z.ZodString;
|
|
1843
1939
|
method: z.ZodLiteral<"credit_card">;
|
|
1844
1940
|
}, z.core.$strip>]>;
|
|
@@ -1850,12 +1946,28 @@ declare class GetPaymentInfo extends AbstractApiRequest<typeof getPaymentInfoInp
|
|
|
1850
1946
|
readonly inputSchema: z.ZodUndefined;
|
|
1851
1947
|
readonly outputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1852
1948
|
id: z.ZodString;
|
|
1949
|
+
status: z.ZodEnum<{
|
|
1950
|
+
pending: "pending";
|
|
1951
|
+
pending_verification: "pending_verification";
|
|
1952
|
+
paid: "paid";
|
|
1953
|
+
canceled: "canceled";
|
|
1954
|
+
refunded: "refunded";
|
|
1955
|
+
failed: "failed";
|
|
1956
|
+
}>;
|
|
1853
1957
|
amount: z.ZodString;
|
|
1854
1958
|
method: z.ZodLiteral<"stripe">;
|
|
1855
1959
|
sessionUrl: z.ZodString;
|
|
1856
1960
|
expiresAt: z.ZodString;
|
|
1857
1961
|
}, z.core.$strip>, z.ZodObject<{
|
|
1858
1962
|
id: z.ZodString;
|
|
1963
|
+
status: z.ZodEnum<{
|
|
1964
|
+
pending: "pending";
|
|
1965
|
+
pending_verification: "pending_verification";
|
|
1966
|
+
paid: "paid";
|
|
1967
|
+
canceled: "canceled";
|
|
1968
|
+
refunded: "refunded";
|
|
1969
|
+
failed: "failed";
|
|
1970
|
+
}>;
|
|
1859
1971
|
amount: z.ZodString;
|
|
1860
1972
|
method: z.ZodLiteral<"bank_transfer">;
|
|
1861
1973
|
iban: z.ZodString;
|
|
@@ -1867,10 +1979,26 @@ declare class GetPaymentInfo extends AbstractApiRequest<typeof getPaymentInfoInp
|
|
|
1867
1979
|
description: z.ZodString;
|
|
1868
1980
|
}, z.core.$strip>, z.ZodObject<{
|
|
1869
1981
|
id: z.ZodString;
|
|
1982
|
+
status: z.ZodEnum<{
|
|
1983
|
+
pending: "pending";
|
|
1984
|
+
pending_verification: "pending_verification";
|
|
1985
|
+
paid: "paid";
|
|
1986
|
+
canceled: "canceled";
|
|
1987
|
+
refunded: "refunded";
|
|
1988
|
+
failed: "failed";
|
|
1989
|
+
}>;
|
|
1870
1990
|
amount: z.ZodString;
|
|
1871
1991
|
method: z.ZodLiteral<"cash">;
|
|
1872
1992
|
}, z.core.$strip>, z.ZodObject<{
|
|
1873
1993
|
id: z.ZodString;
|
|
1994
|
+
status: z.ZodEnum<{
|
|
1995
|
+
pending: "pending";
|
|
1996
|
+
pending_verification: "pending_verification";
|
|
1997
|
+
paid: "paid";
|
|
1998
|
+
canceled: "canceled";
|
|
1999
|
+
refunded: "refunded";
|
|
2000
|
+
failed: "failed";
|
|
2001
|
+
}>;
|
|
1874
2002
|
amount: z.ZodString;
|
|
1875
2003
|
method: z.ZodLiteral<"credit_card">;
|
|
1876
2004
|
}, z.core.$strip>]>;
|
|
@@ -2170,7 +2298,7 @@ declare const updatePaymentInputSchema: z.ZodObject<{
|
|
|
2170
2298
|
type UpdatePaymentInput = z.input<typeof updatePaymentInputSchema>;
|
|
2171
2299
|
declare const updatePaymentResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2172
2300
|
method: z.ZodLiteral<"stripe">;
|
|
2173
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/stripe/:id"
|
|
2301
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/stripe/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/stripe/:id"> | null, unknown>>;
|
|
2174
2302
|
} & {
|
|
2175
2303
|
status: z.ZodEnum<{
|
|
2176
2304
|
pending: "pending";
|
|
@@ -2190,7 +2318,7 @@ declare const updatePaymentResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
2190
2318
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
2191
2319
|
}, z.core.$strip>, z.ZodObject<{
|
|
2192
2320
|
method: z.ZodLiteral<"bank_transfer">;
|
|
2193
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/bank_transfer/:id"
|
|
2321
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/bank_transfer/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/bank_transfer/:id"> | null, unknown>>;
|
|
2194
2322
|
} & {
|
|
2195
2323
|
status: z.ZodEnum<{
|
|
2196
2324
|
pending: "pending";
|
|
@@ -2210,7 +2338,7 @@ declare const updatePaymentResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
2210
2338
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
2211
2339
|
}, z.core.$strip>, z.ZodObject<{
|
|
2212
2340
|
method: z.ZodLiteral<"cash">;
|
|
2213
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/cash/:id"
|
|
2341
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/cash/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/cash/:id"> | null, unknown>>;
|
|
2214
2342
|
} & {
|
|
2215
2343
|
status: z.ZodEnum<{
|
|
2216
2344
|
pending: "pending";
|
|
@@ -2230,7 +2358,7 @@ declare const updatePaymentResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
2230
2358
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
2231
2359
|
}, z.core.$strip>, z.ZodObject<{
|
|
2232
2360
|
method: z.ZodLiteral<"credit_card">;
|
|
2233
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/credit_card/:id"
|
|
2361
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/credit_card/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/credit_card/:id"> | null, unknown>>;
|
|
2234
2362
|
} & {
|
|
2235
2363
|
status: z.ZodEnum<{
|
|
2236
2364
|
pending: "pending";
|
|
@@ -2267,7 +2395,7 @@ declare class UpdatePayment extends AbstractApiRequest<typeof updatePaymentInput
|
|
|
2267
2395
|
}, z.core.$strip>;
|
|
2268
2396
|
readonly outputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2269
2397
|
method: z.ZodLiteral<"stripe">;
|
|
2270
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/stripe/:id"
|
|
2398
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/stripe/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/stripe/:id"> | null, unknown>>;
|
|
2271
2399
|
} & {
|
|
2272
2400
|
status: z.ZodEnum<{
|
|
2273
2401
|
pending: "pending";
|
|
@@ -2287,7 +2415,7 @@ declare class UpdatePayment extends AbstractApiRequest<typeof updatePaymentInput
|
|
|
2287
2415
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
2288
2416
|
}, z.core.$strip>, z.ZodObject<{
|
|
2289
2417
|
method: z.ZodLiteral<"bank_transfer">;
|
|
2290
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/bank_transfer/:id"
|
|
2418
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/bank_transfer/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/bank_transfer/:id"> | null, unknown>>;
|
|
2291
2419
|
} & {
|
|
2292
2420
|
status: z.ZodEnum<{
|
|
2293
2421
|
pending: "pending";
|
|
@@ -2307,7 +2435,7 @@ declare class UpdatePayment extends AbstractApiRequest<typeof updatePaymentInput
|
|
|
2307
2435
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
2308
2436
|
}, z.core.$strip>, z.ZodObject<{
|
|
2309
2437
|
method: z.ZodLiteral<"cash">;
|
|
2310
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/cash/:id"
|
|
2438
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/cash/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/cash/:id"> | null, unknown>>;
|
|
2311
2439
|
} & {
|
|
2312
2440
|
status: z.ZodEnum<{
|
|
2313
2441
|
pending: "pending";
|
|
@@ -2327,7 +2455,7 @@ declare class UpdatePayment extends AbstractApiRequest<typeof updatePaymentInput
|
|
|
2327
2455
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
2328
2456
|
}, z.core.$strip>, z.ZodObject<{
|
|
2329
2457
|
method: z.ZodLiteral<"credit_card">;
|
|
2330
|
-
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/credit_card/:id"
|
|
2458
|
+
config: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/credit_card/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payment_configs/credit_card/:id"> | null, unknown>>;
|
|
2331
2459
|
} & {
|
|
2332
2460
|
status: z.ZodEnum<{
|
|
2333
2461
|
pending: "pending";
|
package/dist/index.js
CHANGED
|
@@ -11208,10 +11208,10 @@ function buildPaymentSchema(method, configSchema) {
|
|
|
11208
11208
|
});
|
|
11209
11209
|
}
|
|
11210
11210
|
var paymentMethodIriSchemaMap = {
|
|
11211
|
-
stripe:
|
|
11212
|
-
bank_transfer:
|
|
11213
|
-
cash:
|
|
11214
|
-
credit_card:
|
|
11211
|
+
stripe: paymentConfigStripeNullableIriSchema,
|
|
11212
|
+
bank_transfer: paymentConfigBankTransferNullableIriSchema,
|
|
11213
|
+
cash: paymentConfigCashNullableIriSchema,
|
|
11214
|
+
credit_card: paymentConfigCreditCardNullableIriSchema
|
|
11215
11215
|
};
|
|
11216
11216
|
var paymentSchemas = paymentMethods.map(
|
|
11217
11217
|
(method) => buildPaymentSchema(method, paymentMethodIriSchemaMap[method])
|
|
@@ -11310,6 +11310,7 @@ var writablePaymentConfigSchemas = {
|
|
|
11310
11310
|
var paymentInfoBaseSchema = external_exports.object({
|
|
11311
11311
|
id: external_exports.string(),
|
|
11312
11312
|
method: paymentMethodSchema,
|
|
11313
|
+
status: paymentStatusSchema,
|
|
11313
11314
|
amount: external_exports.string()
|
|
11314
11315
|
});
|
|
11315
11316
|
var paymentInfoStripeSchema = paymentInfoBaseSchema.extend({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deliverart/sdk-js-payment",
|
|
3
3
|
"description": "Deliverart JavaScript SDK for Payment Management",
|
|
4
|
-
"version": "2.4.
|
|
4
|
+
"version": "2.4.11",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"dist"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@deliverart/sdk-js-core": "2.4.
|
|
22
|
-
"@deliverart/sdk-js-global-types": "2.4.
|
|
23
|
-
"@deliverart/sdk-js-point-of-sale": "2.4.
|
|
21
|
+
"@deliverart/sdk-js-core": "2.4.11",
|
|
22
|
+
"@deliverart/sdk-js-global-types": "2.4.11",
|
|
23
|
+
"@deliverart/sdk-js-point-of-sale": "2.4.11"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|