@aptos-scp/scp-component-store-selling-features-domain-model 1.1.0 → 1.2.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/Constants.d.ts +2 -0
- package/lib/domain/model/Constants.js +2 -0
- package/lib/domain/model/taxExempt/BaseTaxExemptLine.d.ts +3 -1
- package/lib/domain/model/taxExempt/BaseTaxExemptLine.js +13 -1
- package/lib/domain/model/taxExempt/BaseTaxExemptLineDecorator.d.ts +1 -0
- package/lib/domain/model/taxExempt/BaseTaxExemptLineDecorator.js +3 -0
- package/lib/domain/model/taxExempt/ITaxExemptLine.d.ts +1 -0
- package/lib/domain/model/taxExempt/ItemTaxExemptLine.d.ts +1 -1
- package/lib/domain/model/taxExempt/ItemTaxExemptLine.js +3 -3
- package/lib/domain/model/taxExempt/ModifyItemTaxExemptLine.d.ts +1 -1
- package/lib/domain/model/taxExempt/ModifyItemTaxExemptLine.js +3 -3
- package/lib/domain/model/taxExempt/ModifyTransactionTaxExemptLine.d.ts +1 -1
- package/lib/domain/model/taxExempt/ModifyTransactionTaxExemptLine.js +3 -3
- package/lib/domain/model/taxExempt/TransactionTaxExemptLine.d.ts +1 -1
- package/lib/domain/model/taxExempt/TransactionTaxExemptLine.js +3 -3
- package/lib/domain/model/transaction/AttachmentLine.d.ts +1 -0
- package/lib/domain/model/transaction/AttachmentLine.js +1 -0
- package/package.json +3 -2
|
@@ -276,6 +276,7 @@ export declare enum UiInputKey {
|
|
|
276
276
|
TAX_EXEMPT_CERTIFICATE_ID = "input_taxExemptCertificateId",
|
|
277
277
|
TAX_EXEMPT_LINE_NUMBER = "input_taxExemptLineNumber",
|
|
278
278
|
TAX_EXEMPT_TYPE = "input_taxExemptType",
|
|
279
|
+
TAX_EXEMPT_CERTIFICATES = "input_tax_exempt_certificates",
|
|
279
280
|
TAX_OVERRIDE_TYPE = "input_taxOverrideType",
|
|
280
281
|
TAX_OVERRIDE_MODIFIER_TYPE = "input_taxOverrideModifierType",
|
|
281
282
|
TAX_OVERRIDE_PERCENT = "input_taxOverridePercent",
|
|
@@ -486,6 +487,7 @@ export declare enum CollectedDataKey {
|
|
|
486
487
|
TaxExemptDisplayName = "taxExemptDisplayName",
|
|
487
488
|
TaxExemptAuthorities = "taxExemptAuthorities",
|
|
488
489
|
ExemptedItemLineReference = "exemptedItemLineReference",
|
|
490
|
+
CertificateAttachmentLineReference = "certificateAttachmentLineReference",
|
|
489
491
|
ExpiredPasswordChange = "expiredPasswordChange",
|
|
490
492
|
FastDiscount = "fastDiscount",
|
|
491
493
|
FeeDepartment = "feeDepartment",
|
|
@@ -279,6 +279,7 @@ var UiInputKey;
|
|
|
279
279
|
UiInputKey["TAX_EXEMPT_CERTIFICATE_ID"] = "input_taxExemptCertificateId";
|
|
280
280
|
UiInputKey["TAX_EXEMPT_LINE_NUMBER"] = "input_taxExemptLineNumber";
|
|
281
281
|
UiInputKey["TAX_EXEMPT_TYPE"] = "input_taxExemptType";
|
|
282
|
+
UiInputKey["TAX_EXEMPT_CERTIFICATES"] = "input_tax_exempt_certificates";
|
|
282
283
|
UiInputKey["TAX_OVERRIDE_TYPE"] = "input_taxOverrideType";
|
|
283
284
|
UiInputKey["TAX_OVERRIDE_MODIFIER_TYPE"] = "input_taxOverrideModifierType";
|
|
284
285
|
UiInputKey["TAX_OVERRIDE_PERCENT"] = "input_taxOverridePercent";
|
|
@@ -495,6 +496,7 @@ var CollectedDataKey;
|
|
|
495
496
|
CollectedDataKey["TaxExemptDisplayName"] = "taxExemptDisplayName";
|
|
496
497
|
CollectedDataKey["TaxExemptAuthorities"] = "taxExemptAuthorities";
|
|
497
498
|
CollectedDataKey["ExemptedItemLineReference"] = "exemptedItemLineReference";
|
|
499
|
+
CollectedDataKey["CertificateAttachmentLineReference"] = "certificateAttachmentLineReference";
|
|
498
500
|
CollectedDataKey["ExpiredPasswordChange"] = "expiredPasswordChange";
|
|
499
501
|
CollectedDataKey["FastDiscount"] = "fastDiscount";
|
|
500
502
|
CollectedDataKey["FeeDepartment"] = "feeDepartment";
|
|
@@ -20,6 +20,7 @@ export declare abstract class BaseTaxExemptLine extends BaseTransactionLine impl
|
|
|
20
20
|
protected _presetRateExemption?: boolean;
|
|
21
21
|
protected _presetExemptionCategory?: string;
|
|
22
22
|
protected _presetExemptionRate?: string;
|
|
23
|
+
protected _certificateAttachmentLineReference?: ITransactionLineReferenceType;
|
|
23
24
|
get taxExemptType(): TaxExemptType;
|
|
24
25
|
get certificateId(): string;
|
|
25
26
|
get reasonCode(): string;
|
|
@@ -34,6 +35,7 @@ export declare abstract class BaseTaxExemptLine extends BaseTransactionLine impl
|
|
|
34
35
|
get originalDisplayName(): string;
|
|
35
36
|
get originalExemptedTaxAuthorities(): ITaxAuthorityForExemption[];
|
|
36
37
|
get exemptedItemLineReferences(): ITransactionLineReferenceType[];
|
|
38
|
+
get certificateAttachmentLineReference(): ITransactionLineReferenceType;
|
|
37
39
|
get couldAffectPricing(): boolean;
|
|
38
40
|
get voided(): boolean;
|
|
39
41
|
get voidSource(): VoidSource;
|
|
@@ -46,7 +48,7 @@ export declare abstract class BaseTaxExemptLine extends BaseTransactionLine impl
|
|
|
46
48
|
static taxExemptTypeFromCollectedData(collectedData: Readonly<Map<string, any>>): TaxExemptType;
|
|
47
49
|
static certificateIdFromJsonObject(transactionLineJsonObj: any): TaxExemptType;
|
|
48
50
|
static certificateIdFromCollectedData(collectedData: Readonly<Map<string, any>>): TaxExemptType;
|
|
49
|
-
protected constructor(lineNumber: number, lineType: string, taxExemptType: TaxExemptType, certificateId: string, reasonCode?: string, reasonDescription?: string, reasonType?: string, supervisorOverrideLineReference?: ITransactionLineReferenceType, displayName?: string, exemptedTaxAuthorities?: ITaxAuthorityForExemption[], exemptedItemLineReferences?: ITransactionLineReferenceType[], presetRateExemption?: boolean, presetExemptionCategory?: string, presetExemptionRate?: string, originalCertificateId?: string, originalReasonCode?: string, originalReasonDescription?: string, originalDisplayName?: string, originalExemptedTaxAuthorities?: ITaxAuthorityForExemption[]);
|
|
51
|
+
protected constructor(lineNumber: number, lineType: string, taxExemptType: TaxExemptType, certificateId: string, reasonCode?: string, reasonDescription?: string, reasonType?: string, supervisorOverrideLineReference?: ITransactionLineReferenceType, displayName?: string, exemptedTaxAuthorities?: ITaxAuthorityForExemption[], exemptedItemLineReferences?: ITransactionLineReferenceType[], presetRateExemption?: boolean, presetExemptionCategory?: string, presetExemptionRate?: string, originalCertificateId?: string, originalReasonCode?: string, originalReasonDescription?: string, originalDisplayName?: string, originalExemptedTaxAuthorities?: ITaxAuthorityForExemption[], certificateAttachmentLineReference?: ITransactionLineReferenceType);
|
|
50
52
|
protected loadFromJsonObject(transactionLineJsonObj: any): void;
|
|
51
53
|
protected loadFromCollectedData(collectedData: Readonly<Map<string, any>>): void;
|
|
52
54
|
private loadOriginalInfo;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const BaseTransactionLine_1 = require("../BaseTransactionLine");
|
|
4
4
|
const Constants_1 = require("../Constants");
|
|
5
5
|
class BaseTaxExemptLine extends BaseTransactionLine_1.BaseTransactionLine {
|
|
6
|
-
constructor(lineNumber, lineType, taxExemptType, certificateId, reasonCode, reasonDescription, reasonType, supervisorOverrideLineReference, displayName, exemptedTaxAuthorities, exemptedItemLineReferences, presetRateExemption, presetExemptionCategory, presetExemptionRate, originalCertificateId, originalReasonCode, originalReasonDescription, originalDisplayName, originalExemptedTaxAuthorities) {
|
|
6
|
+
constructor(lineNumber, lineType, taxExemptType, certificateId, reasonCode, reasonDescription, reasonType, supervisorOverrideLineReference, displayName, exemptedTaxAuthorities, exemptedItemLineReferences, presetRateExemption, presetExemptionCategory, presetExemptionRate, originalCertificateId, originalReasonCode, originalReasonDescription, originalDisplayName, originalExemptedTaxAuthorities, certificateAttachmentLineReference) {
|
|
7
7
|
super(lineNumber, lineType);
|
|
8
8
|
this._taxExemptType = taxExemptType;
|
|
9
9
|
this._certificateId = certificateId;
|
|
@@ -22,6 +22,7 @@ class BaseTaxExemptLine extends BaseTransactionLine_1.BaseTransactionLine {
|
|
|
22
22
|
this._originalReasonDescription = originalReasonDescription;
|
|
23
23
|
this._originalDisplayName = originalDisplayName;
|
|
24
24
|
this._originalExemptedTaxAuthorities = originalExemptedTaxAuthorities;
|
|
25
|
+
this._certificateAttachmentLineReference = certificateAttachmentLineReference;
|
|
25
26
|
}
|
|
26
27
|
get taxExemptType() {
|
|
27
28
|
return this._taxExemptType;
|
|
@@ -65,6 +66,9 @@ class BaseTaxExemptLine extends BaseTransactionLine_1.BaseTransactionLine {
|
|
|
65
66
|
get exemptedItemLineReferences() {
|
|
66
67
|
return this._exemptedItemLineReferences;
|
|
67
68
|
}
|
|
69
|
+
get certificateAttachmentLineReference() {
|
|
70
|
+
return this._certificateAttachmentLineReference;
|
|
71
|
+
}
|
|
68
72
|
get couldAffectPricing() {
|
|
69
73
|
return true;
|
|
70
74
|
}
|
|
@@ -133,6 +137,10 @@ class BaseTaxExemptLine extends BaseTransactionLine_1.BaseTransactionLine {
|
|
|
133
137
|
if (!this._presetExemptionRate && transactionLineJsonObj._presetExemptionRate) {
|
|
134
138
|
this._presetExemptionRate = transactionLineJsonObj._presetExemptionRate;
|
|
135
139
|
}
|
|
140
|
+
if (!this._certificateAttachmentLineReference &&
|
|
141
|
+
transactionLineJsonObj._certificateAttachmentLineReference) {
|
|
142
|
+
this._certificateAttachmentLineReference = transactionLineJsonObj._certificateAttachmentLineReference;
|
|
143
|
+
}
|
|
136
144
|
this.loadOriginalInfo(transactionLineJsonObj);
|
|
137
145
|
}
|
|
138
146
|
loadFromCollectedData(collectedData) {
|
|
@@ -167,6 +175,10 @@ class BaseTaxExemptLine extends BaseTransactionLine_1.BaseTransactionLine {
|
|
|
167
175
|
if (!this._presetExemptionRate && collectedData.has(Constants_1.CollectedDataKey.PresetExemptionRate)) {
|
|
168
176
|
this._presetExemptionRate = collectedData.get(Constants_1.CollectedDataKey.PresetExemptionRate);
|
|
169
177
|
}
|
|
178
|
+
if (!this._certificateAttachmentLineReference &&
|
|
179
|
+
collectedData.has(Constants_1.CollectedDataKey.CertificateAttachmentLineReference)) {
|
|
180
|
+
this._certificateAttachmentLineReference = collectedData.get(Constants_1.CollectedDataKey.CertificateAttachmentLineReference);
|
|
181
|
+
}
|
|
170
182
|
}
|
|
171
183
|
loadOriginalInfo(transactionLineJsonObj) {
|
|
172
184
|
if (!this._originalReasonCode && transactionLineJsonObj._originalReasonCode) {
|
|
@@ -19,6 +19,7 @@ export declare abstract class BaseTaxExemptLineDecorator extends BaseLineDecorat
|
|
|
19
19
|
get exemptedTaxAuthorities(): ITaxAuthorityForExemption[];
|
|
20
20
|
get originalExemptedTaxAuthorities(): ITaxAuthorityForExemption[];
|
|
21
21
|
get exemptedItemLineReferences(): ITransactionLineReferenceType[];
|
|
22
|
+
get certificateAttachmentLineReference(): ITransactionLineReferenceType;
|
|
22
23
|
get presetRateExemption(): boolean;
|
|
23
24
|
get presetExemptionCategory(): string;
|
|
24
25
|
get presetExemptionRate(): string;
|
|
@@ -53,6 +53,9 @@ class BaseTaxExemptLineDecorator extends BaseLineDecorator_1.BaseLineDecorator {
|
|
|
53
53
|
get exemptedItemLineReferences() {
|
|
54
54
|
return this.decoratedTransactionLine.exemptedItemLineReferences;
|
|
55
55
|
}
|
|
56
|
+
get certificateAttachmentLineReference() {
|
|
57
|
+
return this.decoratedTransactionLine.certificateAttachmentLineReference;
|
|
58
|
+
}
|
|
56
59
|
get presetRateExemption() {
|
|
57
60
|
return this.decoratedTransactionLine.presetRateExemption;
|
|
58
61
|
}
|
|
@@ -19,4 +19,5 @@ export interface ITaxExemptLine extends ITransactionLine, IVoidableLine {
|
|
|
19
19
|
readonly presetRateExemption?: boolean;
|
|
20
20
|
readonly presetExemptionCategory?: string;
|
|
21
21
|
readonly presetExemptionRate?: string;
|
|
22
|
+
readonly certificateAttachmentLineReference?: ITransactionLineReferenceType;
|
|
22
23
|
}
|
|
@@ -17,7 +17,7 @@ export declare class ItemTaxExemptLine extends BaseTaxExemptLine {
|
|
|
17
17
|
*/
|
|
18
18
|
static create(lineNumber: number, lineType: string, uiBusinessEvent: UiBusinessEvent, collectedData: Readonly<Map<string, any>>): ItemTaxExemptLine;
|
|
19
19
|
static createFromJsonObject(transactionLineJsonObj: any): ItemTaxExemptLine;
|
|
20
|
-
protected constructor(lineNumber: number, lineType: string, taxExemptType: TaxExemptType, certificateId: string, reasonCode?: string, reasonDescription?: string, reasonType?: string, supervisorOverrideLineReference?: ITransactionLineReferenceType, displayName?: string, exemptedTaxAuthorities?: ITaxAuthorityForExemption[], exemptedItemLineReferences?: ITransactionLineReferenceType[], presetRateExemption?: boolean, presetExemptionCategory?: string, presetExemptionRate?: string);
|
|
20
|
+
protected constructor(lineNumber: number, lineType: string, taxExemptType: TaxExemptType, certificateId: string, reasonCode?: string, reasonDescription?: string, reasonType?: string, supervisorOverrideLineReference?: ITransactionLineReferenceType, displayName?: string, exemptedTaxAuthorities?: ITaxAuthorityForExemption[], exemptedItemLineReferences?: ITransactionLineReferenceType[], presetRateExemption?: boolean, presetExemptionCategory?: string, presetExemptionRate?: string, certificateAttachmentLineReference?: ITransactionLineReferenceType);
|
|
21
21
|
protected newTransactionLine(): BaseTransactionLine;
|
|
22
22
|
}
|
|
23
23
|
export declare function isItemTaxExemptLine(transactionLine: ITransactionLine): transactionLine is ItemTaxExemptLine;
|
|
@@ -31,11 +31,11 @@ class ItemTaxExemptLine extends BaseTaxExemptLine_1.BaseTaxExemptLine {
|
|
|
31
31
|
taxExemptLine.loadFromJsonObject(transactionLineJsonObj);
|
|
32
32
|
return taxExemptLine;
|
|
33
33
|
}
|
|
34
|
-
constructor(lineNumber, lineType, taxExemptType, certificateId, reasonCode, reasonDescription, reasonType, supervisorOverrideLineReference, displayName, exemptedTaxAuthorities, exemptedItemLineReferences, presetRateExemption, presetExemptionCategory, presetExemptionRate) {
|
|
35
|
-
super(lineNumber, lineType, taxExemptType, certificateId, reasonCode, reasonDescription, reasonType, supervisorOverrideLineReference, displayName, exemptedTaxAuthorities, exemptedItemLineReferences, presetRateExemption, presetExemptionCategory, presetExemptionRate, certificateId, reasonCode, reasonDescription, displayName, exemptedTaxAuthorities);
|
|
34
|
+
constructor(lineNumber, lineType, taxExemptType, certificateId, reasonCode, reasonDescription, reasonType, supervisorOverrideLineReference, displayName, exemptedTaxAuthorities, exemptedItemLineReferences, presetRateExemption, presetExemptionCategory, presetExemptionRate, certificateAttachmentLineReference) {
|
|
35
|
+
super(lineNumber, lineType, taxExemptType, certificateId, reasonCode, reasonDescription, reasonType, supervisorOverrideLineReference, displayName, exemptedTaxAuthorities, exemptedItemLineReferences, presetRateExemption, presetExemptionCategory, presetExemptionRate, certificateId, reasonCode, reasonDescription, displayName, exemptedTaxAuthorities, certificateAttachmentLineReference);
|
|
36
36
|
}
|
|
37
37
|
newTransactionLine() {
|
|
38
|
-
return new ItemTaxExemptLine(this.lineNumber, this.lineType, this._taxExemptType, this._certificateId, this._reasonCode, this._reasonDescription, this._reasonListType, this._supervisorOverrideLineReference, this._displayName, this._exemptedTaxAuthorities, this._exemptedItemLineReferences, this._presetRateExemption, this._presetExemptionCategory, this._presetExemptionRate);
|
|
38
|
+
return new ItemTaxExemptLine(this.lineNumber, this.lineType, this._taxExemptType, this._certificateId, this._reasonCode, this._reasonDescription, this._reasonListType, this._supervisorOverrideLineReference, this._displayName, this._exemptedTaxAuthorities, this._exemptedItemLineReferences, this._presetRateExemption, this._presetExemptionCategory, this._presetExemptionRate, this._certificateAttachmentLineReference);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
exports.ItemTaxExemptLine = ItemTaxExemptLine;
|
|
@@ -22,7 +22,7 @@ export declare class ModifyItemTaxExemptLine extends BaseTaxExemptLine {
|
|
|
22
22
|
static create(lineNumber: number, lineType: string, uiBusinessEvent: UiBusinessEvent, collectedData: Readonly<Map<string, any>>): ModifyItemTaxExemptLine;
|
|
23
23
|
static createFromJsonObject(transactionLineJsonObj: any): ModifyItemTaxExemptLine;
|
|
24
24
|
get modifiedLineNumber(): ISameTransactionLineReference;
|
|
25
|
-
protected constructor(lineNumber: number, lineType: string, modifiedLineNumber: ISameTransactionLineReference, taxExemptType: TaxExemptType, certificateId: string, reasonCode?: string, reasonDescription?: string, reasonType?: string, supervisorOverrideLineReference?: ITransactionLineReferenceType, displayName?: string, exemptedTaxAuthorities?: ITaxAuthorityForExemption[], exemptedItemLineReferences?: ITransactionLineReferenceType[], presetRateExemption?: boolean, presetExemptionCategory?: string, presetExemptionRate?: string);
|
|
25
|
+
protected constructor(lineNumber: number, lineType: string, modifiedLineNumber: ISameTransactionLineReference, taxExemptType: TaxExemptType, certificateId: string, reasonCode?: string, reasonDescription?: string, reasonType?: string, supervisorOverrideLineReference?: ITransactionLineReferenceType, displayName?: string, exemptedTaxAuthorities?: ITaxAuthorityForExemption[], exemptedItemLineReferences?: ITransactionLineReferenceType[], presetRateExemption?: boolean, presetExemptionCategory?: string, presetExemptionRate?: string, certificateAttachmentLineReference?: ITransactionLineReferenceType);
|
|
26
26
|
protected newTransactionLine(): BaseTransactionLine;
|
|
27
27
|
}
|
|
28
28
|
export declare function isModifyItemTaxExemptLine(transactionLine: ITransactionLine): transactionLine is ModifyItemTaxExemptLine;
|
|
@@ -10,8 +10,8 @@ exports.MODIFY_ITEM_TAX_EXEMPT_LINE_TYPE = "ModifyItemTaxExempt";
|
|
|
10
10
|
* The ModifyTransactionTaxExemptLine Captures the action by the user to modify a transaction tax exempt line
|
|
11
11
|
*/
|
|
12
12
|
class ModifyItemTaxExemptLine extends BaseTaxExemptLine_1.BaseTaxExemptLine {
|
|
13
|
-
constructor(lineNumber, lineType, modifiedLineNumber, taxExemptType, certificateId, reasonCode, reasonDescription, reasonType, supervisorOverrideLineReference, displayName, exemptedTaxAuthorities, exemptedItemLineReferences, presetRateExemption, presetExemptionCategory, presetExemptionRate) {
|
|
14
|
-
super(lineNumber, lineType, taxExemptType, certificateId, reasonCode, reasonDescription, reasonType, supervisorOverrideLineReference, displayName, exemptedTaxAuthorities, exemptedItemLineReferences, presetRateExemption, presetExemptionCategory, presetExemptionRate);
|
|
13
|
+
constructor(lineNumber, lineType, modifiedLineNumber, taxExemptType, certificateId, reasonCode, reasonDescription, reasonType, supervisorOverrideLineReference, displayName, exemptedTaxAuthorities, exemptedItemLineReferences, presetRateExemption, presetExemptionCategory, presetExemptionRate, certificateAttachmentLineReference) {
|
|
14
|
+
super(lineNumber, lineType, taxExemptType, certificateId, reasonCode, reasonDescription, reasonType, supervisorOverrideLineReference, displayName, exemptedTaxAuthorities, exemptedItemLineReferences, presetRateExemption, presetExemptionCategory, presetExemptionRate, undefined, undefined, undefined, undefined, undefined, certificateAttachmentLineReference);
|
|
15
15
|
this._modifiedLineNumber = modifiedLineNumber;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
@@ -50,7 +50,7 @@ class ModifyItemTaxExemptLine extends BaseTaxExemptLine_1.BaseTaxExemptLine {
|
|
|
50
50
|
return this._modifiedLineNumber;
|
|
51
51
|
}
|
|
52
52
|
newTransactionLine() {
|
|
53
|
-
return new ModifyItemTaxExemptLine(this.lineNumber, this.lineType, this._modifiedLineNumber, this._taxExemptType, this._certificateId, this._reasonCode, this._reasonDescription, this._reasonListType, this._supervisorOverrideLineReference, this._displayName, this._exemptedTaxAuthorities, this._exemptedItemLineReferences, this._presetRateExemption, this._presetExemptionCategory, this._presetExemptionRate);
|
|
53
|
+
return new ModifyItemTaxExemptLine(this.lineNumber, this.lineType, this._modifiedLineNumber, this._taxExemptType, this._certificateId, this._reasonCode, this._reasonDescription, this._reasonListType, this._supervisorOverrideLineReference, this._displayName, this._exemptedTaxAuthorities, this._exemptedItemLineReferences, this._presetRateExemption, this._presetExemptionCategory, this._presetExemptionRate, this._certificateAttachmentLineReference);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
exports.ModifyItemTaxExemptLine = ModifyItemTaxExemptLine;
|
|
@@ -22,7 +22,7 @@ export declare class ModifyTransactionTaxExemptLine extends BaseTaxExemptLine {
|
|
|
22
22
|
static create(lineNumber: number, lineType: string, uiBusinessEvent: UiBusinessEvent, collectedData: Readonly<Map<string, any>>): ModifyTransactionTaxExemptLine;
|
|
23
23
|
static createFromJsonObject(transactionLineJsonObj: any): ModifyTransactionTaxExemptLine;
|
|
24
24
|
get modifiedLineNumber(): ISameTransactionLineReference;
|
|
25
|
-
protected constructor(lineNumber: number, lineType: string, modifiedLineNumber: ISameTransactionLineReference, taxExemptType: TaxExemptType, certificateId: string, reasonCode?: string, reasonDescription?: string, reasonType?: string, supervisorOverrideLineReference?: ITransactionLineReferenceType, displayName?: string, exemptedTaxAuthorities?: ITaxAuthorityForExemption[], presetRateExemption?: boolean, presetExemptionCategory?: string, presetExemptionRate?: string);
|
|
25
|
+
protected constructor(lineNumber: number, lineType: string, modifiedLineNumber: ISameTransactionLineReference, taxExemptType: TaxExemptType, certificateId: string, reasonCode?: string, reasonDescription?: string, reasonType?: string, supervisorOverrideLineReference?: ITransactionLineReferenceType, displayName?: string, exemptedTaxAuthorities?: ITaxAuthorityForExemption[], presetRateExemption?: boolean, presetExemptionCategory?: string, presetExemptionRate?: string, certificateAttachmentLineReference?: ITransactionLineReferenceType);
|
|
26
26
|
protected newTransactionLine(): BaseTransactionLine;
|
|
27
27
|
}
|
|
28
28
|
export declare function isModifyTransactionTaxExemptLine(transactionLine: ITransactionLine): transactionLine is ModifyTransactionTaxExemptLine;
|
|
@@ -10,8 +10,8 @@ exports.MODIFY_TRANSACTION_TAX_EXEMPT_LINE_TYPE = "ModifyTransactionTaxExempt";
|
|
|
10
10
|
* The ModifyTransactionTaxExemptLine Captures the action by the user to modify a transaction tax exempt line
|
|
11
11
|
*/
|
|
12
12
|
class ModifyTransactionTaxExemptLine extends BaseTaxExemptLine_1.BaseTaxExemptLine {
|
|
13
|
-
constructor(lineNumber, lineType, modifiedLineNumber, taxExemptType, certificateId, reasonCode, reasonDescription, reasonType, supervisorOverrideLineReference, displayName, exemptedTaxAuthorities, presetRateExemption, presetExemptionCategory, presetExemptionRate) {
|
|
14
|
-
super(lineNumber, lineType, taxExemptType, certificateId, reasonCode, reasonDescription, reasonType, supervisorOverrideLineReference, displayName, exemptedTaxAuthorities, undefined, presetRateExemption, presetExemptionCategory, presetExemptionRate);
|
|
13
|
+
constructor(lineNumber, lineType, modifiedLineNumber, taxExemptType, certificateId, reasonCode, reasonDescription, reasonType, supervisorOverrideLineReference, displayName, exemptedTaxAuthorities, presetRateExemption, presetExemptionCategory, presetExemptionRate, certificateAttachmentLineReference) {
|
|
14
|
+
super(lineNumber, lineType, taxExemptType, certificateId, reasonCode, reasonDescription, reasonType, supervisorOverrideLineReference, displayName, exemptedTaxAuthorities, undefined, presetRateExemption, presetExemptionCategory, presetExemptionRate, undefined, undefined, undefined, undefined, undefined, certificateAttachmentLineReference);
|
|
15
15
|
this._modifiedLineNumber = modifiedLineNumber;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
@@ -50,7 +50,7 @@ class ModifyTransactionTaxExemptLine extends BaseTaxExemptLine_1.BaseTaxExemptLi
|
|
|
50
50
|
return this._modifiedLineNumber;
|
|
51
51
|
}
|
|
52
52
|
newTransactionLine() {
|
|
53
|
-
return new ModifyTransactionTaxExemptLine(this.lineNumber, this.lineType, this._modifiedLineNumber, this._taxExemptType, this._certificateId, this._reasonCode, this._reasonDescription, this._reasonListType, this._supervisorOverrideLineReference, this._displayName, this._exemptedTaxAuthorities, this._presetRateExemption, this._presetExemptionCategory, this._presetExemptionRate);
|
|
53
|
+
return new ModifyTransactionTaxExemptLine(this.lineNumber, this.lineType, this._modifiedLineNumber, this._taxExemptType, this._certificateId, this._reasonCode, this._reasonDescription, this._reasonListType, this._supervisorOverrideLineReference, this._displayName, this._exemptedTaxAuthorities, this._presetRateExemption, this._presetExemptionCategory, this._presetExemptionRate, this._certificateAttachmentLineReference);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
exports.ModifyTransactionTaxExemptLine = ModifyTransactionTaxExemptLine;
|
|
@@ -17,7 +17,7 @@ export declare class TransactionTaxExemptLine extends BaseTaxExemptLine {
|
|
|
17
17
|
*/
|
|
18
18
|
static create(lineNumber: number, lineType: string, uiBusinessEvent: UiBusinessEvent, collectedData: Readonly<Map<string, any>>): TransactionTaxExemptLine;
|
|
19
19
|
static createFromJsonObject(transactionLineJsonObj: any): TransactionTaxExemptLine;
|
|
20
|
-
protected constructor(lineNumber: number, lineType: string, taxExemptType: TaxExemptType, certificateId: string, reasonCode?: string, reasonDescription?: string, reasonType?: string, supervisorOverrideLineReference?: ITransactionLineReferenceType, displayName?: string, exemptedTaxAuthorities?: ITaxAuthorityForExemption[], presetRateExemption?: boolean, presetExemptionCategory?: string, presetExemptionRate?: string);
|
|
20
|
+
protected constructor(lineNumber: number, lineType: string, taxExemptType: TaxExemptType, certificateId: string, reasonCode?: string, reasonDescription?: string, reasonType?: string, supervisorOverrideLineReference?: ITransactionLineReferenceType, displayName?: string, exemptedTaxAuthorities?: ITaxAuthorityForExemption[], presetRateExemption?: boolean, presetExemptionCategory?: string, presetExemptionRate?: string, certificateAttachmentLineReference?: ITransactionLineReferenceType);
|
|
21
21
|
protected newTransactionLine(): BaseTransactionLine;
|
|
22
22
|
}
|
|
23
23
|
export declare function isTransactionTaxExemptLine(transactionLine: ITransactionLine): transactionLine is TransactionTaxExemptLine;
|
|
@@ -31,11 +31,11 @@ class TransactionTaxExemptLine extends BaseTaxExemptLine_1.BaseTaxExemptLine {
|
|
|
31
31
|
taxExemptLine.loadFromJsonObject(transactionLineJsonObj);
|
|
32
32
|
return taxExemptLine;
|
|
33
33
|
}
|
|
34
|
-
constructor(lineNumber, lineType, taxExemptType, certificateId, reasonCode, reasonDescription, reasonType, supervisorOverrideLineReference, displayName, exemptedTaxAuthorities, presetRateExemption, presetExemptionCategory, presetExemptionRate) {
|
|
35
|
-
super(lineNumber, lineType, taxExemptType, certificateId, reasonCode, reasonDescription, reasonType, supervisorOverrideLineReference, displayName, exemptedTaxAuthorities, undefined, presetRateExemption, presetExemptionCategory, presetExemptionRate, certificateId, reasonCode, reasonDescription, displayName, exemptedTaxAuthorities);
|
|
34
|
+
constructor(lineNumber, lineType, taxExemptType, certificateId, reasonCode, reasonDescription, reasonType, supervisorOverrideLineReference, displayName, exemptedTaxAuthorities, presetRateExemption, presetExemptionCategory, presetExemptionRate, certificateAttachmentLineReference) {
|
|
35
|
+
super(lineNumber, lineType, taxExemptType, certificateId, reasonCode, reasonDescription, reasonType, supervisorOverrideLineReference, displayName, exemptedTaxAuthorities, undefined, presetRateExemption, presetExemptionCategory, presetExemptionRate, certificateId, reasonCode, reasonDescription, displayName, exemptedTaxAuthorities, certificateAttachmentLineReference);
|
|
36
36
|
}
|
|
37
37
|
newTransactionLine() {
|
|
38
|
-
return new TransactionTaxExemptLine(this.lineNumber, this.lineType, this._taxExemptType, this._certificateId, this._reasonCode, this._reasonDescription, this._reasonListType, this._supervisorOverrideLineReference, this._displayName, this._exemptedTaxAuthorities, this._presetRateExemption, this._presetExemptionCategory, this._presetExemptionRate);
|
|
38
|
+
return new TransactionTaxExemptLine(this.lineNumber, this.lineType, this._taxExemptType, this._certificateId, this._reasonCode, this._reasonDescription, this._reasonListType, this._supervisorOverrideLineReference, this._displayName, this._exemptedTaxAuthorities, this._presetRateExemption, this._presetExemptionCategory, this._presetExemptionRate, this._certificateAttachmentLineReference);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
exports.TransactionTaxExemptLine = TransactionTaxExemptLine;
|
|
@@ -3,6 +3,7 @@ import { IAttachment } from "@aptos-scp/scp-types-commerce-transaction";
|
|
|
3
3
|
import { BaseTransactionLine } from "../BaseTransactionLine";
|
|
4
4
|
export declare const PAID_IN_ATTACHMENT_LINE_TYPE: string;
|
|
5
5
|
export declare const PAID_OUT_ATTACHMENT_LINE_TYPE: string;
|
|
6
|
+
export declare const TAX_EXEMPT_CERTIFICATE_ATTACHMENT_LINE_TYPE: string;
|
|
6
7
|
export declare class AttachmentLine extends BaseTransactionLine {
|
|
7
8
|
private _attachments;
|
|
8
9
|
private _userComments;
|
|
@@ -4,6 +4,7 @@ const BaseTransactionLine_1 = require("../BaseTransactionLine");
|
|
|
4
4
|
const Constants_1 = require("../Constants");
|
|
5
5
|
exports.PAID_IN_ATTACHMENT_LINE_TYPE = "PaidInReceiptAttachment";
|
|
6
6
|
exports.PAID_OUT_ATTACHMENT_LINE_TYPE = "PaidOutReceiptAttachment";
|
|
7
|
+
exports.TAX_EXEMPT_CERTIFICATE_ATTACHMENT_LINE_TYPE = "TaxExemptCertificateAttachment";
|
|
7
8
|
class AttachmentLine extends BaseTransactionLine_1.BaseTransactionLine {
|
|
8
9
|
constructor(lineNumber, lineType, attachments, userComments) {
|
|
9
10
|
super(lineNumber, lineType);
|
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.2.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",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"lint": "eslint -c .eslintrc.json --ext .ts \"@(src|test)/**/*.ts?(x)\"",
|
|
29
29
|
"pretest": "npm run clean:test",
|
|
30
30
|
"test:ci": "LOG_LEVEL=ALL nyc mocha $NODE_DEBUG_OPTION --no-opts --no-config",
|
|
31
|
-
"test": "LOG_LEVEL=OFF nyc mocha $NODE_DEBUG_OPTION --no-opts --no-config",
|
|
31
|
+
"test": "LOG_LEVEL=OFF nyc mocha $NODE_DEBUG_OPTION --no-opts --no-config --reporter mocha-junit-reporter --reporter-options mochaFile=./reports/test-results.xml",
|
|
32
32
|
"test:no-coverage": "LOG_LEVEL=OFF mocha $NODE_DEBUG_OPTION --no-opts --no-config",
|
|
33
33
|
"sonar:ci": "./sonar.sh",
|
|
34
34
|
"publishPacts:ci": "node test-js/test/test-helpers/publish-pacts",
|
|
@@ -122,6 +122,7 @@
|
|
|
122
122
|
"eslint": "^8.10.0",
|
|
123
123
|
"inversify": "^5.0.1",
|
|
124
124
|
"mocha": "^6.1.4",
|
|
125
|
+
"mocha-junit-reporter": "^2.2.1",
|
|
125
126
|
"node-fetch": "^2.3.0",
|
|
126
127
|
"nyc": "^13.3.0",
|
|
127
128
|
"path": "^0.12.7",
|