@aptos-scp/scp-component-store-selling-features-domain-model 2.9.0 → 2.10.1
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/UIBusinessEventTypes.d.ts +2 -0
- package/lib/domain/UIBusinessEventTypes.js +2 -0
- package/lib/domain/model/Constants.d.ts +1 -0
- package/lib/domain/model/Constants.js +1 -0
- package/lib/domain/model/MerchandiseTransaction.d.ts +3 -0
- package/lib/domain/model/MerchandiseTransaction.js +13 -0
- package/package.json +1 -1
|
@@ -322,3 +322,5 @@ export declare const UPDATE_LINE_DISPLAY_EVENT: string;
|
|
|
322
322
|
export declare const AUTO_LOG_ON_EVENT: string;
|
|
323
323
|
export declare const TRANSACTION_VOID_RECOVER_RECEIPT_EVENT: string;
|
|
324
324
|
export declare const PAY_ON_ACCOUNT_EVENT: string;
|
|
325
|
+
export declare const COUNTRY_BOX_START_TRANSACTION_EVENT: string;
|
|
326
|
+
export declare const COUNTRY_BOX_FINISH_TRANSACTION_EVENT: string;
|
|
@@ -329,4 +329,6 @@ exports.UPDATE_LINE_DISPLAY_EVENT = "UpdateLineDisplay";
|
|
|
329
329
|
exports.AUTO_LOG_ON_EVENT = "AutoLogOn";
|
|
330
330
|
exports.TRANSACTION_VOID_RECOVER_RECEIPT_EVENT = "TransactionVoidRecoverReceipt";
|
|
331
331
|
exports.PAY_ON_ACCOUNT_EVENT = "PayOnAccount";
|
|
332
|
+
exports.COUNTRY_BOX_START_TRANSACTION_EVENT = "CountryBoxStartTransactionEvent";
|
|
333
|
+
exports.COUNTRY_BOX_FINISH_TRANSACTION_EVENT = "CountryBoxFinishTransactionEvent";
|
|
332
334
|
//# sourceMappingURL=UIBusinessEventTypes.js.map
|
|
@@ -492,6 +492,7 @@ export declare enum CollectedDataKey {
|
|
|
492
492
|
Comment = "comment",
|
|
493
493
|
Contact = "contact",
|
|
494
494
|
ContactVerification = "contactVerification",
|
|
495
|
+
CountryBoxConfiguration = "countryBoxConfiguration",
|
|
495
496
|
CountryCode = "countryCode",
|
|
496
497
|
CouponAuthorizationRequired = "couponAuthorizationRequired",
|
|
497
498
|
CouponCode = "couponCode",
|
|
@@ -499,6 +499,7 @@ var CollectedDataKey;
|
|
|
499
499
|
CollectedDataKey["Comment"] = "comment";
|
|
500
500
|
CollectedDataKey["Contact"] = "contact";
|
|
501
501
|
CollectedDataKey["ContactVerification"] = "contactVerification";
|
|
502
|
+
CollectedDataKey["CountryBoxConfiguration"] = "countryBoxConfiguration";
|
|
502
503
|
CollectedDataKey["CountryCode"] = "countryCode";
|
|
503
504
|
CollectedDataKey["CouponAuthorizationRequired"] = "couponAuthorizationRequired";
|
|
504
505
|
CollectedDataKey["CouponCode"] = "couponCode";
|
|
@@ -166,6 +166,7 @@ export declare class MerchandiseTransaction extends RetailTransaction implements
|
|
|
166
166
|
private _transactionTotalExcludingPreviouslyCollected;
|
|
167
167
|
private _transactionSubTotalExcludingPreviouslyCollectedExcludingTax;
|
|
168
168
|
private _fiscalError?;
|
|
169
|
+
private _hasFiscalizationCompleted?;
|
|
169
170
|
static createFromJsonObj(transactionJsonObj: any, transactionLineFactory: ITransactionLineFactory, transactionReferenceFormatter: ITransactionReferenceFormatter): MerchandiseTransaction;
|
|
170
171
|
constructor(deviceIdentity: DeviceIdentity, businessDayDate: string, transactionNumber: number, accountingCurrency: string, transactionReferenceFormatter: ITransactionReferenceFormatter, governmentIssuedIds?: GovernmentBusinessId[], performingUser?: IUser, transactionId?: string, giftReceiptMode?: GiftReceiptMode, giftReceipt?: boolean, totalsBeforeVoid?: TotalsBeforeVoid, unusedCoupons?: Coupon[], employeeCustomer?: IEmployee, invoiceNumber?: string, invoiceSequenceNumber?: number, taxLotteryNumber?: string, order?: Order, invoiceSequenceNumberGenerator?: string, taxLotteryCustomerCode?: string, taxScanCodeData?: string, fiscalSignature?: IFiscalSignature, requiresVoid?: boolean, eInvoiceReference?: string, prepaidTendersToApply?: IPrepaidTenderToApply[], digestValue?: string, potentialPromotions?: PotentialPromotion[]);
|
|
171
172
|
clone(): ITransaction;
|
|
@@ -253,6 +254,7 @@ export declare class MerchandiseTransaction extends RetailTransaction implements
|
|
|
253
254
|
get transactionTaxExemptAmount(): Money;
|
|
254
255
|
get transactionTaxAdjustmentAmount(): Money;
|
|
255
256
|
get fiscalError(): IFiscalError;
|
|
257
|
+
get hasFiscalizationCompleted(): boolean;
|
|
256
258
|
get tradeType(): MerchandiseTransactionTradeType;
|
|
257
259
|
get taxLotteryNumber(): string;
|
|
258
260
|
get taxLotteryCustomerCode(): string;
|
|
@@ -298,6 +300,7 @@ export declare class MerchandiseTransaction extends RetailTransaction implements
|
|
|
298
300
|
assignFiscalTypeCode(fiscalTypeCode: string): ITransaction;
|
|
299
301
|
assignFiscalTransactionSequenceNumber(fiscalTransactionSequenceNumber: number, fiscalTransactionSequenceNumberGenerator: string): ITransaction;
|
|
300
302
|
setFiscalError(fiscalError: IFiscalError): ITransaction;
|
|
303
|
+
setHasFiscalizationCompleted(hasFiscalizationCompleted: boolean): ITransaction;
|
|
301
304
|
assignOrderReferenceSequenceNumber(orderReferenceSequenceNumber: number, orderReferenceSequenceNumberGenerator: string): ITransaction;
|
|
302
305
|
assignInvoiceFiscalTransactionNumber(invoiceTransactionNumber: number, invoiceFiscalTransactionNumber: string): ITransaction;
|
|
303
306
|
assignTaxlotteryNumber(taxLotteryNumber: string): ITransaction;
|
|
@@ -84,6 +84,7 @@ class MerchandiseTransaction extends RetailTransaction_1.RetailTransaction {
|
|
|
84
84
|
this._transactionTaxExemptAmount = undefined;
|
|
85
85
|
this._transactionTaxAdjustmentAmount = undefined;
|
|
86
86
|
this._fiscalError = undefined;
|
|
87
|
+
this._hasFiscalizationCompleted = false;
|
|
87
88
|
this._tradeType = undefined;
|
|
88
89
|
this._denominationRounding = new scp_component_business_core_1.Money(0, accountingCurrency);
|
|
89
90
|
this._order = order;
|
|
@@ -199,6 +200,7 @@ class MerchandiseTransaction extends RetailTransaction_1.RetailTransaction {
|
|
|
199
200
|
transaction._transactionTaxExemptAmount = this._transactionTaxExemptAmount;
|
|
200
201
|
transaction._transactionTaxAdjustmentAmount = this._transactionTaxAdjustmentAmount;
|
|
201
202
|
transaction._fiscalError = this._fiscalError;
|
|
203
|
+
transaction._hasFiscalizationCompleted = this._hasFiscalizationCompleted;
|
|
202
204
|
transaction._tradeType = this._tradeType;
|
|
203
205
|
transaction._taxLotteryNumber = this._taxLotteryNumber;
|
|
204
206
|
transaction._denominationRounding = this._denominationRounding;
|
|
@@ -495,6 +497,9 @@ class MerchandiseTransaction extends RetailTransaction_1.RetailTransaction {
|
|
|
495
497
|
get fiscalError() {
|
|
496
498
|
return this._fiscalError;
|
|
497
499
|
}
|
|
500
|
+
get hasFiscalizationCompleted() {
|
|
501
|
+
return this._hasFiscalizationCompleted;
|
|
502
|
+
}
|
|
498
503
|
get tradeType() {
|
|
499
504
|
return this._tradeType;
|
|
500
505
|
}
|
|
@@ -715,6 +720,11 @@ class MerchandiseTransaction extends RetailTransaction_1.RetailTransaction {
|
|
|
715
720
|
newTransaction._fiscalError = fiscalError;
|
|
716
721
|
return newTransaction;
|
|
717
722
|
}
|
|
723
|
+
setHasFiscalizationCompleted(hasFiscalizationCompleted) {
|
|
724
|
+
const newTransaction = this.clone();
|
|
725
|
+
newTransaction._hasFiscalizationCompleted = hasFiscalizationCompleted;
|
|
726
|
+
return newTransaction;
|
|
727
|
+
}
|
|
718
728
|
assignOrderReferenceSequenceNumber(orderReferenceSequenceNumber, orderReferenceSequenceNumberGenerator) {
|
|
719
729
|
const newTransaction = this.clone();
|
|
720
730
|
newTransaction._orderReferenceSequenceNumber = orderReferenceSequenceNumber;
|
|
@@ -891,6 +901,7 @@ class MerchandiseTransaction extends RetailTransaction_1.RetailTransaction {
|
|
|
891
901
|
["transaction.taxExemptAmount", this._transactionTaxExemptAmount],
|
|
892
902
|
["transaction.transactionTaxAdjustmentAmount", this._transactionTaxAdjustmentAmount],
|
|
893
903
|
["transaction.fiscalError", this._fiscalError],
|
|
904
|
+
["transaction.hasFiscalizationCompleted", this._hasFiscalizationCompleted],
|
|
894
905
|
["transaction.tradeType", this._tradeType],
|
|
895
906
|
["transaction.signatureCollected", this.signatureCollected],
|
|
896
907
|
["transaction.itemPickupSignatureCollected", this.itemPickupSignatureCollected],
|
|
@@ -1018,6 +1029,7 @@ class MerchandiseTransaction extends RetailTransaction_1.RetailTransaction {
|
|
|
1018
1029
|
_transactionTaxExemptAmount: this._transactionTaxExemptAmount,
|
|
1019
1030
|
_transactionTaxAdjustmentAmount: this._transactionTaxAdjustmentAmount,
|
|
1020
1031
|
_fiscalError: this._fiscalError,
|
|
1032
|
+
_hasFiscalizationCompleted: this._hasFiscalizationCompleted,
|
|
1021
1033
|
_transactionSubTotalAfterTaxAdjustment: this._transactionSubTotalAfterTaxAdjustment,
|
|
1022
1034
|
_transactionTotalFeeAfterTaxAdjustment: this._transactionTotalFeeAfterTaxAdjustment,
|
|
1023
1035
|
_tradeType: this._tradeType,
|
|
@@ -1170,6 +1182,7 @@ class MerchandiseTransaction extends RetailTransaction_1.RetailTransaction {
|
|
|
1170
1182
|
? new scp_component_business_core_1.Money(transactionJsonObj._transactionTaxAdjustmentAmount)
|
|
1171
1183
|
: undefined;
|
|
1172
1184
|
this._fiscalError = transactionJsonObj._fiscalError;
|
|
1185
|
+
this._hasFiscalizationCompleted = transactionJsonObj._hasFiscalizationCompleted;
|
|
1173
1186
|
this._tradeType = findMerchandiseTransactionTradeType(transactionJsonObj._tradeType);
|
|
1174
1187
|
this._taxLotteryNumber = transactionJsonObj._taxLotteryNumber;
|
|
1175
1188
|
this._denominationRounding =
|
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.
|
|
3
|
+
"version": "2.10.1",
|
|
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",
|