@deliverart/sdk-js-payment 2.4.10 → 2.4.12
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 +4 -4
- package/dist/index.d.cts +20 -20
- package/dist/index.d.ts +20 -20
- package/dist/index.js +4 -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])
|
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";
|
|
@@ -1705,7 +1705,7 @@ declare const getPaymentDetailsInputSchema: z.ZodUndefined;
|
|
|
1705
1705
|
type GetPaymentDetailsInput = z.input<typeof getPaymentDetailsInputSchema>;
|
|
1706
1706
|
declare const getPaymentDetailsResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1707
1707
|
method: z.ZodLiteral<"stripe">;
|
|
1708
|
-
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>>;
|
|
1709
1709
|
} & {
|
|
1710
1710
|
status: z.ZodEnum<{
|
|
1711
1711
|
pending: "pending";
|
|
@@ -1725,7 +1725,7 @@ declare const getPaymentDetailsResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1725
1725
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
1726
1726
|
}, z.core.$strip>, z.ZodObject<{
|
|
1727
1727
|
method: z.ZodLiteral<"bank_transfer">;
|
|
1728
|
-
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>>;
|
|
1729
1729
|
} & {
|
|
1730
1730
|
status: z.ZodEnum<{
|
|
1731
1731
|
pending: "pending";
|
|
@@ -1745,7 +1745,7 @@ declare const getPaymentDetailsResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1745
1745
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
1746
1746
|
}, z.core.$strip>, z.ZodObject<{
|
|
1747
1747
|
method: z.ZodLiteral<"cash">;
|
|
1748
|
-
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>>;
|
|
1749
1749
|
} & {
|
|
1750
1750
|
status: z.ZodEnum<{
|
|
1751
1751
|
pending: "pending";
|
|
@@ -1765,7 +1765,7 @@ declare const getPaymentDetailsResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1765
1765
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
1766
1766
|
}, z.core.$strip>, z.ZodObject<{
|
|
1767
1767
|
method: z.ZodLiteral<"credit_card">;
|
|
1768
|
-
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>>;
|
|
1769
1769
|
} & {
|
|
1770
1770
|
status: z.ZodEnum<{
|
|
1771
1771
|
pending: "pending";
|
|
@@ -1792,7 +1792,7 @@ declare class GetPaymentDetails extends AbstractApiRequest<typeof getPaymentDeta
|
|
|
1792
1792
|
readonly inputSchema: z.ZodUndefined;
|
|
1793
1793
|
readonly outputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1794
1794
|
method: z.ZodLiteral<"stripe">;
|
|
1795
|
-
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>>;
|
|
1796
1796
|
} & {
|
|
1797
1797
|
status: z.ZodEnum<{
|
|
1798
1798
|
pending: "pending";
|
|
@@ -1812,7 +1812,7 @@ declare class GetPaymentDetails extends AbstractApiRequest<typeof getPaymentDeta
|
|
|
1812
1812
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
1813
1813
|
}, z.core.$strip>, z.ZodObject<{
|
|
1814
1814
|
method: z.ZodLiteral<"bank_transfer">;
|
|
1815
|
-
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>>;
|
|
1816
1816
|
} & {
|
|
1817
1817
|
status: z.ZodEnum<{
|
|
1818
1818
|
pending: "pending";
|
|
@@ -1832,7 +1832,7 @@ declare class GetPaymentDetails extends AbstractApiRequest<typeof getPaymentDeta
|
|
|
1832
1832
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
1833
1833
|
}, z.core.$strip>, z.ZodObject<{
|
|
1834
1834
|
method: z.ZodLiteral<"cash">;
|
|
1835
|
-
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>>;
|
|
1836
1836
|
} & {
|
|
1837
1837
|
status: z.ZodEnum<{
|
|
1838
1838
|
pending: "pending";
|
|
@@ -1852,7 +1852,7 @@ declare class GetPaymentDetails extends AbstractApiRequest<typeof getPaymentDeta
|
|
|
1852
1852
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
1853
1853
|
}, z.core.$strip>, z.ZodObject<{
|
|
1854
1854
|
method: z.ZodLiteral<"credit_card">;
|
|
1855
|
-
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>>;
|
|
1856
1856
|
} & {
|
|
1857
1857
|
status: z.ZodEnum<{
|
|
1858
1858
|
pending: "pending";
|
|
@@ -2298,7 +2298,7 @@ declare const updatePaymentInputSchema: z.ZodObject<{
|
|
|
2298
2298
|
type UpdatePaymentInput = z.input<typeof updatePaymentInputSchema>;
|
|
2299
2299
|
declare const updatePaymentResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2300
2300
|
method: z.ZodLiteral<"stripe">;
|
|
2301
|
-
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>>;
|
|
2302
2302
|
} & {
|
|
2303
2303
|
status: z.ZodEnum<{
|
|
2304
2304
|
pending: "pending";
|
|
@@ -2318,7 +2318,7 @@ declare const updatePaymentResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
2318
2318
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
2319
2319
|
}, z.core.$strip>, z.ZodObject<{
|
|
2320
2320
|
method: z.ZodLiteral<"bank_transfer">;
|
|
2321
|
-
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>>;
|
|
2322
2322
|
} & {
|
|
2323
2323
|
status: z.ZodEnum<{
|
|
2324
2324
|
pending: "pending";
|
|
@@ -2338,7 +2338,7 @@ declare const updatePaymentResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
2338
2338
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
2339
2339
|
}, z.core.$strip>, z.ZodObject<{
|
|
2340
2340
|
method: z.ZodLiteral<"cash">;
|
|
2341
|
-
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>>;
|
|
2342
2342
|
} & {
|
|
2343
2343
|
status: z.ZodEnum<{
|
|
2344
2344
|
pending: "pending";
|
|
@@ -2358,7 +2358,7 @@ declare const updatePaymentResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
2358
2358
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
2359
2359
|
}, z.core.$strip>, z.ZodObject<{
|
|
2360
2360
|
method: z.ZodLiteral<"credit_card">;
|
|
2361
|
-
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>>;
|
|
2362
2362
|
} & {
|
|
2363
2363
|
status: z.ZodEnum<{
|
|
2364
2364
|
pending: "pending";
|
|
@@ -2395,7 +2395,7 @@ declare class UpdatePayment extends AbstractApiRequest<typeof updatePaymentInput
|
|
|
2395
2395
|
}, z.core.$strip>;
|
|
2396
2396
|
readonly outputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2397
2397
|
method: z.ZodLiteral<"stripe">;
|
|
2398
|
-
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>>;
|
|
2399
2399
|
} & {
|
|
2400
2400
|
status: z.ZodEnum<{
|
|
2401
2401
|
pending: "pending";
|
|
@@ -2415,7 +2415,7 @@ declare class UpdatePayment extends AbstractApiRequest<typeof updatePaymentInput
|
|
|
2415
2415
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
2416
2416
|
}, z.core.$strip>, z.ZodObject<{
|
|
2417
2417
|
method: z.ZodLiteral<"bank_transfer">;
|
|
2418
|
-
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>>;
|
|
2419
2419
|
} & {
|
|
2420
2420
|
status: z.ZodEnum<{
|
|
2421
2421
|
pending: "pending";
|
|
@@ -2435,7 +2435,7 @@ declare class UpdatePayment extends AbstractApiRequest<typeof updatePaymentInput
|
|
|
2435
2435
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
2436
2436
|
}, z.core.$strip>, z.ZodObject<{
|
|
2437
2437
|
method: z.ZodLiteral<"cash">;
|
|
2438
|
-
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>>;
|
|
2439
2439
|
} & {
|
|
2440
2440
|
status: z.ZodEnum<{
|
|
2441
2441
|
pending: "pending";
|
|
@@ -2455,7 +2455,7 @@ declare class UpdatePayment extends AbstractApiRequest<typeof updatePaymentInput
|
|
|
2455
2455
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
2456
2456
|
}, z.core.$strip>, z.ZodObject<{
|
|
2457
2457
|
method: z.ZodLiteral<"credit_card">;
|
|
2458
|
-
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>>;
|
|
2459
2459
|
} & {
|
|
2460
2460
|
status: z.ZodEnum<{
|
|
2461
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";
|
|
@@ -1705,7 +1705,7 @@ declare const getPaymentDetailsInputSchema: z.ZodUndefined;
|
|
|
1705
1705
|
type GetPaymentDetailsInput = z.input<typeof getPaymentDetailsInputSchema>;
|
|
1706
1706
|
declare const getPaymentDetailsResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1707
1707
|
method: z.ZodLiteral<"stripe">;
|
|
1708
|
-
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>>;
|
|
1709
1709
|
} & {
|
|
1710
1710
|
status: z.ZodEnum<{
|
|
1711
1711
|
pending: "pending";
|
|
@@ -1725,7 +1725,7 @@ declare const getPaymentDetailsResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1725
1725
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
1726
1726
|
}, z.core.$strip>, z.ZodObject<{
|
|
1727
1727
|
method: z.ZodLiteral<"bank_transfer">;
|
|
1728
|
-
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>>;
|
|
1729
1729
|
} & {
|
|
1730
1730
|
status: z.ZodEnum<{
|
|
1731
1731
|
pending: "pending";
|
|
@@ -1745,7 +1745,7 @@ declare const getPaymentDetailsResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1745
1745
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
1746
1746
|
}, z.core.$strip>, z.ZodObject<{
|
|
1747
1747
|
method: z.ZodLiteral<"cash">;
|
|
1748
|
-
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>>;
|
|
1749
1749
|
} & {
|
|
1750
1750
|
status: z.ZodEnum<{
|
|
1751
1751
|
pending: "pending";
|
|
@@ -1765,7 +1765,7 @@ declare const getPaymentDetailsResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1765
1765
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
1766
1766
|
}, z.core.$strip>, z.ZodObject<{
|
|
1767
1767
|
method: z.ZodLiteral<"credit_card">;
|
|
1768
|
-
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>>;
|
|
1769
1769
|
} & {
|
|
1770
1770
|
status: z.ZodEnum<{
|
|
1771
1771
|
pending: "pending";
|
|
@@ -1792,7 +1792,7 @@ declare class GetPaymentDetails extends AbstractApiRequest<typeof getPaymentDeta
|
|
|
1792
1792
|
readonly inputSchema: z.ZodUndefined;
|
|
1793
1793
|
readonly outputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1794
1794
|
method: z.ZodLiteral<"stripe">;
|
|
1795
|
-
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>>;
|
|
1796
1796
|
} & {
|
|
1797
1797
|
status: z.ZodEnum<{
|
|
1798
1798
|
pending: "pending";
|
|
@@ -1812,7 +1812,7 @@ declare class GetPaymentDetails extends AbstractApiRequest<typeof getPaymentDeta
|
|
|
1812
1812
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
1813
1813
|
}, z.core.$strip>, z.ZodObject<{
|
|
1814
1814
|
method: z.ZodLiteral<"bank_transfer">;
|
|
1815
|
-
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>>;
|
|
1816
1816
|
} & {
|
|
1817
1817
|
status: z.ZodEnum<{
|
|
1818
1818
|
pending: "pending";
|
|
@@ -1832,7 +1832,7 @@ declare class GetPaymentDetails extends AbstractApiRequest<typeof getPaymentDeta
|
|
|
1832
1832
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
1833
1833
|
}, z.core.$strip>, z.ZodObject<{
|
|
1834
1834
|
method: z.ZodLiteral<"cash">;
|
|
1835
|
-
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>>;
|
|
1836
1836
|
} & {
|
|
1837
1837
|
status: z.ZodEnum<{
|
|
1838
1838
|
pending: "pending";
|
|
@@ -1852,7 +1852,7 @@ declare class GetPaymentDetails extends AbstractApiRequest<typeof getPaymentDeta
|
|
|
1852
1852
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
1853
1853
|
}, z.core.$strip>, z.ZodObject<{
|
|
1854
1854
|
method: z.ZodLiteral<"credit_card">;
|
|
1855
|
-
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>>;
|
|
1856
1856
|
} & {
|
|
1857
1857
|
status: z.ZodEnum<{
|
|
1858
1858
|
pending: "pending";
|
|
@@ -2298,7 +2298,7 @@ declare const updatePaymentInputSchema: z.ZodObject<{
|
|
|
2298
2298
|
type UpdatePaymentInput = z.input<typeof updatePaymentInputSchema>;
|
|
2299
2299
|
declare const updatePaymentResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2300
2300
|
method: z.ZodLiteral<"stripe">;
|
|
2301
|
-
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>>;
|
|
2302
2302
|
} & {
|
|
2303
2303
|
status: z.ZodEnum<{
|
|
2304
2304
|
pending: "pending";
|
|
@@ -2318,7 +2318,7 @@ declare const updatePaymentResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
2318
2318
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
2319
2319
|
}, z.core.$strip>, z.ZodObject<{
|
|
2320
2320
|
method: z.ZodLiteral<"bank_transfer">;
|
|
2321
|
-
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>>;
|
|
2322
2322
|
} & {
|
|
2323
2323
|
status: z.ZodEnum<{
|
|
2324
2324
|
pending: "pending";
|
|
@@ -2338,7 +2338,7 @@ declare const updatePaymentResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
2338
2338
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
2339
2339
|
}, z.core.$strip>, z.ZodObject<{
|
|
2340
2340
|
method: z.ZodLiteral<"cash">;
|
|
2341
|
-
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>>;
|
|
2342
2342
|
} & {
|
|
2343
2343
|
status: z.ZodEnum<{
|
|
2344
2344
|
pending: "pending";
|
|
@@ -2358,7 +2358,7 @@ declare const updatePaymentResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
2358
2358
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
2359
2359
|
}, z.core.$strip>, z.ZodObject<{
|
|
2360
2360
|
method: z.ZodLiteral<"credit_card">;
|
|
2361
|
-
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>>;
|
|
2362
2362
|
} & {
|
|
2363
2363
|
status: z.ZodEnum<{
|
|
2364
2364
|
pending: "pending";
|
|
@@ -2395,7 +2395,7 @@ declare class UpdatePayment extends AbstractApiRequest<typeof updatePaymentInput
|
|
|
2395
2395
|
}, z.core.$strip>;
|
|
2396
2396
|
readonly outputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2397
2397
|
method: z.ZodLiteral<"stripe">;
|
|
2398
|
-
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>>;
|
|
2399
2399
|
} & {
|
|
2400
2400
|
status: z.ZodEnum<{
|
|
2401
2401
|
pending: "pending";
|
|
@@ -2415,7 +2415,7 @@ declare class UpdatePayment extends AbstractApiRequest<typeof updatePaymentInput
|
|
|
2415
2415
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
2416
2416
|
}, z.core.$strip>, z.ZodObject<{
|
|
2417
2417
|
method: z.ZodLiteral<"bank_transfer">;
|
|
2418
|
-
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>>;
|
|
2419
2419
|
} & {
|
|
2420
2420
|
status: z.ZodEnum<{
|
|
2421
2421
|
pending: "pending";
|
|
@@ -2435,7 +2435,7 @@ declare class UpdatePayment extends AbstractApiRequest<typeof updatePaymentInput
|
|
|
2435
2435
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
2436
2436
|
}, z.core.$strip>, z.ZodObject<{
|
|
2437
2437
|
method: z.ZodLiteral<"cash">;
|
|
2438
|
-
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>>;
|
|
2439
2439
|
} & {
|
|
2440
2440
|
status: z.ZodEnum<{
|
|
2441
2441
|
pending: "pending";
|
|
@@ -2455,7 +2455,7 @@ declare class UpdatePayment extends AbstractApiRequest<typeof updatePaymentInput
|
|
|
2455
2455
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
2456
2456
|
}, z.core.$strip>, z.ZodObject<{
|
|
2457
2457
|
method: z.ZodLiteral<"credit_card">;
|
|
2458
|
-
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>>;
|
|
2459
2459
|
} & {
|
|
2460
2460
|
status: z.ZodEnum<{
|
|
2461
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])
|
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.12",
|
|
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.12",
|
|
22
|
+
"@deliverart/sdk-js-global-types": "2.4.12",
|
|
23
|
+
"@deliverart/sdk-js-point-of-sale": "2.4.12"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|