@deliverart/sdk-js-payment 2.0.0 → 2.1.1
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 +2 -4
- package/dist/index.d.cts +18 -24
- package/dist/index.d.ts +18 -24
- package/dist/index.js +2 -4
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -11440,10 +11440,8 @@ var writablePaymentConfigSchemas = {
|
|
|
11440
11440
|
var paymentQuerySchema = external_exports.object({
|
|
11441
11441
|
internalReference: external_exports.string().optional(),
|
|
11442
11442
|
externalReference: external_exports.string().optional(),
|
|
11443
|
-
method: paymentMethodSchema.optional(),
|
|
11444
|
-
|
|
11445
|
-
status: paymentStatusSchema.optional(),
|
|
11446
|
-
"status[]": external_exports.array(paymentStatusSchema).optional(),
|
|
11443
|
+
method: external_exports.union([paymentMethodSchema, external_exports.array(paymentMethodSchema)]).optional(),
|
|
11444
|
+
status: external_exports.union([paymentStatusSchema, external_exports.array(paymentStatusSchema)]).optional(),
|
|
11447
11445
|
"amount[between]": external_exports.coerce.number().optional(),
|
|
11448
11446
|
"amount[gt]": external_exports.coerce.number().optional(),
|
|
11449
11447
|
"amount[gte]": external_exports.coerce.number().optional(),
|
package/dist/index.d.cts
CHANGED
|
@@ -341,34 +341,32 @@ declare const writablePaymentConfigSchemas: {
|
|
|
341
341
|
declare const paymentQuerySchema: z.ZodObject<{
|
|
342
342
|
internalReference: z.ZodOptional<z.ZodString>;
|
|
343
343
|
externalReference: z.ZodOptional<z.ZodString>;
|
|
344
|
-
method: z.ZodOptional<z.ZodEnum<{
|
|
344
|
+
method: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
345
345
|
stripe: "stripe";
|
|
346
346
|
bank_transfer: "bank_transfer";
|
|
347
347
|
cash: "cash";
|
|
348
348
|
credit_card: "credit_card";
|
|
349
|
-
}
|
|
350
|
-
'method[]': z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
349
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
351
350
|
stripe: "stripe";
|
|
352
351
|
bank_transfer: "bank_transfer";
|
|
353
352
|
cash: "cash";
|
|
354
353
|
credit_card: "credit_card";
|
|
355
|
-
}
|
|
356
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
354
|
+
}>>]>>;
|
|
355
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
357
356
|
pending: "pending";
|
|
358
357
|
pending_verification: "pending_verification";
|
|
359
358
|
paid: "paid";
|
|
360
359
|
canceled: "canceled";
|
|
361
360
|
refunded: "refunded";
|
|
362
361
|
failed: "failed";
|
|
363
|
-
}
|
|
364
|
-
'status[]': z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
362
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
365
363
|
pending: "pending";
|
|
366
364
|
pending_verification: "pending_verification";
|
|
367
365
|
paid: "paid";
|
|
368
366
|
canceled: "canceled";
|
|
369
367
|
refunded: "refunded";
|
|
370
368
|
failed: "failed";
|
|
371
|
-
}
|
|
369
|
+
}>>]>>;
|
|
372
370
|
'amount[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
373
371
|
'amount[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
374
372
|
'amount[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -1724,34 +1722,32 @@ declare class GetPayments extends AbstractApiRequest<typeof getPaymentsInputSche
|
|
|
1724
1722
|
readonly querySchema: z.ZodObject<{
|
|
1725
1723
|
internalReference: z.ZodOptional<z.ZodString>;
|
|
1726
1724
|
externalReference: z.ZodOptional<z.ZodString>;
|
|
1727
|
-
method: z.ZodOptional<z.ZodEnum<{
|
|
1725
|
+
method: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1728
1726
|
stripe: "stripe";
|
|
1729
1727
|
bank_transfer: "bank_transfer";
|
|
1730
1728
|
cash: "cash";
|
|
1731
1729
|
credit_card: "credit_card";
|
|
1732
|
-
}
|
|
1733
|
-
'method[]': z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1730
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1734
1731
|
stripe: "stripe";
|
|
1735
1732
|
bank_transfer: "bank_transfer";
|
|
1736
1733
|
cash: "cash";
|
|
1737
1734
|
credit_card: "credit_card";
|
|
1738
|
-
}
|
|
1739
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
1735
|
+
}>>]>>;
|
|
1736
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1740
1737
|
pending: "pending";
|
|
1741
1738
|
pending_verification: "pending_verification";
|
|
1742
1739
|
paid: "paid";
|
|
1743
1740
|
canceled: "canceled";
|
|
1744
1741
|
refunded: "refunded";
|
|
1745
1742
|
failed: "failed";
|
|
1746
|
-
}
|
|
1747
|
-
'status[]': z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1743
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1748
1744
|
pending: "pending";
|
|
1749
1745
|
pending_verification: "pending_verification";
|
|
1750
1746
|
paid: "paid";
|
|
1751
1747
|
canceled: "canceled";
|
|
1752
1748
|
refunded: "refunded";
|
|
1753
1749
|
failed: "failed";
|
|
1754
|
-
}
|
|
1750
|
+
}>>]>>;
|
|
1755
1751
|
'amount[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1756
1752
|
'amount[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1757
1753
|
'amount[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -1863,34 +1859,32 @@ declare class GetPaymentsForPaymentConfig extends AbstractApiRequest<typeof getP
|
|
|
1863
1859
|
readonly querySchema: z.ZodObject<{
|
|
1864
1860
|
internalReference: z.ZodOptional<z.ZodString>;
|
|
1865
1861
|
externalReference: z.ZodOptional<z.ZodString>;
|
|
1866
|
-
method: z.ZodOptional<z.ZodEnum<{
|
|
1862
|
+
method: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1867
1863
|
stripe: "stripe";
|
|
1868
1864
|
bank_transfer: "bank_transfer";
|
|
1869
1865
|
cash: "cash";
|
|
1870
1866
|
credit_card: "credit_card";
|
|
1871
|
-
}
|
|
1872
|
-
'method[]': z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1867
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1873
1868
|
stripe: "stripe";
|
|
1874
1869
|
bank_transfer: "bank_transfer";
|
|
1875
1870
|
cash: "cash";
|
|
1876
1871
|
credit_card: "credit_card";
|
|
1877
|
-
}
|
|
1878
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
1872
|
+
}>>]>>;
|
|
1873
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1879
1874
|
pending: "pending";
|
|
1880
1875
|
pending_verification: "pending_verification";
|
|
1881
1876
|
paid: "paid";
|
|
1882
1877
|
canceled: "canceled";
|
|
1883
1878
|
refunded: "refunded";
|
|
1884
1879
|
failed: "failed";
|
|
1885
|
-
}
|
|
1886
|
-
'status[]': z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1880
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1887
1881
|
pending: "pending";
|
|
1888
1882
|
pending_verification: "pending_verification";
|
|
1889
1883
|
paid: "paid";
|
|
1890
1884
|
canceled: "canceled";
|
|
1891
1885
|
refunded: "refunded";
|
|
1892
1886
|
failed: "failed";
|
|
1893
|
-
}
|
|
1887
|
+
}>>]>>;
|
|
1894
1888
|
'amount[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1895
1889
|
'amount[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1896
1890
|
'amount[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -341,34 +341,32 @@ declare const writablePaymentConfigSchemas: {
|
|
|
341
341
|
declare const paymentQuerySchema: z.ZodObject<{
|
|
342
342
|
internalReference: z.ZodOptional<z.ZodString>;
|
|
343
343
|
externalReference: z.ZodOptional<z.ZodString>;
|
|
344
|
-
method: z.ZodOptional<z.ZodEnum<{
|
|
344
|
+
method: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
345
345
|
stripe: "stripe";
|
|
346
346
|
bank_transfer: "bank_transfer";
|
|
347
347
|
cash: "cash";
|
|
348
348
|
credit_card: "credit_card";
|
|
349
|
-
}
|
|
350
|
-
'method[]': z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
349
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
351
350
|
stripe: "stripe";
|
|
352
351
|
bank_transfer: "bank_transfer";
|
|
353
352
|
cash: "cash";
|
|
354
353
|
credit_card: "credit_card";
|
|
355
|
-
}
|
|
356
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
354
|
+
}>>]>>;
|
|
355
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
357
356
|
pending: "pending";
|
|
358
357
|
pending_verification: "pending_verification";
|
|
359
358
|
paid: "paid";
|
|
360
359
|
canceled: "canceled";
|
|
361
360
|
refunded: "refunded";
|
|
362
361
|
failed: "failed";
|
|
363
|
-
}
|
|
364
|
-
'status[]': z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
362
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
365
363
|
pending: "pending";
|
|
366
364
|
pending_verification: "pending_verification";
|
|
367
365
|
paid: "paid";
|
|
368
366
|
canceled: "canceled";
|
|
369
367
|
refunded: "refunded";
|
|
370
368
|
failed: "failed";
|
|
371
|
-
}
|
|
369
|
+
}>>]>>;
|
|
372
370
|
'amount[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
373
371
|
'amount[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
374
372
|
'amount[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -1724,34 +1722,32 @@ declare class GetPayments extends AbstractApiRequest<typeof getPaymentsInputSche
|
|
|
1724
1722
|
readonly querySchema: z.ZodObject<{
|
|
1725
1723
|
internalReference: z.ZodOptional<z.ZodString>;
|
|
1726
1724
|
externalReference: z.ZodOptional<z.ZodString>;
|
|
1727
|
-
method: z.ZodOptional<z.ZodEnum<{
|
|
1725
|
+
method: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1728
1726
|
stripe: "stripe";
|
|
1729
1727
|
bank_transfer: "bank_transfer";
|
|
1730
1728
|
cash: "cash";
|
|
1731
1729
|
credit_card: "credit_card";
|
|
1732
|
-
}
|
|
1733
|
-
'method[]': z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1730
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1734
1731
|
stripe: "stripe";
|
|
1735
1732
|
bank_transfer: "bank_transfer";
|
|
1736
1733
|
cash: "cash";
|
|
1737
1734
|
credit_card: "credit_card";
|
|
1738
|
-
}
|
|
1739
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
1735
|
+
}>>]>>;
|
|
1736
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1740
1737
|
pending: "pending";
|
|
1741
1738
|
pending_verification: "pending_verification";
|
|
1742
1739
|
paid: "paid";
|
|
1743
1740
|
canceled: "canceled";
|
|
1744
1741
|
refunded: "refunded";
|
|
1745
1742
|
failed: "failed";
|
|
1746
|
-
}
|
|
1747
|
-
'status[]': z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1743
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1748
1744
|
pending: "pending";
|
|
1749
1745
|
pending_verification: "pending_verification";
|
|
1750
1746
|
paid: "paid";
|
|
1751
1747
|
canceled: "canceled";
|
|
1752
1748
|
refunded: "refunded";
|
|
1753
1749
|
failed: "failed";
|
|
1754
|
-
}
|
|
1750
|
+
}>>]>>;
|
|
1755
1751
|
'amount[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1756
1752
|
'amount[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1757
1753
|
'amount[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -1863,34 +1859,32 @@ declare class GetPaymentsForPaymentConfig extends AbstractApiRequest<typeof getP
|
|
|
1863
1859
|
readonly querySchema: z.ZodObject<{
|
|
1864
1860
|
internalReference: z.ZodOptional<z.ZodString>;
|
|
1865
1861
|
externalReference: z.ZodOptional<z.ZodString>;
|
|
1866
|
-
method: z.ZodOptional<z.ZodEnum<{
|
|
1862
|
+
method: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1867
1863
|
stripe: "stripe";
|
|
1868
1864
|
bank_transfer: "bank_transfer";
|
|
1869
1865
|
cash: "cash";
|
|
1870
1866
|
credit_card: "credit_card";
|
|
1871
|
-
}
|
|
1872
|
-
'method[]': z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1867
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1873
1868
|
stripe: "stripe";
|
|
1874
1869
|
bank_transfer: "bank_transfer";
|
|
1875
1870
|
cash: "cash";
|
|
1876
1871
|
credit_card: "credit_card";
|
|
1877
|
-
}
|
|
1878
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
1872
|
+
}>>]>>;
|
|
1873
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1879
1874
|
pending: "pending";
|
|
1880
1875
|
pending_verification: "pending_verification";
|
|
1881
1876
|
paid: "paid";
|
|
1882
1877
|
canceled: "canceled";
|
|
1883
1878
|
refunded: "refunded";
|
|
1884
1879
|
failed: "failed";
|
|
1885
|
-
}
|
|
1886
|
-
'status[]': z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1880
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1887
1881
|
pending: "pending";
|
|
1888
1882
|
pending_verification: "pending_verification";
|
|
1889
1883
|
paid: "paid";
|
|
1890
1884
|
canceled: "canceled";
|
|
1891
1885
|
refunded: "refunded";
|
|
1892
1886
|
failed: "failed";
|
|
1893
|
-
}
|
|
1887
|
+
}>>]>>;
|
|
1894
1888
|
'amount[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1895
1889
|
'amount[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1896
1890
|
'amount[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
package/dist/index.js
CHANGED
|
@@ -11310,10 +11310,8 @@ var writablePaymentConfigSchemas = {
|
|
|
11310
11310
|
var paymentQuerySchema = external_exports.object({
|
|
11311
11311
|
internalReference: external_exports.string().optional(),
|
|
11312
11312
|
externalReference: external_exports.string().optional(),
|
|
11313
|
-
method: paymentMethodSchema.optional(),
|
|
11314
|
-
|
|
11315
|
-
status: paymentStatusSchema.optional(),
|
|
11316
|
-
"status[]": external_exports.array(paymentStatusSchema).optional(),
|
|
11313
|
+
method: external_exports.union([paymentMethodSchema, external_exports.array(paymentMethodSchema)]).optional(),
|
|
11314
|
+
status: external_exports.union([paymentStatusSchema, external_exports.array(paymentStatusSchema)]).optional(),
|
|
11317
11315
|
"amount[between]": external_exports.coerce.number().optional(),
|
|
11318
11316
|
"amount[gt]": external_exports.coerce.number().optional(),
|
|
11319
11317
|
"amount[gte]": external_exports.coerce.number().optional(),
|
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
|
+
"version": "2.1.1",
|
|
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.
|
|
22
|
-
"@deliverart/sdk-js-global-types": "2.
|
|
23
|
-
"@deliverart/sdk-js-point-of-sale": "2.
|
|
21
|
+
"@deliverart/sdk-js-core": "2.1.1",
|
|
22
|
+
"@deliverart/sdk-js-global-types": "2.1.1",
|
|
23
|
+
"@deliverart/sdk-js-point-of-sale": "2.1.1"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|