@deliverart/sdk-js-payment 2.5.34 → 2.6.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 +23 -38
- package/dist/index.d.cts +437 -61
- package/dist/index.d.ts +437 -61
- package/dist/index.js +30 -66
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -11423,12 +11423,9 @@ var GetPaymentConfigBankTransferDetails = class extends AbstractApiRequest3 {
|
|
|
11423
11423
|
|
|
11424
11424
|
// src/requests/payment-configs/bank-transfer/GetPaymentConfigBankTransferList.ts
|
|
11425
11425
|
import { AbstractApiRequest as AbstractApiRequest4 } from "@deliverart/sdk-js-core";
|
|
11426
|
-
import {
|
|
11427
|
-
createPaginatedSchema,
|
|
11428
|
-
responseToPagination
|
|
11429
|
-
} from "@deliverart/sdk-js-global-types";
|
|
11426
|
+
import { mixedPaginationSchema } from "@deliverart/sdk-js-global-types";
|
|
11430
11427
|
var getPaymentConfigBankTransferListInputSchema = external_exports.undefined();
|
|
11431
|
-
var getPaymentConfigBankTransferListResponseSchema =
|
|
11428
|
+
var getPaymentConfigBankTransferListResponseSchema = mixedPaginationSchema(
|
|
11432
11429
|
paymentConfigBankTransferSchema
|
|
11433
11430
|
);
|
|
11434
11431
|
var GetPaymentConfigBankTransferList = class extends AbstractApiRequest4 {
|
|
@@ -11441,14 +11438,12 @@ var GetPaymentConfigBankTransferList = class extends AbstractApiRequest4 {
|
|
|
11441
11438
|
this.outputSchema = getPaymentConfigBankTransferListResponseSchema;
|
|
11442
11439
|
this.querySchema = paymentConfigsQuerySchema;
|
|
11443
11440
|
this.headersSchema = void 0;
|
|
11441
|
+
this.listItemSchema = paymentConfigBankTransferSchema;
|
|
11442
|
+
this.paginationDefaultEnabled = true;
|
|
11444
11443
|
}
|
|
11445
11444
|
getPath() {
|
|
11446
11445
|
return "/payment_configs/bank_transfer";
|
|
11447
11446
|
}
|
|
11448
|
-
parseResponse(data, rawResponse) {
|
|
11449
|
-
const payments = external_exports.array(paymentConfigBankTransferSchema).parse(data);
|
|
11450
|
-
return this.validateOutput({ data: payments, pagination: responseToPagination(rawResponse) });
|
|
11451
|
-
}
|
|
11452
11447
|
};
|
|
11453
11448
|
|
|
11454
11449
|
// src/requests/payment-configs/bank-transfer/UpdatePaymentConfigBankTransfer.ts
|
|
@@ -11539,12 +11534,9 @@ var GetPaymentConfigCashDetails = class extends AbstractApiRequest8 {
|
|
|
11539
11534
|
|
|
11540
11535
|
// src/requests/payment-configs/cash/GetPaymentConfigCashList.ts
|
|
11541
11536
|
import { AbstractApiRequest as AbstractApiRequest9 } from "@deliverart/sdk-js-core";
|
|
11542
|
-
import {
|
|
11543
|
-
createPaginatedSchema as createPaginatedSchema2,
|
|
11544
|
-
responseToPagination as responseToPagination2
|
|
11545
|
-
} from "@deliverart/sdk-js-global-types";
|
|
11537
|
+
import { mixedPaginationSchema as mixedPaginationSchema2 } from "@deliverart/sdk-js-global-types";
|
|
11546
11538
|
var getPaymentConfigCashListInputSchema = external_exports.undefined();
|
|
11547
|
-
var getPaymentConfigCashListResponseSchema =
|
|
11539
|
+
var getPaymentConfigCashListResponseSchema = mixedPaginationSchema2(paymentConfigCashSchema);
|
|
11548
11540
|
var GetPaymentConfigCashList = class extends AbstractApiRequest9 {
|
|
11549
11541
|
constructor(options) {
|
|
11550
11542
|
super(void 0, options);
|
|
@@ -11555,14 +11547,12 @@ var GetPaymentConfigCashList = class extends AbstractApiRequest9 {
|
|
|
11555
11547
|
this.outputSchema = getPaymentConfigCashListResponseSchema;
|
|
11556
11548
|
this.querySchema = paymentConfigsQuerySchema;
|
|
11557
11549
|
this.headersSchema = void 0;
|
|
11550
|
+
this.listItemSchema = paymentConfigCashSchema;
|
|
11551
|
+
this.paginationDefaultEnabled = true;
|
|
11558
11552
|
}
|
|
11559
11553
|
getPath() {
|
|
11560
11554
|
return "/payment_configs/cash";
|
|
11561
11555
|
}
|
|
11562
|
-
parseResponse(data, rawResponse) {
|
|
11563
|
-
const payments = external_exports.array(paymentConfigCashSchema).parse(data);
|
|
11564
|
-
return this.validateOutput({ data: payments, pagination: responseToPagination2(rawResponse) });
|
|
11565
|
-
}
|
|
11566
11556
|
};
|
|
11567
11557
|
|
|
11568
11558
|
// src/requests/payment-configs/credit-card/CreatePaymentConfigCreditCard.ts
|
|
@@ -11630,12 +11620,9 @@ var GetPaymentConfigCreditCardDetails = class extends AbstractApiRequest12 {
|
|
|
11630
11620
|
|
|
11631
11621
|
// src/requests/payment-configs/credit-card/GetPaymentConfigCreditCardList.ts
|
|
11632
11622
|
import { AbstractApiRequest as AbstractApiRequest13 } from "@deliverart/sdk-js-core";
|
|
11633
|
-
import {
|
|
11634
|
-
createPaginatedSchema as createPaginatedSchema3,
|
|
11635
|
-
responseToPagination as responseToPagination3
|
|
11636
|
-
} from "@deliverart/sdk-js-global-types";
|
|
11623
|
+
import { mixedPaginationSchema as mixedPaginationSchema3 } from "@deliverart/sdk-js-global-types";
|
|
11637
11624
|
var getPaymentConfigCreditCardListInputSchema = external_exports.undefined();
|
|
11638
|
-
var getPaymentConfigCreditCardListResponseSchema =
|
|
11625
|
+
var getPaymentConfigCreditCardListResponseSchema = mixedPaginationSchema3(
|
|
11639
11626
|
paymentConfigCreditCardSchema
|
|
11640
11627
|
);
|
|
11641
11628
|
var GetPaymentConfigCreditCardList = class extends AbstractApiRequest13 {
|
|
@@ -11648,14 +11635,12 @@ var GetPaymentConfigCreditCardList = class extends AbstractApiRequest13 {
|
|
|
11648
11635
|
this.outputSchema = getPaymentConfigCreditCardListResponseSchema;
|
|
11649
11636
|
this.querySchema = paymentConfigsQuerySchema;
|
|
11650
11637
|
this.headersSchema = void 0;
|
|
11638
|
+
this.listItemSchema = paymentConfigCreditCardSchema;
|
|
11639
|
+
this.paginationDefaultEnabled = true;
|
|
11651
11640
|
}
|
|
11652
11641
|
getPath() {
|
|
11653
11642
|
return "/payment_configs/credit_card";
|
|
11654
11643
|
}
|
|
11655
|
-
parseResponse(data, rawResponse) {
|
|
11656
|
-
const payments = external_exports.array(paymentConfigCreditCardSchema).parse(data);
|
|
11657
|
-
return this.validateOutput({ data: payments, pagination: responseToPagination3(rawResponse) });
|
|
11658
|
-
}
|
|
11659
11644
|
};
|
|
11660
11645
|
|
|
11661
11646
|
// src/requests/payment-configs/DeletePaymentConfig.ts
|
|
@@ -11703,12 +11688,9 @@ var GetPaymentConfigDetails = class extends AbstractApiRequest15 {
|
|
|
11703
11688
|
|
|
11704
11689
|
// src/requests/payment-configs/GetPaymentConfigs.ts
|
|
11705
11690
|
import { AbstractApiRequest as AbstractApiRequest16 } from "@deliverart/sdk-js-core";
|
|
11706
|
-
import {
|
|
11707
|
-
createPaginatedSchema as createPaginatedSchema4,
|
|
11708
|
-
responseToPagination as responseToPagination4
|
|
11709
|
-
} from "@deliverart/sdk-js-global-types";
|
|
11691
|
+
import { mixedPaginationSchema as mixedPaginationSchema4 } from "@deliverart/sdk-js-global-types";
|
|
11710
11692
|
var getPaymentConfigsInputSchema = external_exports.undefined();
|
|
11711
|
-
var getPaymentConfigsResponseSchema =
|
|
11693
|
+
var getPaymentConfigsResponseSchema = mixedPaginationSchema4(paymentConfigSchema);
|
|
11712
11694
|
var GetPaymentConfigs = class extends AbstractApiRequest16 {
|
|
11713
11695
|
constructor(options) {
|
|
11714
11696
|
super(void 0, options);
|
|
@@ -11719,14 +11701,12 @@ var GetPaymentConfigs = class extends AbstractApiRequest16 {
|
|
|
11719
11701
|
this.outputSchema = getPaymentConfigsResponseSchema;
|
|
11720
11702
|
this.querySchema = paymentConfigsQuerySchema;
|
|
11721
11703
|
this.headersSchema = void 0;
|
|
11704
|
+
this.listItemSchema = paymentConfigSchema;
|
|
11705
|
+
this.paginationDefaultEnabled = true;
|
|
11722
11706
|
}
|
|
11723
11707
|
getPath() {
|
|
11724
11708
|
return "/payment_configs";
|
|
11725
11709
|
}
|
|
11726
|
-
parseResponse(data, rawResponse) {
|
|
11727
|
-
const payments = external_exports.array(paymentConfigSchema).parse(data);
|
|
11728
|
-
return this.validateOutput({ data: payments, pagination: responseToPagination4(rawResponse) });
|
|
11729
|
-
}
|
|
11730
11710
|
};
|
|
11731
11711
|
|
|
11732
11712
|
// src/requests/payment-configs/GetPaymentConfigsFromPointOfSale.ts
|
|
@@ -11743,14 +11723,13 @@ var GetPaymentConfigsFromPointOfSale = class extends AbstractApiRequest17 {
|
|
|
11743
11723
|
this.outputSchema = getPaymentConfigsFromPointOfSaleResponseSchema;
|
|
11744
11724
|
this.querySchema = paymentConfigsQuerySchema;
|
|
11745
11725
|
this.headersSchema = void 0;
|
|
11726
|
+
this.listItemSchema = paymentConfigSchema;
|
|
11727
|
+
this.paginationDefaultEnabled = false;
|
|
11746
11728
|
this.pointOfSaleId = pointOfSaleId;
|
|
11747
11729
|
}
|
|
11748
11730
|
getPath() {
|
|
11749
11731
|
return `/point_of_sales/${this.pointOfSaleId}/payment_configs`;
|
|
11750
11732
|
}
|
|
11751
|
-
parseResponse(data) {
|
|
11752
|
-
return external_exports.array(paymentConfigSchema).parse(data);
|
|
11753
|
-
}
|
|
11754
11733
|
};
|
|
11755
11734
|
|
|
11756
11735
|
// src/requests/payment-configs/stripe/CreatePaymentConfigStripe.ts
|
|
@@ -11818,12 +11797,9 @@ var GetPaymentConfigStripeDetails = class extends AbstractApiRequest20 {
|
|
|
11818
11797
|
|
|
11819
11798
|
// src/requests/payment-configs/stripe/GetPaymentConfigStripeList.ts
|
|
11820
11799
|
import { AbstractApiRequest as AbstractApiRequest21 } from "@deliverart/sdk-js-core";
|
|
11821
|
-
import {
|
|
11822
|
-
createPaginatedSchema as createPaginatedSchema5,
|
|
11823
|
-
responseToPagination as responseToPagination5
|
|
11824
|
-
} from "@deliverart/sdk-js-global-types";
|
|
11800
|
+
import { mixedPaginationSchema as mixedPaginationSchema5 } from "@deliverart/sdk-js-global-types";
|
|
11825
11801
|
var getPaymentConfigStripeListInputSchema = external_exports.undefined();
|
|
11826
|
-
var getPaymentConfigStripeListResponseSchema =
|
|
11802
|
+
var getPaymentConfigStripeListResponseSchema = mixedPaginationSchema5(paymentConfigStripeSchema);
|
|
11827
11803
|
var GetPaymentConfigStripeList = class extends AbstractApiRequest21 {
|
|
11828
11804
|
constructor(options) {
|
|
11829
11805
|
super(void 0, options);
|
|
@@ -11834,14 +11810,12 @@ var GetPaymentConfigStripeList = class extends AbstractApiRequest21 {
|
|
|
11834
11810
|
this.outputSchema = getPaymentConfigStripeListResponseSchema;
|
|
11835
11811
|
this.querySchema = paymentConfigsQuerySchema;
|
|
11836
11812
|
this.headersSchema = void 0;
|
|
11813
|
+
this.listItemSchema = paymentConfigStripeSchema;
|
|
11814
|
+
this.paginationDefaultEnabled = true;
|
|
11837
11815
|
}
|
|
11838
11816
|
getPath() {
|
|
11839
11817
|
return "/payment_configs/stripe";
|
|
11840
11818
|
}
|
|
11841
|
-
parseResponse(data, rawResponse) {
|
|
11842
|
-
const payments = external_exports.array(paymentConfigStripeSchema).parse(data);
|
|
11843
|
-
return this.validateOutput({ data: payments, pagination: responseToPagination5(rawResponse) });
|
|
11844
|
-
}
|
|
11845
11819
|
};
|
|
11846
11820
|
|
|
11847
11821
|
// src/requests/payment-configs/stripe/UpdatePaymentConfigStripe.ts
|
|
@@ -11933,12 +11907,9 @@ var GetPaymentInfo = class extends AbstractApiRequest25 {
|
|
|
11933
11907
|
|
|
11934
11908
|
// src/requests/payments/GetPayments.ts
|
|
11935
11909
|
import { AbstractApiRequest as AbstractApiRequest26 } from "@deliverart/sdk-js-core";
|
|
11936
|
-
import {
|
|
11937
|
-
createPaginatedSchema as createPaginatedSchema6,
|
|
11938
|
-
responseToPagination as responseToPagination6
|
|
11939
|
-
} from "@deliverart/sdk-js-global-types";
|
|
11910
|
+
import { mixedPaginationSchema as mixedPaginationSchema6 } from "@deliverart/sdk-js-global-types";
|
|
11940
11911
|
var getPaymentsInputSchema = external_exports.undefined();
|
|
11941
|
-
var getPaymentsResponseSchema =
|
|
11912
|
+
var getPaymentsResponseSchema = mixedPaginationSchema6(paymentSchema);
|
|
11942
11913
|
var GetPayments = class extends AbstractApiRequest26 {
|
|
11943
11914
|
constructor(options) {
|
|
11944
11915
|
super(void 0, options);
|
|
@@ -11949,24 +11920,19 @@ var GetPayments = class extends AbstractApiRequest26 {
|
|
|
11949
11920
|
this.outputSchema = getPaymentsResponseSchema;
|
|
11950
11921
|
this.querySchema = paymentQuerySchema;
|
|
11951
11922
|
this.headersSchema = void 0;
|
|
11923
|
+
this.listItemSchema = paymentSchema;
|
|
11924
|
+
this.paginationDefaultEnabled = true;
|
|
11952
11925
|
}
|
|
11953
11926
|
getPath() {
|
|
11954
11927
|
return "/payments";
|
|
11955
11928
|
}
|
|
11956
|
-
parseResponse(data, rawResponse) {
|
|
11957
|
-
const payments = external_exports.array(paymentSchema).parse(data);
|
|
11958
|
-
return this.validateOutput({ data: payments, pagination: responseToPagination6(rawResponse) });
|
|
11959
|
-
}
|
|
11960
11929
|
};
|
|
11961
11930
|
|
|
11962
11931
|
// src/requests/payments/GetPaymentsForPaymentConfig.ts
|
|
11963
11932
|
import { AbstractApiRequest as AbstractApiRequest27 } from "@deliverart/sdk-js-core";
|
|
11964
|
-
import {
|
|
11965
|
-
createPaginatedSchema as createPaginatedSchema7,
|
|
11966
|
-
responseToPagination as responseToPagination7
|
|
11967
|
-
} from "@deliverart/sdk-js-global-types";
|
|
11933
|
+
import { mixedPaginationSchema as mixedPaginationSchema7 } from "@deliverart/sdk-js-global-types";
|
|
11968
11934
|
var getPaymentsForPaymentConfigInputSchema = external_exports.undefined();
|
|
11969
|
-
var getPaymentsForPaymentConfigResponseSchema =
|
|
11935
|
+
var getPaymentsForPaymentConfigResponseSchema = mixedPaginationSchema7(paymentSchema);
|
|
11970
11936
|
var GetPaymentsForPaymentConfig = class extends AbstractApiRequest27 {
|
|
11971
11937
|
constructor(paymentConfigId, options) {
|
|
11972
11938
|
super(void 0, options);
|
|
@@ -11977,15 +11943,13 @@ var GetPaymentsForPaymentConfig = class extends AbstractApiRequest27 {
|
|
|
11977
11943
|
this.outputSchema = getPaymentsForPaymentConfigResponseSchema;
|
|
11978
11944
|
this.querySchema = paymentQuerySchema;
|
|
11979
11945
|
this.headersSchema = void 0;
|
|
11946
|
+
this.listItemSchema = paymentSchema;
|
|
11947
|
+
this.paginationDefaultEnabled = true;
|
|
11980
11948
|
this.paymentConfigId = paymentConfigId;
|
|
11981
11949
|
}
|
|
11982
11950
|
getPath() {
|
|
11983
11951
|
return `/payment_configs/${this.paymentConfigId}/payments`;
|
|
11984
11952
|
}
|
|
11985
|
-
parseResponse(data, rawResponse) {
|
|
11986
|
-
const payments = external_exports.array(paymentSchema).parse(data);
|
|
11987
|
-
return this.validateOutput({ data: payments, pagination: responseToPagination7(rawResponse) });
|
|
11988
|
-
}
|
|
11989
11953
|
};
|
|
11990
11954
|
|
|
11991
11955
|
// src/requests/payments/UpdatePayment.ts
|
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.6.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-
|
|
22
|
-
"@deliverart/sdk-js-
|
|
23
|
-
"@deliverart/sdk-js-point-of-sale": "2.
|
|
21
|
+
"@deliverart/sdk-js-global-types": "2.6.1",
|
|
22
|
+
"@deliverart/sdk-js-core": "2.6.1",
|
|
23
|
+
"@deliverart/sdk-js-point-of-sale": "2.6.1"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|