@aptos-scp/scp-component-store-selling-features-domain-model 2.26.1 → 2.28.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.
@@ -175,6 +175,7 @@ export declare enum UiInputKey {
175
175
  DISPLAY_ACCOUNT_SUMMARY_ON_PED = "input_displayAccountSummaryOnPED",
176
176
  IS_INVOICE = "input_isInvoice",
177
177
  IDENTIFICATION_TYPE = "input_identificationType",
178
+ IDENTIFICATION_EXPIRATION_DATE = "input_identificationExpirationDate",
178
179
  ITEM_COMMENT = "input_selectedComment",
179
180
  ITEM_FILTER_BY = "input_itemFilterBy",
180
181
  ITEM_CALCULATION_PROFILE = "item_calculationProfile",
@@ -593,6 +594,7 @@ export declare enum CollectedDataKey {
593
594
  GiftReceiptMode = "GiftReceiptMode",
594
595
  HardSoftStopItems = "hardSoftStopItems",
595
596
  IdentificationType = "identificationType",
597
+ IdentificationExpirationDate = "identificationExpirationDate",
596
598
  IncomingCashDrawerStatusCode = "IncomingCashDrawerStatusCode",
597
599
  InputSource = "inputSource",
598
600
  InternalCouponNumber = "internalCouponNumber",
@@ -176,6 +176,7 @@ var UiInputKey;
176
176
  UiInputKey["DISPLAY_ACCOUNT_SUMMARY_ON_PED"] = "input_displayAccountSummaryOnPED";
177
177
  UiInputKey["IS_INVOICE"] = "input_isInvoice";
178
178
  UiInputKey["IDENTIFICATION_TYPE"] = "input_identificationType";
179
+ UiInputKey["IDENTIFICATION_EXPIRATION_DATE"] = "input_identificationExpirationDate";
179
180
  UiInputKey["ITEM_COMMENT"] = "input_selectedComment";
180
181
  UiInputKey["ITEM_FILTER_BY"] = "input_itemFilterBy";
181
182
  UiInputKey["ITEM_CALCULATION_PROFILE"] = "item_calculationProfile";
@@ -600,6 +601,7 @@ var CollectedDataKey;
600
601
  CollectedDataKey["GiftReceiptMode"] = "GiftReceiptMode";
601
602
  CollectedDataKey["HardSoftStopItems"] = "hardSoftStopItems";
602
603
  CollectedDataKey["IdentificationType"] = "identificationType";
604
+ CollectedDataKey["IdentificationExpirationDate"] = "identificationExpirationDate";
603
605
  CollectedDataKey["IncomingCashDrawerStatusCode"] = "IncomingCashDrawerStatusCode";
604
606
  CollectedDataKey["InputSource"] = "inputSource";
605
607
  CollectedDataKey["InternalCouponNumber"] = "internalCouponNumber";
@@ -5,6 +5,7 @@ export interface IPaymentAccountHolderValidationLine extends ITransactionLine {
5
5
  readonly accountHolder: ICardHolder;
6
6
  readonly identificationType: PaymentAccountHolderIdentificationType;
7
7
  readonly firstAdminDivision: string;
8
+ readonly identificationExpirationDate?: string;
8
9
  readonly accountHolderMismatch?: boolean;
9
10
  readonly paymentAccountLookupLineReference?: ISameTransactionLineReference;
10
11
  }
@@ -8,6 +8,7 @@ export declare class PaymentAccountHolderValidationLine extends BaseTransactionL
8
8
  private readonly _accountHolder;
9
9
  private readonly _identificationType;
10
10
  private readonly _firstAdminDivision;
11
+ private readonly _identificationExpirationDate?;
11
12
  private readonly _accountHolderMismatch?;
12
13
  private readonly _paymentAccountLookupLineReference?;
13
14
  static create(lineNumber: number, lineType: string, uiBusinessEvent: UiBusinessEvent, collectedData: Readonly<Map<string, any>>): PaymentAccountHolderValidationLine;
@@ -15,10 +16,11 @@ export declare class PaymentAccountHolderValidationLine extends BaseTransactionL
15
16
  get couldAffectPricing(): boolean;
16
17
  get accountHolder(): ICardHolder;
17
18
  get identificationType(): PaymentAccountHolderIdentificationType;
19
+ get identificationExpirationDate(): string;
18
20
  get firstAdminDivision(): string;
19
21
  get accountHolderMismatch(): boolean;
20
22
  get paymentAccountLookupLineReference(): ISameTransactionLineReference | undefined;
21
- constructor(lineNumber: number, lineType: string, accountHolder: ICardHolder, identificationType: PaymentAccountHolderIdentificationType, firstAdminDivision: string, accountHolderMismatch: boolean, paymentAccountLookupLineReference: ISameTransactionLineReference);
23
+ constructor(lineNumber: number, lineType: string, accountHolder: ICardHolder, identificationType: PaymentAccountHolderIdentificationType, identificationExpirationDate: string, firstAdminDivision: string, accountHolderMismatch: boolean, paymentAccountLookupLineReference: ISameTransactionLineReference);
22
24
  protected newTransactionLine(): PaymentAccountHolderValidationLine;
23
25
  }
24
26
  export declare function isPaymentAccountHolderValidationLine(transactionLine: ITransactionLine): transactionLine is IPaymentAccountHolderValidationLine;
@@ -4,10 +4,11 @@ const BaseTransactionLine_1 = require("../BaseTransactionLine");
4
4
  const Constants_1 = require("../Constants");
5
5
  exports.PAYMENT_ACCOUNT_HOLDER_VALIDATION_LINE_TYPE = "PaymentAccountHolderValidation";
6
6
  class PaymentAccountHolderValidationLine extends BaseTransactionLine_1.BaseTransactionLine {
7
- constructor(lineNumber, lineType, accountHolder, identificationType, firstAdminDivision, accountHolderMismatch, paymentAccountLookupLineReference) {
7
+ constructor(lineNumber, lineType, accountHolder, identificationType, identificationExpirationDate, firstAdminDivision, accountHolderMismatch, paymentAccountLookupLineReference) {
8
8
  super(lineNumber, lineType);
9
9
  this._accountHolder = accountHolder;
10
10
  this._identificationType = identificationType;
11
+ this._identificationExpirationDate = identificationExpirationDate;
11
12
  this._firstAdminDivision = firstAdminDivision;
12
13
  this._accountHolderMismatch = accountHolderMismatch;
13
14
  this._paymentAccountLookupLineReference = paymentAccountLookupLineReference;
@@ -20,20 +21,22 @@ class PaymentAccountHolderValidationLine extends BaseTransactionLine_1.BaseTrans
20
21
  lastName,
21
22
  };
22
23
  const identificationType = collectedData.get(Constants_1.CollectedDataKey.IdentificationType);
24
+ const identificationExpirationDate = collectedData.get(Constants_1.CollectedDataKey.IdentificationExpirationDate);
23
25
  const firstAdminDivision = collectedData.get(Constants_1.CollectedDataKey.FirstAdminDivision);
24
26
  const accountHolderMismatch = collectedData.get(Constants_1.CollectedDataKey.AccountHolderMismatch);
25
27
  const paymentAccountLookupLineReference = collectedData.get(Constants_1.CollectedDataKey.PaymentAccountLookupLineReference);
26
- return new PaymentAccountHolderValidationLine(lineNumber, lineType, accountHolder, identificationType, firstAdminDivision, accountHolderMismatch, paymentAccountLookupLineReference);
28
+ return new PaymentAccountHolderValidationLine(lineNumber, lineType, accountHolder, identificationType, identificationExpirationDate, firstAdminDivision, accountHolderMismatch, paymentAccountLookupLineReference);
27
29
  }
28
30
  static createFromJsonObject(transactionLineJsonObj) {
29
31
  const lineNumber = BaseTransactionLine_1.BaseTransactionLine.lineNumberFromJsonObject(transactionLineJsonObj);
30
32
  const lineType = BaseTransactionLine_1.BaseTransactionLine.lineTypeFromJsonObject(transactionLineJsonObj);
31
33
  const accountHolder = transactionLineJsonObj._accountHolder;
32
34
  const identificationType = transactionLineJsonObj._identificationType;
35
+ const identificationExpirationDate = transactionLineJsonObj._identificationExpirationDate;
33
36
  const firstAdminDivision = transactionLineJsonObj._firstAdminDivision;
34
37
  const accountHolderMismatch = transactionLineJsonObj._accountHolderMismatch;
35
38
  const paymentAccountLookupLineReference = transactionLineJsonObj._paymentAccountLookupLineReference;
36
- return new PaymentAccountHolderValidationLine(lineNumber, lineType, accountHolder, identificationType, firstAdminDivision, accountHolderMismatch, paymentAccountLookupLineReference);
39
+ return new PaymentAccountHolderValidationLine(lineNumber, lineType, accountHolder, identificationType, identificationExpirationDate, firstAdminDivision, accountHolderMismatch, paymentAccountLookupLineReference);
37
40
  }
38
41
  get couldAffectPricing() {
39
42
  return false;
@@ -44,6 +47,9 @@ class PaymentAccountHolderValidationLine extends BaseTransactionLine_1.BaseTrans
44
47
  get identificationType() {
45
48
  return this._identificationType;
46
49
  }
50
+ get identificationExpirationDate() {
51
+ return this._identificationExpirationDate;
52
+ }
47
53
  get firstAdminDivision() {
48
54
  return this._firstAdminDivision;
49
55
  }
@@ -54,7 +60,7 @@ class PaymentAccountHolderValidationLine extends BaseTransactionLine_1.BaseTrans
54
60
  return this._paymentAccountLookupLineReference;
55
61
  }
56
62
  newTransactionLine() {
57
- return new PaymentAccountHolderValidationLine(this.lineNumber, this.lineType, this._accountHolder, this._identificationType, this._firstAdminDivision, this._accountHolderMismatch, this._paymentAccountLookupLineReference);
63
+ return new PaymentAccountHolderValidationLine(this.lineNumber, this.lineType, this._accountHolder, this._identificationType, this._identificationExpirationDate, this._firstAdminDivision, this._accountHolderMismatch, this._paymentAccountLookupLineReference);
58
64
  }
59
65
  }
60
66
  exports.PaymentAccountHolderValidationLine = PaymentAccountHolderValidationLine;
@@ -1,5 +1,11 @@
1
- export interface IAccessPolicyConfig {
2
- minimumSecurityLevel: number;
1
+ export interface ISecurityPolicyConfig extends ILevelBasedSecurityPolicyConfig, IRoleBasedSecurityPolicyConfig {
3
2
  supervisorOverrideAllowed: boolean;
3
+ }
4
+ export interface ILevelBasedSecurityPolicyConfig {
5
+ minimumSecurityLevel: number;
4
6
  deferApprovalUntilTotal: boolean;
5
7
  }
8
+ export interface IRoleBasedSecurityPolicyConfig {
9
+ roleIds: string[];
10
+ }
11
+ export declare type IAccessPolicyConfig = ISecurityPolicyConfig;
@@ -0,0 +1,8 @@
1
+ export interface IAutomaticLogOffOnTransactionCloseConfig {
2
+ enabled: boolean;
3
+ merchandise: IAutomaticLogOffSettingsForTransactionTypeConfig;
4
+ }
5
+ export interface IAutomaticLogOffSettingsForTransactionTypeConfig {
6
+ enabled: boolean;
7
+ securityPolicy: string;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IAutomaticLogOffOnTransactionCloseConfig.js.map
@@ -29,3 +29,4 @@ export * from "./IProductInquiryBehaviorsConfig";
29
29
  export * from "./IFeesConfig";
30
30
  export * from "./DataEntryRule";
31
31
  export * from "./IAutomaticTimeoutConfig";
32
+ export * from "./IAutomaticLogOffOnTransactionCloseConfig";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptos-scp/scp-component-store-selling-features-domain-model",
3
- "version": "2.26.1",
3
+ "version": "2.28.0",
4
4
  "description": "This component library provides the common components to handle the coordination of processing the business events from the UI.",
5
5
  "private": false,
6
6
  "license": "SEE LICENSE IN LICENSE.md",