@aptos-scp/scp-component-store-selling-features-domain-model 2.30.1 → 2.32.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
@@ -210,6 +210,7 @@ class Customer {
210
210
  customer.loyaltyMembershipLookupIndicator = customerFromJson.loyaltyMembershipLookupIndicator;
211
211
  customer.hasLoyaltyMemberships = customerFromJson.hasLoyaltyMemberships;
212
212
  customer.loyaltyMemberships = customerFromJson.loyaltyMemberships;
213
+ customer.hiddenLoyaltyMemberships = customerFromJson.hiddenLoyaltyMemberships;
213
214
  customer.availableLoyaltyPlans = customerFromJson.availableLoyaltyPlans;
214
215
  customer.allowPromptForLoyaltyEnrollment = customerFromJson.allowPromptForLoyaltyEnrollment;
215
216
  customer.earliestNextLoyaltyEnrollmentPromptDate =
@@ -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.30.1",
3
+ "version": "2.32.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",