@aptos-scp/scp-component-store-selling-features-domain-model 2.46.0 → 2.47.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.
@@ -472,7 +472,8 @@ export declare enum UiInputKey {
472
472
  SELECTED_RETURN_ITEMS = "input_selectedReturnItems",
473
473
  FEE_LINE_FOR_REFUND = "input_feeLineForRefund",
474
474
  FEE_REFUND_SOURCE = "input_feeRefundSource",
475
- FEE_REFUNDABLE_AMOUNT = "input_feeRefundableAmount"
475
+ FEE_REFUNDABLE_AMOUNT = "input_feeRefundableAmount",
476
+ ITEM_TERMS_AND_CONDITIONS_ACCEPTED = "input_itemTermsAndConditionsAccepted"
476
477
  }
477
478
  export declare enum CollectedDataKey {
478
479
  Abort = "abort",
@@ -474,6 +474,7 @@ var UiInputKey;
474
474
  UiInputKey["FEE_LINE_FOR_REFUND"] = "input_feeLineForRefund";
475
475
  UiInputKey["FEE_REFUND_SOURCE"] = "input_feeRefundSource";
476
476
  UiInputKey["FEE_REFUNDABLE_AMOUNT"] = "input_feeRefundableAmount";
477
+ UiInputKey["ITEM_TERMS_AND_CONDITIONS_ACCEPTED"] = "input_itemTermsAndConditionsAccepted";
477
478
  })(UiInputKey = exports.UiInputKey || (exports.UiInputKey = {}));
478
479
  //
479
480
  // Keys for use in relaying data collectedData (qualification) and nonContextualData (action).
@@ -1,9 +1,14 @@
1
+ import { ConditionType, IConditionalAttributeBehaviorRuleAttributeGroups } from "./IConditionalAttributeBehaviorRuleConfig";
2
+ import { ITranslatableMessage } from "./IFeatureAccessConfig";
1
3
  export interface ICustomerConfig {
2
4
  loyalty: ILoyaltyConfig;
3
5
  }
4
6
  export interface ILoyaltyConfig {
5
7
  readonly enabled: boolean;
6
8
  readonly realTimePoints: IRealTimePointConfig;
9
+ readonly enrollment?: IEnrollmentConfig;
10
+ readonly displayBehavior?: IDisplayBehavior;
11
+ readonly redemption?: IRedemptionConfig;
7
12
  readonly applyPermanentMembershipDiscounts?: boolean;
8
13
  }
