@trusted-solutions/sdit.models 0.45.0-alpha.1 → 0.47.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.
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
export declare enum InvoiceProvider {
|
|
2
|
+
/** 鯨躍 */
|
|
2
3
|
cetustek = "cetustek",
|
|
4
|
+
/** 盟立 */
|
|
3
5
|
mirle = "mirle",
|
|
6
|
+
/** @deprecated 美麗科技 */
|
|
4
7
|
webest = "webest",
|
|
8
|
+
/** 普世玩科技發票加值中心 */
|
|
5
9
|
posky = "posky",
|
|
10
|
+
/** 汎宇 */
|
|
11
|
+
universalec = "universalec",
|
|
12
|
+
/** 假資料 */
|
|
6
13
|
mock = "mock"
|
|
7
14
|
}
|
|
@@ -3,10 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.InvoiceProvider = void 0;
|
|
4
4
|
var InvoiceProvider;
|
|
5
5
|
(function (InvoiceProvider) {
|
|
6
|
+
/** 鯨躍 */
|
|
6
7
|
InvoiceProvider["cetustek"] = "cetustek";
|
|
8
|
+
/** 盟立 */
|
|
7
9
|
InvoiceProvider["mirle"] = "mirle";
|
|
10
|
+
/** @deprecated 美麗科技 */
|
|
8
11
|
InvoiceProvider["webest"] = "webest";
|
|
12
|
+
/** 普世玩科技發票加值中心 */
|
|
9
13
|
InvoiceProvider["posky"] = "posky";
|
|
14
|
+
/** 汎宇 */
|
|
15
|
+
InvoiceProvider["universalec"] = "universalec";
|
|
16
|
+
/** 假資料 */
|
|
10
17
|
InvoiceProvider["mock"] = "mock";
|
|
11
18
|
})(InvoiceProvider = exports.InvoiceProvider || (exports.InvoiceProvider = {}));
|
|
12
19
|
//# sourceMappingURL=invoice-provider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoice-provider.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/enums/invoice-provider.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"invoice-provider.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/enums/invoice-provider.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAaX;AAbD,WAAY,eAAe;IACzB,SAAS;IACT,wCAAqB,CAAA;IACrB,SAAS;IACT,kCAAe,CAAA;IACf,wBAAwB;IACxB,oCAAiB,CAAA;IACjB,kBAAkB;IAClB,kCAAe,CAAA;IACf,SAAS;IACT,8CAA2B,CAAA;IAC3B,UAAU;IACV,gCAAa,CAAA;AACf,CAAC,EAbW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAa1B"}
|
|
@@ -212,6 +212,7 @@ export interface SOValidateMutationRequest {
|
|
|
212
212
|
*/
|
|
213
213
|
expectedPickupAt?: number;
|
|
214
214
|
cart: SOValidateCart;
|
|
215
|
+
isUsePoints?: boolean;
|
|
215
216
|
}
|
|
216
217
|
/**
|
|
217
218
|
* @throw `SOOrderError`
|
|
@@ -240,9 +241,17 @@ export interface SOValidateMutationResponse {
|
|
|
240
241
|
*/
|
|
241
242
|
totalAmount: number;
|
|
242
243
|
/**
|
|
243
|
-
*
|
|
244
|
+
* 剩餘總點數
|
|
244
245
|
*/
|
|
245
246
|
pointsBalance?: number;
|
|
247
|
+
/**
|
|
248
|
+
* 本次折抵點數
|
|
249
|
+
*/
|
|
250
|
+
usedPoints?: number;
|
|
251
|
+
/**
|
|
252
|
+
* 本次折抵金額
|
|
253
|
+
*/
|
|
254
|
+
pointsDiscountAmount?: number;
|
|
246
255
|
}
|
|
247
256
|
/*******************************/
|
|
248
257
|
/*******************************/
|
|
@@ -271,6 +280,8 @@ export interface SOSendOrderRequest {
|
|
|
271
280
|
tableId?: string;
|
|
272
281
|
/** 折抵點數 */
|
|
273
282
|
points?: CustomerPointDetail;
|
|
283
|
+
/** 是否折抵點數 */
|
|
284
|
+
isUsePoints?: boolean;
|
|
274
285
|
}
|
|
275
286
|
/**
|
|
276
287
|
* @throw `SOOrderError`
|
package/models/invoice.d.ts
CHANGED
|
@@ -22,6 +22,12 @@ export interface BatchInvoiceNumber {
|
|
|
22
22
|
type?: InvoiceType;
|
|
23
23
|
/** 最後上傳號碼 */
|
|
24
24
|
lastUploadedNumber?: string;
|
|
25
|
+
/**
|
|
26
|
+
* QRCode加密密碼,覆蓋`InvoiceOfficeInfo.qrCode`
|
|
27
|
+
* 有值: 以這個值作為QRCode加密密碼
|
|
28
|
+
* `undefined`: 以 `InvoiceOfficeInfo.qrCode`,作為QRCode加密密碼。
|
|
29
|
+
*/
|
|
30
|
+
qrCode?: string;
|
|
25
31
|
}
|
|
26
32
|
export interface LoveCode {
|
|
27
33
|
/** 捐贈碼 */
|
package/models/order.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trusted-solutions/sdit.models",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.47.0",
|
|
4
4
|
"description": "TODO: Give a short introduction of your project. Let this section explain the objectives or the motivation behind this project.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|