@aptos-scp/scp-component-store-selling-features-domain-model 2.29.2 → 2.30.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.
@@ -185,6 +185,8 @@ export interface ICustomerProperties extends ICreateUpdateCustomerProperties {
185
185
  customerType?: CustomerType;
186
186
  loyaltyMembershipLookupIndicator?: boolean;
187
187
  hasLoyaltyMemberships?: boolean;
188
+ loyaltyMemberships?: ICustomerLoyaltyMembership[];
189
+ hiddenLoyaltyMemberships?: ICustomerLoyaltyMembership[];
188
190
  extensibilityData?: ExtensibilityDataSet[];
189
191
  tags?: IServiceCustomerTag[];
190
192
  emails?: ICustomerEmailProperties[];
@@ -282,6 +284,10 @@ export interface ICustomerReferenceData {
282
284
  languagesList?: ICustomerAttributeOptions[];
283
285
  genderList?: ICustomerAttributeOptions[];
284
286
  }
287
+ export interface IFilteredLoyaltyMemberships {
288
+ loyaltyMemberships?: ICustomerLoyaltyMembership[];
289
+ hiddenLoyaltyMemberships?: ICustomerLoyaltyMembership[];
290
+ }
285
291
  export declare class Customer implements ICustomerProperties {
286
292
  firstName: string;
287
293
  lastName: string;
@@ -343,8 +349,9 @@ export declare class Customer implements ICustomerProperties {
343
349
  loyaltyMembershipLookupIndicator?: boolean;
344
350
  hasLoyaltyMemberships?: boolean;
345
351
  loyaltyMemberships?: ICustomerLoyaltyMembership[];
346
- pendingLoyaltyMemberships?: ICustomerLoyaltyMembership[];
347
352
  availableLoyaltyPlans?: LoyaltyPlan[];
353
+ hiddenLoyaltyMemberships?: ICustomerLoyaltyMembership[];
354
+ pendingLoyaltyMemberships?: ICustomerLoyaltyMembership[];
348
355
  allowPromptForLoyaltyEnrollment?: boolean;
349
356
  earliestNextLoyaltyEnrollmentPromptDate?: string;
350
357
  attributes?: IServiceCustomerAttribute[];
@@ -6,6 +6,8 @@ export interface IStoreLoyaltyPlans {
6
6
  retailLocationId: string;
7
7
  createDate: Date;
8
8
  loyaltyPlans: LoyaltyPlan[];
9
+ hiddenLoyaltyPlans?: LoyaltyPlan[];
10
+ allLoyaltyPlans?: LoyaltyPlan[];
9
11
  }
10
12
  export interface ICustomerLoyaltyMembership extends CustomerMembership {
11
13
  loyaltyPlan: LoyaltyPlan;
@@ -716,9 +716,6 @@ function getOriginalTenderRefundableAmount(originalTender, refundDue, originalTr
716
716
  return undefined;
717
717
  }
718
718
  let refundableAmount = new scp_component_business_core_1.Money(0, refundDue.currency);
719
- const doesNotHaveTransactionTotals = _.isUndefined(withTransactionTotal) &&
720
- _.isUndefined(withoutTransactionTotal) &&
721
- _.isUndefined(withOfflineTransactionTotal);
722
719
  if (!originalTender.showReference && !_.isUndefined(withTransactionTotal)) {
723
720
  refundableAmount = refundableAmount.plus(withTransactionTotal);
724
721
  }
@@ -755,9 +752,6 @@ function getOriginalTenderRefundableAmount(originalTender, refundDue, originalTr
755
752
  refundableAmount = getLowestRefundDue(refundableAmount.plus(currentTranRefundableAmount), undefined, refundDue);
756
753
  }
757
754
  });
758
- refundableAmount = doesNotHaveTransactionTotals
759
- ? adjustAmount(refundableAmount, originalTender.adjustmentAmount)
760
- : refundableAmount;
761
755
  refundableAmount = getLowestRefundDue(refundableAmount, undefined, refundDue);
762
756
  return originalTender.isMappedTender
763
757
  ? refundableAmount
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.29.2",
3
+ "version": "2.30.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",