@deliverart/sdk-js-order 2.1.14 → 2.1.15
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 +29 -2
- package/dist/index.d.cts +366 -1
- package/dist/index.d.ts +366 -1
- package/dist/index.js +26 -2
- package/package.json +9 -9
package/dist/index.cjs
CHANGED
|
@@ -36,6 +36,7 @@ __export(index_exports, {
|
|
|
36
36
|
GetOrderMenuItemModifierModifierDetails: () => GetOrderMenuItemModifierModifierDetails,
|
|
37
37
|
GetOrders: () => GetOrders,
|
|
38
38
|
GetPointOfSaleOrders: () => GetPointOfSaleOrders,
|
|
39
|
+
RejectOrder: () => RejectOrder,
|
|
39
40
|
UpdateBundle: () => UpdateBundle,
|
|
40
41
|
UpdateOrder: () => UpdateOrder,
|
|
41
42
|
advanceOrderPreparationStatusInputSchema: () => advanceOrderPreparationStatusInputSchema,
|
|
@@ -116,6 +117,8 @@ __export(index_exports, {
|
|
|
116
117
|
orderTypeSchema: () => orderTypeSchema,
|
|
117
118
|
orderTypes: () => orderTypes,
|
|
118
119
|
ordersQuerySchema: () => ordersQuerySchema,
|
|
120
|
+
rejectOrderInputSchema: () => rejectOrderInputSchema,
|
|
121
|
+
rejectOrderResponseSchema: () => rejectOrderResponseSchema,
|
|
119
122
|
updateBundleInputSchema: () => updateBundleInputSchema,
|
|
120
123
|
updateBundleResponseSchema: () => updateBundleResponseSchema,
|
|
121
124
|
updateOrderInputSchema: () => updateOrderInputSchema,
|
|
@@ -12114,8 +12117,29 @@ var GetPointOfSaleOrders = class extends import_sdk_js_core17.AbstractApiRequest
|
|
|
12114
12117
|
}
|
|
12115
12118
|
};
|
|
12116
12119
|
|
|
12117
|
-
// src/requests/orders/
|
|
12120
|
+
// src/requests/orders/RejectOrder.ts
|
|
12118
12121
|
var import_sdk_js_core18 = require("@deliverart/sdk-js-core");
|
|
12122
|
+
var rejectOrderInputSchema = external_exports.undefined();
|
|
12123
|
+
var rejectOrderResponseSchema = orderDetailsSchema;
|
|
12124
|
+
var RejectOrder = class extends import_sdk_js_core18.AbstractApiRequest {
|
|
12125
|
+
constructor(orderId) {
|
|
12126
|
+
super(void 0);
|
|
12127
|
+
this.method = "POST";
|
|
12128
|
+
this.contentType = "application/json";
|
|
12129
|
+
this.accept = "application/json";
|
|
12130
|
+
this.inputSchema = rejectOrderInputSchema;
|
|
12131
|
+
this.outputSchema = rejectOrderResponseSchema;
|
|
12132
|
+
this.querySchema = void 0;
|
|
12133
|
+
this.headersSchema = void 0;
|
|
12134
|
+
this.orderId = orderId;
|
|
12135
|
+
}
|
|
12136
|
+
getPath() {
|
|
12137
|
+
return `/orders/${this.orderId}/reject`;
|
|
12138
|
+
}
|
|
12139
|
+
};
|
|
12140
|
+
|
|
12141
|
+
// src/requests/orders/UpdateOrder.ts
|
|
12142
|
+
var import_sdk_js_core19 = require("@deliverart/sdk-js-core");
|
|
12119
12143
|
var updateOrderInputSchema = writableOrderSchema.omit({
|
|
12120
12144
|
pointOfSale: true,
|
|
12121
12145
|
type: true,
|
|
@@ -12126,7 +12150,7 @@ var updateOrderInputSchema = writableOrderSchema.omit({
|
|
|
12126
12150
|
autoAccept: true
|
|
12127
12151
|
}).partial();
|
|
12128
12152
|
var updateOrderResponseSchema = orderDetailsSchema;
|
|
12129
|
-
var UpdateOrder = class extends
|
|
12153
|
+
var UpdateOrder = class extends import_sdk_js_core19.AbstractApiRequest {
|
|
12130
12154
|
constructor(orderId, input) {
|
|
12131
12155
|
super(input);
|
|
12132
12156
|
this.method = "PATCH";
|
|
@@ -12160,6 +12184,7 @@ var UpdateOrder = class extends import_sdk_js_core18.AbstractApiRequest {
|
|
|
12160
12184
|
GetOrderMenuItemModifierModifierDetails,
|
|
12161
12185
|
GetOrders,
|
|
12162
12186
|
GetPointOfSaleOrders,
|
|
12187
|
+
RejectOrder,
|
|
12163
12188
|
UpdateBundle,
|
|
12164
12189
|
UpdateOrder,
|
|
12165
12190
|
advanceOrderPreparationStatusInputSchema,
|
|
@@ -12240,6 +12265,8 @@ var UpdateOrder = class extends import_sdk_js_core18.AbstractApiRequest {
|
|
|
12240
12265
|
orderTypeSchema,
|
|
12241
12266
|
orderTypes,
|
|
12242
12267
|
ordersQuerySchema,
|
|
12268
|
+
rejectOrderInputSchema,
|
|
12269
|
+
rejectOrderResponseSchema,
|
|
12243
12270
|
updateBundleInputSchema,
|
|
12244
12271
|
updateBundleResponseSchema,
|
|
12245
12272
|
updateOrderInputSchema,
|
package/dist/index.d.cts
CHANGED
|
@@ -6290,6 +6290,371 @@ declare class GetPointOfSaleOrders extends AbstractApiRequest<typeof getPointOfS
|
|
|
6290
6290
|
parseResponse(data: unknown, rawResponse: Response): Paginated<Order>;
|
|
6291
6291
|
}
|
|
6292
6292
|
|
|
6293
|
+
declare const rejectOrderInputSchema: z.ZodUndefined;
|
|
6294
|
+
type RejectOrderInput = z.infer<typeof rejectOrderInputSchema>;
|
|
6295
|
+
declare const rejectOrderResponseSchema: z.ZodObject<{
|
|
6296
|
+
id: z.ZodString;
|
|
6297
|
+
payment: 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>>;
|
|
6298
|
+
paymentMethod: z.ZodNullable<z.ZodEnum<{
|
|
6299
|
+
stripe: "stripe";
|
|
6300
|
+
bank_transfer: "bank_transfer";
|
|
6301
|
+
cash: "cash";
|
|
6302
|
+
credit_card: "credit_card";
|
|
6303
|
+
}>>;
|
|
6304
|
+
paymentStatus: z.ZodNullable<z.ZodEnum<{
|
|
6305
|
+
pending: "pending";
|
|
6306
|
+
pending_verification: "pending_verification";
|
|
6307
|
+
paid: "paid";
|
|
6308
|
+
canceled: "canceled";
|
|
6309
|
+
refunded: "refunded";
|
|
6310
|
+
failed: "failed";
|
|
6311
|
+
}>>;
|
|
6312
|
+
type: z.ZodEnum<{
|
|
6313
|
+
delivery: "delivery";
|
|
6314
|
+
take_away: "take_away";
|
|
6315
|
+
kitchen: "kitchen";
|
|
6316
|
+
}>;
|
|
6317
|
+
source: z.ZodEnum<{
|
|
6318
|
+
application: "application";
|
|
6319
|
+
ecommerce: "ecommerce";
|
|
6320
|
+
partner: "partner";
|
|
6321
|
+
}>;
|
|
6322
|
+
partner: z.ZodNullable<z.ZodString>;
|
|
6323
|
+
partnerIdentifier: z.ZodNullable<z.ZodString>;
|
|
6324
|
+
sequenceId: z.ZodNullable<z.ZodString>;
|
|
6325
|
+
displayId: z.ZodNullable<z.ZodString>;
|
|
6326
|
+
customerInfo: z.ZodObject<{
|
|
6327
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6328
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6329
|
+
email: z.ZodNullable<z.ZodEmail>;
|
|
6330
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
6331
|
+
contactNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6332
|
+
contactAccessCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6333
|
+
}, z.core.$strict>;
|
|
6334
|
+
billingInfo: z.ZodNullable<z.ZodObject<{
|
|
6335
|
+
businessName: z.ZodString;
|
|
6336
|
+
vat: z.ZodString;
|
|
6337
|
+
taxCode: z.ZodString;
|
|
6338
|
+
billingData: z.ZodObject<{
|
|
6339
|
+
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6340
|
+
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
6341
|
+
}, z.core.$strip>;
|
|
6342
|
+
}, z.core.$strip>>;
|
|
6343
|
+
address: z.ZodNullable<z.ZodObject<{
|
|
6344
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6345
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6346
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6347
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6348
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6349
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6350
|
+
}, z.core.$strip>>;
|
|
6351
|
+
location: z.ZodNullable<z.ZodObject<{
|
|
6352
|
+
latitude: z.ZodNumber;
|
|
6353
|
+
longitude: z.ZodNumber;
|
|
6354
|
+
}, z.core.$strip>>;
|
|
6355
|
+
status: z.ZodEnum<{
|
|
6356
|
+
pending: "pending";
|
|
6357
|
+
confirmed: "confirmed";
|
|
6358
|
+
rejected: "rejected";
|
|
6359
|
+
}>;
|
|
6360
|
+
preparationStatus: z.ZodEnum<{
|
|
6361
|
+
to_prepare: "to_prepare";
|
|
6362
|
+
in_preparation: "in_preparation";
|
|
6363
|
+
done: "done";
|
|
6364
|
+
}>;
|
|
6365
|
+
preparationTime: z.ZodNullable<z.ZodString>;
|
|
6366
|
+
preparationStartedAt: z.ZodNullable<z.ZodString>;
|
|
6367
|
+
preparationEndedAt: z.ZodNullable<z.ZodString>;
|
|
6368
|
+
requestedDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
6369
|
+
finalDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
6370
|
+
deliveryStartedAt: z.ZodNullable<z.ZodString>;
|
|
6371
|
+
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
6372
|
+
requestedCollectionTime: z.ZodNullable<z.ZodString>;
|
|
6373
|
+
finalCollectionTime: z.ZodNullable<z.ZodString>;
|
|
6374
|
+
collectedAt: z.ZodNullable<z.ZodString>;
|
|
6375
|
+
totalCountableItems: z.ZodNumber;
|
|
6376
|
+
amount: z.ZodString;
|
|
6377
|
+
netAmount: z.ZodString;
|
|
6378
|
+
taxAmount: z.ZodString;
|
|
6379
|
+
discount: z.ZodString;
|
|
6380
|
+
feeAmount: z.ZodString;
|
|
6381
|
+
feeNetAmount: z.ZodString;
|
|
6382
|
+
feeTaxAmount: z.ZodString;
|
|
6383
|
+
totalAmount: z.ZodString;
|
|
6384
|
+
totalNetAmount: z.ZodString;
|
|
6385
|
+
totalTaxAmount: z.ZodString;
|
|
6386
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
6387
|
+
deliveryNotes: z.ZodNullable<z.ZodString>;
|
|
6388
|
+
kitchenNotes: z.ZodNullable<z.ZodString>;
|
|
6389
|
+
maximumAcceptanceDate: z.ZodNullable<z.ZodString>;
|
|
6390
|
+
acceptedAt: z.ZodNullable<z.ZodString>;
|
|
6391
|
+
createdAt: z.ZodString;
|
|
6392
|
+
updatedAt: z.ZodString;
|
|
6393
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
6394
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id"> | null, unknown>>;
|
|
6395
|
+
customerBusinessProfile: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id"> | null, unknown>>;
|
|
6396
|
+
bundle: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id"> | null, unknown>>;
|
|
6397
|
+
deliveredBy: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown>>;
|
|
6398
|
+
fees: z.ZodArray<z.ZodObject<{
|
|
6399
|
+
key: z.ZodString;
|
|
6400
|
+
amount: z.ZodString;
|
|
6401
|
+
netAmount: z.ZodString;
|
|
6402
|
+
taxAmount: z.ZodString;
|
|
6403
|
+
taxRate: z.ZodCoercedNumber<unknown>;
|
|
6404
|
+
}, z.core.$strip>>;
|
|
6405
|
+
items: z.ZodArray<z.ZodObject<{
|
|
6406
|
+
id: z.ZodString;
|
|
6407
|
+
type: z.ZodEnum<{
|
|
6408
|
+
ITEM: "ITEM";
|
|
6409
|
+
CHOICE: "CHOICE";
|
|
6410
|
+
BUNDLE: "BUNDLE";
|
|
6411
|
+
}>;
|
|
6412
|
+
action: z.ZodEnum<{
|
|
6413
|
+
add: "add";
|
|
6414
|
+
remove: "remove";
|
|
6415
|
+
}>;
|
|
6416
|
+
name: z.ZodArray<z.ZodObject<{
|
|
6417
|
+
locale: z.ZodString;
|
|
6418
|
+
text: z.ZodString;
|
|
6419
|
+
}, z.core.$strip>>;
|
|
6420
|
+
description: z.ZodArray<z.ZodObject<{
|
|
6421
|
+
locale: z.ZodString;
|
|
6422
|
+
text: z.ZodString;
|
|
6423
|
+
}, z.core.$strip>>;
|
|
6424
|
+
variantName: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
6425
|
+
locale: z.ZodString;
|
|
6426
|
+
text: z.ZodString;
|
|
6427
|
+
}, z.core.$strip>>>;
|
|
6428
|
+
countable: z.ZodBoolean;
|
|
6429
|
+
quantity: z.ZodNullable<z.ZodNumber>;
|
|
6430
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
6431
|
+
unitPrice: z.ZodString;
|
|
6432
|
+
unitNetPrice: z.ZodString;
|
|
6433
|
+
unitTaxAmount: z.ZodString;
|
|
6434
|
+
unitTaxRate: z.ZodCoercedNumber<unknown>;
|
|
6435
|
+
unitDiscount: z.ZodString;
|
|
6436
|
+
finalUnitPrice: z.ZodString;
|
|
6437
|
+
finalUnitNetPrice: z.ZodString;
|
|
6438
|
+
finalUnitTaxAmount: z.ZodString;
|
|
6439
|
+
amount: z.ZodString;
|
|
6440
|
+
netAmount: z.ZodString;
|
|
6441
|
+
taxAmount: z.ZodString;
|
|
6442
|
+
discount: z.ZodString;
|
|
6443
|
+
totalAmount: z.ZodString;
|
|
6444
|
+
totalNetAmount: z.ZodString;
|
|
6445
|
+
totalTaxAmount: z.ZodString;
|
|
6446
|
+
createdAt: z.ZodString;
|
|
6447
|
+
updatedAt: z.ZodString;
|
|
6448
|
+
removals: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/orders/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/orders/menu_items/:id">, unknown>>>;
|
|
6449
|
+
modifiers: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/orders/menu_items/modifiers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/orders/menu_items/modifiers/:id">, unknown>>>;
|
|
6450
|
+
mainLevel: z.ZodBoolean;
|
|
6451
|
+
}, z.core.$strip>>;
|
|
6452
|
+
modifiers: z.ZodArray<z.ZodObject<{
|
|
6453
|
+
id: z.ZodString;
|
|
6454
|
+
name: z.ZodArray<z.ZodObject<{
|
|
6455
|
+
locale: z.ZodString;
|
|
6456
|
+
text: z.ZodString;
|
|
6457
|
+
}, z.core.$strip>>;
|
|
6458
|
+
description: z.ZodArray<z.ZodObject<{
|
|
6459
|
+
locale: z.ZodString;
|
|
6460
|
+
text: z.ZodString;
|
|
6461
|
+
}, z.core.$strip>>;
|
|
6462
|
+
amount: z.ZodString;
|
|
6463
|
+
netAmount: z.ZodString;
|
|
6464
|
+
taxAmount: z.ZodString;
|
|
6465
|
+
createdAt: z.ZodString;
|
|
6466
|
+
updatedAt: z.ZodString;
|
|
6467
|
+
items: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/orders/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/orders/menu_items/:id">, unknown>>>;
|
|
6468
|
+
}, z.core.$strip>>;
|
|
6469
|
+
}, z.core.$strip>;
|
|
6470
|
+
type RejectOrderResponse = OrderDetails;
|
|
6471
|
+
declare class RejectOrder extends AbstractApiRequest<typeof rejectOrderInputSchema, typeof rejectOrderResponseSchema> {
|
|
6472
|
+
readonly method = "POST";
|
|
6473
|
+
readonly contentType = "application/json";
|
|
6474
|
+
readonly accept = "application/json";
|
|
6475
|
+
readonly inputSchema: z.ZodUndefined;
|
|
6476
|
+
readonly outputSchema: z.ZodObject<{
|
|
6477
|
+
id: z.ZodString;
|
|
6478
|
+
payment: 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>>;
|
|
6479
|
+
paymentMethod: z.ZodNullable<z.ZodEnum<{
|
|
6480
|
+
stripe: "stripe";
|
|
6481
|
+
bank_transfer: "bank_transfer";
|
|
6482
|
+
cash: "cash";
|
|
6483
|
+
credit_card: "credit_card";
|
|
6484
|
+
}>>;
|
|
6485
|
+
paymentStatus: z.ZodNullable<z.ZodEnum<{
|
|
6486
|
+
pending: "pending";
|
|
6487
|
+
pending_verification: "pending_verification";
|
|
6488
|
+
paid: "paid";
|
|
6489
|
+
canceled: "canceled";
|
|
6490
|
+
refunded: "refunded";
|
|
6491
|
+
failed: "failed";
|
|
6492
|
+
}>>;
|
|
6493
|
+
type: z.ZodEnum<{
|
|
6494
|
+
delivery: "delivery";
|
|
6495
|
+
take_away: "take_away";
|
|
6496
|
+
kitchen: "kitchen";
|
|
6497
|
+
}>;
|
|
6498
|
+
source: z.ZodEnum<{
|
|
6499
|
+
application: "application";
|
|
6500
|
+
ecommerce: "ecommerce";
|
|
6501
|
+
partner: "partner";
|
|
6502
|
+
}>;
|
|
6503
|
+
partner: z.ZodNullable<z.ZodString>;
|
|
6504
|
+
partnerIdentifier: z.ZodNullable<z.ZodString>;
|
|
6505
|
+
sequenceId: z.ZodNullable<z.ZodString>;
|
|
6506
|
+
displayId: z.ZodNullable<z.ZodString>;
|
|
6507
|
+
customerInfo: z.ZodObject<{
|
|
6508
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6509
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6510
|
+
email: z.ZodNullable<z.ZodEmail>;
|
|
6511
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
6512
|
+
contactNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6513
|
+
contactAccessCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6514
|
+
}, z.core.$strict>;
|
|
6515
|
+
billingInfo: z.ZodNullable<z.ZodObject<{
|
|
6516
|
+
businessName: z.ZodString;
|
|
6517
|
+
vat: z.ZodString;
|
|
6518
|
+
taxCode: z.ZodString;
|
|
6519
|
+
billingData: z.ZodObject<{
|
|
6520
|
+
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6521
|
+
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
6522
|
+
}, z.core.$strip>;
|
|
6523
|
+
}, z.core.$strip>>;
|
|
6524
|
+
address: z.ZodNullable<z.ZodObject<{
|
|
6525
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6526
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6527
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6528
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6529
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6530
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6531
|
+
}, z.core.$strip>>;
|
|
6532
|
+
location: z.ZodNullable<z.ZodObject<{
|
|
6533
|
+
latitude: z.ZodNumber;
|
|
6534
|
+
longitude: z.ZodNumber;
|
|
6535
|
+
}, z.core.$strip>>;
|
|
6536
|
+
status: z.ZodEnum<{
|
|
6537
|
+
pending: "pending";
|
|
6538
|
+
confirmed: "confirmed";
|
|
6539
|
+
rejected: "rejected";
|
|
6540
|
+
}>;
|
|
6541
|
+
preparationStatus: z.ZodEnum<{
|
|
6542
|
+
to_prepare: "to_prepare";
|
|
6543
|
+
in_preparation: "in_preparation";
|
|
6544
|
+
done: "done";
|
|
6545
|
+
}>;
|
|
6546
|
+
preparationTime: z.ZodNullable<z.ZodString>;
|
|
6547
|
+
preparationStartedAt: z.ZodNullable<z.ZodString>;
|
|
6548
|
+
preparationEndedAt: z.ZodNullable<z.ZodString>;
|
|
6549
|
+
requestedDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
6550
|
+
finalDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
6551
|
+
deliveryStartedAt: z.ZodNullable<z.ZodString>;
|
|
6552
|
+
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
6553
|
+
requestedCollectionTime: z.ZodNullable<z.ZodString>;
|
|
6554
|
+
finalCollectionTime: z.ZodNullable<z.ZodString>;
|
|
6555
|
+
collectedAt: z.ZodNullable<z.ZodString>;
|
|
6556
|
+
totalCountableItems: z.ZodNumber;
|
|
6557
|
+
amount: z.ZodString;
|
|
6558
|
+
netAmount: z.ZodString;
|
|
6559
|
+
taxAmount: z.ZodString;
|
|
6560
|
+
discount: z.ZodString;
|
|
6561
|
+
feeAmount: z.ZodString;
|
|
6562
|
+
feeNetAmount: z.ZodString;
|
|
6563
|
+
feeTaxAmount: z.ZodString;
|
|
6564
|
+
totalAmount: z.ZodString;
|
|
6565
|
+
totalNetAmount: z.ZodString;
|
|
6566
|
+
totalTaxAmount: z.ZodString;
|
|
6567
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
6568
|
+
deliveryNotes: z.ZodNullable<z.ZodString>;
|
|
6569
|
+
kitchenNotes: z.ZodNullable<z.ZodString>;
|
|
6570
|
+
maximumAcceptanceDate: z.ZodNullable<z.ZodString>;
|
|
6571
|
+
acceptedAt: z.ZodNullable<z.ZodString>;
|
|
6572
|
+
createdAt: z.ZodString;
|
|
6573
|
+
updatedAt: z.ZodString;
|
|
6574
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
6575
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id"> | null, unknown>>;
|
|
6576
|
+
customerBusinessProfile: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id"> | null, unknown>>;
|
|
6577
|
+
bundle: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id"> | null, unknown>>;
|
|
6578
|
+
deliveredBy: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown>>;
|
|
6579
|
+
fees: z.ZodArray<z.ZodObject<{
|
|
6580
|
+
key: z.ZodString;
|
|
6581
|
+
amount: z.ZodString;
|
|
6582
|
+
netAmount: z.ZodString;
|
|
6583
|
+
taxAmount: z.ZodString;
|
|
6584
|
+
taxRate: z.ZodCoercedNumber<unknown>;
|
|
6585
|
+
}, z.core.$strip>>;
|
|
6586
|
+
items: z.ZodArray<z.ZodObject<{
|
|
6587
|
+
id: z.ZodString;
|
|
6588
|
+
type: z.ZodEnum<{
|
|
6589
|
+
ITEM: "ITEM";
|
|
6590
|
+
CHOICE: "CHOICE";
|
|
6591
|
+
BUNDLE: "BUNDLE";
|
|
6592
|
+
}>;
|
|
6593
|
+
action: z.ZodEnum<{
|
|
6594
|
+
add: "add";
|
|
6595
|
+
remove: "remove";
|
|
6596
|
+
}>;
|
|
6597
|
+
name: z.ZodArray<z.ZodObject<{
|
|
6598
|
+
locale: z.ZodString;
|
|
6599
|
+
text: z.ZodString;
|
|
6600
|
+
}, z.core.$strip>>;
|
|
6601
|
+
description: z.ZodArray<z.ZodObject<{
|
|
6602
|
+
locale: z.ZodString;
|
|
6603
|
+
text: z.ZodString;
|
|
6604
|
+
}, z.core.$strip>>;
|
|
6605
|
+
variantName: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
6606
|
+
locale: z.ZodString;
|
|
6607
|
+
text: z.ZodString;
|
|
6608
|
+
}, z.core.$strip>>>;
|
|
6609
|
+
countable: z.ZodBoolean;
|
|
6610
|
+
quantity: z.ZodNullable<z.ZodNumber>;
|
|
6611
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
6612
|
+
unitPrice: z.ZodString;
|
|
6613
|
+
unitNetPrice: z.ZodString;
|
|
6614
|
+
unitTaxAmount: z.ZodString;
|
|
6615
|
+
unitTaxRate: z.ZodCoercedNumber<unknown>;
|
|
6616
|
+
unitDiscount: z.ZodString;
|
|
6617
|
+
finalUnitPrice: z.ZodString;
|
|
6618
|
+
finalUnitNetPrice: z.ZodString;
|
|
6619
|
+
finalUnitTaxAmount: z.ZodString;
|
|
6620
|
+
amount: z.ZodString;
|
|
6621
|
+
netAmount: z.ZodString;
|
|
6622
|
+
taxAmount: z.ZodString;
|
|
6623
|
+
discount: z.ZodString;
|
|
6624
|
+
totalAmount: z.ZodString;
|
|
6625
|
+
totalNetAmount: z.ZodString;
|
|
6626
|
+
totalTaxAmount: z.ZodString;
|
|
6627
|
+
createdAt: z.ZodString;
|
|
6628
|
+
updatedAt: z.ZodString;
|
|
6629
|
+
removals: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/orders/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/orders/menu_items/:id">, unknown>>>;
|
|
6630
|
+
modifiers: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/orders/menu_items/modifiers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/orders/menu_items/modifiers/:id">, unknown>>>;
|
|
6631
|
+
mainLevel: z.ZodBoolean;
|
|
6632
|
+
}, z.core.$strip>>;
|
|
6633
|
+
modifiers: z.ZodArray<z.ZodObject<{
|
|
6634
|
+
id: z.ZodString;
|
|
6635
|
+
name: z.ZodArray<z.ZodObject<{
|
|
6636
|
+
locale: z.ZodString;
|
|
6637
|
+
text: z.ZodString;
|
|
6638
|
+
}, z.core.$strip>>;
|
|
6639
|
+
description: z.ZodArray<z.ZodObject<{
|
|
6640
|
+
locale: z.ZodString;
|
|
6641
|
+
text: z.ZodString;
|
|
6642
|
+
}, z.core.$strip>>;
|
|
6643
|
+
amount: z.ZodString;
|
|
6644
|
+
netAmount: z.ZodString;
|
|
6645
|
+
taxAmount: z.ZodString;
|
|
6646
|
+
createdAt: z.ZodString;
|
|
6647
|
+
updatedAt: z.ZodString;
|
|
6648
|
+
items: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/orders/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/orders/menu_items/:id">, unknown>>>;
|
|
6649
|
+
}, z.core.$strip>>;
|
|
6650
|
+
}, z.core.$strip>;
|
|
6651
|
+
readonly querySchema: undefined;
|
|
6652
|
+
readonly headersSchema: undefined;
|
|
6653
|
+
private readonly orderId;
|
|
6654
|
+
constructor(orderId: string);
|
|
6655
|
+
getPath(): string;
|
|
6656
|
+
}
|
|
6657
|
+
|
|
6293
6658
|
declare const updateOrderInputSchema: z.ZodObject<{
|
|
6294
6659
|
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6295
6660
|
discount: z.ZodOptional<z.ZodString>;
|
|
@@ -6807,4 +7172,4 @@ type BundleIri = z.infer<typeof bundleIriSchema>;
|
|
|
6807
7172
|
declare const bundleNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id"> | null, unknown>>;
|
|
6808
7173
|
type BundleNullableIri = z.infer<typeof bundleNullableIriSchema>;
|
|
6809
7174
|
|
|
6810
|
-
export { AdvanceOrderPreparationStatus, type AdvanceOrderPreparationStatusInput, type AdvanceOrderPreparationStatusResponse, type Bundle, type BundleBundleBrokenReason, type BundleDetails, type BundleIri, type BundleNullableIri, type BundleStatus, type BundleType, type BundlesQueryParams, ConfirmOrder, type ConfirmOrderInput, type ConfirmOrderResponse, CreateBundle, type CreateBundleInput, type CreateBundleResponse, CreateOrder, type CreateOrderInput, type CreateOrderResponse, DeleteBundle, DeleteOrder, GetBundleDetails, type GetBundleDetailsInput, type GetBundleDetailsResponse, GetBundles, GetBundlesFromPointOfSale, type GetBundlesFromPointOfSaleInput, type GetBundlesFromPointOfSaleQueryParams, type GetBundlesFromPointOfSaleResponse, type GetBundlesInput, type GetBundlesQueryParams, type GetBundlesResponse, GetOrderDetails, type GetOrderDetailsInput, type GetOrderDetailsResponse, GetOrderMenuItemDetails, type GetOrderMenuItemDetailsInput, type GetOrderMenuItemDetailsResponse, GetOrderMenuItemMenuItems, type GetOrderMenuItemModifierDetailsInput, type GetOrderMenuItemModifierDetailsResponse, GetOrderMenuItemModifierMenuItemModifiers, GetOrderMenuItemModifierModifierDetails, type GetOrderMenuItemModifiersInput, type GetOrderMenuItemModifiersQueryParams, type GetOrderMenuItemModifiersResponse, type GetOrderMenuItemsInput, type GetOrderMenuItemsQueryParams, type GetOrderMenuItemsResponse, GetOrders, type GetOrdersInput, type GetOrdersQueryParams, type GetOrdersResponse, GetPointOfSaleOrders, type GetPointOfSaleOrdersInput, type GetPointOfSaleOrdersQueryParams, type GetPointOfSaleOrdersResponse, type Order, type OrderBillingInfo, type OrderCustomerInfo, type OrderDetails, type OrderFeeDto, type OrderIri, type OrderMenuItem, type OrderMenuItemAction, type OrderMenuItemDetails, type OrderMenuItemIri, type OrderMenuItemModifier, type OrderMenuItemModifierDetails, type OrderMenuItemModifierIri, type OrderMenuItemModifierNullableIri, type OrderMenuItemModifiersQueryParams, type OrderMenuItemNullableIri, type OrderMenuItemsQueryParams, type OrderNullableIri, type OrderPreparationStatus, type OrderSource, type OrderStatus, type OrderType, type OrdersQueryParams, UpdateBundle, type UpdateBundleInput, type UpdateBundleResponse, UpdateOrder, type UpdateOrderInput, type UpdateOrderResponse, advanceOrderPreparationStatusInputSchema, advanceOrderPreparationStatusResponseSchema, bundleBundleBrokenReasonSchema, bundleBundleBrokenReasons, bundleDetailsSchema, bundleIriSchema, bundleNullableIriSchema, bundleSchema, bundleStatusSchema, bundleStatuses, bundleTypeSchema, bundleTypes, bundlesQuerySchema, confirmOrderInputSchema, confirmOrderResponseSchema, createBundleInputSchema, createBundleResponseSchema, createOrderInputSchema, createOrderResponseSchema, deleteBundleInputSchema, deleteBundleResponseSchema, deleteOrderInputSchema, deleteOrderResponseSchema, getBundleDetailsInputSchema, getBundleDetailsResponseSchema, getBundlesFromPointOfSaleInputSchema, getBundlesFromPointOfSaleQuerySchema, getBundlesFromPointOfSaleResponseSchema, getBundlesInputSchema, getBundlesQuerySchema, getBundlesResponseSchema, getOrderDetailsInputSchema, getOrderDetailsResponseSchema, getOrderMenuItemDetailsInputSchema, getOrderMenuItemDetailsResponseSchema, getOrderMenuItemModifierDetailsInputSchema, getOrderMenuItemModifierDetailsResponseSchema, getOrderMenuItemModifiersInputSchema, getOrderMenuItemModifiersQuerySchema, getOrderMenuItemModifiersResponseSchema, getOrderMenuItemsInputSchema, getOrderMenuItemsQuerySchema, getOrderMenuItemsResponseSchema, getOrdersInputSchema, getOrdersQuerySchema, getOrdersResponseSchema, getPointOfSaleOrdersInputSchema, getPointOfSaleOrdersQuerySchema, getPointOfSaleOrdersResponseSchema, localeItemSchema, orderBillingInfoSchema, orderCustomerInfoSchema, orderDetailsSchema, orderFeeDtoSchema, orderIriSchema, orderMenuItemActionSchema, orderMenuItemActions, orderMenuItemDetailsSchema, orderMenuItemIriSchema, orderMenuItemModifierDetailsSchema, orderMenuItemModifierIriSchema, orderMenuItemModifierNullableIriSchema, orderMenuItemModifierSchema, orderMenuItemModifiersQuerySchema, orderMenuItemNullableIriSchema, orderMenuItemSchema, orderMenuItemsQuerySchema, orderNullableIriSchema, orderPreparationStatusSchema, orderPreparationStatuses, orderSchema, orderSourceSchema, orderSources, orderStatusSchema, orderStatuses, orderTypeSchema, orderTypes, ordersQuerySchema, updateBundleInputSchema, updateBundleResponseSchema, updateOrderInputSchema, updateOrderResponseSchema, writableBundleSchema, writableOrderSchema };
|
|
7175
|
+
export { AdvanceOrderPreparationStatus, type AdvanceOrderPreparationStatusInput, type AdvanceOrderPreparationStatusResponse, type Bundle, type BundleBundleBrokenReason, type BundleDetails, type BundleIri, type BundleNullableIri, type BundleStatus, type BundleType, type BundlesQueryParams, ConfirmOrder, type ConfirmOrderInput, type ConfirmOrderResponse, CreateBundle, type CreateBundleInput, type CreateBundleResponse, CreateOrder, type CreateOrderInput, type CreateOrderResponse, DeleteBundle, DeleteOrder, GetBundleDetails, type GetBundleDetailsInput, type GetBundleDetailsResponse, GetBundles, GetBundlesFromPointOfSale, type GetBundlesFromPointOfSaleInput, type GetBundlesFromPointOfSaleQueryParams, type GetBundlesFromPointOfSaleResponse, type GetBundlesInput, type GetBundlesQueryParams, type GetBundlesResponse, GetOrderDetails, type GetOrderDetailsInput, type GetOrderDetailsResponse, GetOrderMenuItemDetails, type GetOrderMenuItemDetailsInput, type GetOrderMenuItemDetailsResponse, GetOrderMenuItemMenuItems, type GetOrderMenuItemModifierDetailsInput, type GetOrderMenuItemModifierDetailsResponse, GetOrderMenuItemModifierMenuItemModifiers, GetOrderMenuItemModifierModifierDetails, type GetOrderMenuItemModifiersInput, type GetOrderMenuItemModifiersQueryParams, type GetOrderMenuItemModifiersResponse, type GetOrderMenuItemsInput, type GetOrderMenuItemsQueryParams, type GetOrderMenuItemsResponse, GetOrders, type GetOrdersInput, type GetOrdersQueryParams, type GetOrdersResponse, GetPointOfSaleOrders, type GetPointOfSaleOrdersInput, type GetPointOfSaleOrdersQueryParams, type GetPointOfSaleOrdersResponse, type Order, type OrderBillingInfo, type OrderCustomerInfo, type OrderDetails, type OrderFeeDto, type OrderIri, type OrderMenuItem, type OrderMenuItemAction, type OrderMenuItemDetails, type OrderMenuItemIri, type OrderMenuItemModifier, type OrderMenuItemModifierDetails, type OrderMenuItemModifierIri, type OrderMenuItemModifierNullableIri, type OrderMenuItemModifiersQueryParams, type OrderMenuItemNullableIri, type OrderMenuItemsQueryParams, type OrderNullableIri, type OrderPreparationStatus, type OrderSource, type OrderStatus, type OrderType, type OrdersQueryParams, RejectOrder, type RejectOrderInput, type RejectOrderResponse, UpdateBundle, type UpdateBundleInput, type UpdateBundleResponse, UpdateOrder, type UpdateOrderInput, type UpdateOrderResponse, advanceOrderPreparationStatusInputSchema, advanceOrderPreparationStatusResponseSchema, bundleBundleBrokenReasonSchema, bundleBundleBrokenReasons, bundleDetailsSchema, bundleIriSchema, bundleNullableIriSchema, bundleSchema, bundleStatusSchema, bundleStatuses, bundleTypeSchema, bundleTypes, bundlesQuerySchema, confirmOrderInputSchema, confirmOrderResponseSchema, createBundleInputSchema, createBundleResponseSchema, createOrderInputSchema, createOrderResponseSchema, deleteBundleInputSchema, deleteBundleResponseSchema, deleteOrderInputSchema, deleteOrderResponseSchema, getBundleDetailsInputSchema, getBundleDetailsResponseSchema, getBundlesFromPointOfSaleInputSchema, getBundlesFromPointOfSaleQuerySchema, getBundlesFromPointOfSaleResponseSchema, getBundlesInputSchema, getBundlesQuerySchema, getBundlesResponseSchema, getOrderDetailsInputSchema, getOrderDetailsResponseSchema, getOrderMenuItemDetailsInputSchema, getOrderMenuItemDetailsResponseSchema, getOrderMenuItemModifierDetailsInputSchema, getOrderMenuItemModifierDetailsResponseSchema, getOrderMenuItemModifiersInputSchema, getOrderMenuItemModifiersQuerySchema, getOrderMenuItemModifiersResponseSchema, getOrderMenuItemsInputSchema, getOrderMenuItemsQuerySchema, getOrderMenuItemsResponseSchema, getOrdersInputSchema, getOrdersQuerySchema, getOrdersResponseSchema, getPointOfSaleOrdersInputSchema, getPointOfSaleOrdersQuerySchema, getPointOfSaleOrdersResponseSchema, localeItemSchema, orderBillingInfoSchema, orderCustomerInfoSchema, orderDetailsSchema, orderFeeDtoSchema, orderIriSchema, orderMenuItemActionSchema, orderMenuItemActions, orderMenuItemDetailsSchema, orderMenuItemIriSchema, orderMenuItemModifierDetailsSchema, orderMenuItemModifierIriSchema, orderMenuItemModifierNullableIriSchema, orderMenuItemModifierSchema, orderMenuItemModifiersQuerySchema, orderMenuItemNullableIriSchema, orderMenuItemSchema, orderMenuItemsQuerySchema, orderNullableIriSchema, orderPreparationStatusSchema, orderPreparationStatuses, orderSchema, orderSourceSchema, orderSources, orderStatusSchema, orderStatuses, orderTypeSchema, orderTypes, ordersQuerySchema, rejectOrderInputSchema, rejectOrderResponseSchema, updateBundleInputSchema, updateBundleResponseSchema, updateOrderInputSchema, updateOrderResponseSchema, writableBundleSchema, writableOrderSchema };
|
package/dist/index.d.ts
CHANGED
|
@@ -6290,6 +6290,371 @@ declare class GetPointOfSaleOrders extends AbstractApiRequest<typeof getPointOfS
|
|
|
6290
6290
|
parseResponse(data: unknown, rawResponse: Response): Paginated<Order>;
|
|
6291
6291
|
}
|
|
6292
6292
|
|
|
6293
|
+
declare const rejectOrderInputSchema: z.ZodUndefined;
|
|
6294
|
+
type RejectOrderInput = z.infer<typeof rejectOrderInputSchema>;
|
|
6295
|
+
declare const rejectOrderResponseSchema: z.ZodObject<{
|
|
6296
|
+
id: z.ZodString;
|
|
6297
|
+
payment: 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>>;
|
|
6298
|
+
paymentMethod: z.ZodNullable<z.ZodEnum<{
|
|
6299
|
+
stripe: "stripe";
|
|
6300
|
+
bank_transfer: "bank_transfer";
|
|
6301
|
+
cash: "cash";
|
|
6302
|
+
credit_card: "credit_card";
|
|
6303
|
+
}>>;
|
|
6304
|
+
paymentStatus: z.ZodNullable<z.ZodEnum<{
|
|
6305
|
+
pending: "pending";
|
|
6306
|
+
pending_verification: "pending_verification";
|
|
6307
|
+
paid: "paid";
|
|
6308
|
+
canceled: "canceled";
|
|
6309
|
+
refunded: "refunded";
|
|
6310
|
+
failed: "failed";
|
|
6311
|
+
}>>;
|
|
6312
|
+
type: z.ZodEnum<{
|
|
6313
|
+
delivery: "delivery";
|
|
6314
|
+
take_away: "take_away";
|
|
6315
|
+
kitchen: "kitchen";
|
|
6316
|
+
}>;
|
|
6317
|
+
source: z.ZodEnum<{
|
|
6318
|
+
application: "application";
|
|
6319
|
+
ecommerce: "ecommerce";
|
|
6320
|
+
partner: "partner";
|
|
6321
|
+
}>;
|
|
6322
|
+
partner: z.ZodNullable<z.ZodString>;
|
|
6323
|
+
partnerIdentifier: z.ZodNullable<z.ZodString>;
|
|
6324
|
+
sequenceId: z.ZodNullable<z.ZodString>;
|
|
6325
|
+
displayId: z.ZodNullable<z.ZodString>;
|
|
6326
|
+
customerInfo: z.ZodObject<{
|
|
6327
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6328
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6329
|
+
email: z.ZodNullable<z.ZodEmail>;
|
|
6330
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
6331
|
+
contactNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6332
|
+
contactAccessCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6333
|
+
}, z.core.$strict>;
|
|
6334
|
+
billingInfo: z.ZodNullable<z.ZodObject<{
|
|
6335
|
+
businessName: z.ZodString;
|
|
6336
|
+
vat: z.ZodString;
|
|
6337
|
+
taxCode: z.ZodString;
|
|
6338
|
+
billingData: z.ZodObject<{
|
|
6339
|
+
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6340
|
+
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
6341
|
+
}, z.core.$strip>;
|
|
6342
|
+
}, z.core.$strip>>;
|
|
6343
|
+
address: z.ZodNullable<z.ZodObject<{
|
|
6344
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6345
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6346
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6347
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6348
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6349
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6350
|
+
}, z.core.$strip>>;
|
|
6351
|
+
location: z.ZodNullable<z.ZodObject<{
|
|
6352
|
+
latitude: z.ZodNumber;
|
|
6353
|
+
longitude: z.ZodNumber;
|
|
6354
|
+
}, z.core.$strip>>;
|
|
6355
|
+
status: z.ZodEnum<{
|
|
6356
|
+
pending: "pending";
|
|
6357
|
+
confirmed: "confirmed";
|
|
6358
|
+
rejected: "rejected";
|
|
6359
|
+
}>;
|
|
6360
|
+
preparationStatus: z.ZodEnum<{
|
|
6361
|
+
to_prepare: "to_prepare";
|
|
6362
|
+
in_preparation: "in_preparation";
|
|
6363
|
+
done: "done";
|
|
6364
|
+
}>;
|
|
6365
|
+
preparationTime: z.ZodNullable<z.ZodString>;
|
|
6366
|
+
preparationStartedAt: z.ZodNullable<z.ZodString>;
|
|
6367
|
+
preparationEndedAt: z.ZodNullable<z.ZodString>;
|
|
6368
|
+
requestedDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
6369
|
+
finalDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
6370
|
+
deliveryStartedAt: z.ZodNullable<z.ZodString>;
|
|
6371
|
+
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
6372
|
+
requestedCollectionTime: z.ZodNullable<z.ZodString>;
|
|
6373
|
+
finalCollectionTime: z.ZodNullable<z.ZodString>;
|
|
6374
|
+
collectedAt: z.ZodNullable<z.ZodString>;
|
|
6375
|
+
totalCountableItems: z.ZodNumber;
|
|
6376
|
+
amount: z.ZodString;
|
|
6377
|
+
netAmount: z.ZodString;
|
|
6378
|
+
taxAmount: z.ZodString;
|
|
6379
|
+
discount: z.ZodString;
|
|
6380
|
+
feeAmount: z.ZodString;
|
|
6381
|
+
feeNetAmount: z.ZodString;
|
|
6382
|
+
feeTaxAmount: z.ZodString;
|
|
6383
|
+
totalAmount: z.ZodString;
|
|
6384
|
+
totalNetAmount: z.ZodString;
|
|
6385
|
+
totalTaxAmount: z.ZodString;
|
|
6386
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
6387
|
+
deliveryNotes: z.ZodNullable<z.ZodString>;
|
|
6388
|
+
kitchenNotes: z.ZodNullable<z.ZodString>;
|
|
6389
|
+
maximumAcceptanceDate: z.ZodNullable<z.ZodString>;
|
|
6390
|
+
acceptedAt: z.ZodNullable<z.ZodString>;
|
|
6391
|
+
createdAt: z.ZodString;
|
|
6392
|
+
updatedAt: z.ZodString;
|
|
6393
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
6394
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id"> | null, unknown>>;
|
|
6395
|
+
customerBusinessProfile: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id"> | null, unknown>>;
|
|
6396
|
+
bundle: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id"> | null, unknown>>;
|
|
6397
|
+
deliveredBy: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown>>;
|
|
6398
|
+
fees: z.ZodArray<z.ZodObject<{
|
|
6399
|
+
key: z.ZodString;
|
|
6400
|
+
amount: z.ZodString;
|
|
6401
|
+
netAmount: z.ZodString;
|
|
6402
|
+
taxAmount: z.ZodString;
|
|
6403
|
+
taxRate: z.ZodCoercedNumber<unknown>;
|
|
6404
|
+
}, z.core.$strip>>;
|
|
6405
|
+
items: z.ZodArray<z.ZodObject<{
|
|
6406
|
+
id: z.ZodString;
|
|
6407
|
+
type: z.ZodEnum<{
|
|
6408
|
+
ITEM: "ITEM";
|
|
6409
|
+
CHOICE: "CHOICE";
|
|
6410
|
+
BUNDLE: "BUNDLE";
|
|
6411
|
+
}>;
|
|
6412
|
+
action: z.ZodEnum<{
|
|
6413
|
+
add: "add";
|
|
6414
|
+
remove: "remove";
|
|
6415
|
+
}>;
|
|
6416
|
+
name: z.ZodArray<z.ZodObject<{
|
|
6417
|
+
locale: z.ZodString;
|
|
6418
|
+
text: z.ZodString;
|
|
6419
|
+
}, z.core.$strip>>;
|
|
6420
|
+
description: z.ZodArray<z.ZodObject<{
|
|
6421
|
+
locale: z.ZodString;
|
|
6422
|
+
text: z.ZodString;
|
|
6423
|
+
}, z.core.$strip>>;
|
|
6424
|
+
variantName: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
6425
|
+
locale: z.ZodString;
|
|
6426
|
+
text: z.ZodString;
|
|
6427
|
+
}, z.core.$strip>>>;
|
|
6428
|
+
countable: z.ZodBoolean;
|
|
6429
|
+
quantity: z.ZodNullable<z.ZodNumber>;
|
|
6430
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
6431
|
+
unitPrice: z.ZodString;
|
|
6432
|
+
unitNetPrice: z.ZodString;
|
|
6433
|
+
unitTaxAmount: z.ZodString;
|
|
6434
|
+
unitTaxRate: z.ZodCoercedNumber<unknown>;
|
|
6435
|
+
unitDiscount: z.ZodString;
|
|
6436
|
+
finalUnitPrice: z.ZodString;
|
|
6437
|
+
finalUnitNetPrice: z.ZodString;
|
|
6438
|
+
finalUnitTaxAmount: z.ZodString;
|
|
6439
|
+
amount: z.ZodString;
|
|
6440
|
+
netAmount: z.ZodString;
|
|
6441
|
+
taxAmount: z.ZodString;
|
|
6442
|
+
discount: z.ZodString;
|
|
6443
|
+
totalAmount: z.ZodString;
|
|
6444
|
+
totalNetAmount: z.ZodString;
|
|
6445
|
+
totalTaxAmount: z.ZodString;
|
|
6446
|
+
createdAt: z.ZodString;
|
|
6447
|
+
updatedAt: z.ZodString;
|
|
6448
|
+
removals: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/orders/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/orders/menu_items/:id">, unknown>>>;
|
|
6449
|
+
modifiers: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/orders/menu_items/modifiers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/orders/menu_items/modifiers/:id">, unknown>>>;
|
|
6450
|
+
mainLevel: z.ZodBoolean;
|
|
6451
|
+
}, z.core.$strip>>;
|
|
6452
|
+
modifiers: z.ZodArray<z.ZodObject<{
|
|
6453
|
+
id: z.ZodString;
|
|
6454
|
+
name: z.ZodArray<z.ZodObject<{
|
|
6455
|
+
locale: z.ZodString;
|
|
6456
|
+
text: z.ZodString;
|
|
6457
|
+
}, z.core.$strip>>;
|
|
6458
|
+
description: z.ZodArray<z.ZodObject<{
|
|
6459
|
+
locale: z.ZodString;
|
|
6460
|
+
text: z.ZodString;
|
|
6461
|
+
}, z.core.$strip>>;
|
|
6462
|
+
amount: z.ZodString;
|
|
6463
|
+
netAmount: z.ZodString;
|
|
6464
|
+
taxAmount: z.ZodString;
|
|
6465
|
+
createdAt: z.ZodString;
|
|
6466
|
+
updatedAt: z.ZodString;
|
|
6467
|
+
items: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/orders/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/orders/menu_items/:id">, unknown>>>;
|
|
6468
|
+
}, z.core.$strip>>;
|
|
6469
|
+
}, z.core.$strip>;
|
|
6470
|
+
type RejectOrderResponse = OrderDetails;
|
|
6471
|
+
declare class RejectOrder extends AbstractApiRequest<typeof rejectOrderInputSchema, typeof rejectOrderResponseSchema> {
|
|
6472
|
+
readonly method = "POST";
|
|
6473
|
+
readonly contentType = "application/json";
|
|
6474
|
+
readonly accept = "application/json";
|
|
6475
|
+
readonly inputSchema: z.ZodUndefined;
|
|
6476
|
+
readonly outputSchema: z.ZodObject<{
|
|
6477
|
+
id: z.ZodString;
|
|
6478
|
+
payment: 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>>;
|
|
6479
|
+
paymentMethod: z.ZodNullable<z.ZodEnum<{
|
|
6480
|
+
stripe: "stripe";
|
|
6481
|
+
bank_transfer: "bank_transfer";
|
|
6482
|
+
cash: "cash";
|
|
6483
|
+
credit_card: "credit_card";
|
|
6484
|
+
}>>;
|
|
6485
|
+
paymentStatus: z.ZodNullable<z.ZodEnum<{
|
|
6486
|
+
pending: "pending";
|
|
6487
|
+
pending_verification: "pending_verification";
|
|
6488
|
+
paid: "paid";
|
|
6489
|
+
canceled: "canceled";
|
|
6490
|
+
refunded: "refunded";
|
|
6491
|
+
failed: "failed";
|
|
6492
|
+
}>>;
|
|
6493
|
+
type: z.ZodEnum<{
|
|
6494
|
+
delivery: "delivery";
|
|
6495
|
+
take_away: "take_away";
|
|
6496
|
+
kitchen: "kitchen";
|
|
6497
|
+
}>;
|
|
6498
|
+
source: z.ZodEnum<{
|
|
6499
|
+
application: "application";
|
|
6500
|
+
ecommerce: "ecommerce";
|
|
6501
|
+
partner: "partner";
|
|
6502
|
+
}>;
|
|
6503
|
+
partner: z.ZodNullable<z.ZodString>;
|
|
6504
|
+
partnerIdentifier: z.ZodNullable<z.ZodString>;
|
|
6505
|
+
sequenceId: z.ZodNullable<z.ZodString>;
|
|
6506
|
+
displayId: z.ZodNullable<z.ZodString>;
|
|
6507
|
+
customerInfo: z.ZodObject<{
|
|
6508
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6509
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6510
|
+
email: z.ZodNullable<z.ZodEmail>;
|
|
6511
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
6512
|
+
contactNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6513
|
+
contactAccessCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6514
|
+
}, z.core.$strict>;
|
|
6515
|
+
billingInfo: z.ZodNullable<z.ZodObject<{
|
|
6516
|
+
businessName: z.ZodString;
|
|
6517
|
+
vat: z.ZodString;
|
|
6518
|
+
taxCode: z.ZodString;
|
|
6519
|
+
billingData: z.ZodObject<{
|
|
6520
|
+
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6521
|
+
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
6522
|
+
}, z.core.$strip>;
|
|
6523
|
+
}, z.core.$strip>>;
|
|
6524
|
+
address: z.ZodNullable<z.ZodObject<{
|
|
6525
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6526
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6527
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6528
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6529
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6530
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6531
|
+
}, z.core.$strip>>;
|
|
6532
|
+
location: z.ZodNullable<z.ZodObject<{
|
|
6533
|
+
latitude: z.ZodNumber;
|
|
6534
|
+
longitude: z.ZodNumber;
|
|
6535
|
+
}, z.core.$strip>>;
|
|
6536
|
+
status: z.ZodEnum<{
|
|
6537
|
+
pending: "pending";
|
|
6538
|
+
confirmed: "confirmed";
|
|
6539
|
+
rejected: "rejected";
|
|
6540
|
+
}>;
|
|
6541
|
+
preparationStatus: z.ZodEnum<{
|
|
6542
|
+
to_prepare: "to_prepare";
|
|
6543
|
+
in_preparation: "in_preparation";
|
|
6544
|
+
done: "done";
|
|
6545
|
+
}>;
|
|
6546
|
+
preparationTime: z.ZodNullable<z.ZodString>;
|
|
6547
|
+
preparationStartedAt: z.ZodNullable<z.ZodString>;
|
|
6548
|
+
preparationEndedAt: z.ZodNullable<z.ZodString>;
|
|
6549
|
+
requestedDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
6550
|
+
finalDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
6551
|
+
deliveryStartedAt: z.ZodNullable<z.ZodString>;
|
|
6552
|
+
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
6553
|
+
requestedCollectionTime: z.ZodNullable<z.ZodString>;
|
|
6554
|
+
finalCollectionTime: z.ZodNullable<z.ZodString>;
|
|
6555
|
+
collectedAt: z.ZodNullable<z.ZodString>;
|
|
6556
|
+
totalCountableItems: z.ZodNumber;
|
|
6557
|
+
amount: z.ZodString;
|
|
6558
|
+
netAmount: z.ZodString;
|
|
6559
|
+
taxAmount: z.ZodString;
|
|
6560
|
+
discount: z.ZodString;
|
|
6561
|
+
feeAmount: z.ZodString;
|
|
6562
|
+
feeNetAmount: z.ZodString;
|
|
6563
|
+
feeTaxAmount: z.ZodString;
|
|
6564
|
+
totalAmount: z.ZodString;
|
|
6565
|
+
totalNetAmount: z.ZodString;
|
|
6566
|
+
totalTaxAmount: z.ZodString;
|
|
6567
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
6568
|
+
deliveryNotes: z.ZodNullable<z.ZodString>;
|
|
6569
|
+
kitchenNotes: z.ZodNullable<z.ZodString>;
|
|
6570
|
+
maximumAcceptanceDate: z.ZodNullable<z.ZodString>;
|
|
6571
|
+
acceptedAt: z.ZodNullable<z.ZodString>;
|
|
6572
|
+
createdAt: z.ZodString;
|
|
6573
|
+
updatedAt: z.ZodString;
|
|
6574
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
6575
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id"> | null, unknown>>;
|
|
6576
|
+
customerBusinessProfile: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id"> | null, unknown>>;
|
|
6577
|
+
bundle: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id"> | null, unknown>>;
|
|
6578
|
+
deliveredBy: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown>>;
|
|
6579
|
+
fees: z.ZodArray<z.ZodObject<{
|
|
6580
|
+
key: z.ZodString;
|
|
6581
|
+
amount: z.ZodString;
|
|
6582
|
+
netAmount: z.ZodString;
|
|
6583
|
+
taxAmount: z.ZodString;
|
|
6584
|
+
taxRate: z.ZodCoercedNumber<unknown>;
|
|
6585
|
+
}, z.core.$strip>>;
|
|
6586
|
+
items: z.ZodArray<z.ZodObject<{
|
|
6587
|
+
id: z.ZodString;
|
|
6588
|
+
type: z.ZodEnum<{
|
|
6589
|
+
ITEM: "ITEM";
|
|
6590
|
+
CHOICE: "CHOICE";
|
|
6591
|
+
BUNDLE: "BUNDLE";
|
|
6592
|
+
}>;
|
|
6593
|
+
action: z.ZodEnum<{
|
|
6594
|
+
add: "add";
|
|
6595
|
+
remove: "remove";
|
|
6596
|
+
}>;
|
|
6597
|
+
name: z.ZodArray<z.ZodObject<{
|
|
6598
|
+
locale: z.ZodString;
|
|
6599
|
+
text: z.ZodString;
|
|
6600
|
+
}, z.core.$strip>>;
|
|
6601
|
+
description: z.ZodArray<z.ZodObject<{
|
|
6602
|
+
locale: z.ZodString;
|
|
6603
|
+
text: z.ZodString;
|
|
6604
|
+
}, z.core.$strip>>;
|
|
6605
|
+
variantName: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
6606
|
+
locale: z.ZodString;
|
|
6607
|
+
text: z.ZodString;
|
|
6608
|
+
}, z.core.$strip>>>;
|
|
6609
|
+
countable: z.ZodBoolean;
|
|
6610
|
+
quantity: z.ZodNullable<z.ZodNumber>;
|
|
6611
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
6612
|
+
unitPrice: z.ZodString;
|
|
6613
|
+
unitNetPrice: z.ZodString;
|
|
6614
|
+
unitTaxAmount: z.ZodString;
|
|
6615
|
+
unitTaxRate: z.ZodCoercedNumber<unknown>;
|
|
6616
|
+
unitDiscount: z.ZodString;
|
|
6617
|
+
finalUnitPrice: z.ZodString;
|
|
6618
|
+
finalUnitNetPrice: z.ZodString;
|
|
6619
|
+
finalUnitTaxAmount: z.ZodString;
|
|
6620
|
+
amount: z.ZodString;
|
|
6621
|
+
netAmount: z.ZodString;
|
|
6622
|
+
taxAmount: z.ZodString;
|
|
6623
|
+
discount: z.ZodString;
|
|
6624
|
+
totalAmount: z.ZodString;
|
|
6625
|
+
totalNetAmount: z.ZodString;
|
|
6626
|
+
totalTaxAmount: z.ZodString;
|
|
6627
|
+
createdAt: z.ZodString;
|
|
6628
|
+
updatedAt: z.ZodString;
|
|
6629
|
+
removals: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/orders/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/orders/menu_items/:id">, unknown>>>;
|
|
6630
|
+
modifiers: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/orders/menu_items/modifiers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/orders/menu_items/modifiers/:id">, unknown>>>;
|
|
6631
|
+
mainLevel: z.ZodBoolean;
|
|
6632
|
+
}, z.core.$strip>>;
|
|
6633
|
+
modifiers: z.ZodArray<z.ZodObject<{
|
|
6634
|
+
id: z.ZodString;
|
|
6635
|
+
name: z.ZodArray<z.ZodObject<{
|
|
6636
|
+
locale: z.ZodString;
|
|
6637
|
+
text: z.ZodString;
|
|
6638
|
+
}, z.core.$strip>>;
|
|
6639
|
+
description: z.ZodArray<z.ZodObject<{
|
|
6640
|
+
locale: z.ZodString;
|
|
6641
|
+
text: z.ZodString;
|
|
6642
|
+
}, z.core.$strip>>;
|
|
6643
|
+
amount: z.ZodString;
|
|
6644
|
+
netAmount: z.ZodString;
|
|
6645
|
+
taxAmount: z.ZodString;
|
|
6646
|
+
createdAt: z.ZodString;
|
|
6647
|
+
updatedAt: z.ZodString;
|
|
6648
|
+
items: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/orders/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/orders/menu_items/:id">, unknown>>>;
|
|
6649
|
+
}, z.core.$strip>>;
|
|
6650
|
+
}, z.core.$strip>;
|
|
6651
|
+
readonly querySchema: undefined;
|
|
6652
|
+
readonly headersSchema: undefined;
|
|
6653
|
+
private readonly orderId;
|
|
6654
|
+
constructor(orderId: string);
|
|
6655
|
+
getPath(): string;
|
|
6656
|
+
}
|
|
6657
|
+
|
|
6293
6658
|
declare const updateOrderInputSchema: z.ZodObject<{
|
|
6294
6659
|
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6295
6660
|
discount: z.ZodOptional<z.ZodString>;
|
|
@@ -6807,4 +7172,4 @@ type BundleIri = z.infer<typeof bundleIriSchema>;
|
|
|
6807
7172
|
declare const bundleNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id"> | null, unknown>>;
|
|
6808
7173
|
type BundleNullableIri = z.infer<typeof bundleNullableIriSchema>;
|
|
6809
7174
|
|
|
6810
|
-
export { AdvanceOrderPreparationStatus, type AdvanceOrderPreparationStatusInput, type AdvanceOrderPreparationStatusResponse, type Bundle, type BundleBundleBrokenReason, type BundleDetails, type BundleIri, type BundleNullableIri, type BundleStatus, type BundleType, type BundlesQueryParams, ConfirmOrder, type ConfirmOrderInput, type ConfirmOrderResponse, CreateBundle, type CreateBundleInput, type CreateBundleResponse, CreateOrder, type CreateOrderInput, type CreateOrderResponse, DeleteBundle, DeleteOrder, GetBundleDetails, type GetBundleDetailsInput, type GetBundleDetailsResponse, GetBundles, GetBundlesFromPointOfSale, type GetBundlesFromPointOfSaleInput, type GetBundlesFromPointOfSaleQueryParams, type GetBundlesFromPointOfSaleResponse, type GetBundlesInput, type GetBundlesQueryParams, type GetBundlesResponse, GetOrderDetails, type GetOrderDetailsInput, type GetOrderDetailsResponse, GetOrderMenuItemDetails, type GetOrderMenuItemDetailsInput, type GetOrderMenuItemDetailsResponse, GetOrderMenuItemMenuItems, type GetOrderMenuItemModifierDetailsInput, type GetOrderMenuItemModifierDetailsResponse, GetOrderMenuItemModifierMenuItemModifiers, GetOrderMenuItemModifierModifierDetails, type GetOrderMenuItemModifiersInput, type GetOrderMenuItemModifiersQueryParams, type GetOrderMenuItemModifiersResponse, type GetOrderMenuItemsInput, type GetOrderMenuItemsQueryParams, type GetOrderMenuItemsResponse, GetOrders, type GetOrdersInput, type GetOrdersQueryParams, type GetOrdersResponse, GetPointOfSaleOrders, type GetPointOfSaleOrdersInput, type GetPointOfSaleOrdersQueryParams, type GetPointOfSaleOrdersResponse, type Order, type OrderBillingInfo, type OrderCustomerInfo, type OrderDetails, type OrderFeeDto, type OrderIri, type OrderMenuItem, type OrderMenuItemAction, type OrderMenuItemDetails, type OrderMenuItemIri, type OrderMenuItemModifier, type OrderMenuItemModifierDetails, type OrderMenuItemModifierIri, type OrderMenuItemModifierNullableIri, type OrderMenuItemModifiersQueryParams, type OrderMenuItemNullableIri, type OrderMenuItemsQueryParams, type OrderNullableIri, type OrderPreparationStatus, type OrderSource, type OrderStatus, type OrderType, type OrdersQueryParams, UpdateBundle, type UpdateBundleInput, type UpdateBundleResponse, UpdateOrder, type UpdateOrderInput, type UpdateOrderResponse, advanceOrderPreparationStatusInputSchema, advanceOrderPreparationStatusResponseSchema, bundleBundleBrokenReasonSchema, bundleBundleBrokenReasons, bundleDetailsSchema, bundleIriSchema, bundleNullableIriSchema, bundleSchema, bundleStatusSchema, bundleStatuses, bundleTypeSchema, bundleTypes, bundlesQuerySchema, confirmOrderInputSchema, confirmOrderResponseSchema, createBundleInputSchema, createBundleResponseSchema, createOrderInputSchema, createOrderResponseSchema, deleteBundleInputSchema, deleteBundleResponseSchema, deleteOrderInputSchema, deleteOrderResponseSchema, getBundleDetailsInputSchema, getBundleDetailsResponseSchema, getBundlesFromPointOfSaleInputSchema, getBundlesFromPointOfSaleQuerySchema, getBundlesFromPointOfSaleResponseSchema, getBundlesInputSchema, getBundlesQuerySchema, getBundlesResponseSchema, getOrderDetailsInputSchema, getOrderDetailsResponseSchema, getOrderMenuItemDetailsInputSchema, getOrderMenuItemDetailsResponseSchema, getOrderMenuItemModifierDetailsInputSchema, getOrderMenuItemModifierDetailsResponseSchema, getOrderMenuItemModifiersInputSchema, getOrderMenuItemModifiersQuerySchema, getOrderMenuItemModifiersResponseSchema, getOrderMenuItemsInputSchema, getOrderMenuItemsQuerySchema, getOrderMenuItemsResponseSchema, getOrdersInputSchema, getOrdersQuerySchema, getOrdersResponseSchema, getPointOfSaleOrdersInputSchema, getPointOfSaleOrdersQuerySchema, getPointOfSaleOrdersResponseSchema, localeItemSchema, orderBillingInfoSchema, orderCustomerInfoSchema, orderDetailsSchema, orderFeeDtoSchema, orderIriSchema, orderMenuItemActionSchema, orderMenuItemActions, orderMenuItemDetailsSchema, orderMenuItemIriSchema, orderMenuItemModifierDetailsSchema, orderMenuItemModifierIriSchema, orderMenuItemModifierNullableIriSchema, orderMenuItemModifierSchema, orderMenuItemModifiersQuerySchema, orderMenuItemNullableIriSchema, orderMenuItemSchema, orderMenuItemsQuerySchema, orderNullableIriSchema, orderPreparationStatusSchema, orderPreparationStatuses, orderSchema, orderSourceSchema, orderSources, orderStatusSchema, orderStatuses, orderTypeSchema, orderTypes, ordersQuerySchema, updateBundleInputSchema, updateBundleResponseSchema, updateOrderInputSchema, updateOrderResponseSchema, writableBundleSchema, writableOrderSchema };
|
|
7175
|
+
export { AdvanceOrderPreparationStatus, type AdvanceOrderPreparationStatusInput, type AdvanceOrderPreparationStatusResponse, type Bundle, type BundleBundleBrokenReason, type BundleDetails, type BundleIri, type BundleNullableIri, type BundleStatus, type BundleType, type BundlesQueryParams, ConfirmOrder, type ConfirmOrderInput, type ConfirmOrderResponse, CreateBundle, type CreateBundleInput, type CreateBundleResponse, CreateOrder, type CreateOrderInput, type CreateOrderResponse, DeleteBundle, DeleteOrder, GetBundleDetails, type GetBundleDetailsInput, type GetBundleDetailsResponse, GetBundles, GetBundlesFromPointOfSale, type GetBundlesFromPointOfSaleInput, type GetBundlesFromPointOfSaleQueryParams, type GetBundlesFromPointOfSaleResponse, type GetBundlesInput, type GetBundlesQueryParams, type GetBundlesResponse, GetOrderDetails, type GetOrderDetailsInput, type GetOrderDetailsResponse, GetOrderMenuItemDetails, type GetOrderMenuItemDetailsInput, type GetOrderMenuItemDetailsResponse, GetOrderMenuItemMenuItems, type GetOrderMenuItemModifierDetailsInput, type GetOrderMenuItemModifierDetailsResponse, GetOrderMenuItemModifierMenuItemModifiers, GetOrderMenuItemModifierModifierDetails, type GetOrderMenuItemModifiersInput, type GetOrderMenuItemModifiersQueryParams, type GetOrderMenuItemModifiersResponse, type GetOrderMenuItemsInput, type GetOrderMenuItemsQueryParams, type GetOrderMenuItemsResponse, GetOrders, type GetOrdersInput, type GetOrdersQueryParams, type GetOrdersResponse, GetPointOfSaleOrders, type GetPointOfSaleOrdersInput, type GetPointOfSaleOrdersQueryParams, type GetPointOfSaleOrdersResponse, type Order, type OrderBillingInfo, type OrderCustomerInfo, type OrderDetails, type OrderFeeDto, type OrderIri, type OrderMenuItem, type OrderMenuItemAction, type OrderMenuItemDetails, type OrderMenuItemIri, type OrderMenuItemModifier, type OrderMenuItemModifierDetails, type OrderMenuItemModifierIri, type OrderMenuItemModifierNullableIri, type OrderMenuItemModifiersQueryParams, type OrderMenuItemNullableIri, type OrderMenuItemsQueryParams, type OrderNullableIri, type OrderPreparationStatus, type OrderSource, type OrderStatus, type OrderType, type OrdersQueryParams, RejectOrder, type RejectOrderInput, type RejectOrderResponse, UpdateBundle, type UpdateBundleInput, type UpdateBundleResponse, UpdateOrder, type UpdateOrderInput, type UpdateOrderResponse, advanceOrderPreparationStatusInputSchema, advanceOrderPreparationStatusResponseSchema, bundleBundleBrokenReasonSchema, bundleBundleBrokenReasons, bundleDetailsSchema, bundleIriSchema, bundleNullableIriSchema, bundleSchema, bundleStatusSchema, bundleStatuses, bundleTypeSchema, bundleTypes, bundlesQuerySchema, confirmOrderInputSchema, confirmOrderResponseSchema, createBundleInputSchema, createBundleResponseSchema, createOrderInputSchema, createOrderResponseSchema, deleteBundleInputSchema, deleteBundleResponseSchema, deleteOrderInputSchema, deleteOrderResponseSchema, getBundleDetailsInputSchema, getBundleDetailsResponseSchema, getBundlesFromPointOfSaleInputSchema, getBundlesFromPointOfSaleQuerySchema, getBundlesFromPointOfSaleResponseSchema, getBundlesInputSchema, getBundlesQuerySchema, getBundlesResponseSchema, getOrderDetailsInputSchema, getOrderDetailsResponseSchema, getOrderMenuItemDetailsInputSchema, getOrderMenuItemDetailsResponseSchema, getOrderMenuItemModifierDetailsInputSchema, getOrderMenuItemModifierDetailsResponseSchema, getOrderMenuItemModifiersInputSchema, getOrderMenuItemModifiersQuerySchema, getOrderMenuItemModifiersResponseSchema, getOrderMenuItemsInputSchema, getOrderMenuItemsQuerySchema, getOrderMenuItemsResponseSchema, getOrdersInputSchema, getOrdersQuerySchema, getOrdersResponseSchema, getPointOfSaleOrdersInputSchema, getPointOfSaleOrdersQuerySchema, getPointOfSaleOrdersResponseSchema, localeItemSchema, orderBillingInfoSchema, orderCustomerInfoSchema, orderDetailsSchema, orderFeeDtoSchema, orderIriSchema, orderMenuItemActionSchema, orderMenuItemActions, orderMenuItemDetailsSchema, orderMenuItemIriSchema, orderMenuItemModifierDetailsSchema, orderMenuItemModifierIriSchema, orderMenuItemModifierNullableIriSchema, orderMenuItemModifierSchema, orderMenuItemModifiersQuerySchema, orderMenuItemNullableIriSchema, orderMenuItemSchema, orderMenuItemsQuerySchema, orderNullableIriSchema, orderPreparationStatusSchema, orderPreparationStatuses, orderSchema, orderSourceSchema, orderSources, orderStatusSchema, orderStatuses, orderTypeSchema, orderTypes, ordersQuerySchema, rejectOrderInputSchema, rejectOrderResponseSchema, updateBundleInputSchema, updateBundleResponseSchema, updateOrderInputSchema, updateOrderResponseSchema, writableBundleSchema, writableOrderSchema };
|
package/dist/index.js
CHANGED
|
@@ -12030,8 +12030,29 @@ var GetPointOfSaleOrders = class extends AbstractApiRequest17 {
|
|
|
12030
12030
|
}
|
|
12031
12031
|
};
|
|
12032
12032
|
|
|
12033
|
-
// src/requests/orders/
|
|
12033
|
+
// src/requests/orders/RejectOrder.ts
|
|
12034
12034
|
import { AbstractApiRequest as AbstractApiRequest18 } from "@deliverart/sdk-js-core";
|
|
12035
|
+
var rejectOrderInputSchema = external_exports.undefined();
|
|
12036
|
+
var rejectOrderResponseSchema = orderDetailsSchema;
|
|
12037
|
+
var RejectOrder = class extends AbstractApiRequest18 {
|
|
12038
|
+
constructor(orderId) {
|
|
12039
|
+
super(void 0);
|
|
12040
|
+
this.method = "POST";
|
|
12041
|
+
this.contentType = "application/json";
|
|
12042
|
+
this.accept = "application/json";
|
|
12043
|
+
this.inputSchema = rejectOrderInputSchema;
|
|
12044
|
+
this.outputSchema = rejectOrderResponseSchema;
|
|
12045
|
+
this.querySchema = void 0;
|
|
12046
|
+
this.headersSchema = void 0;
|
|
12047
|
+
this.orderId = orderId;
|
|
12048
|
+
}
|
|
12049
|
+
getPath() {
|
|
12050
|
+
return `/orders/${this.orderId}/reject`;
|
|
12051
|
+
}
|
|
12052
|
+
};
|
|
12053
|
+
|
|
12054
|
+
// src/requests/orders/UpdateOrder.ts
|
|
12055
|
+
import { AbstractApiRequest as AbstractApiRequest19 } from "@deliverart/sdk-js-core";
|
|
12035
12056
|
var updateOrderInputSchema = writableOrderSchema.omit({
|
|
12036
12057
|
pointOfSale: true,
|
|
12037
12058
|
type: true,
|
|
@@ -12042,7 +12063,7 @@ var updateOrderInputSchema = writableOrderSchema.omit({
|
|
|
12042
12063
|
autoAccept: true
|
|
12043
12064
|
}).partial();
|
|
12044
12065
|
var updateOrderResponseSchema = orderDetailsSchema;
|
|
12045
|
-
var UpdateOrder = class extends
|
|
12066
|
+
var UpdateOrder = class extends AbstractApiRequest19 {
|
|
12046
12067
|
constructor(orderId, input) {
|
|
12047
12068
|
super(input);
|
|
12048
12069
|
this.method = "PATCH";
|
|
@@ -12075,6 +12096,7 @@ export {
|
|
|
12075
12096
|
GetOrderMenuItemModifierModifierDetails,
|
|
12076
12097
|
GetOrders,
|
|
12077
12098
|
GetPointOfSaleOrders,
|
|
12099
|
+
RejectOrder,
|
|
12078
12100
|
UpdateBundle,
|
|
12079
12101
|
UpdateOrder,
|
|
12080
12102
|
advanceOrderPreparationStatusInputSchema,
|
|
@@ -12155,6 +12177,8 @@ export {
|
|
|
12155
12177
|
orderTypeSchema,
|
|
12156
12178
|
orderTypes,
|
|
12157
12179
|
ordersQuerySchema,
|
|
12180
|
+
rejectOrderInputSchema,
|
|
12181
|
+
rejectOrderResponseSchema,
|
|
12158
12182
|
updateBundleInputSchema,
|
|
12159
12183
|
updateBundleResponseSchema,
|
|
12160
12184
|
updateOrderInputSchema,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deliverart/sdk-js-order",
|
|
3
3
|
"description": "Deliverart JavaScript SDK for Order Management",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.15",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
"dist"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@deliverart/sdk-js-
|
|
22
|
-
"@deliverart/sdk-js-menu": "2.1.
|
|
23
|
-
"@deliverart/sdk-js-
|
|
24
|
-
"@deliverart/sdk-js-
|
|
25
|
-
"@deliverart/sdk-js-
|
|
26
|
-
"@deliverart/sdk-js-
|
|
27
|
-
"@deliverart/sdk-js-sales-mode": "2.1.
|
|
28
|
-
"@deliverart/sdk-js-user": "2.1.
|
|
21
|
+
"@deliverart/sdk-js-core": "2.1.15",
|
|
22
|
+
"@deliverart/sdk-js-menu": "2.1.15",
|
|
23
|
+
"@deliverart/sdk-js-customer": "2.1.15",
|
|
24
|
+
"@deliverart/sdk-js-global-types": "2.1.15",
|
|
25
|
+
"@deliverart/sdk-js-point-of-sale": "2.1.15",
|
|
26
|
+
"@deliverart/sdk-js-payment": "2.1.15",
|
|
27
|
+
"@deliverart/sdk-js-sales-mode": "2.1.15",
|
|
28
|
+
"@deliverart/sdk-js-user": "2.1.15"
|
|
29
29
|
},
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|