@aptos-scp/scp-component-store-selling-features-domain-model 2.31.0 → 2.33.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.
@@ -334,3 +334,4 @@ export declare const TRANSACTION_VOID_RECOVER_RECEIPT_EVENT: string;
334
334
  export declare const PAY_ON_ACCOUNT_EVENT: string;
335
335
  export declare const COUNTRY_BOX_START_TRANSACTION_EVENT: string;
336
336
  export declare const COUNTRY_BOX_FINISH_TRANSACTION_EVENT: string;
337
+ export declare const FULFILLMENT_AUTHORIZATION_EVENT: string;
@@ -341,4 +341,5 @@ exports.TRANSACTION_VOID_RECOVER_RECEIPT_EVENT = "TransactionVoidRecoverReceipt"
341
341
  exports.PAY_ON_ACCOUNT_EVENT = "PayOnAccount";
342
342
  exports.COUNTRY_BOX_START_TRANSACTION_EVENT = "CountryBoxStartTransactionEvent";
343
343
  exports.COUNTRY_BOX_FINISH_TRANSACTION_EVENT = "CountryBoxFinishTransactionEvent";
344
+ exports.FULFILLMENT_AUTHORIZATION_EVENT = "FulfillmentAuthorization";
344
345
  //# sourceMappingURL=UIBusinessEventTypes.js.map
@@ -327,6 +327,7 @@ export declare enum UiInputKey {
327
327
  IS_TENDER_FALLBACK = "input_isTenderFallback",
328
328
  MAPPED_REFUND_TENDER_TYPE_NAME = "input_mappedRefundTenderTypeName",
329
329
  MAPPED_REFUND_CARD_TYPE_NAME = "input_mappedRefundCardTypeName",
330
+ PRE_AUTH = "input_preAuth",
330
331
  EXCLUDED_REFUND_CARD_TYPE_NAMES = "input_excludedRefundCardTypeNames",
331
332
  TRANSACTION_NUMBER_FIELD = "input_transactionNumberField",
332
333
  TRANSACTION_REFERENCE_NUMBER_FIELD = "input_referenceNumberField",
@@ -999,7 +1000,8 @@ export declare enum CollectedDataKey {
999
1000
  TerminalForceClosed = "TerminalForceClosed",
1000
1001
  TotalLineTax = "totalLineTax",
1001
1002
  CustomerInputScreens = "customerInputScreens",
1002
- CustomerInputMode = "customerInputMode"
1003
+ CustomerInputMode = "customerInputMode",
1004
+ PreAuthCapture = "preAuthCapture"
1003
1005
  }
1004
1006
  export declare enum ItemLookupType {
1005
1007
  ProductInquiryDetail = "ProductInquiryDetail",
@@ -328,6 +328,7 @@ var UiInputKey;
328
328
  UiInputKey["IS_TENDER_FALLBACK"] = "input_isTenderFallback";
329
329
  UiInputKey["MAPPED_REFUND_TENDER_TYPE_NAME"] = "input_mappedRefundTenderTypeName";
330
330
  UiInputKey["MAPPED_REFUND_CARD_TYPE_NAME"] = "input_mappedRefundCardTypeName";
331
+ UiInputKey["PRE_AUTH"] = "input_preAuth";
331
332
  UiInputKey["EXCLUDED_REFUND_CARD_TYPE_NAMES"] = "input_excludedRefundCardTypeNames";
332
333
  UiInputKey["TRANSACTION_NUMBER_FIELD"] = "input_transactionNumberField";
333
334
  UiInputKey["TRANSACTION_REFERENCE_NUMBER_FIELD"] = "input_referenceNumberField";
@@ -1007,6 +1008,7 @@ var CollectedDataKey;
1007
1008
  CollectedDataKey["TotalLineTax"] = "totalLineTax";
1008
1009
  CollectedDataKey["CustomerInputScreens"] = "customerInputScreens";
1009
1010
  CollectedDataKey["CustomerInputMode"] = "customerInputMode";
1011
+ CollectedDataKey["PreAuthCapture"] = "preAuthCapture";
1010
1012
  })(CollectedDataKey = exports.CollectedDataKey || (exports.CollectedDataKey = {}));
1011
1013
  var ItemLookupType;
