@tossplace/pos-plugin-sdk 0.0.13 → 0.0.14
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.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/sdk.d.ts +42 -3
- package/package.json +1 -1
- package/types/index.d.ts +42 -3
package/dist/sdk.d.ts
CHANGED
|
@@ -927,6 +927,7 @@ export declare interface PluginCatalogItemOptionChoice {
|
|
|
927
927
|
/** 키오스크에서 표시되는 아이콘 URL */
|
|
928
928
|
imageUrl?: string | null;
|
|
929
929
|
state: CatalogItemOptionChoiceState;
|
|
930
|
+
quantityInputEnabled: boolean;
|
|
930
931
|
}
|
|
931
932
|
|
|
932
933
|
/**
|
|
@@ -1032,6 +1033,7 @@ export declare type PluginDeliveryOrderDto = Omit<PluginOrderDto, 'lineItems' |
|
|
|
1032
1033
|
optionChoices: Array<{
|
|
1033
1034
|
title: string;
|
|
1034
1035
|
priceValue: number;
|
|
1036
|
+
quantity: number;
|
|
1035
1037
|
}>;
|
|
1036
1038
|
discounts?: Array<PluginDeliveryDiscount>;
|
|
1037
1039
|
}>;
|
|
@@ -1099,7 +1101,7 @@ export declare interface PluginDraftOrderItem {
|
|
|
1099
1101
|
/** 요청사항 */
|
|
1100
1102
|
memo: string;
|
|
1101
1103
|
/** 선택된 옵션 정보 */
|
|
1102
|
-
optionChoices:
|
|
1104
|
+
optionChoices: PluginOrderItemOptionChoice[];
|
|
1103
1105
|
/** 수량 */
|
|
1104
1106
|
quantity: number;
|
|
1105
1107
|
/** 식사 유형 */
|
|
@@ -1329,7 +1331,7 @@ export declare type PluginOrderDto = {
|
|
|
1329
1331
|
numGuests?: number;
|
|
1330
1332
|
discounts: PluginDiscount[];
|
|
1331
1333
|
tableId?: number;
|
|
1332
|
-
lineItems:
|
|
1334
|
+
lineItems: PluginOrderItemDto[];
|
|
1333
1335
|
};
|
|
1334
1336
|
|
|
1335
1337
|
/**
|
|
@@ -1351,11 +1353,48 @@ export declare interface PluginOrderItem {
|
|
|
1351
1353
|
chargePrice: {
|
|
1352
1354
|
value: number;
|
|
1353
1355
|
};
|
|
1354
|
-
optionChoices:
|
|
1356
|
+
optionChoices: PluginOrderItemOptionChoice[];
|
|
1355
1357
|
discounts?: PluginDiscount[];
|
|
1356
1358
|
memo?: string;
|
|
1357
1359
|
}
|
|
1358
1360
|
|
|
1361
|
+
/**
|
|
1362
|
+
* @publicApi
|
|
1363
|
+
*/
|
|
1364
|
+
declare interface PluginOrderItemDto {
|
|
1365
|
+
diningOption: PluginOrderDiningOption;
|
|
1366
|
+
item: Pick<PluginCatalogItem, 'id' | 'title' | 'category' | 'code'> & {
|
|
1367
|
+
type: OrderItemType;
|
|
1368
|
+
};
|
|
1369
|
+
quantity: {
|
|
1370
|
+
value: number;
|
|
1371
|
+
};
|
|
1372
|
+
/**
|
|
1373
|
+
* @description 실제 고객이 결제하는 금액에 대한 정보입니다. (할인 적용 금액)
|
|
1374
|
+
*/
|
|
1375
|
+
chargePrice: {
|
|
1376
|
+
value: number;
|
|
1377
|
+
};
|
|
1378
|
+
optionChoices: PluginOrderItemItemOptionChoiceDto[];
|
|
1379
|
+
discounts?: PluginDiscount[];
|
|
1380
|
+
memo?: string;
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
/**
|
|
1384
|
+
* @publicApi
|
|
1385
|
+
*/
|
|
1386
|
+
declare interface PluginOrderItemItemOptionChoiceDto {
|
|
1387
|
+
id: number;
|
|
1388
|
+
quantity: number;
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
/**
|
|
1392
|
+
* 주문항목 옵션 선택
|
|
1393
|
+
*/
|
|
1394
|
+
declare interface PluginOrderItemOptionChoice extends PluginCatalogItemOptionChoice {
|
|
1395
|
+
quantity: number;
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1359
1398
|
declare interface PluginOrderPaymentPrice {
|
|
1360
1399
|
/** 미납 결제 금액 */
|
|
1361
1400
|
paymentUnpaidValue: number;
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -914,6 +914,7 @@ export declare interface PluginCatalogItemOptionChoice {
|
|
|
914
914
|
/** 키오스크에서 표시되는 아이콘 URL */
|
|
915
915
|
imageUrl?: string | null;
|
|
916
916
|
state: CatalogItemOptionChoiceState;
|
|
917
|
+
quantityInputEnabled: boolean;
|
|
917
918
|
}
|
|
918
919
|
|
|
919
920
|
/**
|
|
@@ -1019,6 +1020,7 @@ export declare type PluginDeliveryOrderDto = Omit<PluginOrderDto, 'lineItems' |
|
|
|
1019
1020
|
optionChoices: Array<{
|
|
1020
1021
|
title: string;
|
|
1021
1022
|
priceValue: number;
|
|
1023
|
+
quantity: number;
|
|
1022
1024
|
}>;
|
|
1023
1025
|
discounts?: Array<PluginDeliveryDiscount>;
|
|
1024
1026
|
}>;
|
|
@@ -1086,7 +1088,7 @@ export declare interface PluginDraftOrderItem {
|
|
|
1086
1088
|
/** 요청사항 */
|
|
1087
1089
|
memo: string;
|
|
1088
1090
|
/** 선택된 옵션 정보 */
|
|
1089
|
-
optionChoices:
|
|
1091
|
+
optionChoices: PluginOrderItemOptionChoice[];
|
|
1090
1092
|
/** 수량 */
|
|
1091
1093
|
quantity: number;
|
|
1092
1094
|
/** 식사 유형 */
|
|
@@ -1316,7 +1318,7 @@ export declare type PluginOrderDto = {
|
|
|
1316
1318
|
numGuests?: number;
|
|
1317
1319
|
discounts: PluginDiscount[];
|
|
1318
1320
|
tableId?: number;
|
|
1319
|
-
lineItems:
|
|
1321
|
+
lineItems: PluginOrderItemDto[];
|
|
1320
1322
|
};
|
|
1321
1323
|
|
|
1322
1324
|
/**
|
|
@@ -1338,11 +1340,48 @@ export declare interface PluginOrderItem {
|
|
|
1338
1340
|
chargePrice: {
|
|
1339
1341
|
value: number;
|
|
1340
1342
|
};
|
|
1341
|
-
optionChoices:
|
|
1343
|
+
optionChoices: PluginOrderItemOptionChoice[];
|
|
1342
1344
|
discounts?: PluginDiscount[];
|
|
1343
1345
|
memo?: string;
|
|
1344
1346
|
}
|
|
1345
1347
|
|
|
1348
|
+
/**
|
|
1349
|
+
* @publicApi
|
|
1350
|
+
*/
|
|
1351
|
+
declare interface PluginOrderItemDto {
|
|
1352
|
+
diningOption: PluginOrderDiningOption;
|
|
1353
|
+
item: Pick<PluginCatalogItem, 'id' | 'title' | 'category' | 'code'> & {
|
|
1354
|
+
type: OrderItemType;
|
|
1355
|
+
};
|
|
1356
|
+
quantity: {
|
|
1357
|
+
value: number;
|
|
1358
|
+
};
|
|
1359
|
+
/**
|
|
1360
|
+
* @description 실제 고객이 결제하는 금액에 대한 정보입니다. (할인 적용 금액)
|
|
1361
|
+
*/
|
|
1362
|
+
chargePrice: {
|
|
1363
|
+
value: number;
|
|
1364
|
+
};
|
|
1365
|
+
optionChoices: PluginOrderItemItemOptionChoiceDto[];
|
|
1366
|
+
discounts?: PluginDiscount[];
|
|
1367
|
+
memo?: string;
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
/**
|
|
1371
|
+
* @publicApi
|
|
1372
|
+
*/
|
|
1373
|
+
declare interface PluginOrderItemItemOptionChoiceDto {
|
|
1374
|
+
id: number;
|
|
1375
|
+
quantity: number;
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
/**
|
|
1379
|
+
* 주문항목 옵션 선택
|
|
1380
|
+
*/
|
|
1381
|
+
declare interface PluginOrderItemOptionChoice extends PluginCatalogItemOptionChoice {
|
|
1382
|
+
quantity: number;
|
|
1383
|
+
}
|
|
1384
|
+
|
|
1346
1385
|
declare interface PluginOrderPaymentPrice {
|
|
1347
1386
|
/** 미납 결제 금액 */
|
|
1348
1387
|
paymentUnpaidValue: number;
|