@deliverart/sdk-js-order 2.39.0 → 2.40.0-dev.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 +34 -1
- package/dist/index.d.cts +13136 -1
- package/dist/index.d.ts +13136 -1
- package/dist/index.js +33 -1
- package/package.json +10 -10
package/dist/index.cjs
CHANGED
|
@@ -282,6 +282,7 @@ __export(index_exports, {
|
|
|
282
282
|
orderMenuItemSchema: () => orderMenuItemSchema,
|
|
283
283
|
orderMenuItemsQuerySchema: () => orderMenuItemsQuerySchema,
|
|
284
284
|
orderNullableIriSchema: () => orderNullableIriSchema,
|
|
285
|
+
orderPaymentSummarySchema: () => orderPaymentSummarySchema,
|
|
285
286
|
orderPlanningModeSchema: () => import_sdk_js_global_types4.orderPlanningModeSchema,
|
|
286
287
|
orderPlanningModes: () => import_sdk_js_global_types4.orderPlanningModes,
|
|
287
288
|
orderPreparationStatusSchema: () => import_sdk_js_global_types4.orderPreparationStatusSchema,
|
|
@@ -634,6 +635,7 @@ var orderSettlementOperationSchema = import_zod4.z.object({
|
|
|
634
635
|
updatedAt: import_sdk_js_global_types2.datetimeSchema
|
|
635
636
|
});
|
|
636
637
|
var offlineSettlementFields = import_zod4.z.strictObject({
|
|
638
|
+
confirmedOutsideSystem: import_zod4.z.boolean().optional(),
|
|
637
639
|
instructionId: uuid3,
|
|
638
640
|
requestId: uuid3,
|
|
639
641
|
amount: import_zod4.z.string().regex(/^(?:0|[1-9][0-9]{0,5})(?:\.[0-9]{1,4})?$/).refine((value) => Number(value) > 0),
|
|
@@ -649,7 +651,8 @@ var recordOrderOfflineSettlementInputSchema = offlineSettlementFields.superRefin
|
|
|
649
651
|
);
|
|
650
652
|
var startOrderOnlineSettlementInputSchema = offlineSettlementFields.omit({
|
|
651
653
|
occurredAt: true,
|
|
652
|
-
reference: true
|
|
654
|
+
reference: true,
|
|
655
|
+
confirmedOutsideSystem: true
|
|
653
656
|
}).superRefine(
|
|
654
657
|
(value, context) => checkAmendmentReferenceAliases(value, context, ["sourcePayment", "paymentConfig"])
|
|
655
658
|
);
|
|
@@ -879,9 +882,34 @@ var normalizeOrderCustomerInfo = (value) => {
|
|
|
879
882
|
}
|
|
880
883
|
return value;
|
|
881
884
|
};
|
|
885
|
+
var orderPaymentSummarySchema = import_zod7.z.object({
|
|
886
|
+
kind: import_zod7.z.enum(["none", "single", "mixed", "unavailable"]),
|
|
887
|
+
complete: import_zod7.z.boolean(),
|
|
888
|
+
payments: import_zod7.z.array(
|
|
889
|
+
import_zod7.z.object({
|
|
890
|
+
id: import_zod7.z.string(),
|
|
891
|
+
method: import_sdk_js_payment.paymentMethodSchema,
|
|
892
|
+
amount: import_zod7.z.string(),
|
|
893
|
+
status: import_sdk_js_payment.paymentStatusSchema,
|
|
894
|
+
management: import_zod7.z.enum(["pos", "platform", "unknown"]),
|
|
895
|
+
collectingPlatform: import_zod7.z.string().nullable(),
|
|
896
|
+
ticketProvider: import_zod7.z.string().nullable()
|
|
897
|
+
})
|
|
898
|
+
),
|
|
899
|
+
legacyMethod: import_sdk_js_payment.paymentMethodSchema.nullable(),
|
|
900
|
+
legacyStatus: import_sdk_js_payment.paymentStatusSchema.nullable(),
|
|
901
|
+
reportedPortions: import_zod7.z.array(
|
|
902
|
+
import_zod7.z.object({
|
|
903
|
+
method: import_sdk_js_payment.paymentMethodSchema,
|
|
904
|
+
provider: import_zod7.z.string().nullable(),
|
|
905
|
+
amount: import_zod7.z.string().nullable()
|
|
906
|
+
})
|
|
907
|
+
)
|
|
908
|
+
});
|
|
882
909
|
var orderBaseSchema = import_zod7.z.object({
|
|
883
910
|
id: import_zod7.z.string(),
|
|
884
911
|
payment: import_sdk_js_payment.paymentNullableIriSchema,
|
|
912
|
+
paymentSummary: orderPaymentSummarySchema,
|
|
885
913
|
paymentMethod: import_sdk_js_payment.paymentMethodSchema.nullable(),
|
|
886
914
|
paymentStatus: import_sdk_js_payment.paymentStatusSchema.nullable(),
|
|
887
915
|
source: import_sdk_js_global_types4.orderSourceSchema,
|
|
@@ -2245,6 +2273,9 @@ var orderReceiptActionSchema = import_zod17.z.enum([
|
|
|
2245
2273
|
"collect"
|
|
2246
2274
|
]);
|
|
2247
2275
|
var orderReceiptFundingSchema = import_zod17.z.object({
|
|
2276
|
+
management: import_zod17.z.enum(["pos", "platform", "unknown"]),
|
|
2277
|
+
collectingPlatform: import_zod17.z.string().nullable(),
|
|
2278
|
+
blockedReason: import_zod17.z.enum(["platform_managed_payment", "historical_payment_management_unknown"]).nullable(),
|
|
2248
2279
|
id: uuid14,
|
|
2249
2280
|
method: import_sdk_js_global_types10.paymentMethodSchema,
|
|
2250
2281
|
status: import_zod17.z.enum(["pending", "pending_verification", "paid", "refunded", "failed", "canceled"]),
|
|
@@ -2275,6 +2306,7 @@ var orderReceiptsSchema = import_zod17.z.object({
|
|
|
2275
2306
|
journal: import_zod17.z.array(orderReceiptJournalSchema)
|
|
2276
2307
|
});
|
|
2277
2308
|
var recordOrderReceiptInputSchema = import_zod17.z.strictObject({
|
|
2309
|
+
confirmedOutsideSystem: import_zod17.z.boolean().optional(),
|
|
2278
2310
|
requestId: uuid14,
|
|
2279
2311
|
revision: import_zod17.z.number().int().positive(),
|
|
2280
2312
|
action: orderReceiptActionSchema,
|
|
@@ -4212,6 +4244,7 @@ var import_sdk_js_global_types31 = require("@deliverart/sdk-js-global-types");
|
|
|
4212
4244
|
orderMenuItemSchema,
|
|
4213
4245
|
orderMenuItemsQuerySchema,
|
|
4214
4246
|
orderNullableIriSchema,
|
|
4247
|
+
orderPaymentSummarySchema,
|
|
4215
4248
|
orderPlanningModeSchema,
|
|
4216
4249
|
orderPlanningModes,
|
|
4217
4250
|
orderPreparationStatusSchema,
|