@deliverart/sdk-js-payment 2.4.22 → 2.5.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 +61 -71
- package/dist/index.d.cts +2 -19
- package/dist/index.d.ts +2 -19
- package/dist/index.js +6 -11
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -127,13 +127,13 @@ __export(index_exports, {
|
|
|
127
127
|
paymentInfoSchema: () => paymentInfoSchema,
|
|
128
128
|
paymentInfoStripeSchema: () => paymentInfoStripeSchema,
|
|
129
129
|
paymentIriSchema: () => paymentIriSchema,
|
|
130
|
-
paymentMethodSchema: () => paymentMethodSchema,
|
|
131
|
-
paymentMethods: () => paymentMethods,
|
|
130
|
+
paymentMethodSchema: () => import_sdk_js_global_types2.paymentMethodSchema,
|
|
131
|
+
paymentMethods: () => import_sdk_js_global_types2.paymentMethods,
|
|
132
132
|
paymentNullableIriSchema: () => paymentNullableIriSchema,
|
|
133
133
|
paymentQuerySchema: () => paymentQuerySchema,
|
|
134
134
|
paymentSchema: () => paymentSchema,
|
|
135
|
-
paymentStatusSchema: () => paymentStatusSchema,
|
|
136
|
-
paymentStatuses: () => paymentStatuses,
|
|
135
|
+
paymentStatusSchema: () => import_sdk_js_global_types2.paymentStatusSchema,
|
|
136
|
+
paymentStatuses: () => import_sdk_js_global_types2.paymentStatuses,
|
|
137
137
|
updatePaymentConfigBankTransferInputSchema: () => updatePaymentConfigBankTransferInputSchema,
|
|
138
138
|
updatePaymentConfigBankTransferResponseSchema: () => updatePaymentConfigBankTransferResponseSchema,
|
|
139
139
|
updatePaymentConfigStripeInputSchema: () => updatePaymentConfigStripeInputSchema,
|
|
@@ -150,7 +150,7 @@ __export(index_exports, {
|
|
|
150
150
|
module.exports = __toCommonJS(index_exports);
|
|
151
151
|
|
|
152
152
|
// src/models.ts
|
|
153
|
-
var
|
|
153
|
+
var import_sdk_js_global_types3 = require("@deliverart/sdk-js-global-types");
|
|
154
154
|
var import_sdk_js_point_of_sale = require("@deliverart/sdk-js-point-of-sale");
|
|
155
155
|
|
|
156
156
|
// ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/classic/external.js
|
|
@@ -11298,17 +11298,7 @@ config(en_default());
|
|
|
11298
11298
|
|
|
11299
11299
|
// src/types.ts
|
|
11300
11300
|
var import_sdk_js_global_types = require("@deliverart/sdk-js-global-types");
|
|
11301
|
-
var
|
|
11302
|
-
var paymentMethodSchema = external_exports.enum(paymentMethods);
|
|
11303
|
-
var paymentStatuses = [
|
|
11304
|
-
"pending",
|
|
11305
|
-
"pending_verification",
|
|
11306
|
-
"paid",
|
|
11307
|
-
"canceled",
|
|
11308
|
-
"refunded",
|
|
11309
|
-
"failed"
|
|
11310
|
-
];
|
|
11311
|
-
var paymentStatusSchema = external_exports.enum(paymentStatuses);
|
|
11301
|
+
var import_sdk_js_global_types2 = require("@deliverart/sdk-js-global-types");
|
|
11312
11302
|
var paymentIriSchema = (0, import_sdk_js_global_types.iriSchema)("/payments/:id");
|
|
11313
11303
|
var paymentNullableIriSchema = (0, import_sdk_js_global_types.iriNullableSchema)("/payments/:id");
|
|
11314
11304
|
var paymentConfigIriSchema = (0, import_sdk_js_global_types.iriSchema)("/payment_configs/:id");
|
|
@@ -11329,15 +11319,15 @@ var paymentConfigStripeNullableIriSchema = (0, import_sdk_js_global_types.iriNul
|
|
|
11329
11319
|
// src/models.ts
|
|
11330
11320
|
var paymentSchema = external_exports.object({
|
|
11331
11321
|
id: external_exports.string(),
|
|
11332
|
-
method: paymentMethodSchema,
|
|
11333
|
-
status: paymentStatusSchema,
|
|
11322
|
+
method: import_sdk_js_global_types2.paymentMethodSchema,
|
|
11323
|
+
status: import_sdk_js_global_types2.paymentStatusSchema,
|
|
11334
11324
|
amount: external_exports.string(),
|
|
11335
11325
|
internalReference: external_exports.string().nullable(),
|
|
11336
11326
|
externalReference: external_exports.string().nullable(),
|
|
11337
11327
|
response: external_exports.string().nullable(),
|
|
11338
|
-
validUntil:
|
|
11339
|
-
createdAt:
|
|
11340
|
-
updatedAt:
|
|
11328
|
+
validUntil: import_sdk_js_global_types3.datetimeSchema.nullable(),
|
|
11329
|
+
createdAt: import_sdk_js_global_types3.datetimeSchema,
|
|
11330
|
+
updatedAt: import_sdk_js_global_types3.datetimeSchema
|
|
11341
11331
|
});
|
|
11342
11332
|
var basePaymentSchema = paymentSchema.omit({
|
|
11343
11333
|
method: true
|
|
@@ -11354,7 +11344,7 @@ var paymentMethodIriSchemaMap = {
|
|
|
11354
11344
|
cash: paymentConfigCashNullableIriSchema,
|
|
11355
11345
|
credit_card: paymentConfigCreditCardNullableIriSchema
|
|
11356
11346
|
};
|
|
11357
|
-
var paymentSchemas = paymentMethods.map(
|
|
11347
|
+
var paymentSchemas = import_sdk_js_global_types2.paymentMethods.map(
|
|
11358
11348
|
(method) => buildPaymentSchema(method, paymentMethodIriSchemaMap[method])
|
|
11359
11349
|
);
|
|
11360
11350
|
var paymentDetailsSchema = external_exports.discriminatedUnion("method", paymentSchemas);
|
|
@@ -11367,10 +11357,10 @@ var paymentConfigDetailsFieldsSchema = external_exports.object({
|
|
|
11367
11357
|
});
|
|
11368
11358
|
var paymentConfigBaseSchema = external_exports.object({
|
|
11369
11359
|
id: external_exports.string(),
|
|
11370
|
-
method: paymentMethodSchema,
|
|
11360
|
+
method: import_sdk_js_global_types2.paymentMethodSchema,
|
|
11371
11361
|
configurationCompleted: external_exports.boolean(),
|
|
11372
|
-
createdAt:
|
|
11373
|
-
updatedAt:
|
|
11362
|
+
createdAt: import_sdk_js_global_types3.datetimeSchema,
|
|
11363
|
+
updatedAt: import_sdk_js_global_types3.datetimeSchema
|
|
11374
11364
|
});
|
|
11375
11365
|
var configBankTransferSchema = external_exports.object({
|
|
11376
11366
|
iban: external_exports.string(),
|
|
@@ -11450,14 +11440,14 @@ var writablePaymentConfigSchemas = {
|
|
|
11450
11440
|
};
|
|
11451
11441
|
var paymentInfoBaseSchema = external_exports.object({
|
|
11452
11442
|
id: external_exports.string(),
|
|
11453
|
-
method: paymentMethodSchema,
|
|
11454
|
-
status: paymentStatusSchema,
|
|
11443
|
+
method: import_sdk_js_global_types2.paymentMethodSchema,
|
|
11444
|
+
status: import_sdk_js_global_types2.paymentStatusSchema,
|
|
11455
11445
|
amount: external_exports.string()
|
|
11456
11446
|
});
|
|
11457
11447
|
var paymentInfoStripeSchema = paymentInfoBaseSchema.extend({
|
|
11458
11448
|
method: external_exports.literal("stripe"),
|
|
11459
11449
|
sessionUrl: external_exports.string(),
|
|
11460
|
-
expiresAt:
|
|
11450
|
+
expiresAt: import_sdk_js_global_types3.datetimeSchema
|
|
11461
11451
|
});
|
|
11462
11452
|
var paymentInfoBankTransferSchema = paymentInfoBaseSchema.extend({
|
|
11463
11453
|
method: external_exports.literal("bank_transfer"),
|
|
@@ -11484,24 +11474,24 @@ var paymentInfoSchema = external_exports.discriminatedUnion("method", [
|
|
|
11484
11474
|
var paymentQuerySchema = external_exports.object({
|
|
11485
11475
|
internalReference: external_exports.string().optional(),
|
|
11486
11476
|
externalReference: external_exports.string().optional(),
|
|
11487
|
-
method: external_exports.union([paymentMethodSchema, external_exports.array(paymentMethodSchema)]).optional(),
|
|
11488
|
-
status: external_exports.union([paymentStatusSchema, external_exports.array(paymentStatusSchema)]).optional(),
|
|
11477
|
+
method: external_exports.union([import_sdk_js_global_types2.paymentMethodSchema, external_exports.array(import_sdk_js_global_types2.paymentMethodSchema)]).optional(),
|
|
11478
|
+
status: external_exports.union([import_sdk_js_global_types2.paymentStatusSchema, external_exports.array(import_sdk_js_global_types2.paymentStatusSchema)]).optional(),
|
|
11489
11479
|
"amount[between]": external_exports.coerce.number().optional(),
|
|
11490
11480
|
"amount[gt]": external_exports.coerce.number().optional(),
|
|
11491
11481
|
"amount[gte]": external_exports.coerce.number().optional(),
|
|
11492
11482
|
"amount[lt]": external_exports.coerce.number().optional(),
|
|
11493
11483
|
"amount[lte]": external_exports.coerce.number().optional(),
|
|
11494
|
-
"order[createdAt]":
|
|
11495
|
-
"order[updatedAt]":
|
|
11484
|
+
"order[createdAt]": import_sdk_js_global_types3.sortDirSchema.optional(),
|
|
11485
|
+
"order[updatedAt]": import_sdk_js_global_types3.sortDirSchema.optional(),
|
|
11496
11486
|
page: external_exports.coerce.number().optional()
|
|
11497
|
-
}).extend(
|
|
11487
|
+
}).extend(import_sdk_js_global_types3.timestampsFilterSchema.shape);
|
|
11498
11488
|
var paymentConfigsQuerySchema = external_exports.object({
|
|
11499
|
-
method: paymentMethodSchema.optional(),
|
|
11500
|
-
configurationCompleted:
|
|
11501
|
-
"order[createdAt]":
|
|
11502
|
-
"order[updatedAt]":
|
|
11489
|
+
method: import_sdk_js_global_types2.paymentMethodSchema.optional(),
|
|
11490
|
+
configurationCompleted: import_sdk_js_global_types3.booleanSchema.optional(),
|
|
11491
|
+
"order[createdAt]": import_sdk_js_global_types3.sortDirSchema.optional(),
|
|
11492
|
+
"order[updatedAt]": import_sdk_js_global_types3.sortDirSchema.optional(),
|
|
11503
11493
|
page: external_exports.coerce.number().optional()
|
|
11504
|
-
}).extend(
|
|
11494
|
+
}).extend(import_sdk_js_global_types3.timestampsFilterSchema.shape);
|
|
11505
11495
|
|
|
11506
11496
|
// src/requests/payment-configs/bank-transfer/CreatePaymentConfigBankTransfer.ts
|
|
11507
11497
|
var import_sdk_js_core = require("@deliverart/sdk-js-core");
|
|
@@ -11525,9 +11515,9 @@ var CreatePaymentConfigBankTransfer = class extends import_sdk_js_core.AbstractA
|
|
|
11525
11515
|
|
|
11526
11516
|
// src/requests/payment-configs/bank-transfer/DeletePaymentConfigBankTransfer.ts
|
|
11527
11517
|
var import_sdk_js_core2 = require("@deliverart/sdk-js-core");
|
|
11528
|
-
var
|
|
11518
|
+
var import_sdk_js_global_types4 = require("@deliverart/sdk-js-global-types");
|
|
11529
11519
|
var deletePaymentConfigBankTransferInputSchema = external_exports.undefined();
|
|
11530
|
-
var deletePaymentConfigBankTransferResponseSchema =
|
|
11520
|
+
var deletePaymentConfigBankTransferResponseSchema = import_sdk_js_global_types4.emptyResponseSchema;
|
|
11531
11521
|
var DeletePaymentConfigBankTransfer = class extends import_sdk_js_core2.AbstractApiRequest {
|
|
11532
11522
|
constructor(paymentConfigId) {
|
|
11533
11523
|
super(void 0);
|
|
@@ -11568,9 +11558,9 @@ var GetPaymentConfigBankTransferDetails = class extends import_sdk_js_core3.Abst
|
|
|
11568
11558
|
|
|
11569
11559
|
// src/requests/payment-configs/bank-transfer/GetPaymentConfigBankTransferList.ts
|
|
11570
11560
|
var import_sdk_js_core4 = require("@deliverart/sdk-js-core");
|
|
11571
|
-
var
|
|
11561
|
+
var import_sdk_js_global_types5 = require("@deliverart/sdk-js-global-types");
|
|
11572
11562
|
var getPaymentConfigBankTransferListInputSchema = external_exports.undefined();
|
|
11573
|
-
var getPaymentConfigBankTransferListResponseSchema = (0,
|
|
11563
|
+
var getPaymentConfigBankTransferListResponseSchema = (0, import_sdk_js_global_types5.createPaginatedSchema)(
|
|
11574
11564
|
paymentConfigBankTransferSchema
|
|
11575
11565
|
);
|
|
11576
11566
|
var GetPaymentConfigBankTransferList = class extends import_sdk_js_core4.AbstractApiRequest {
|
|
@@ -11589,7 +11579,7 @@ var GetPaymentConfigBankTransferList = class extends import_sdk_js_core4.Abstrac
|
|
|
11589
11579
|
}
|
|
11590
11580
|
parseResponse(data, rawResponse) {
|
|
11591
11581
|
const payments = external_exports.array(paymentConfigBankTransferSchema).parse(data);
|
|
11592
|
-
return this.validateOutput({ data: payments, pagination: (0,
|
|
11582
|
+
return this.validateOutput({ data: payments, pagination: (0, import_sdk_js_global_types5.responseToPagination)(rawResponse) });
|
|
11593
11583
|
}
|
|
11594
11584
|
};
|
|
11595
11585
|
|
|
@@ -11638,9 +11628,9 @@ var CreatePaymentConfigCash = class extends import_sdk_js_core6.AbstractApiReque
|
|
|
11638
11628
|
|
|
11639
11629
|
// src/requests/payment-configs/cash/DeletePaymentConfigCash.ts
|
|
11640
11630
|
var import_sdk_js_core7 = require("@deliverart/sdk-js-core");
|
|
11641
|
-
var
|
|
11631
|
+
var import_sdk_js_global_types6 = require("@deliverart/sdk-js-global-types");
|
|
11642
11632
|
var deletePaymentConfigCashInputSchema = external_exports.undefined();
|
|
11643
|
-
var deletePaymentConfigCashResponseSchema =
|
|
11633
|
+
var deletePaymentConfigCashResponseSchema = import_sdk_js_global_types6.emptyResponseSchema;
|
|
11644
11634
|
var DeletePaymentConfigCash = class extends import_sdk_js_core7.AbstractApiRequest {
|
|
11645
11635
|
constructor(paymentConfigId) {
|
|
11646
11636
|
super(void 0);
|
|
@@ -11681,9 +11671,9 @@ var GetPaymentConfigCashDetails = class extends import_sdk_js_core8.AbstractApiR
|
|
|
11681
11671
|
|
|
11682
11672
|
// src/requests/payment-configs/cash/GetPaymentConfigCashList.ts
|
|
11683
11673
|
var import_sdk_js_core9 = require("@deliverart/sdk-js-core");
|
|
11684
|
-
var
|
|
11674
|
+
var import_sdk_js_global_types7 = require("@deliverart/sdk-js-global-types");
|
|
11685
11675
|
var getPaymentConfigCashListInputSchema = external_exports.undefined();
|
|
11686
|
-
var getPaymentConfigCashListResponseSchema = (0,
|
|
11676
|
+
var getPaymentConfigCashListResponseSchema = (0, import_sdk_js_global_types7.createPaginatedSchema)(paymentConfigCashSchema);
|
|
11687
11677
|
var GetPaymentConfigCashList = class extends import_sdk_js_core9.AbstractApiRequest {
|
|
11688
11678
|
constructor(options) {
|
|
11689
11679
|
super(void 0, options);
|
|
@@ -11700,7 +11690,7 @@ var GetPaymentConfigCashList = class extends import_sdk_js_core9.AbstractApiRequ
|
|
|
11700
11690
|
}
|
|
11701
11691
|
parseResponse(data, rawResponse) {
|
|
11702
11692
|
const payments = external_exports.array(paymentConfigCashSchema).parse(data);
|
|
11703
|
-
return this.validateOutput({ data: payments, pagination: (0,
|
|
11693
|
+
return this.validateOutput({ data: payments, pagination: (0, import_sdk_js_global_types7.responseToPagination)(rawResponse) });
|
|
11704
11694
|
}
|
|
11705
11695
|
};
|
|
11706
11696
|
|
|
@@ -11726,9 +11716,9 @@ var CreatePaymentConfigCreditCard = class extends import_sdk_js_core10.AbstractA
|
|
|
11726
11716
|
|
|
11727
11717
|
// src/requests/payment-configs/credit-card/DeletePaymentConfigCreditCard.ts
|
|
11728
11718
|
var import_sdk_js_core11 = require("@deliverart/sdk-js-core");
|
|
11729
|
-
var
|
|
11719
|
+
var import_sdk_js_global_types8 = require("@deliverart/sdk-js-global-types");
|
|
11730
11720
|
var deletePaymentConfigCreditCardInputSchema = external_exports.undefined();
|
|
11731
|
-
var deletePaymentConfigCreditCardResponseSchema =
|
|
11721
|
+
var deletePaymentConfigCreditCardResponseSchema = import_sdk_js_global_types8.emptyResponseSchema;
|
|
11732
11722
|
var DeletePaymentConfigCreditCard = class extends import_sdk_js_core11.AbstractApiRequest {
|
|
11733
11723
|
constructor(paymentConfigId) {
|
|
11734
11724
|
super(void 0);
|
|
@@ -11769,9 +11759,9 @@ var GetPaymentConfigCreditCardDetails = class extends import_sdk_js_core12.Abstr
|
|
|
11769
11759
|
|
|
11770
11760
|
// src/requests/payment-configs/credit-card/GetPaymentConfigCreditCardList.ts
|
|
11771
11761
|
var import_sdk_js_core13 = require("@deliverart/sdk-js-core");
|
|
11772
|
-
var
|
|
11762
|
+
var import_sdk_js_global_types9 = require("@deliverart/sdk-js-global-types");
|
|
11773
11763
|
var getPaymentConfigCreditCardListInputSchema = external_exports.undefined();
|
|
11774
|
-
var getPaymentConfigCreditCardListResponseSchema = (0,
|
|
11764
|
+
var getPaymentConfigCreditCardListResponseSchema = (0, import_sdk_js_global_types9.createPaginatedSchema)(
|
|
11775
11765
|
paymentConfigCreditCardSchema
|
|
11776
11766
|
);
|
|
11777
11767
|
var GetPaymentConfigCreditCardList = class extends import_sdk_js_core13.AbstractApiRequest {
|
|
@@ -11790,15 +11780,15 @@ var GetPaymentConfigCreditCardList = class extends import_sdk_js_core13.Abstract
|
|
|
11790
11780
|
}
|
|
11791
11781
|
parseResponse(data, rawResponse) {
|
|
11792
11782
|
const payments = external_exports.array(paymentConfigCreditCardSchema).parse(data);
|
|
11793
|
-
return this.validateOutput({ data: payments, pagination: (0,
|
|
11783
|
+
return this.validateOutput({ data: payments, pagination: (0, import_sdk_js_global_types9.responseToPagination)(rawResponse) });
|
|
11794
11784
|
}
|
|
11795
11785
|
};
|
|
11796
11786
|
|
|
11797
11787
|
// src/requests/payment-configs/DeletePaymentConfig.ts
|
|
11798
11788
|
var import_sdk_js_core14 = require("@deliverart/sdk-js-core");
|
|
11799
|
-
var
|
|
11789
|
+
var import_sdk_js_global_types10 = require("@deliverart/sdk-js-global-types");
|
|
11800
11790
|
var deletePaymentConfigInputSchema = external_exports.undefined();
|
|
11801
|
-
var deletePaymentConfigResponseSchema =
|
|
11791
|
+
var deletePaymentConfigResponseSchema = import_sdk_js_global_types10.emptyResponseSchema;
|
|
11802
11792
|
var DeletePaymentConfig = class extends import_sdk_js_core14.AbstractApiRequest {
|
|
11803
11793
|
constructor(paymentConfigId) {
|
|
11804
11794
|
super(void 0);
|
|
@@ -11839,9 +11829,9 @@ var GetPaymentConfigDetails = class extends import_sdk_js_core15.AbstractApiRequ
|
|
|
11839
11829
|
|
|
11840
11830
|
// src/requests/payment-configs/GetPaymentConfigs.ts
|
|
11841
11831
|
var import_sdk_js_core16 = require("@deliverart/sdk-js-core");
|
|
11842
|
-
var
|
|
11832
|
+
var import_sdk_js_global_types11 = require("@deliverart/sdk-js-global-types");
|
|
11843
11833
|
var getPaymentConfigsInputSchema = external_exports.undefined();
|
|
11844
|
-
var getPaymentConfigsResponseSchema = (0,
|
|
11834
|
+
var getPaymentConfigsResponseSchema = (0, import_sdk_js_global_types11.createPaginatedSchema)(paymentConfigSchema);
|
|
11845
11835
|
var GetPaymentConfigs = class extends import_sdk_js_core16.AbstractApiRequest {
|
|
11846
11836
|
constructor(options) {
|
|
11847
11837
|
super(void 0, options);
|
|
@@ -11858,7 +11848,7 @@ var GetPaymentConfigs = class extends import_sdk_js_core16.AbstractApiRequest {
|
|
|
11858
11848
|
}
|
|
11859
11849
|
parseResponse(data, rawResponse) {
|
|
11860
11850
|
const payments = external_exports.array(paymentConfigSchema).parse(data);
|
|
11861
|
-
return this.validateOutput({ data: payments, pagination: (0,
|
|
11851
|
+
return this.validateOutput({ data: payments, pagination: (0, import_sdk_js_global_types11.responseToPagination)(rawResponse) });
|
|
11862
11852
|
}
|
|
11863
11853
|
};
|
|
11864
11854
|
|
|
@@ -11908,9 +11898,9 @@ var CreatePaymentConfigStripe = class extends import_sdk_js_core18.AbstractApiRe
|
|
|
11908
11898
|
|
|
11909
11899
|
// src/requests/payment-configs/stripe/DeletePaymentConfigStripe.ts
|
|
11910
11900
|
var import_sdk_js_core19 = require("@deliverart/sdk-js-core");
|
|
11911
|
-
var
|
|
11901
|
+
var import_sdk_js_global_types12 = require("@deliverart/sdk-js-global-types");
|
|
11912
11902
|
var deletePaymentConfigStripeInputSchema = external_exports.undefined();
|
|
11913
|
-
var deletePaymentConfigStripeResponseSchema =
|
|
11903
|
+
var deletePaymentConfigStripeResponseSchema = import_sdk_js_global_types12.emptyResponseSchema;
|
|
11914
11904
|
var DeletePaymentConfigStripe = class extends import_sdk_js_core19.AbstractApiRequest {
|
|
11915
11905
|
constructor(paymentConfigId) {
|
|
11916
11906
|
super(void 0);
|
|
@@ -11951,9 +11941,9 @@ var GetPaymentConfigStripeDetails = class extends import_sdk_js_core20.AbstractA
|
|
|
11951
11941
|
|
|
11952
11942
|
// src/requests/payment-configs/stripe/GetPaymentConfigStripeList.ts
|
|
11953
11943
|
var import_sdk_js_core21 = require("@deliverart/sdk-js-core");
|
|
11954
|
-
var
|
|
11944
|
+
var import_sdk_js_global_types13 = require("@deliverart/sdk-js-global-types");
|
|
11955
11945
|
var getPaymentConfigStripeListInputSchema = external_exports.undefined();
|
|
11956
|
-
var getPaymentConfigStripeListResponseSchema = (0,
|
|
11946
|
+
var getPaymentConfigStripeListResponseSchema = (0, import_sdk_js_global_types13.createPaginatedSchema)(paymentConfigStripeSchema);
|
|
11957
11947
|
var GetPaymentConfigStripeList = class extends import_sdk_js_core21.AbstractApiRequest {
|
|
11958
11948
|
constructor(options) {
|
|
11959
11949
|
super(void 0, options);
|
|
@@ -11970,7 +11960,7 @@ var GetPaymentConfigStripeList = class extends import_sdk_js_core21.AbstractApiR
|
|
|
11970
11960
|
}
|
|
11971
11961
|
parseResponse(data, rawResponse) {
|
|
11972
11962
|
const payments = external_exports.array(paymentConfigStripeSchema).parse(data);
|
|
11973
|
-
return this.validateOutput({ data: payments, pagination: (0,
|
|
11963
|
+
return this.validateOutput({ data: payments, pagination: (0, import_sdk_js_global_types13.responseToPagination)(rawResponse) });
|
|
11974
11964
|
}
|
|
11975
11965
|
};
|
|
11976
11966
|
|
|
@@ -11999,9 +11989,9 @@ var UpdatePaymentConfigStripe = class extends import_sdk_js_core22.AbstractApiRe
|
|
|
11999
11989
|
|
|
12000
11990
|
// src/requests/payments/DeletePayment.ts
|
|
12001
11991
|
var import_sdk_js_core23 = require("@deliverart/sdk-js-core");
|
|
12002
|
-
var
|
|
11992
|
+
var import_sdk_js_global_types14 = require("@deliverart/sdk-js-global-types");
|
|
12003
11993
|
var deletePaymentInputSchema = external_exports.undefined();
|
|
12004
|
-
var deletePaymentResponseSchema =
|
|
11994
|
+
var deletePaymentResponseSchema = import_sdk_js_global_types14.emptyResponseSchema;
|
|
12005
11995
|
var DeletePayment = class extends import_sdk_js_core23.AbstractApiRequest {
|
|
12006
11996
|
constructor(paymentId) {
|
|
12007
11997
|
super(void 0);
|
|
@@ -12063,9 +12053,9 @@ var GetPaymentInfo = class extends import_sdk_js_core25.AbstractApiRequest {
|
|
|
12063
12053
|
|
|
12064
12054
|
// src/requests/payments/GetPayments.ts
|
|
12065
12055
|
var import_sdk_js_core26 = require("@deliverart/sdk-js-core");
|
|
12066
|
-
var
|
|
12056
|
+
var import_sdk_js_global_types15 = require("@deliverart/sdk-js-global-types");
|
|
12067
12057
|
var getPaymentsInputSchema = external_exports.undefined();
|
|
12068
|
-
var getPaymentsResponseSchema = (0,
|
|
12058
|
+
var getPaymentsResponseSchema = (0, import_sdk_js_global_types15.createPaginatedSchema)(paymentSchema);
|
|
12069
12059
|
var GetPayments = class extends import_sdk_js_core26.AbstractApiRequest {
|
|
12070
12060
|
constructor(options) {
|
|
12071
12061
|
super(void 0, options);
|
|
@@ -12082,15 +12072,15 @@ var GetPayments = class extends import_sdk_js_core26.AbstractApiRequest {
|
|
|
12082
12072
|
}
|
|
12083
12073
|
parseResponse(data, rawResponse) {
|
|
12084
12074
|
const payments = external_exports.array(paymentSchema).parse(data);
|
|
12085
|
-
return this.validateOutput({ data: payments, pagination: (0,
|
|
12075
|
+
return this.validateOutput({ data: payments, pagination: (0, import_sdk_js_global_types15.responseToPagination)(rawResponse) });
|
|
12086
12076
|
}
|
|
12087
12077
|
};
|
|
12088
12078
|
|
|
12089
12079
|
// src/requests/payments/GetPaymentsForPaymentConfig.ts
|
|
12090
12080
|
var import_sdk_js_core27 = require("@deliverart/sdk-js-core");
|
|
12091
|
-
var
|
|
12081
|
+
var import_sdk_js_global_types16 = require("@deliverart/sdk-js-global-types");
|
|
12092
12082
|
var getPaymentsForPaymentConfigInputSchema = external_exports.undefined();
|
|
12093
|
-
var getPaymentsForPaymentConfigResponseSchema = (0,
|
|
12083
|
+
var getPaymentsForPaymentConfigResponseSchema = (0, import_sdk_js_global_types16.createPaginatedSchema)(paymentSchema);
|
|
12094
12084
|
var GetPaymentsForPaymentConfig = class extends import_sdk_js_core27.AbstractApiRequest {
|
|
12095
12085
|
constructor(paymentConfigId, options) {
|
|
12096
12086
|
super(void 0, options);
|
|
@@ -12108,7 +12098,7 @@ var GetPaymentsForPaymentConfig = class extends import_sdk_js_core27.AbstractApi
|
|
|
12108
12098
|
}
|
|
12109
12099
|
parseResponse(data, rawResponse) {
|
|
12110
12100
|
const payments = external_exports.array(paymentSchema).parse(data);
|
|
12111
|
-
return this.validateOutput({ data: payments, pagination: (0,
|
|
12101
|
+
return this.validateOutput({ data: payments, pagination: (0, import_sdk_js_global_types16.responseToPagination)(rawResponse) });
|
|
12112
12102
|
}
|
|
12113
12103
|
};
|
|
12114
12104
|
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as _deliverart_sdk_js_global_types from '@deliverart/sdk-js-global-types';
|
|
2
2
|
import { Paginated } from '@deliverart/sdk-js-global-types';
|
|
3
|
+
export { PaymentMethod, PaymentStatus, paymentMethodSchema, paymentMethods, paymentStatusSchema, paymentStatuses } from '@deliverart/sdk-js-global-types';
|
|
3
4
|
import { z } from 'zod';
|
|
4
5
|
import { AbstractApiRequest } from '@deliverart/sdk-js-core';
|
|
5
6
|
|
|
@@ -2481,24 +2482,6 @@ declare class UpdatePayment extends AbstractApiRequest<typeof updatePaymentInput
|
|
|
2481
2482
|
getPath(): string;
|
|
2482
2483
|
}
|
|
2483
2484
|
|
|
2484
|
-
declare const paymentMethods: readonly ["stripe", "bank_transfer", "cash", "credit_card"];
|
|
2485
|
-
declare const paymentMethodSchema: z.ZodEnum<{
|
|
2486
|
-
stripe: "stripe";
|
|
2487
|
-
bank_transfer: "bank_transfer";
|
|
2488
|
-
cash: "cash";
|
|
2489
|
-
credit_card: "credit_card";
|
|
2490
|
-
}>;
|
|
2491
|
-
type PaymentMethod = z.infer<typeof paymentMethodSchema>;
|
|
2492
|
-
declare const paymentStatuses: readonly ["pending", "pending_verification", "paid", "canceled", "refunded", "failed"];
|
|
2493
|
-
declare const paymentStatusSchema: z.ZodEnum<{
|
|
2494
|
-
pending: "pending";
|
|
2495
|
-
pending_verification: "pending_verification";
|
|
2496
|
-
paid: "paid";
|
|
2497
|
-
canceled: "canceled";
|
|
2498
|
-
refunded: "refunded";
|
|
2499
|
-
failed: "failed";
|
|
2500
|
-
}>;
|
|
2501
|
-
type PaymentStatus = z.infer<typeof paymentStatusSchema>;
|
|
2502
2485
|
declare const paymentIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payments/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payments/:id">, unknown>>;
|
|
2503
2486
|
type PaymentIri = z.infer<typeof paymentIriSchema>;
|
|
2504
2487
|
declare const paymentNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payments/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payments/:id"> | null, unknown>>;
|
|
@@ -2524,4 +2507,4 @@ type PaymentConfigStripeIri = z.infer<typeof paymentConfigStripeIriSchema>;
|
|
|
2524
2507
|
declare const paymentConfigStripeNullableIriSchema: 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>>;
|
|
2525
2508
|
type PaymentConfigStripeNullableIri = z.infer<typeof paymentConfigStripeNullableIriSchema>;
|
|
2526
2509
|
|
|
2527
|
-
export { CreatePaymentConfigBankTransfer, type CreatePaymentConfigBankTransferInput, type CreatePaymentConfigBankTransferResponse, CreatePaymentConfigCash, type CreatePaymentConfigCashInput, type CreatePaymentConfigCashResponse, CreatePaymentConfigCreditCard, type CreatePaymentConfigCreditCardInput, type CreatePaymentConfigCreditCardResponse, CreatePaymentConfigStripe, type CreatePaymentConfigStripeInput, type CreatePaymentConfigStripeResponse, DeletePayment, DeletePaymentConfig, DeletePaymentConfigBankTransfer, DeletePaymentConfigCash, DeletePaymentConfigCreditCard, DeletePaymentConfigStripe, GetPaymentConfigBankTransferDetails, type GetPaymentConfigBankTransferDetailsInput, type GetPaymentConfigBankTransferDetailsResponse, GetPaymentConfigBankTransferList, type GetPaymentConfigBankTransferListInput, type GetPaymentConfigBankTransferListQueryParams, type GetPaymentConfigBankTransferListResponse, GetPaymentConfigCashDetails, type GetPaymentConfigCashDetailsInput, type GetPaymentConfigCashDetailsResponse, GetPaymentConfigCashList, type GetPaymentConfigCashListInput, type GetPaymentConfigCashListQueryParams, type GetPaymentConfigCashListResponse, GetPaymentConfigCreditCardDetails, type GetPaymentConfigCreditCardDetailsInput, type GetPaymentConfigCreditCardDetailsResponse, GetPaymentConfigCreditCardList, type GetPaymentConfigCreditCardListInput, type GetPaymentConfigCreditCardListQueryParams, type GetPaymentConfigCreditCardListResponse, GetPaymentConfigDetails, type GetPaymentConfigDetailsInput, type GetPaymentConfigDetailsResponse, GetPaymentConfigStripeDetails, type GetPaymentConfigStripeDetailsInput, type GetPaymentConfigStripeDetailsResponse, GetPaymentConfigStripeList, type GetPaymentConfigStripeListInput, type GetPaymentConfigStripeListQueryParams, type GetPaymentConfigStripeListResponse, GetPaymentConfigs, GetPaymentConfigsFromPointOfSale, type GetPaymentConfigsFromPointOfSaleInput, type GetPaymentConfigsFromPointOfSaleQueryParams, type GetPaymentConfigsFromPointOfSaleResponse, type GetPaymentConfigsInput, type GetPaymentConfigsQueryParams, type GetPaymentConfigsResponse, GetPaymentDetails, type GetPaymentDetailsInput, type GetPaymentDetailsResponse, GetPaymentInfo, type GetPaymentInfoInput, type GetPaymentInfoResponse, GetPayments, GetPaymentsForPaymentConfig, type GetPaymentsForPaymentConfigInput, type GetPaymentsForPaymentConfigQueryParams, type GetPaymentsForPaymentConfigResponse, type GetPaymentsInput, type GetPaymentsQueryParams, type GetPaymentsResponse, type Payment, type PaymentConfig, type PaymentConfigBankTransfer, type PaymentConfigBankTransferDetails, type PaymentConfigBankTransferIri, type PaymentConfigBankTransferNullableIri, type PaymentConfigCash, type PaymentConfigCashDetails, type PaymentConfigCashIri, type PaymentConfigCashNullableIri, type PaymentConfigCreditCard, type PaymentConfigCreditCardDetails, type PaymentConfigCreditCardIri, type PaymentConfigCreditCardNullableIri, type PaymentConfigDetails, type PaymentConfigIri, type PaymentConfigNullableIri, type PaymentConfigStripe, type PaymentConfigStripeDetails, type PaymentConfigStripeIri, type PaymentConfigStripeNullableIri, type PaymentConfigsQueryParams, type PaymentDetails, type PaymentInfo, type PaymentInfoBankTransfer, type PaymentInfoCash, type PaymentInfoCreditCard, type PaymentInfoStripe, type PaymentIri, type
|
|
2510
|
+
export { CreatePaymentConfigBankTransfer, type CreatePaymentConfigBankTransferInput, type CreatePaymentConfigBankTransferResponse, CreatePaymentConfigCash, type CreatePaymentConfigCashInput, type CreatePaymentConfigCashResponse, CreatePaymentConfigCreditCard, type CreatePaymentConfigCreditCardInput, type CreatePaymentConfigCreditCardResponse, CreatePaymentConfigStripe, type CreatePaymentConfigStripeInput, type CreatePaymentConfigStripeResponse, DeletePayment, DeletePaymentConfig, DeletePaymentConfigBankTransfer, DeletePaymentConfigCash, DeletePaymentConfigCreditCard, DeletePaymentConfigStripe, GetPaymentConfigBankTransferDetails, type GetPaymentConfigBankTransferDetailsInput, type GetPaymentConfigBankTransferDetailsResponse, GetPaymentConfigBankTransferList, type GetPaymentConfigBankTransferListInput, type GetPaymentConfigBankTransferListQueryParams, type GetPaymentConfigBankTransferListResponse, GetPaymentConfigCashDetails, type GetPaymentConfigCashDetailsInput, type GetPaymentConfigCashDetailsResponse, GetPaymentConfigCashList, type GetPaymentConfigCashListInput, type GetPaymentConfigCashListQueryParams, type GetPaymentConfigCashListResponse, GetPaymentConfigCreditCardDetails, type GetPaymentConfigCreditCardDetailsInput, type GetPaymentConfigCreditCardDetailsResponse, GetPaymentConfigCreditCardList, type GetPaymentConfigCreditCardListInput, type GetPaymentConfigCreditCardListQueryParams, type GetPaymentConfigCreditCardListResponse, GetPaymentConfigDetails, type GetPaymentConfigDetailsInput, type GetPaymentConfigDetailsResponse, GetPaymentConfigStripeDetails, type GetPaymentConfigStripeDetailsInput, type GetPaymentConfigStripeDetailsResponse, GetPaymentConfigStripeList, type GetPaymentConfigStripeListInput, type GetPaymentConfigStripeListQueryParams, type GetPaymentConfigStripeListResponse, GetPaymentConfigs, GetPaymentConfigsFromPointOfSale, type GetPaymentConfigsFromPointOfSaleInput, type GetPaymentConfigsFromPointOfSaleQueryParams, type GetPaymentConfigsFromPointOfSaleResponse, type GetPaymentConfigsInput, type GetPaymentConfigsQueryParams, type GetPaymentConfigsResponse, GetPaymentDetails, type GetPaymentDetailsInput, type GetPaymentDetailsResponse, GetPaymentInfo, type GetPaymentInfoInput, type GetPaymentInfoResponse, GetPayments, GetPaymentsForPaymentConfig, type GetPaymentsForPaymentConfigInput, type GetPaymentsForPaymentConfigQueryParams, type GetPaymentsForPaymentConfigResponse, type GetPaymentsInput, type GetPaymentsQueryParams, type GetPaymentsResponse, type Payment, type PaymentConfig, type PaymentConfigBankTransfer, type PaymentConfigBankTransferDetails, type PaymentConfigBankTransferIri, type PaymentConfigBankTransferNullableIri, type PaymentConfigCash, type PaymentConfigCashDetails, type PaymentConfigCashIri, type PaymentConfigCashNullableIri, type PaymentConfigCreditCard, type PaymentConfigCreditCardDetails, type PaymentConfigCreditCardIri, type PaymentConfigCreditCardNullableIri, type PaymentConfigDetails, type PaymentConfigIri, type PaymentConfigNullableIri, type PaymentConfigStripe, type PaymentConfigStripeDetails, type PaymentConfigStripeIri, type PaymentConfigStripeNullableIri, type PaymentConfigsQueryParams, type PaymentDetails, type PaymentInfo, type PaymentInfoBankTransfer, type PaymentInfoCash, type PaymentInfoCreditCard, type PaymentInfoStripe, type PaymentIri, type PaymentNullableIri, type PaymentQueryParams, UpdatePayment, UpdatePaymentConfigBankTransfer, type UpdatePaymentConfigBankTransferInput, type UpdatePaymentConfigBankTransferResponse, UpdatePaymentConfigStripe, type UpdatePaymentConfigStripeInput, type UpdatePaymentConfigStripeResponse, type UpdatePaymentInput, type UpdatePaymentResponse, type WritablePayment, type WritablePaymentConfigBankTransfer, type WritablePaymentConfigCash, type WritablePaymentConfigCreditCard, type WritablePaymentConfigStripe, createPaymentConfigBankTransferInputSchema, createPaymentConfigBankTransferResponseSchema, createPaymentConfigCashInputSchema, createPaymentConfigCashResponseSchema, createPaymentConfigCreditCardInputSchema, createPaymentConfigCreditCardResponseSchema, createPaymentConfigStripeInputSchema, createPaymentConfigStripeResponseSchema, deletePaymentConfigBankTransferInputSchema, deletePaymentConfigBankTransferResponseSchema, deletePaymentConfigCashInputSchema, deletePaymentConfigCashResponseSchema, deletePaymentConfigCreditCardInputSchema, deletePaymentConfigCreditCardResponseSchema, deletePaymentConfigInputSchema, deletePaymentConfigResponseSchema, deletePaymentConfigStripeInputSchema, deletePaymentConfigStripeResponseSchema, deletePaymentInputSchema, deletePaymentResponseSchema, getPaymentConfigBankTransferDetailsInputSchema, getPaymentConfigBankTransferDetailsResponseSchema, getPaymentConfigBankTransferListInputSchema, getPaymentConfigBankTransferListResponseSchema, getPaymentConfigCashDetailsInputSchema, getPaymentConfigCashDetailsResponseSchema, getPaymentConfigCashListInputSchema, getPaymentConfigCashListResponseSchema, getPaymentConfigCreditCardDetailsInputSchema, getPaymentConfigCreditCardDetailsResponseSchema, getPaymentConfigCreditCardListInputSchema, getPaymentConfigCreditCardListResponseSchema, getPaymentConfigDetailsInputSchema, getPaymentConfigDetailsResponseSchema, getPaymentConfigStripeDetailsInputSchema, getPaymentConfigStripeDetailsResponseSchema, getPaymentConfigStripeListInputSchema, getPaymentConfigStripeListResponseSchema, getPaymentConfigsFromPointOfSaleInputSchema, getPaymentConfigsFromPointOfSaleResponseSchema, getPaymentConfigsInputSchema, getPaymentConfigsResponseSchema, getPaymentDetailsInputSchema, getPaymentDetailsResponseSchema, getPaymentInfoInputSchema, getPaymentInfoResponseSchema, getPaymentsForPaymentConfigInputSchema, getPaymentsForPaymentConfigResponseSchema, getPaymentsInputSchema, getPaymentsResponseSchema, paymentConfigBankTransferDetailsSchema, paymentConfigBankTransferIriSchema, paymentConfigBankTransferNullableIriSchema, paymentConfigBankTransferSchema, paymentConfigBaseSchema, paymentConfigCashDetailsSchema, paymentConfigCashIriSchema, paymentConfigCashNullableIriSchema, paymentConfigCashSchema, paymentConfigCreditCardDetailsSchema, paymentConfigCreditCardIriSchema, paymentConfigCreditCardNullableIriSchema, paymentConfigCreditCardSchema, paymentConfigDetailsSchema, paymentConfigIriSchema, paymentConfigNullableIriSchema, paymentConfigSchema, paymentConfigStripeDetailsSchema, paymentConfigStripeIriSchema, paymentConfigStripeNullableIriSchema, paymentConfigStripeSchema, paymentConfigsQuerySchema, paymentDetailsSchema, paymentInfoBankTransferSchema, paymentInfoCashSchema, paymentInfoCreditCardSchema, paymentInfoSchema, paymentInfoStripeSchema, paymentIriSchema, paymentNullableIriSchema, paymentQuerySchema, paymentSchema, updatePaymentConfigBankTransferInputSchema, updatePaymentConfigBankTransferResponseSchema, updatePaymentConfigStripeInputSchema, updatePaymentConfigStripeResponseSchema, updatePaymentInputSchema, updatePaymentResponseSchema, writablePaymentConfigBankTransferSchema, writablePaymentConfigCashSchema, writablePaymentConfigCreditCardSchema, writablePaymentConfigSchemas, writablePaymentConfigStripeSchema, writablePaymentSchema };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as _deliverart_sdk_js_global_types from '@deliverart/sdk-js-global-types';
|
|
2
2
|
import { Paginated } from '@deliverart/sdk-js-global-types';
|
|
3
|
+
export { PaymentMethod, PaymentStatus, paymentMethodSchema, paymentMethods, paymentStatusSchema, paymentStatuses } from '@deliverart/sdk-js-global-types';
|
|
3
4
|
import { z } from 'zod';
|
|
4
5
|
import { AbstractApiRequest } from '@deliverart/sdk-js-core';
|
|
5
6
|
|
|
@@ -2481,24 +2482,6 @@ declare class UpdatePayment extends AbstractApiRequest<typeof updatePaymentInput
|
|
|
2481
2482
|
getPath(): string;
|
|
2482
2483
|
}
|
|
2483
2484
|
|
|
2484
|
-
declare const paymentMethods: readonly ["stripe", "bank_transfer", "cash", "credit_card"];
|
|
2485
|
-
declare const paymentMethodSchema: z.ZodEnum<{
|
|
2486
|
-
stripe: "stripe";
|
|
2487
|
-
bank_transfer: "bank_transfer";
|
|
2488
|
-
cash: "cash";
|
|
2489
|
-
credit_card: "credit_card";
|
|
2490
|
-
}>;
|
|
2491
|
-
type PaymentMethod = z.infer<typeof paymentMethodSchema>;
|
|
2492
|
-
declare const paymentStatuses: readonly ["pending", "pending_verification", "paid", "canceled", "refunded", "failed"];
|
|
2493
|
-
declare const paymentStatusSchema: z.ZodEnum<{
|
|
2494
|
-
pending: "pending";
|
|
2495
|
-
pending_verification: "pending_verification";
|
|
2496
|
-
paid: "paid";
|
|
2497
|
-
canceled: "canceled";
|
|
2498
|
-
refunded: "refunded";
|
|
2499
|
-
failed: "failed";
|
|
2500
|
-
}>;
|
|
2501
|
-
type PaymentStatus = z.infer<typeof paymentStatusSchema>;
|
|
2502
2485
|
declare const paymentIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payments/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payments/:id">, unknown>>;
|
|
2503
2486
|
type PaymentIri = z.infer<typeof paymentIriSchema>;
|
|
2504
2487
|
declare const paymentNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payments/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payments/:id"> | null, unknown>>;
|
|
@@ -2524,4 +2507,4 @@ type PaymentConfigStripeIri = z.infer<typeof paymentConfigStripeIriSchema>;
|
|
|
2524
2507
|
declare const paymentConfigStripeNullableIriSchema: 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>>;
|
|
2525
2508
|
type PaymentConfigStripeNullableIri = z.infer<typeof paymentConfigStripeNullableIriSchema>;
|
|
2526
2509
|
|
|
2527
|
-
export { CreatePaymentConfigBankTransfer, type CreatePaymentConfigBankTransferInput, type CreatePaymentConfigBankTransferResponse, CreatePaymentConfigCash, type CreatePaymentConfigCashInput, type CreatePaymentConfigCashResponse, CreatePaymentConfigCreditCard, type CreatePaymentConfigCreditCardInput, type CreatePaymentConfigCreditCardResponse, CreatePaymentConfigStripe, type CreatePaymentConfigStripeInput, type CreatePaymentConfigStripeResponse, DeletePayment, DeletePaymentConfig, DeletePaymentConfigBankTransfer, DeletePaymentConfigCash, DeletePaymentConfigCreditCard, DeletePaymentConfigStripe, GetPaymentConfigBankTransferDetails, type GetPaymentConfigBankTransferDetailsInput, type GetPaymentConfigBankTransferDetailsResponse, GetPaymentConfigBankTransferList, type GetPaymentConfigBankTransferListInput, type GetPaymentConfigBankTransferListQueryParams, type GetPaymentConfigBankTransferListResponse, GetPaymentConfigCashDetails, type GetPaymentConfigCashDetailsInput, type GetPaymentConfigCashDetailsResponse, GetPaymentConfigCashList, type GetPaymentConfigCashListInput, type GetPaymentConfigCashListQueryParams, type GetPaymentConfigCashListResponse, GetPaymentConfigCreditCardDetails, type GetPaymentConfigCreditCardDetailsInput, type GetPaymentConfigCreditCardDetailsResponse, GetPaymentConfigCreditCardList, type GetPaymentConfigCreditCardListInput, type GetPaymentConfigCreditCardListQueryParams, type GetPaymentConfigCreditCardListResponse, GetPaymentConfigDetails, type GetPaymentConfigDetailsInput, type GetPaymentConfigDetailsResponse, GetPaymentConfigStripeDetails, type GetPaymentConfigStripeDetailsInput, type GetPaymentConfigStripeDetailsResponse, GetPaymentConfigStripeList, type GetPaymentConfigStripeListInput, type GetPaymentConfigStripeListQueryParams, type GetPaymentConfigStripeListResponse, GetPaymentConfigs, GetPaymentConfigsFromPointOfSale, type GetPaymentConfigsFromPointOfSaleInput, type GetPaymentConfigsFromPointOfSaleQueryParams, type GetPaymentConfigsFromPointOfSaleResponse, type GetPaymentConfigsInput, type GetPaymentConfigsQueryParams, type GetPaymentConfigsResponse, GetPaymentDetails, type GetPaymentDetailsInput, type GetPaymentDetailsResponse, GetPaymentInfo, type GetPaymentInfoInput, type GetPaymentInfoResponse, GetPayments, GetPaymentsForPaymentConfig, type GetPaymentsForPaymentConfigInput, type GetPaymentsForPaymentConfigQueryParams, type GetPaymentsForPaymentConfigResponse, type GetPaymentsInput, type GetPaymentsQueryParams, type GetPaymentsResponse, type Payment, type PaymentConfig, type PaymentConfigBankTransfer, type PaymentConfigBankTransferDetails, type PaymentConfigBankTransferIri, type PaymentConfigBankTransferNullableIri, type PaymentConfigCash, type PaymentConfigCashDetails, type PaymentConfigCashIri, type PaymentConfigCashNullableIri, type PaymentConfigCreditCard, type PaymentConfigCreditCardDetails, type PaymentConfigCreditCardIri, type PaymentConfigCreditCardNullableIri, type PaymentConfigDetails, type PaymentConfigIri, type PaymentConfigNullableIri, type PaymentConfigStripe, type PaymentConfigStripeDetails, type PaymentConfigStripeIri, type PaymentConfigStripeNullableIri, type PaymentConfigsQueryParams, type PaymentDetails, type PaymentInfo, type PaymentInfoBankTransfer, type PaymentInfoCash, type PaymentInfoCreditCard, type PaymentInfoStripe, type PaymentIri, type
|
|
2510
|
+
export { CreatePaymentConfigBankTransfer, type CreatePaymentConfigBankTransferInput, type CreatePaymentConfigBankTransferResponse, CreatePaymentConfigCash, type CreatePaymentConfigCashInput, type CreatePaymentConfigCashResponse, CreatePaymentConfigCreditCard, type CreatePaymentConfigCreditCardInput, type CreatePaymentConfigCreditCardResponse, CreatePaymentConfigStripe, type CreatePaymentConfigStripeInput, type CreatePaymentConfigStripeResponse, DeletePayment, DeletePaymentConfig, DeletePaymentConfigBankTransfer, DeletePaymentConfigCash, DeletePaymentConfigCreditCard, DeletePaymentConfigStripe, GetPaymentConfigBankTransferDetails, type GetPaymentConfigBankTransferDetailsInput, type GetPaymentConfigBankTransferDetailsResponse, GetPaymentConfigBankTransferList, type GetPaymentConfigBankTransferListInput, type GetPaymentConfigBankTransferListQueryParams, type GetPaymentConfigBankTransferListResponse, GetPaymentConfigCashDetails, type GetPaymentConfigCashDetailsInput, type GetPaymentConfigCashDetailsResponse, GetPaymentConfigCashList, type GetPaymentConfigCashListInput, type GetPaymentConfigCashListQueryParams, type GetPaymentConfigCashListResponse, GetPaymentConfigCreditCardDetails, type GetPaymentConfigCreditCardDetailsInput, type GetPaymentConfigCreditCardDetailsResponse, GetPaymentConfigCreditCardList, type GetPaymentConfigCreditCardListInput, type GetPaymentConfigCreditCardListQueryParams, type GetPaymentConfigCreditCardListResponse, GetPaymentConfigDetails, type GetPaymentConfigDetailsInput, type GetPaymentConfigDetailsResponse, GetPaymentConfigStripeDetails, type GetPaymentConfigStripeDetailsInput, type GetPaymentConfigStripeDetailsResponse, GetPaymentConfigStripeList, type GetPaymentConfigStripeListInput, type GetPaymentConfigStripeListQueryParams, type GetPaymentConfigStripeListResponse, GetPaymentConfigs, GetPaymentConfigsFromPointOfSale, type GetPaymentConfigsFromPointOfSaleInput, type GetPaymentConfigsFromPointOfSaleQueryParams, type GetPaymentConfigsFromPointOfSaleResponse, type GetPaymentConfigsInput, type GetPaymentConfigsQueryParams, type GetPaymentConfigsResponse, GetPaymentDetails, type GetPaymentDetailsInput, type GetPaymentDetailsResponse, GetPaymentInfo, type GetPaymentInfoInput, type GetPaymentInfoResponse, GetPayments, GetPaymentsForPaymentConfig, type GetPaymentsForPaymentConfigInput, type GetPaymentsForPaymentConfigQueryParams, type GetPaymentsForPaymentConfigResponse, type GetPaymentsInput, type GetPaymentsQueryParams, type GetPaymentsResponse, type Payment, type PaymentConfig, type PaymentConfigBankTransfer, type PaymentConfigBankTransferDetails, type PaymentConfigBankTransferIri, type PaymentConfigBankTransferNullableIri, type PaymentConfigCash, type PaymentConfigCashDetails, type PaymentConfigCashIri, type PaymentConfigCashNullableIri, type PaymentConfigCreditCard, type PaymentConfigCreditCardDetails, type PaymentConfigCreditCardIri, type PaymentConfigCreditCardNullableIri, type PaymentConfigDetails, type PaymentConfigIri, type PaymentConfigNullableIri, type PaymentConfigStripe, type PaymentConfigStripeDetails, type PaymentConfigStripeIri, type PaymentConfigStripeNullableIri, type PaymentConfigsQueryParams, type PaymentDetails, type PaymentInfo, type PaymentInfoBankTransfer, type PaymentInfoCash, type PaymentInfoCreditCard, type PaymentInfoStripe, type PaymentIri, type PaymentNullableIri, type PaymentQueryParams, UpdatePayment, UpdatePaymentConfigBankTransfer, type UpdatePaymentConfigBankTransferInput, type UpdatePaymentConfigBankTransferResponse, UpdatePaymentConfigStripe, type UpdatePaymentConfigStripeInput, type UpdatePaymentConfigStripeResponse, type UpdatePaymentInput, type UpdatePaymentResponse, type WritablePayment, type WritablePaymentConfigBankTransfer, type WritablePaymentConfigCash, type WritablePaymentConfigCreditCard, type WritablePaymentConfigStripe, createPaymentConfigBankTransferInputSchema, createPaymentConfigBankTransferResponseSchema, createPaymentConfigCashInputSchema, createPaymentConfigCashResponseSchema, createPaymentConfigCreditCardInputSchema, createPaymentConfigCreditCardResponseSchema, createPaymentConfigStripeInputSchema, createPaymentConfigStripeResponseSchema, deletePaymentConfigBankTransferInputSchema, deletePaymentConfigBankTransferResponseSchema, deletePaymentConfigCashInputSchema, deletePaymentConfigCashResponseSchema, deletePaymentConfigCreditCardInputSchema, deletePaymentConfigCreditCardResponseSchema, deletePaymentConfigInputSchema, deletePaymentConfigResponseSchema, deletePaymentConfigStripeInputSchema, deletePaymentConfigStripeResponseSchema, deletePaymentInputSchema, deletePaymentResponseSchema, getPaymentConfigBankTransferDetailsInputSchema, getPaymentConfigBankTransferDetailsResponseSchema, getPaymentConfigBankTransferListInputSchema, getPaymentConfigBankTransferListResponseSchema, getPaymentConfigCashDetailsInputSchema, getPaymentConfigCashDetailsResponseSchema, getPaymentConfigCashListInputSchema, getPaymentConfigCashListResponseSchema, getPaymentConfigCreditCardDetailsInputSchema, getPaymentConfigCreditCardDetailsResponseSchema, getPaymentConfigCreditCardListInputSchema, getPaymentConfigCreditCardListResponseSchema, getPaymentConfigDetailsInputSchema, getPaymentConfigDetailsResponseSchema, getPaymentConfigStripeDetailsInputSchema, getPaymentConfigStripeDetailsResponseSchema, getPaymentConfigStripeListInputSchema, getPaymentConfigStripeListResponseSchema, getPaymentConfigsFromPointOfSaleInputSchema, getPaymentConfigsFromPointOfSaleResponseSchema, getPaymentConfigsInputSchema, getPaymentConfigsResponseSchema, getPaymentDetailsInputSchema, getPaymentDetailsResponseSchema, getPaymentInfoInputSchema, getPaymentInfoResponseSchema, getPaymentsForPaymentConfigInputSchema, getPaymentsForPaymentConfigResponseSchema, getPaymentsInputSchema, getPaymentsResponseSchema, paymentConfigBankTransferDetailsSchema, paymentConfigBankTransferIriSchema, paymentConfigBankTransferNullableIriSchema, paymentConfigBankTransferSchema, paymentConfigBaseSchema, paymentConfigCashDetailsSchema, paymentConfigCashIriSchema, paymentConfigCashNullableIriSchema, paymentConfigCashSchema, paymentConfigCreditCardDetailsSchema, paymentConfigCreditCardIriSchema, paymentConfigCreditCardNullableIriSchema, paymentConfigCreditCardSchema, paymentConfigDetailsSchema, paymentConfigIriSchema, paymentConfigNullableIriSchema, paymentConfigSchema, paymentConfigStripeDetailsSchema, paymentConfigStripeIriSchema, paymentConfigStripeNullableIriSchema, paymentConfigStripeSchema, paymentConfigsQuerySchema, paymentDetailsSchema, paymentInfoBankTransferSchema, paymentInfoCashSchema, paymentInfoCreditCardSchema, paymentInfoSchema, paymentInfoStripeSchema, paymentIriSchema, paymentNullableIriSchema, paymentQuerySchema, paymentSchema, updatePaymentConfigBankTransferInputSchema, updatePaymentConfigBankTransferResponseSchema, updatePaymentConfigStripeInputSchema, updatePaymentConfigStripeResponseSchema, updatePaymentInputSchema, updatePaymentResponseSchema, writablePaymentConfigBankTransferSchema, writablePaymentConfigCashSchema, writablePaymentConfigCreditCardSchema, writablePaymentConfigSchemas, writablePaymentConfigStripeSchema, writablePaymentSchema };
|
package/dist/index.js
CHANGED
|
@@ -11158,17 +11158,12 @@ config(en_default());
|
|
|
11158
11158
|
|
|
11159
11159
|
// src/types.ts
|
|
11160
11160
|
import { iriNullableSchema, iriSchema } from "@deliverart/sdk-js-global-types";
|
|
11161
|
-
|
|
11162
|
-
|
|
11163
|
-
|
|
11164
|
-
|
|
11165
|
-
|
|
11166
|
-
|
|
11167
|
-
"canceled",
|
|
11168
|
-
"refunded",
|
|
11169
|
-
"failed"
|
|
11170
|
-
];
|
|
11171
|
-
var paymentStatusSchema = external_exports.enum(paymentStatuses);
|
|
11161
|
+
import {
|
|
11162
|
+
paymentMethods,
|
|
11163
|
+
paymentMethodSchema,
|
|
11164
|
+
paymentStatuses,
|
|
11165
|
+
paymentStatusSchema
|
|
11166
|
+
} from "@deliverart/sdk-js-global-types";
|
|
11172
11167
|
var paymentIriSchema = iriSchema("/payments/:id");
|
|
11173
11168
|
var paymentNullableIriSchema = iriNullableSchema("/payments/:id");
|
|
11174
11169
|
var paymentConfigIriSchema = iriSchema("/payment_configs/:id");
|
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.5.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.5.1",
|
|
22
|
+
"@deliverart/sdk-js-global-types": "2.5.1",
|
|
23
|
+
"@deliverart/sdk-js-point-of-sale": "2.5.1"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|