@trusted-solutions/sdit.models 0.35.0-alpha.0 → 0.35.0-alpha.2

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.
@@ -0,0 +1,5 @@
1
+ export declare enum RoundingMode {
2
+ ceil = "ceil",
3
+ floor = "floor",
4
+ round = "round"
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RoundingMode = void 0;
4
+ var RoundingMode;
5
+ (function (RoundingMode) {
6
+ RoundingMode["ceil"] = "ceil";
7
+ RoundingMode["floor"] = "floor";
8
+ RoundingMode["round"] = "round";
9
+ })(RoundingMode = exports.RoundingMode || (exports.RoundingMode = {}));
10
+ //# sourceMappingURL=rounding-mode.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rounding-mode.enum.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/enums/rounding-mode.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAIX;AAJD,WAAY,YAAY;IACpB,6BAAa,CAAA;IACb,+BAAe,CAAA;IACf,+BAAe,CAAA;AACnB,CAAC,EAJW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAIvB"}
@@ -2,6 +2,7 @@ import { Address, DayOfWeekTimePeriod, GalleryConfig, Operator } from '../models
2
2
  import { MultiLanguageText, OrderDiscount } from '../models';
3
3
  import { ServeType } from '../enums';
4
4
  import { SOPublicMenu, SOPublicCategory, SOPublicProduct, SOPublicProductAttribute, SOPublicProductAttributeCategory, SOPaymentMethod, SOValidateCart, SOOrderState, SOOrder, SOEater } from '../models/online-ordering';
5
+ import { RoundingMode } from '../enums/rounding-mode.enum';
5
6
  /**
6
7
  * SO = SDIT Online
7
8
  */
@@ -17,6 +18,16 @@ export interface SOGetStoreInfoRequest {
17
18
  }
18
19
  export interface SOGetStoreInfoResponse {
19
20
  storeId: string;
21
+ /** 地區代碼 ISO 3166-1 alpha-2 ex: TW, SG */
22
+ regionCode: string;
23
+ /** 幣別 ISO 4217 ex: TWD, SGD */
24
+ currencyCode: string;
25
+ /** 訂單金額小數位數 */
26
+ orderDecimalDigits: number;
27
+ /** 品項、附加屬性、折扣...金額小數位數 */
28
+ itemDecimalDigits: number;
29
+ /** 進位模式 */
30
+ roundingMode: RoundingMode;
20
31
  /**
21
32
  * 線上店名
22
33
  * @Default 店內名稱
@@ -53,7 +53,7 @@ export interface UploadInvoiceRequest {
53
53
  * 通關方式:1=非經海關出口, 2=經海關出口
54
54
  * 若為零稅發票,必填
55
55
  */
56
- customersClearanceMark?: string;
56
+ customsClearanceMark?: string;
57
57
  /**
58
58
  * 參照加值型及非加值型營業稅法第 7 條:
59
59
  * 71:第一款 外銷貨物
package/models/store.d.ts CHANGED
@@ -6,6 +6,7 @@ import { ServeConfig } from './table';
6
6
  import { CustomerConfig } from './customer';
7
7
  import { MultiLanguageText } from './language';
8
8
  import { StoreOnlinePlatformStore } from './online-integration';
9
+ import { RoundingMode } from '../enums/rounding-mode.enum';
9
10
  export interface StoreUser {
10
11
  id?: string;
11
12
  storeId: string;
@@ -29,6 +30,16 @@ export interface Store {
29
30
  logoImageUrl: string;
30
31
  invoiceConfig: StoreInvoiceConfig;
31
32
  galleryConfig: GalleryConfig;
33
+ /** 地區代碼 ISO 3166-1 alpha-2 ex: TW, SG 無值時應視為 TW */
34
+ regionCode?: string;
35
+ /** 幣別 ISO 4217 ex: TWD, SGD,... 無值時應視為 TWD */
36
+ currencyCode?: string;
37
+ /** 訂單金額小數位數 */
38
+ orderDecimalDigits?: number;
39
+ /** 品項、附加屬性、折扣...金額小數位數 */
40
+ itemDecimalDigits?: number;
41
+ /** 進位模式,無值時應視為 四捨五入 */
42
+ roundingMode?: RoundingMode;
32
43
  /**
33
44
  * For POS
34
45
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trusted-solutions/sdit.models",
3
- "version": "0.35.0-alpha.0",
3
+ "version": "0.35.0-alpha.2",
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": {