9
14
  export declare enum LoyaltyQualifyingTransactions {
@@ -18,6 +23,7 @@ export interface IDisplayBehavior {
18
23
  readonly showCurrentTransactionTotalPoints: boolean;
19
24
  readonly showCurrentTransactionRegularPoints: boolean;
20
25
  readonly showCurrentTransactionConditionalPoints: boolean;
26
+ readonly hiddenLoyaltyPlanIds: string[];
21
27
  }
22
28
  export interface IRealTimePointConfig {
23
29
  readonly qualifyingTransactions: LoyaltyQualifyingTransactions;
@@ -29,3 +35,88 @@ export declare enum AssignCustomerFromOriginalSaleForReturns {
29
35
  AssignWithPrompt = "AssignWithPrompt",
30
36
  AssignWithoutPrompt = "AssignWithoutPrompt"
31
37
  }
38
+ export interface IEnrollmentConfig {
39
+ readonly hiddenMembershipTypeCodes?: string[];
40
+ readonly manualEnrollment?: IEnabledConfig;
41
+ readonly customerFields?: ICustomerFieldsConfig;
42
+ readonly enrollmentPrompt?: IEnrollmentPromptConfig;
43
+ readonly minimumAgeValidation?: MinimumAgeValidation;
44
+ readonly customOptIn?: ICustomOptInConfig;
45
+ }
46
+ export interface IEnabledConfig {
47
+ readonly enabled?: boolean;
48
+ }
49
+ export interface ICustomerFieldsConfig {
50
+ readonly emailAddress?: ILoyaltyEnrollmentFieldConfig;
51
+ readonly attributes?: ILoyaltyScreenAttributesConfig;
52
+ }
53
+ export interface ILoyaltyScreenAttributesConfig {
54
+ readonly attributeGroupCodes?: string[];
55
+ readonly conditionsToDisableEnrollment?: IConditionalAttributeBehaviorRuleAttributeGroups;
56
+ readonly conditionType?: ConditionType;
57
+ }
58
+ export interface ILoyaltyEnrollmentFieldConfig {
59
+ readonly usage?: FieldUsage;
60
+ readonly displayBehavior?: DisplayBehavior;
61
+ readonly editableBehavior?: DisplayBehavior;
62
+ }
63
+ export interface IEnrollmentPromptConfig {
64
+ readonly appliesTo?: AppliesTo;
65
+ readonly deferralButton?: IDeferralButtonConfig;
66
+ }
67
+ export interface IDeferralButtonConfig {
68
+ readonly enabled?: boolean;
69
+ readonly deferralDays?: number;
70
+ }
71
+ export interface ICustomOptInConfig {
72
+ readonly customOptInDetails: ICustomOptInDetailsConfig;
73
+ readonly conditionsToDisableEnrollment?: IConditionalAttributeBehaviorRuleAttributeGroups;
74
+ readonly conditionType?: ConditionType;
75
+ readonly customerConfirmation?: ICustomerConfirmationConfig;
76
+ }
77
+ export interface ICustomOptInDetailsConfig {
78
+ readonly [key: string]: ICustomOptInContentConfig;
79
+ }
80
+ export interface ICustomOptInContentConfig {
81
+ readonly customOptInTitle: ITranslatableMessage;
82
+ readonly customOptInLink?: ITranslatableMessage;
83
+ readonly customOptInFullDetails?: ITranslatableMessage;
84
+ readonly optInResponseLabel?: ITranslatableMessage;
85
+ readonly customOptInSummary?: ITranslatableMessage;
86
+ readonly customOptInLinks?: ICustomOptInLinksConfig;
87
+ }
88
+ export interface ICustomOptInLinksConfig {
89
+ readonly [key: string]: ITranslatableMessage;
90
+ }
91
+ export interface ICustomerConfirmationConfig {
92
+ readonly enabled: boolean;
93
+ readonly allowBypassConfirmationUponDeviceError: boolean;
94
+ }
95
+ export interface IRedemptionConfig {
96
+ readonly calculateMaxVariableDiscount: boolean;
97
+ readonly automaticLoyaltyRedemptionBehavior: RedemptionBehavior;
98
+ }
99
+ export declare enum AppliesTo {
100
+ None = "None",
101
+ AllQualifyingCustomers = "AllQualifyingCustomers",
102
+ NewCustomersOnly = "NewCustomersOnly"
103
+ }
104
+ export declare enum MinimumAgeValidation {
105
+ NoValidation = "NoValidation",
106
+ PreventEnrollingMinors = "PreventEnrollingMinors",
107
+ PreventEnrollAndSaveWithCustomerTypeMinor = "PreventEnrollAndSaveWithCustomerTypeMinor"
108
+ }
109
+ export declare enum FieldUsage {
110
+ Required = "Required",
111
+ Optional = "Optional",
112
+ NotUsed = "NotUsed"
113
+ }
114
+ export declare enum DisplayBehavior {
115
+ Always = "Always",
116
+ OnlyIfEmpty = "OnlyIfEmpty"
117
+ }
118
+ export declare enum RedemptionBehavior {
119
+ Disabled = "Disabled",
120
+ Prompt = "Prompt",
121
+ ApplyWithoutPrompting = "ApplyWithoutPrompting"
122
+ }
@@ -12,4 +12,33 @@ var AssignCustomerFromOriginalSaleForReturns;
12
12
  AssignCustomerFromOriginalSaleForReturns["AssignWithPrompt"] = "AssignWithPrompt";
13
13
  AssignCustomerFromOriginalSaleForReturns["AssignWithoutPrompt"] = "AssignWithoutPrompt";
14
14
  })(AssignCustomerFromOriginalSaleForReturns = exports.AssignCustomerFromOriginalSaleForReturns || (exports.AssignCustomerFromOriginalSaleForReturns = {}));
15
+ var AppliesTo;
16
+ (function (AppliesTo) {
17
+ AppliesTo["None"] = "None";
18
+ AppliesTo["AllQualifyingCustomers"] = "AllQualifyingCustomers";
19
+ AppliesTo["NewCustomersOnly"] = "NewCustomersOnly";
20
+ })(AppliesTo = exports.AppliesTo || (exports.AppliesTo = {}));
21
+ var MinimumAgeValidation;
22
+ (function (MinimumAgeValidation) {
23
+ MinimumAgeValidation["NoValidation"] = "NoValidation";
24
+ MinimumAgeValidation["PreventEnrollingMinors"] = "PreventEnrollingMinors";
25
+ MinimumAgeValidation["PreventEnrollAndSaveWithCustomerTypeMinor"] = "PreventEnrollAndSaveWithCustomerTypeMinor";
26
+ })(MinimumAgeValidation = exports.MinimumAgeValidation || (exports.MinimumAgeValidation = {}));
27
+ var FieldUsage;
28
+ (function (FieldUsage) {
29
+ FieldUsage["Required"] = "Required";
30
+ FieldUsage["Optional"] = "Optional";
31
+ FieldUsage["NotUsed"] = "NotUsed";
32
+ })(FieldUsage = exports.FieldUsage || (exports.FieldUsage = {}));
33
+ var DisplayBehavior;
34
+ (function (DisplayBehavior) {
35
+ DisplayBehavior["Always"] = "Always";
36
+ DisplayBehavior["OnlyIfEmpty"] = "OnlyIfEmpty";
37
+ })(DisplayBehavior = exports.DisplayBehavior || (exports.DisplayBehavior = {}));
38
+ var RedemptionBehavior;
39
+ (function (RedemptionBehavior) {
40
+ RedemptionBehavior["Disabled"] = "Disabled";
41
+ RedemptionBehavior["Prompt"] = "Prompt";
42
+ RedemptionBehavior["ApplyWithoutPrompting"] = "ApplyWithoutPrompting";
43
+ })(RedemptionBehavior = exports.RedemptionBehavior || (exports.RedemptionBehavior = {}));
15
44
  //# sourceMappingURL=ICustomerConfig.js.map
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.46.0",
3
+ "version": "2.47.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",