@deliverart/sdk-js-payment 1.2.2 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -4
- package/dist/index.d.cts +25 -32
- package/dist/index.d.ts +25 -32
- 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
|
@@ -2,7 +2,6 @@ import * as _deliverart_sdk_js_global_types from '@deliverart/sdk-js-global-type
|
|
|
2
2
|
import { Paginated } from '@deliverart/sdk-js-global-types';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { AbstractApiRequest } from '@deliverart/sdk-js-core';
|
|
5
|
-
import { AxiosResponse } from 'axios';
|
|
6
5
|
|
|
7
6
|
declare const paymentSchema: z.ZodObject<{
|
|
8
7
|
id: z.ZodString;
|
|
@@ -342,34 +341,32 @@ declare const writablePaymentConfigSchemas: {
|
|
|
342
341
|
declare const paymentQuerySchema: z.ZodObject<{
|
|
343
342
|
internalReference: z.ZodOptional<z.ZodString>;
|
|
344
343
|
externalReference: z.ZodOptional<z.ZodString>;
|
|
345
|
-
method: z.ZodOptional<z.ZodEnum<{
|
|
344
|
+
method: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
346
345
|
stripe: "stripe";
|
|
347
346
|
bank_transfer: "bank_transfer";
|
|
348
347
|
cash: "cash";
|
|
349
348
|
credit_card: "credit_card";
|
|
350
|
-
}
|
|
351
|
-
'method[]': z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
349
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
352
350
|
stripe: "stripe";
|
|
353
351
|
bank_transfer: "bank_transfer";
|
|
354
352
|
cash: "cash";
|
|
355
353
|
credit_card: "credit_card";
|
|
356
|
-
}
|
|
357
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
354
|
+
}>>]>>;
|
|
355
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
358
356
|
pending: "pending";
|
|
359
357
|
pending_verification: "pending_verification";
|
|
360
358
|
paid: "paid";
|
|
361
359
|
canceled: "canceled";
|
|
362
360
|
refunded: "refunded";
|
|
363
361
|
failed: "failed";
|
|
364
|
-
}
|
|
365
|
-
'status[]': z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
362
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
366
363
|
pending: "pending";
|
|
367
364
|
pending_verification: "pending_verification";
|
|
368
365
|
paid: "paid";
|
|
369
366
|
canceled: "canceled";
|
|
370
367
|
refunded: "refunded";
|
|
371
368
|
failed: "failed";
|
|
372
|
-
}
|
|
369
|
+
}>>]>>;
|
|
373
370
|
'amount[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
374
371
|
'amount[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
375
372
|
'amount[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -624,7 +621,7 @@ declare class GetPaymentConfigBankTransferList extends AbstractApiRequest<typeof
|
|
|
624
621
|
query?: GetPaymentConfigBankTransferListQueryParams;
|
|
625
622
|
});
|
|
626
623
|
getPath(): string;
|
|
627
|
-
parseResponse(data: unknown, rawResponse:
|
|
624
|
+
parseResponse(data: unknown, rawResponse: Response): Paginated<PaymentConfigBankTransfer>;
|
|
628
625
|
}
|
|
629
626
|
|
|
630
627
|
declare const updatePaymentConfigBankTransferInputSchema: z.ZodObject<{
|
|
@@ -838,7 +835,7 @@ declare class GetPaymentConfigCashList extends AbstractApiRequest<typeof getPaym
|
|
|
838
835
|
query?: GetPaymentConfigCashListQueryParams;
|
|
839
836
|
});
|
|
840
837
|
getPath(): string;
|
|
841
|
-
parseResponse(data: unknown, rawResponse:
|
|
838
|
+
parseResponse(data: unknown, rawResponse: Response): Paginated<PaymentConfigCash>;
|
|
842
839
|
}
|
|
843
840
|
|
|
844
841
|
declare const createPaymentConfigCreditCardInputSchema: z.ZodObject<{
|
|
@@ -995,7 +992,7 @@ declare class GetPaymentConfigCreditCardList extends AbstractApiRequest<typeof g
|
|
|
995
992
|
query?: GetPaymentConfigCreditCardListQueryParams;
|
|
996
993
|
});
|
|
997
994
|
getPath(): string;
|
|
998
|
-
parseResponse(data: unknown, rawResponse:
|
|
995
|
+
parseResponse(data: unknown, rawResponse: Response): Paginated<PaymentConfigCreditCard>;
|
|
999
996
|
}
|
|
1000
997
|
|
|
1001
998
|
declare const deletePaymentConfigInputSchema: z.ZodUndefined;
|
|
@@ -1232,7 +1229,7 @@ declare class GetPaymentConfigs extends AbstractApiRequest<typeof getPaymentConf
|
|
|
1232
1229
|
query?: GetPaymentConfigsQueryParams;
|
|
1233
1230
|
});
|
|
1234
1231
|
getPath(): string;
|
|
1235
|
-
parseResponse(data: unknown, rawResponse:
|
|
1232
|
+
parseResponse(data: unknown, rawResponse: Response): Paginated<PaymentConfig>;
|
|
1236
1233
|
}
|
|
1237
1234
|
|
|
1238
1235
|
declare const createPaymentConfigStripeInputSchema: z.ZodObject<{
|
|
@@ -1409,7 +1406,7 @@ declare class GetPaymentConfigStripeList extends AbstractApiRequest<typeof getPa
|
|
|
1409
1406
|
query?: GetPaymentConfigStripeListQueryParams;
|
|
1410
1407
|
});
|
|
1411
1408
|
getPath(): string;
|
|
1412
|
-
parseResponse(data: unknown, rawResponse:
|
|
1409
|
+
parseResponse(data: unknown, rawResponse: Response): Paginated<PaymentConfigStripe>;
|
|
1413
1410
|
}
|
|
1414
1411
|
|
|
1415
1412
|
declare const updatePaymentConfigStripeInputSchema: z.ZodObject<{
|
|
@@ -1725,34 +1722,32 @@ declare class GetPayments extends AbstractApiRequest<typeof getPaymentsInputSche
|
|
|
1725
1722
|
readonly querySchema: z.ZodObject<{
|
|
1726
1723
|
internalReference: z.ZodOptional<z.ZodString>;
|
|
1727
1724
|
externalReference: z.ZodOptional<z.ZodString>;
|
|
1728
|
-
method: z.ZodOptional<z.ZodEnum<{
|
|
1725
|
+
method: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1729
1726
|
stripe: "stripe";
|
|
1730
1727
|
bank_transfer: "bank_transfer";
|
|
1731
1728
|
cash: "cash";
|
|
1732
1729
|
credit_card: "credit_card";
|
|
1733
|
-
}
|
|
1734
|
-
'method[]': z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1730
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1735
1731
|
stripe: "stripe";
|
|
1736
1732
|
bank_transfer: "bank_transfer";
|
|
1737
1733
|
cash: "cash";
|
|
1738
1734
|
credit_card: "credit_card";
|
|
1739
|
-
}
|
|
1740
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
1735
|
+
}>>]>>;
|
|
1736
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1741
1737
|
pending: "pending";
|
|
1742
1738
|
pending_verification: "pending_verification";
|
|
1743
1739
|
paid: "paid";
|
|
1744
1740
|
canceled: "canceled";
|
|
1745
1741
|
refunded: "refunded";
|
|
1746
1742
|
failed: "failed";
|
|
1747
|
-
}
|
|
1748
|
-
'status[]': z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1743
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1749
1744
|
pending: "pending";
|
|
1750
1745
|
pending_verification: "pending_verification";
|
|
1751
1746
|
paid: "paid";
|
|
1752
1747
|
canceled: "canceled";
|
|
1753
1748
|
refunded: "refunded";
|
|
1754
1749
|
failed: "failed";
|
|
1755
|
-
}
|
|
1750
|
+
}>>]>>;
|
|
1756
1751
|
'amount[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1757
1752
|
'amount[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1758
1753
|
'amount[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -1781,7 +1776,7 @@ declare class GetPayments extends AbstractApiRequest<typeof getPaymentsInputSche
|
|
|
1781
1776
|
query?: GetPaymentsQueryParams;
|
|
1782
1777
|
});
|
|
1783
1778
|
getPath(): string;
|
|
1784
|
-
parseResponse(data: unknown, rawResponse:
|
|
1779
|
+
parseResponse(data: unknown, rawResponse: Response): Paginated<Payment>;
|
|
1785
1780
|
}
|
|
1786
1781
|
|
|
1787
1782
|
type GetPaymentsForPaymentConfigQueryParams = PaymentQueryParams;
|
|
@@ -1864,34 +1859,32 @@ declare class GetPaymentsForPaymentConfig extends AbstractApiRequest<typeof getP
|
|
|
1864
1859
|
readonly querySchema: z.ZodObject<{
|
|
1865
1860
|
internalReference: z.ZodOptional<z.ZodString>;
|
|
1866
1861
|
externalReference: z.ZodOptional<z.ZodString>;
|
|
1867
|
-
method: z.ZodOptional<z.ZodEnum<{
|
|
1862
|
+
method: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1868
1863
|
stripe: "stripe";
|
|
1869
1864
|
bank_transfer: "bank_transfer";
|
|
1870
1865
|
cash: "cash";
|
|
1871
1866
|
credit_card: "credit_card";
|
|
1872
|
-
}
|
|
1873
|
-
'method[]': z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1867
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1874
1868
|
stripe: "stripe";
|
|
1875
1869
|
bank_transfer: "bank_transfer";
|
|
1876
1870
|
cash: "cash";
|
|
1877
1871
|
credit_card: "credit_card";
|
|
1878
|
-
}
|
|
1879
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
1872
|
+
}>>]>>;
|
|
1873
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1880
1874
|
pending: "pending";
|
|
1881
1875
|
pending_verification: "pending_verification";
|
|
1882
1876
|
paid: "paid";
|
|
1883
1877
|
canceled: "canceled";
|
|
1884
1878
|
refunded: "refunded";
|
|
1885
1879
|
failed: "failed";
|
|
1886
|
-
}
|
|
1887
|
-
'status[]': z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1880
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1888
1881
|
pending: "pending";
|
|
1889
1882
|
pending_verification: "pending_verification";
|
|
1890
1883
|
paid: "paid";
|
|
1891
1884
|
canceled: "canceled";
|
|
1892
1885
|
refunded: "refunded";
|
|
1893
1886
|
failed: "failed";
|
|
1894
|
-
}
|
|
1887
|
+
}>>]>>;
|
|
1895
1888
|
'amount[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1896
1889
|
'amount[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1897
1890
|
'amount[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -1921,7 +1914,7 @@ declare class GetPaymentsForPaymentConfig extends AbstractApiRequest<typeof getP
|
|
|
1921
1914
|
query?: GetPaymentsForPaymentConfigQueryParams;
|
|
1922
1915
|
});
|
|
1923
1916
|
getPath(): string;
|
|
1924
|
-
parseResponse(data: unknown, rawResponse:
|
|
1917
|
+
parseResponse(data: unknown, rawResponse: Response): Paginated<Payment>;
|
|
1925
1918
|
}
|
|
1926
1919
|
|
|
1927
1920
|
declare const updatePaymentInputSchema: z.ZodObject<{
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import * as _deliverart_sdk_js_global_types from '@deliverart/sdk-js-global-type
|
|
|
2
2
|
import { Paginated } from '@deliverart/sdk-js-global-types';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { AbstractApiRequest } from '@deliverart/sdk-js-core';
|
|
5
|
-
import { AxiosResponse } from 'axios';
|
|
6
5
|
|
|
7
6
|
declare const paymentSchema: z.ZodObject<{
|
|
8
7
|
id: z.ZodString;
|
|
@@ -342,34 +341,32 @@ declare const writablePaymentConfigSchemas: {
|
|
|
342
341
|
declare const paymentQuerySchema: z.ZodObject<{
|
|
343
342
|
internalReference: z.ZodOptional<z.ZodString>;
|
|
344
343
|
externalReference: z.ZodOptional<z.ZodString>;
|
|
345
|
-
method: z.ZodOptional<z.ZodEnum<{
|
|
344
|
+
method: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
346
345
|
stripe: "stripe";
|
|
347
346
|
bank_transfer: "bank_transfer";
|
|
348
347
|
cash: "cash";
|
|
349
348
|
credit_card: "credit_card";
|
|
350
|
-
}
|
|
351
|
-
'method[]': z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
349
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
352
350
|
stripe: "stripe";
|
|
353
351
|
bank_transfer: "bank_transfer";
|
|
354
352
|
cash: "cash";
|
|
355
353
|
credit_card: "credit_card";
|
|
356
|
-
}
|
|
357
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
354
|
+
}>>]>>;
|
|
355
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
358
356
|
pending: "pending";
|
|
359
357
|
pending_verification: "pending_verification";
|
|
360
358
|
paid: "paid";
|
|
361
359
|
canceled: "canceled";
|
|
362
360
|
refunded: "refunded";
|
|
363
361
|
failed: "failed";
|
|
364
|
-
}
|
|
365
|
-
'status[]': z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
362
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
366
363
|
pending: "pending";
|
|
367
364
|
pending_verification: "pending_verification";
|
|
368
365
|
paid: "paid";
|
|
369
366
|
canceled: "canceled";
|
|
370
367
|
refunded: "refunded";
|
|
371
368
|
failed: "failed";
|
|
372
|
-
}
|
|
369
|
+
}>>]>>;
|
|
373
370
|
'amount[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
374
371
|
'amount[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
375
372
|
'amount[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -624,7 +621,7 @@ declare class GetPaymentConfigBankTransferList extends AbstractApiRequest<typeof
|
|
|
624
621
|
query?: GetPaymentConfigBankTransferListQueryParams;
|
|
625
622
|
});
|
|
626
623
|
getPath(): string;
|
|
627
|
-
parseResponse(data: unknown, rawResponse:
|
|
624
|
+
parseResponse(data: unknown, rawResponse: Response): Paginated<PaymentConfigBankTransfer>;
|
|
628
625
|
}
|
|
629
626
|
|
|
630
627
|
declare const updatePaymentConfigBankTransferInputSchema: z.ZodObject<{
|
|
@@ -838,7 +835,7 @@ declare class GetPaymentConfigCashList extends AbstractApiRequest<typeof getPaym
|
|
|
838
835
|
query?: GetPaymentConfigCashListQueryParams;
|
|
839
836
|
});
|
|
840
837
|
getPath(): string;
|
|
841
|
-
parseResponse(data: unknown, rawResponse:
|
|
838
|
+
parseResponse(data: unknown, rawResponse: Response): Paginated<PaymentConfigCash>;
|
|
842
839
|
}
|
|
843
840
|
|
|
844
841
|
declare const createPaymentConfigCreditCardInputSchema: z.ZodObject<{
|
|
@@ -995,7 +992,7 @@ declare class GetPaymentConfigCreditCardList extends AbstractApiRequest<typeof g
|
|
|
995
992
|
query?: GetPaymentConfigCreditCardListQueryParams;
|
|
996
993
|
});
|
|
997
994
|
getPath(): string;
|
|
998
|
-
parseResponse(data: unknown, rawResponse:
|
|
995
|
+
parseResponse(data: unknown, rawResponse: Response): Paginated<PaymentConfigCreditCard>;
|
|
999
996
|
}
|
|
1000
997
|
|
|
1001
998
|
declare const deletePaymentConfigInputSchema: z.ZodUndefined;
|
|
@@ -1232,7 +1229,7 @@ declare class GetPaymentConfigs extends AbstractApiRequest<typeof getPaymentConf
|
|
|
1232
1229
|
query?: GetPaymentConfigsQueryParams;
|
|
1233
1230
|
});
|
|
1234
1231
|
getPath(): string;
|
|
1235
|
-
parseResponse(data: unknown, rawResponse:
|
|
1232
|
+
parseResponse(data: unknown, rawResponse: Response): Paginated<PaymentConfig>;
|
|
1236
1233
|
}
|
|
1237
1234
|
|
|
1238
1235
|
declare const createPaymentConfigStripeInputSchema: z.ZodObject<{
|
|
@@ -1409,7 +1406,7 @@ declare class GetPaymentConfigStripeList extends AbstractApiRequest<typeof getPa
|
|
|
1409
1406
|
query?: GetPaymentConfigStripeListQueryParams;
|
|
1410
1407
|
});
|
|
1411
1408
|
getPath(): string;
|
|
1412
|
-
parseResponse(data: unknown, rawResponse:
|
|
1409
|
+
parseResponse(data: unknown, rawResponse: Response): Paginated<PaymentConfigStripe>;
|
|
1413
1410
|
}
|
|
1414
1411
|
|
|
1415
1412
|
declare const updatePaymentConfigStripeInputSchema: z.ZodObject<{
|
|
@@ -1725,34 +1722,32 @@ declare class GetPayments extends AbstractApiRequest<typeof getPaymentsInputSche
|
|
|
1725
1722
|
readonly querySchema: z.ZodObject<{
|
|
1726
1723
|
internalReference: z.ZodOptional<z.ZodString>;
|
|
1727
1724
|
externalReference: z.ZodOptional<z.ZodString>;
|
|
1728
|
-
method: z.ZodOptional<z.ZodEnum<{
|
|
1725
|
+
method: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1729
1726
|
stripe: "stripe";
|
|
1730
1727
|
bank_transfer: "bank_transfer";
|
|
1731
1728
|
cash: "cash";
|
|
1732
1729
|
credit_card: "credit_card";
|
|
1733
|
-
}
|
|
1734
|
-
'method[]': z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1730
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1735
1731
|
stripe: "stripe";
|
|
1736
1732
|
bank_transfer: "bank_transfer";
|
|
1737
1733
|
cash: "cash";
|
|
1738
1734
|
credit_card: "credit_card";
|
|
1739
|
-
}
|
|
1740
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
1735
|
+
}>>]>>;
|
|
1736
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1741
1737
|
pending: "pending";
|
|
1742
1738
|
pending_verification: "pending_verification";
|
|
1743
1739
|
paid: "paid";
|
|
1744
1740
|
canceled: "canceled";
|
|
1745
1741
|
refunded: "refunded";
|
|
1746
1742
|
failed: "failed";
|
|
1747
|
-
}
|
|
1748
|
-
'status[]': z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1743
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1749
1744
|
pending: "pending";
|
|
1750
1745
|
pending_verification: "pending_verification";
|
|
1751
1746
|
paid: "paid";
|
|
1752
1747
|
canceled: "canceled";
|
|
1753
1748
|
refunded: "refunded";
|
|
1754
1749
|
failed: "failed";
|
|
1755
|
-
}
|
|
1750
|
+
}>>]>>;
|
|
1756
1751
|
'amount[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1757
1752
|
'amount[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1758
1753
|
'amount[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -1781,7 +1776,7 @@ declare class GetPayments extends AbstractApiRequest<typeof getPaymentsInputSche
|
|
|
1781
1776
|
query?: GetPaymentsQueryParams;
|
|
1782
1777
|
});
|
|
1783
1778
|
getPath(): string;
|
|
1784
|
-
parseResponse(data: unknown, rawResponse:
|
|
1779
|
+
parseResponse(data: unknown, rawResponse: Response): Paginated<Payment>;
|
|
1785
1780
|
}
|
|
1786
1781
|
|
|
1787
1782
|
type GetPaymentsForPaymentConfigQueryParams = PaymentQueryParams;
|
|
@@ -1864,34 +1859,32 @@ declare class GetPaymentsForPaymentConfig extends AbstractApiRequest<typeof getP
|
|
|
1864
1859
|
readonly querySchema: z.ZodObject<{
|
|
1865
1860
|
internalReference: z.ZodOptional<z.ZodString>;
|
|
1866
1861
|
externalReference: z.ZodOptional<z.ZodString>;
|
|
1867
|
-
method: z.ZodOptional<z.ZodEnum<{
|
|
1862
|
+
method: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1868
1863
|
stripe: "stripe";
|
|
1869
1864
|
bank_transfer: "bank_transfer";
|
|
1870
1865
|
cash: "cash";
|
|
1871
1866
|
credit_card: "credit_card";
|
|
1872
|
-
}
|
|
1873
|
-
'method[]': z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1867
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1874
1868
|
stripe: "stripe";
|
|
1875
1869
|
bank_transfer: "bank_transfer";
|
|
1876
1870
|
cash: "cash";
|
|
1877
1871
|
credit_card: "credit_card";
|
|
1878
|
-
}
|
|
1879
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
1872
|
+
}>>]>>;
|
|
1873
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1880
1874
|
pending: "pending";
|
|
1881
1875
|
pending_verification: "pending_verification";
|
|
1882
1876
|
paid: "paid";
|
|
1883
1877
|
canceled: "canceled";
|
|
1884
1878
|
refunded: "refunded";
|
|
1885
1879
|
failed: "failed";
|
|
1886
|
-
}
|
|
1887
|
-
'status[]': z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1880
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1888
1881
|
pending: "pending";
|
|
1889
1882
|
pending_verification: "pending_verification";
|
|
1890
1883
|
paid: "paid";
|
|
1891
1884
|
canceled: "canceled";
|
|
1892
1885
|
refunded: "refunded";
|
|
1893
1886
|
failed: "failed";
|
|
1894
|
-
}
|
|
1887
|
+
}>>]>>;
|
|
1895
1888
|
'amount[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1896
1889
|
'amount[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1897
1890
|
'amount[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -1921,7 +1914,7 @@ declare class GetPaymentsForPaymentConfig extends AbstractApiRequest<typeof getP
|
|
|
1921
1914
|
query?: GetPaymentsForPaymentConfigQueryParams;
|
|
1922
1915
|
});
|
|
1923
1916
|
getPath(): string;
|
|
1924
|
-
parseResponse(data: unknown, rawResponse:
|
|
1917
|
+
parseResponse(data: unknown, rawResponse: Response): Paginated<Payment>;
|
|
1925
1918
|
}
|
|
1926
1919
|
|
|
1927
1920
|
declare const updatePaymentInputSchema: z.ZodObject<{
|
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": "1.
|
|
4
|
+
"version": "2.1.0",
|
|
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": "1.
|
|
22
|
-
"@deliverart/sdk-js-global-types": "1.
|
|
23
|
-
"@deliverart/sdk-js-point-of-sale": "1.
|
|
21
|
+
"@deliverart/sdk-js-core": "2.1.0",
|
|
22
|
+
"@deliverart/sdk-js-global-types": "2.1.0",
|
|
23
|
+
"@deliverart/sdk-js-point-of-sale": "2.1.0"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|