1012
1014
  (function (ItemLookupType) {
@@ -7,6 +7,7 @@ import { BaseTransactionLine } from "../BaseTransactionLine";
7
7
  import { TenderAuthCategory } from "../Constants";
8
8
  import { TenderType } from "../TenderType";
9
9
  export declare const TENDER_AUTH_STATUS_LINE_TYPE: string;
10
+ export declare const FULFILLMENT_AUTHORIZATION_STATUS_LINE_TYPE: string;
10
11
  export declare class TenderAuthorizationStatusLine extends BaseTransactionLine implements ITransactionLineReference {
11
12
  private _status;
12
13
  private _tenderAmount;
@@ -74,5 +75,7 @@ export declare class TenderAuthorizationStatusLine extends BaseTransactionLine i
74
75
  protected constructor(lineNumber: number, lineType: string, status: TenderAuthorizationStatus, tenderAmount: Money, amountDue: Money, authResponse: IAuthorizationResponse, failureReasonCode: TenderAuthFailureReasonCode, authorizationDeviceId: string, transactionLineReference: ITransactionLineReferenceType, forcedAuthorizationApproval: boolean, cardNumber: string, giftCardPin: string, valueCertificateNumber: string, offlineAuthorizationCode: string, offlineApprovalCode: string, tenderAuthCategory: TenderAuthCategory, tenderType: TenderType, tenderTypeName: string, entryMethod: EntryMethod, tenderReversalFailed: boolean, originalTenderLineReferences: IOriginalTransactionRefundReference[], actionType: ActionType, mappedRefundTenderTypeName: string, mappedRefundCardTypeName: string, excludedRefundCardTypeNames: string[], subType: TenderSubType, isChangeProcessing: boolean, isTenderAuthorizationFallback: boolean, payByLinkCustomer: IPayByLinkCustomer, storeLanguage: string, isRewardCardAutoApplied: boolean);
75
76
  protected newTransactionLine(): TenderAuthorizationStatusLine;
76
77
  }
78
+ export declare const isTenderAuthorizationLine: (transactionLine: ITransactionLine) => transactionLine is TenderAuthorizationStatusLine;
79
+ export declare const isFulfillmentAuthorizationStatusLine: (transactionLine: ITransactionLine) => transactionLine is TenderAuthorizationStatusLine;
77
80
  export declare function isTenderAuthorizationStatusLine(transactionLine: ITransactionLine): transactionLine is TenderAuthorizationStatusLine;
78
81
  export declare function isTimeoutStatusLine(transactionLine: TenderAuthorizationStatusLine): boolean;
@@ -8,6 +8,7 @@ const BaseTransactionLine_1 = require("../BaseTransactionLine");
8
8
  const Constants_1 = require("../Constants");
9
9
  const TenderType_1 = require("../TenderType");
10
10
  exports.TENDER_AUTH_STATUS_LINE_TYPE = "TenderAuthorizationStatus";
11
+ exports.FULFILLMENT_AUTHORIZATION_STATUS_LINE_TYPE = "FulfillmentAuthorizationStatus";
11
12
  class TenderAuthorizationStatusLine extends BaseTransactionLine_1.BaseTransactionLine {
12
13
  constructor(lineNumber, lineType, status, tenderAmount, amountDue, authResponse, failureReasonCode, authorizationDeviceId, transactionLineReference, forcedAuthorizationApproval, cardNumber, giftCardPin, valueCertificateNumber, offlineAuthorizationCode, offlineApprovalCode, tenderAuthCategory, tenderType, tenderTypeName, entryMethod, tenderReversalFailed, originalTenderLineReferences, actionType, mappedRefundTenderTypeName, mappedRefundCardTypeName, excludedRefundCardTypeNames, subType, isChangeProcessing, isTenderAuthorizationFallback, payByLinkCustomer, storeLanguage, isRewardCardAutoApplied) {
13
14
  super(lineNumber, lineType);
@@ -231,6 +232,14 @@ class TenderAuthorizationStatusLine extends BaseTransactionLine_1.BaseTransactio
231
232
  }
232
233
  }
233
234
  exports.TenderAuthorizationStatusLine = TenderAuthorizationStatusLine;
235
+ exports.isTenderAuthorizationLine = (transactionLine) => {
236
+ return transactionLine && transactionLine.lineType === exports.TENDER_AUTH_STATUS_LINE_TYPE;
237
+ };
238
+ exports.isFulfillmentAuthorizationStatusLine = (transactionLine) => {
239
+ return (transactionLine &&
240
+ transactionLine.lineType === exports.FULFILLMENT_AUTHORIZATION_STATUS_LINE_TYPE &&
241
+ transactionLine.status === scp_types_commerce_transaction_1.TenderAuthorizationStatus.Success);
242
+ };
234
243
  function mapInputSourceToEntryMethod(inputSource) {
235
244
  let entryMethod;
236
245
  switch (inputSource) {
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.31.0",
3
+ "version": "2.33.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",