@aptos-scp/scp-component-store-selling-features-domain-model 1.12.0 → 1.13.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.
- package/lib/domain/model/configuration/IFeatureAccessConfig.d.ts +13 -0
- package/lib/domain/model/fee/BaseFeeLineDecorator.d.ts +1 -0
- package/lib/domain/model/fee/BaseFeeLineDecorator.js +3 -0
- package/lib/domain/model/item/BaseItemLineDecorator.d.ts +1 -0
- package/lib/domain/model/item/BaseItemLineDecorator.js +3 -0
- package/package.json +1 -1
|
@@ -59,6 +59,9 @@ export interface IFeatureAccessConfig {
|
|
|
59
59
|
byFeeType?: IFeeType;
|
|
60
60
|
defaultSelection?: IDefaultSelectionForManualDiscount;
|
|
61
61
|
addAttachments?: IAttachmentSettings;
|
|
62
|
+
issuer?: IAuthority;
|
|
63
|
+
issueDate?: IAppliedDate;
|
|
64
|
+
expirationDate?: IAppliedDate;
|
|
62
65
|
}
|
|
63
66
|
export interface ITranslatableMessage {
|
|
64
67
|
[locale: string]: string;
|
|
@@ -195,3 +198,13 @@ export declare enum IDefaultSelectionForManualDiscount {
|
|
|
195
198
|
Amount = "Amount",
|
|
196
199
|
Percent = "Percent"
|
|
197
200
|
}
|
|
201
|
+
export interface IAuthority {
|
|
202
|
+
enabled: boolean;
|
|
203
|
+
required: boolean;
|
|
204
|
+
label: ILabel;
|
|
205
|
+
}
|
|
206
|
+
export interface IAppliedDate {
|
|
207
|
+
enabled: boolean;
|
|
208
|
+
required: boolean;
|
|
209
|
+
dateRequired: boolean;
|
|
210
|
+
}
|
|
@@ -48,6 +48,7 @@ export declare abstract class BaseFeeLineDecorator extends BaseLineDecorator<IFe
|
|
|
48
48
|
get lineNumberFromReturnCanonicalTransaction(): number;
|
|
49
49
|
get sublineIndexFromReturnCanonicalTransaction(): number;
|
|
50
50
|
get originalTransactionLineReference(): ITransactionLineReferenceType;
|
|
51
|
+
get taxIndicatorOnReceipt(): string;
|
|
51
52
|
protected constructor(lineDecoratorType: string, decoratedTransactionLine: IFeeLine, annotationDescription: string, annotationSourceType: string, annotationSourceLineNumber?: number, couldDecoratorAffectPricing?: boolean, couldDecoratorAffectTaxation?: boolean);
|
|
52
53
|
get taxGroupId(): string;
|
|
53
54
|
get taxByAuthority(): IAppliedTax[];
|
|
@@ -138,6 +138,9 @@ class BaseFeeLineDecorator extends BaseLineDecorator_1.BaseLineDecorator {
|
|
|
138
138
|
get originalTransactionLineReference() {
|
|
139
139
|
return this.decoratedTransactionLine.originalTransactionLineReference;
|
|
140
140
|
}
|
|
141
|
+
get taxIndicatorOnReceipt() {
|
|
142
|
+
return this.decoratedTransactionLine.taxIndicatorOnReceipt;
|
|
143
|
+
}
|
|
141
144
|
constructor(lineDecoratorType, decoratedTransactionLine, annotationDescription, annotationSourceType, annotationSourceLineNumber, couldDecoratorAffectPricing, couldDecoratorAffectTaxation) {
|
|
142
145
|
super(lineDecoratorType, decoratedTransactionLine, annotationDescription, annotationSourceType, annotationSourceLineNumber, couldDecoratorAffectPricing, couldDecoratorAffectTaxation);
|
|
143
146
|
}
|
|
@@ -134,6 +134,7 @@ export declare abstract class BaseItemLineDecorator extends BaseLineDecorator<II
|
|
|
134
134
|
get extendedRegularAmount(): Money;
|
|
135
135
|
get originalRedemptionLoyaltyTransactionKeys(): string[];
|
|
136
136
|
get originalSaleLoyaltyTransactionKeys(): string[];
|
|
137
|
+
get taxIndicatorOnReceipt(): string;
|
|
137
138
|
setTransactionLineTaxes(transactionLineTaxes: ITransactionLineTaxes, extendedAmount?: Money): IItemLine;
|
|
138
139
|
setPricingSourceIndicator(calculationSource: SourceIndicator, dataSource: SourceIndicator): IItemLine;
|
|
139
140
|
setTaxationSourceIndicator(calculationSource: SourceIndicator, dataSource: SourceIndicator): IItemLine;
|
|
@@ -354,6 +354,9 @@ class BaseItemLineDecorator extends BaseLineDecorator_1.BaseLineDecorator {
|
|
|
354
354
|
get originalSaleLoyaltyTransactionKeys() {
|
|
355
355
|
return this.decoratedTransactionLine.originalSaleLoyaltyTransactionKeys;
|
|
356
356
|
}
|
|
357
|
+
get taxIndicatorOnReceipt() {
|
|
358
|
+
return this.decoratedTransactionLine.taxIndicatorOnReceipt;
|
|
359
|
+
}
|
|
357
360
|
setTransactionLineTaxes(transactionLineTaxes, extendedAmount) {
|
|
358
361
|
const itemLine = this.decoratedTransactionLine.setTransactionLineTaxes(transactionLineTaxes, extendedAmount || this.extendedAmount);
|
|
359
362
|
return this.updateDecoratedTransactionLine(itemLine);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aptos-scp/scp-component-store-selling-features-domain-model",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.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",
|