@aptos-scp/scp-component-store-selling-features-domain-model 1.0.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/LICENSE.md +1 -0
- package/README.md +96 -0
- package/lib/config/DiTypes.d.ts +6 -0
- package/lib/config/DiTypes.js +10 -0
- package/lib/config/ErrorCodes.d.ts +10 -0
- package/lib/config/ErrorCodes.js +14 -0
- package/lib/config/index.d.ts +3 -0
- package/lib/config/index.js +9 -0
- package/lib/config/inversify/binding-helpers.d.ts +3 -0
- package/lib/config/inversify/binding-helpers.js +7 -0
- package/lib/config/inversify/index.d.ts +3 -0
- package/lib/config/inversify/index.js +9 -0
- package/lib/config/inversify/inversify.app.config.d.ts +19 -0
- package/lib/config/inversify/inversify.app.config.js +45 -0
- package/lib/config/inversify/inversify.terminal.config/index.d.ts +1 -0
- package/lib/config/inversify/inversify.terminal.config/index.js +7 -0
- package/lib/config/inversify/inversify.terminal.config/transaction-services.config.d.ts +11 -0
- package/lib/config/inversify/inversify.terminal.config/transaction-services.config.js +30 -0
- package/lib/domain/UIBusinessEventTypes.d.ts +305 -0
- package/lib/domain/UIBusinessEventTypes.js +313 -0
- package/lib/domain/index.d.ts +5 -0
- package/lib/domain/index.js +10 -0
- package/lib/domain/model/AddressVerification.d.ts +21 -0
- package/lib/domain/model/AddressVerification.js +3 -0
- package/lib/domain/model/ApplicationControlTransaction.d.ts +13 -0
- package/lib/domain/model/ApplicationControlTransaction.js +47 -0
- package/lib/domain/model/AtcudCodePrefixData.d.ts +19 -0
- package/lib/domain/model/AtcudCodePrefixData.js +3 -0
- package/lib/domain/model/BaseLineDecorator.d.ts +83 -0
- package/lib/domain/model/BaseLineDecorator.js +216 -0
- package/lib/domain/model/BaseTransactionLine.d.ts +71 -0
- package/lib/domain/model/BaseTransactionLine.js +183 -0
- package/lib/domain/model/CashDrawerDetail.d.ts +21 -0
- package/lib/domain/model/CashDrawerDetail.js +3 -0
- package/lib/domain/model/Constants.d.ts +977 -0
- package/lib/domain/model/Constants.js +985 -0
- package/lib/domain/model/CorruptedTransaction.d.ts +16 -0
- package/lib/domain/model/CorruptedTransaction.js +58 -0
- package/lib/domain/model/Coupon.d.ts +8 -0
- package/lib/domain/model/Coupon.js +3 -0
- package/lib/domain/model/CreateEinvoiceLine.d.ts +32 -0
- package/lib/domain/model/CreateEinvoiceLine.js +71 -0
- package/lib/domain/model/Customer.d.ts +387 -0
- package/lib/domain/model/Customer.js +320 -0
- package/lib/domain/model/CustomerServiceTransaction.d.ts +12 -0
- package/lib/domain/model/CustomerServiceTransaction.js +39 -0
- package/lib/domain/model/Department.d.ts +15 -0
- package/lib/domain/model/Department.js +3 -0
- package/lib/domain/model/EmailVerification.d.ts +24 -0
- package/lib/domain/model/EmailVerification.js +35 -0
- package/lib/domain/model/Employee.d.ts +80 -0
- package/lib/domain/model/Employee.js +73 -0
- package/lib/domain/model/EndOfTransactionTenderingSession.d.ts +39 -0
- package/lib/domain/model/EndOfTransactionTenderingSession.js +89 -0
- package/lib/domain/model/ExchangeRates.d.ts +13 -0
- package/lib/domain/model/ExchangeRates.js +8 -0
- package/lib/domain/model/FiscalControlTransaction.d.ts +12 -0
- package/lib/domain/model/FiscalControlTransaction.js +43 -0
- package/lib/domain/model/FulfillmentGroup.d.ts +35 -0
- package/lib/domain/model/FulfillmentGroup.js +137 -0
- package/lib/domain/model/IAppLocalFeaturesStorage.d.ts +78 -0
- package/lib/domain/model/IAppLocalFeaturesStorage.js +3 -0
- package/lib/domain/model/ICreateEinvoiceLine.d.ts +9 -0
- package/lib/domain/model/ICreateEinvoiceLine.js +3 -0
- package/lib/domain/model/IEmployeeDiscount.d.ts +15 -0
- package/lib/domain/model/IEmployeeDiscount.js +3 -0
- package/lib/domain/model/IFiscalTransactionNumberMaintainer.d.ts +10 -0
- package/lib/domain/model/IFiscalTransactionNumberMaintainer.js +8 -0
- package/lib/domain/model/IInvoiceOperation.d.ts +10 -0
- package/lib/domain/model/IInvoiceOperation.js +8 -0
- package/lib/domain/model/ILastRetailTransactionInfo.d.ts +13 -0
- package/lib/domain/model/ILastRetailTransactionInfo.js +3 -0
- package/lib/domain/model/ILastTransactionStatus.d.ts +5 -0
- package/lib/domain/model/ILastTransactionStatus.js +3 -0
- package/lib/domain/model/ILoyaltyVoucher.d.ts +28 -0
- package/lib/domain/model/ILoyaltyVoucher.js +9 -0
- package/lib/domain/model/IPrinterInfo.d.ts +6 -0
- package/lib/domain/model/IPrinterInfo.js +3 -0
- package/lib/domain/model/ISequence.d.ts +8 -0
- package/lib/domain/model/ISequence.js +3 -0
- package/lib/domain/model/IServiceResultLine.d.ts +4 -0
- package/lib/domain/model/IServiceResultLine.js +3 -0
- package/lib/domain/model/ISingleUseCoupon.d.ts +22 -0
- package/lib/domain/model/ISingleUseCoupon.js +38 -0
- package/lib/domain/model/ITransactionMetadataPersistanceObject.d.ts +12 -0
- package/lib/domain/model/ITransactionMetadataPersistanceObject.js +3 -0
- package/lib/domain/model/Inventory.d.ts +156 -0
- package/lib/domain/model/Inventory.js +78 -0
- package/lib/domain/model/ItemHandlingSession.d.ts +40 -0
- package/lib/domain/model/ItemHandlingSession.js +131 -0
- package/lib/domain/model/LoyaltyMembership.d.ts +153 -0
- package/lib/domain/model/LoyaltyMembership.js +23 -0
- package/lib/domain/model/MerchandiseTransaction.d.ts +310 -0
- package/lib/domain/model/MerchandiseTransaction.js +1299 -0
- package/lib/domain/model/MetricsLogs.d.ts +41 -0
- package/lib/domain/model/MetricsLogs.js +3 -0
- package/lib/domain/model/MunicipalFiscalCode.d.ts +25 -0
- package/lib/domain/model/MunicipalFiscalCode.js +3 -0
- package/lib/domain/model/NoSaleTransaction.d.ts +13 -0
- package/lib/domain/model/NoSaleTransaction.js +49 -0
- package/lib/domain/model/Order.d.ts +67 -0
- package/lib/domain/model/Order.js +190 -0
- package/lib/domain/model/OrderTotals.d.ts +44 -0
- package/lib/domain/model/OrderTotals.js +76 -0
- package/lib/domain/model/Organization.d.ts +99 -0
- package/lib/domain/model/Organization.js +3 -0
- package/lib/domain/model/PrepaidTender.d.ts +14 -0
- package/lib/domain/model/PrepaidTender.js +3 -0
- package/lib/domain/model/ReceiptSession.d.ts +87 -0
- package/lib/domain/model/ReceiptSession.js +206 -0
- package/lib/domain/model/ReprintReceiptTransaction.d.ts +49 -0
- package/lib/domain/model/ReprintReceiptTransaction.js +179 -0
- package/lib/domain/model/ResumeTransactionSession.d.ts +22 -0
- package/lib/domain/model/ResumeTransactionSession.js +56 -0
- package/lib/domain/model/RetailTransaction.d.ts +127 -0
- package/lib/domain/model/RetailTransaction.js +556 -0
- package/lib/domain/model/Sendsale.d.ts +4 -0
- package/lib/domain/model/Sendsale.js +3 -0
- package/lib/domain/model/StoreItem.d.ts +175 -0
- package/lib/domain/model/StoreItem.js +750 -0
- package/lib/domain/model/StoredValueCardSession.d.ts +29 -0
- package/lib/domain/model/StoredValueCardSession.js +65 -0
- package/lib/domain/model/StoredValueCertificateSession.d.ts +47 -0
- package/lib/domain/model/StoredValueCertificateSession.js +153 -0
- package/lib/domain/model/SubscriptionTokenSession.d.ts +22 -0
- package/lib/domain/model/SubscriptionTokenSession.js +60 -0
- package/lib/domain/model/Subscriptions.d.ts +12 -0
- package/lib/domain/model/Subscriptions.js +3 -0
- package/lib/domain/model/TaxRefundControlTransaction.d.ts +13 -0
- package/lib/domain/model/TaxRefundControlTransaction.js +50 -0
- package/lib/domain/model/TenderAuthorizationSession.d.ts +102 -0
- package/lib/domain/model/TenderAuthorizationSession.js +337 -0
- package/lib/domain/model/TenderControlTransaction.d.ts +30 -0
- package/lib/domain/model/TenderControlTransaction.js +138 -0
- package/lib/domain/model/TenderHandlingSession.d.ts +100 -0
- package/lib/domain/model/TenderHandlingSession.js +379 -0
- package/lib/domain/model/TenderType.d.ts +161 -0
- package/lib/domain/model/TenderType.js +1317 -0
- package/lib/domain/model/TerminalControlTransaction.d.ts +14 -0
- package/lib/domain/model/TerminalControlTransaction.js +55 -0
- package/lib/domain/model/TerminalSession.d.ts +49 -0
- package/lib/domain/model/TerminalSession.js +122 -0
- package/lib/domain/model/TillControlTransaction.d.ts +20 -0
- package/lib/domain/model/TillControlTransaction.js +79 -0
- package/lib/domain/model/TillSession.d.ts +67 -0
- package/lib/domain/model/TillSession.js +222 -0
- package/lib/domain/model/TransactionFlowState.d.ts +26 -0
- package/lib/domain/model/TransactionFlowState.js +72 -0
- package/lib/domain/model/TransactionReferenceLine.d.ts +112 -0
- package/lib/domain/model/TransactionReferenceLine.js +323 -0
- package/lib/domain/model/User.d.ts +115 -0
- package/lib/domain/model/User.js +210 -0
- package/lib/domain/model/UserSession.d.ts +36 -0
- package/lib/domain/model/UserSession.js +186 -0
- package/lib/domain/model/UserTransaction.d.ts +12 -0
- package/lib/domain/model/UserTransaction.js +38 -0
- package/lib/domain/model/VoidInterfaces.d.ts +15 -0
- package/lib/domain/model/VoidInterfaces.js +23 -0
- package/lib/domain/model/cashDrawer/CashDrawerRequestLine.d.ts +17 -0
- package/lib/domain/model/cashDrawer/CashDrawerRequestLine.js +50 -0
- package/lib/domain/model/cashDrawer/CashDrawerSession.d.ts +67 -0
- package/lib/domain/model/cashDrawer/CashDrawerSession.js +211 -0
- package/lib/domain/model/cashDrawer/CashDrawerStatusChangeLine.d.ts +30 -0
- package/lib/domain/model/cashDrawer/CashDrawerStatusChangeLine.js +86 -0
- package/lib/domain/model/cashDrawer/ICashDrawerRequestLine.d.ts +6 -0
- package/lib/domain/model/cashDrawer/ICashDrawerRequestLine.js +3 -0
- package/lib/domain/model/cashDrawer/ICashDrawerStatusChangeLine.d.ts +13 -0
- package/lib/domain/model/cashDrawer/ICashDrawerStatusChangeLine.js +3 -0
- package/lib/domain/model/cashDrawer/index.d.ts +5 -0
- package/lib/domain/model/cashDrawer/index.js +9 -0
- package/lib/domain/model/configuration/ConfigurationUtils.d.ts +3 -0
- package/lib/domain/model/configuration/ConfigurationUtils.js +8 -0
- package/lib/domain/model/configuration/DataEntryRule.d.ts +31 -0
- package/lib/domain/model/configuration/DataEntryRule.js +303 -0
- package/lib/domain/model/configuration/I18nReceiptFormattingInterface.d.ts +38 -0
- package/lib/domain/model/configuration/I18nReceiptFormattingInterface.js +3 -0
- package/lib/domain/model/configuration/I18nTaxFreeConfig.d.ts +11 -0
- package/lib/domain/model/configuration/I18nTaxFreeConfig.js +3 -0
- package/lib/domain/model/configuration/IAccessPolicyConfig.d.ts +5 -0
- package/lib/domain/model/configuration/IAccessPolicyConfig.js +3 -0
- package/lib/domain/model/configuration/IAdapterPoliciesConfig.d.ts +24 -0
- package/lib/domain/model/configuration/IAdapterPoliciesConfig.js +13 -0
- package/lib/domain/model/configuration/IConditionalAttributeBehaviorRuleConfig.d.ts +32 -0
- package/lib/domain/model/configuration/IConditionalAttributeBehaviorRuleConfig.js +8 -0
- package/lib/domain/model/configuration/ICustomerConfig.d.ts +31 -0
- package/lib/domain/model/configuration/ICustomerConfig.js +15 -0
- package/lib/domain/model/configuration/IDataEntryRuleConfig.d.ts +66 -0
- package/lib/domain/model/configuration/IDataEntryRuleConfig.js +22 -0
- package/lib/domain/model/configuration/IDiscountAttributesConfig .d.ts +26 -0
- package/lib/domain/model/configuration/IDiscountAttributesConfig .js +8 -0
- package/lib/domain/model/configuration/IDiscountBehaviorsConfig.d.ts +27 -0
- package/lib/domain/model/configuration/IDiscountBehaviorsConfig.js +21 -0
- package/lib/domain/model/configuration/IDonationBehaviorsConfig.d.ts +9 -0
- package/lib/domain/model/configuration/IDonationBehaviorsConfig.js +3 -0
- package/lib/domain/model/configuration/IFeatureAccessConfig.d.ts +186 -0
- package/lib/domain/model/configuration/IFeatureAccessConfig.js +51 -0
- package/lib/domain/model/configuration/IFeesConfig.d.ts +109 -0
- package/lib/domain/model/configuration/IFeesConfig.js +86 -0
- package/lib/domain/model/configuration/IPrinterTypeConfig.d.ts +25 -0
- package/lib/domain/model/configuration/IPrinterTypeConfig.js +3 -0
- package/lib/domain/model/configuration/IProductInquiryBehaviorsConfig.d.ts +8 -0
- package/lib/domain/model/configuration/IProductInquiryBehaviorsConfig.js +8 -0
- package/lib/domain/model/configuration/IReasonCodesConfig.d.ts +16 -0
- package/lib/domain/model/configuration/IReasonCodesConfig.js +3 -0
- package/lib/domain/model/configuration/IReceiptConfig.d.ts +64 -0
- package/lib/domain/model/configuration/IReceiptConfig.js +24 -0
- package/lib/domain/model/configuration/IReceiptFormattingConfig.d.ts +155 -0
- package/lib/domain/model/configuration/IReceiptFormattingConfig.js +27 -0
- package/lib/domain/model/configuration/IReceiptStylingConfig.d.ts +52 -0
- package/lib/domain/model/configuration/IReceiptStylingConfig.js +18 -0
- package/lib/domain/model/configuration/IReserveInventoryConfig.d.ts +4 -0
- package/lib/domain/model/configuration/IReserveInventoryConfig.js +8 -0
- package/lib/domain/model/configuration/ISelfCheckoutModeBehaviorsConfig.d.ts +14 -0
- package/lib/domain/model/configuration/ISelfCheckoutModeBehaviorsConfig.js +3 -0
- package/lib/domain/model/configuration/ISequenceConfig.d.ts +44 -0
- package/lib/domain/model/configuration/ISequenceConfig.js +26 -0
- package/lib/domain/model/configuration/IStoreOperationsBehavior.d.ts +7 -0
- package/lib/domain/model/configuration/IStoreOperationsBehavior.js +8 -0
- package/lib/domain/model/configuration/IStoreShippingMethodConfig.d.ts +21 -0
- package/lib/domain/model/configuration/IStoreShippingMethodConfig.js +3 -0
- package/lib/domain/model/configuration/ITaxBehaviorConfig.d.ts +14 -0
- package/lib/domain/model/configuration/ITaxBehaviorConfig.js +3 -0
- package/lib/domain/model/configuration/ITaxRefundConfig.d.ts +8 -0
- package/lib/domain/model/configuration/ITaxRefundConfig.js +3 -0
- package/lib/domain/model/configuration/ITendersConfig.d.ts +88 -0
- package/lib/domain/model/configuration/ITendersConfig.js +22 -0
- package/lib/domain/model/configuration/Ii18n.d.ts +4 -0
- package/lib/domain/model/configuration/Ii18n.js +3 -0
- package/lib/domain/model/configuration/TaxLottery.d.ts +4 -0
- package/lib/domain/model/configuration/TaxLottery.js +8 -0
- package/lib/domain/model/configuration/index.d.ts +30 -0
- package/lib/domain/model/configuration/index.js +25 -0
- package/lib/domain/model/customer/CreateCustomerLine.d.ts +151 -0
- package/lib/domain/model/customer/CreateCustomerLine.js +312 -0
- package/lib/domain/model/customer/CustomerLine.d.ts +43 -0
- package/lib/domain/model/customer/CustomerLine.js +109 -0
- package/lib/domain/model/customer/ICreateCustomerLine.d.ts +16 -0
- package/lib/domain/model/customer/ICreateCustomerLine.js +3 -0
- package/lib/domain/model/customer/ICustomerI18nFormats.d.ts +126 -0
- package/lib/domain/model/customer/ICustomerI18nFormats.js +67 -0
- package/lib/domain/model/customer/ICustomerLine.d.ts +8 -0
- package/lib/domain/model/customer/ICustomerLine.js +3 -0
- package/lib/domain/model/customer/ITaxCustomerLine.d.ts +46 -0
- package/lib/domain/model/customer/ITaxCustomerLine.js +3 -0
- package/lib/domain/model/customer/IUpdateCustomerLine.d.ts +30 -0
- package/lib/domain/model/customer/IUpdateCustomerLine.js +3 -0
- package/lib/domain/model/customer/TaxCustomerLine.d.ts +105 -0
- package/lib/domain/model/customer/TaxCustomerLine.js +252 -0
- package/lib/domain/model/customer/UpdateCustomerLine.d.ts +148 -0
- package/lib/domain/model/customer/UpdateCustomerLine.js +296 -0
- package/lib/domain/model/customer/index.d.ts +9 -0
- package/lib/domain/model/customer/index.js +11 -0
- package/lib/domain/model/digitalSignature/DigitalSignatureFailureLine.d.ts +11 -0
- package/lib/domain/model/digitalSignature/DigitalSignatureFailureLine.js +33 -0
- package/lib/domain/model/digitalSignature/index.d.ts +1 -0
- package/lib/domain/model/digitalSignature/index.js +7 -0
- package/lib/domain/model/discounts/BaseManualDiscountLine.d.ts +119 -0
- package/lib/domain/model/discounts/BaseManualDiscountLine.js +435 -0
- package/lib/domain/model/discounts/BaseManualDiscountLineDecorator.d.ts +42 -0
- package/lib/domain/model/discounts/BaseManualDiscountLineDecorator.js +107 -0
- package/lib/domain/model/discounts/BasePromotionCouponLine.d.ts +22 -0
- package/lib/domain/model/discounts/BasePromotionCouponLine.js +45 -0
- package/lib/domain/model/discounts/BasePromotionCouponLineDecorator.d.ts +15 -0
- package/lib/domain/model/discounts/BasePromotionCouponLineDecorator.js +38 -0
- package/lib/domain/model/discounts/ExpiredCouponOverrideLine.d.ts +27 -0
- package/lib/domain/model/discounts/ExpiredCouponOverrideLine.js +54 -0
- package/lib/domain/model/discounts/IManualDiscountLine.d.ts +33 -0
- package/lib/domain/model/discounts/IManualDiscountLine.js +3 -0
- package/lib/domain/model/discounts/IPromotionCouponLine.d.ts +10 -0
- package/lib/domain/model/discounts/IPromotionCouponLine.js +3 -0
- package/lib/domain/model/discounts/LoyaltyActivityDiscountLineTotalDecorator.d.ts +15 -0
- package/lib/domain/model/discounts/LoyaltyActivityDiscountLineTotalDecorator.js +32 -0
- package/lib/domain/model/discounts/LoyaltyDiscountLine.d.ts +52 -0
- package/lib/domain/model/discounts/LoyaltyDiscountLine.js +131 -0
- package/lib/domain/model/discounts/LoyaltyDiscountLineTotalDecorator.d.ts +26 -0
- package/lib/domain/model/discounts/LoyaltyDiscountLineTotalDecorator.js +66 -0
- package/lib/domain/model/discounts/ManualDiscountLineModificationDecorator.d.ts +49 -0
- package/lib/domain/model/discounts/ManualDiscountLineModificationDecorator.js +143 -0
- package/lib/domain/model/discounts/ManualDiscountLineTotalDecorator.d.ts +15 -0
- package/lib/domain/model/discounts/ManualDiscountLineTotalDecorator.js +32 -0
- package/lib/domain/model/discounts/ManualItemDiscountLine.d.ts +27 -0
- package/lib/domain/model/discounts/ManualItemDiscountLine.js +53 -0
- package/lib/domain/model/discounts/ManualTransactionDiscountLine.d.ts +22 -0
- package/lib/domain/model/discounts/ManualTransactionDiscountLine.js +40 -0
- package/lib/domain/model/discounts/ModifyManualDiscountLine.d.ts +29 -0
- package/lib/domain/model/discounts/ModifyManualDiscountLine.js +62 -0
- package/lib/domain/model/discounts/PromotionCouponLine.d.ts +22 -0
- package/lib/domain/model/discounts/PromotionCouponLine.js +59 -0
- package/lib/domain/model/discounts/VoidedDiscountLineDecorator.d.ts +15 -0
- package/lib/domain/model/discounts/VoidedDiscountLineDecorator.js +38 -0
- package/lib/domain/model/discounts/VoidedLoyaltyDiscountLineDecorator.d.ts +18 -0
- package/lib/domain/model/discounts/VoidedLoyaltyDiscountLineDecorator.js +46 -0
- package/lib/domain/model/discounts/VoidedPromotionCouponLineDecorator.d.ts +13 -0
- package/lib/domain/model/discounts/VoidedPromotionCouponLineDecorator.js +32 -0
- package/lib/domain/model/discounts/employee/EmployeeDiscountLine.d.ts +17 -0
- package/lib/domain/model/discounts/employee/EmployeeDiscountLine.js +43 -0
- package/lib/domain/model/discounts/employee/index.d.ts +1 -0
- package/lib/domain/model/discounts/employee/index.js +7 -0
- package/lib/domain/model/discounts/index.d.ts +19 -0
- package/lib/domain/model/discounts/index.js +23 -0
- package/lib/domain/model/discounts/lineTypes.d.ts +12 -0
- package/lib/domain/model/discounts/lineTypes.js +30 -0
- package/lib/domain/model/donation/BaseDonationLineDecorator.d.ts +16 -0
- package/lib/domain/model/donation/BaseDonationLineDecorator.js +38 -0
- package/lib/domain/model/donation/DonationLine.d.ts +43 -0
- package/lib/domain/model/donation/DonationLine.js +102 -0
- package/lib/domain/model/donation/IDonationLine.d.ts +9 -0
- package/lib/domain/model/donation/IDonationLine.js +3 -0
- package/lib/domain/model/donation/VoidedDonationLineDecorator.d.ts +17 -0
- package/lib/domain/model/donation/VoidedDonationLineDecorator.js +43 -0
- package/lib/domain/model/donation/index.d.ts +4 -0
- package/lib/domain/model/donation/index.js +9 -0
- package/lib/domain/model/employeeCustomer/BaseEmployeeCustomerLineDecorator.d.ts +13 -0
- package/lib/domain/model/employeeCustomer/BaseEmployeeCustomerLineDecorator.js +32 -0
- package/lib/domain/model/employeeCustomer/EmployeeCustomerLine.d.ts +39 -0
- package/lib/domain/model/employeeCustomer/EmployeeCustomerLine.js +98 -0
- package/lib/domain/model/employeeCustomer/IEmployeeCustomerLine.d.ts +8 -0
- package/lib/domain/model/employeeCustomer/IEmployeeCustomerLine.js +3 -0
- package/lib/domain/model/employeeCustomer/VoidedEmployeeCustomerLineDecorator.d.ts +15 -0
- package/lib/domain/model/employeeCustomer/VoidedEmployeeCustomerLineDecorator.js +38 -0
- package/lib/domain/model/employeeCustomer/index.d.ts +4 -0
- package/lib/domain/model/employeeCustomer/index.js +9 -0
- package/lib/domain/model/extensibilityForm/ExtensibilityFormDataLine.d.ts +26 -0
- package/lib/domain/model/extensibilityForm/ExtensibilityFormDataLine.js +74 -0
- package/lib/domain/model/extensibilityForm/IExtensibilityForm.d.ts +8 -0
- package/lib/domain/model/extensibilityForm/IExtensibilityForm.js +3 -0
- package/lib/domain/model/extensibilityForm/index.d.ts +2 -0
- package/lib/domain/model/extensibilityForm/index.js +7 -0
- package/lib/domain/model/fee/BaseFeeLineDecorator.d.ts +68 -0
- package/lib/domain/model/fee/BaseFeeLineDecorator.js +194 -0
- package/lib/domain/model/fee/FeeLine.d.ts +179 -0
- package/lib/domain/model/fee/FeeLine.js +660 -0
- package/lib/domain/model/fee/FeeLineBaseTaxAdjustmentDecorator.d.ts +18 -0
- package/lib/domain/model/fee/FeeLineBaseTaxAdjustmentDecorator.js +52 -0
- package/lib/domain/model/fee/FeeLineChangeQuantityDecorator.d.ts +14 -0
- package/lib/domain/model/fee/FeeLineChangeQuantityDecorator.js +35 -0
- package/lib/domain/model/fee/FeeLineExtendedAmountDecorator.d.ts +38 -0
- package/lib/domain/model/fee/FeeLineExtendedAmountDecorator.js +134 -0
- package/lib/domain/model/fee/FeeLineOriginalPricingAdjustmentDecorator.d.ts +22 -0
- package/lib/domain/model/fee/FeeLineOriginalPricingAdjustmentDecorator.js +82 -0
- package/lib/domain/model/fee/FeeLinePricingExtendedAmountDecorator.d.ts +22 -0
- package/lib/domain/model/fee/FeeLinePricingExtendedAmountDecorator.js +82 -0
- package/lib/domain/model/fee/FeeLineTaxExemptDecorator.d.ts +24 -0
- package/lib/domain/model/fee/FeeLineTaxExemptDecorator.js +67 -0
- package/lib/domain/model/fee/FeeLineTaxOverrideDecorator.d.ts +21 -0
- package/lib/domain/model/fee/FeeLineTaxOverrideDecorator.js +63 -0
- package/lib/domain/model/fee/FeeQuantityChangeLine.d.ts +19 -0
- package/lib/domain/model/fee/FeeQuantityChangeLine.js +52 -0
- package/lib/domain/model/fee/IFeeLine.d.ts +104 -0
- package/lib/domain/model/fee/IFeeLine.js +3 -0
- package/lib/domain/model/fee/VoidedFeeLineDecorator.d.ts +15 -0
- package/lib/domain/model/fee/VoidedFeeLineDecorator.js +38 -0
- package/lib/domain/model/fee/index.d.ts +12 -0
- package/lib/domain/model/fee/index.js +17 -0
- package/lib/domain/model/fiscalDevice/FiscalDeviceManagementLine.d.ts +34 -0
- package/lib/domain/model/fiscalDevice/FiscalDeviceManagementLine.js +69 -0
- package/lib/domain/model/fiscalDevice/FiscalDeviceManagementRetryLine.d.ts +15 -0
- package/lib/domain/model/fiscalDevice/FiscalDeviceManagementRetryLine.js +45 -0
- package/lib/domain/model/fiscalDevice/FiscalDeviceStatusLine.d.ts +35 -0
- package/lib/domain/model/fiscalDevice/FiscalDeviceStatusLine.js +87 -0
- package/lib/domain/model/fiscalDevice/index.d.ts +3 -0
- package/lib/domain/model/fiscalDevice/index.js +9 -0
- package/lib/domain/model/foreignCurrency/ExchangeRateManualEntryLine.d.ts +29 -0
- package/lib/domain/model/foreignCurrency/ExchangeRateManualEntryLine.js +67 -0
- package/lib/domain/model/foreignCurrency/index.d.ts +1 -0
- package/lib/domain/model/foreignCurrency/index.js +7 -0
- package/lib/domain/model/geoLocation.d.ts +23 -0
- package/lib/domain/model/geoLocation.js +3 -0
- package/lib/domain/model/giftCard/BalanceInquiryLine.d.ts +34 -0
- package/lib/domain/model/giftCard/BalanceInquiryLine.js +86 -0
- package/lib/domain/model/giftCard/index.d.ts +1 -0
- package/lib/domain/model/giftCard/index.js +7 -0
- package/lib/domain/model/index.d.ts +108 -0
- package/lib/domain/model/index.js +95 -0
- package/lib/domain/model/inventory/ReserveInventoryLine.d.ts +32 -0
- package/lib/domain/model/inventory/ReserveInventoryLine.js +76 -0
- package/lib/domain/model/inventory/index.d.ts +1 -0
- package/lib/domain/model/inventory/index.js +7 -0
- package/lib/domain/model/item/BaseItemLineDecorator.d.ts +148 -0
- package/lib/domain/model/item/BaseItemLineDecorator.js +400 -0
- package/lib/domain/model/item/BasePriceChangeLineDecorator.d.ts +20 -0
- package/lib/domain/model/item/BasePriceChangeLineDecorator.js +50 -0
- package/lib/domain/model/item/IAllLinePricingAdjustments.d.ts +32 -0
- package/lib/domain/model/item/IAllLinePricingAdjustments.js +66 -0
- package/lib/domain/model/item/IHardSoftStopItemInfo.d.ts +11 -0
- package/lib/domain/model/item/IHardSoftStopItemInfo.js +3 -0
- package/lib/domain/model/item/IItemLine.d.ts +313 -0
- package/lib/domain/model/item/IItemLine.js +7 -0
- package/lib/domain/model/item/ISerializedPriceCalculationResultsWithSource.d.ts +45 -0
- package/lib/domain/model/item/ISerializedPriceCalculationResultsWithSource.js +3 -0
- package/lib/domain/model/item/ItemLine.d.ts +303 -0
- package/lib/domain/model/item/ItemLine.js +1169 -0
- package/lib/domain/model/item/ItemLineBaseDiscountDecorator.d.ts +75 -0
- package/lib/domain/model/item/ItemLineBaseDiscountDecorator.js +178 -0
- package/lib/domain/model/item/ItemLineBaseTaxAdjustmentDecorator.d.ts +19 -0
- package/lib/domain/model/item/ItemLineBaseTaxAdjustmentDecorator.js +51 -0
- package/lib/domain/model/item/ItemLineCommentReceiptDecorator.d.ts +17 -0
- package/lib/domain/model/item/ItemLineCommentReceiptDecorator.js +40 -0
- package/lib/domain/model/item/ItemLineExtendedAmountDecorator.d.ts +30 -0
- package/lib/domain/model/item/ItemLineExtendedAmountDecorator.js +124 -0
- package/lib/domain/model/item/ItemLineExtensibilityFormDataDecorator.d.ts +18 -0
- package/lib/domain/model/item/ItemLineExtensibilityFormDataDecorator.js +43 -0
- package/lib/domain/model/item/ItemLineGiftIssueDecorator.d.ts +17 -0
- package/lib/domain/model/item/ItemLineGiftIssueDecorator.js +53 -0
- package/lib/domain/model/item/ItemLineGiftReceiptDecorator.d.ts +15 -0
- package/lib/domain/model/item/ItemLineGiftReceiptDecorator.js +37 -0
- package/lib/domain/model/item/ItemLineManualDiscountDecorator.d.ts +57 -0
- package/lib/domain/model/item/ItemLineManualDiscountDecorator.js +198 -0
- package/lib/domain/model/item/ItemLineNonFinancialRewardDecorator.d.ts +40 -0
- package/lib/domain/model/item/ItemLineNonFinancialRewardDecorator.js +116 -0
- package/lib/domain/model/item/ItemLineOriginalAdjustmentDecorator.d.ts +13 -0
- package/lib/domain/model/item/ItemLineOriginalAdjustmentDecorator.js +54 -0
- package/lib/domain/model/item/ItemLinePriceChangeDecorator.d.ts +18 -0
- package/lib/domain/model/item/ItemLinePriceChangeDecorator.js +47 -0
- package/lib/domain/model/item/ItemLinePromotionDecorator.d.ts +45 -0
- package/lib/domain/model/item/ItemLinePromotionDecorator.js +142 -0
- package/lib/domain/model/item/ItemLineQuantityChangeDecorator.d.ts +18 -0
- package/lib/domain/model/item/ItemLineQuantityChangeDecorator.js +57 -0
- package/lib/domain/model/item/ItemLineReasonCodeChangeDecorator.d.ts +16 -0
- package/lib/domain/model/item/ItemLineReasonCodeChangeDecorator.js +49 -0
- package/lib/domain/model/item/ItemLineRegularPriceDecorator.d.ts +21 -0
- package/lib/domain/model/item/ItemLineRegularPriceDecorator.js +58 -0
- package/lib/domain/model/item/ItemLineReserveInventoryDecorator.d.ts +17 -0
- package/lib/domain/model/item/ItemLineReserveInventoryDecorator.js +42 -0
- package/lib/domain/model/item/ItemLineRewardDecorator.d.ts +39 -0
- package/lib/domain/model/item/ItemLineRewardDecorator.js +115 -0
- package/lib/domain/model/item/ItemLineSalePriceDecorator.d.ts +19 -0
- package/lib/domain/model/item/ItemLineSalePriceDecorator.js +51 -0
- package/lib/domain/model/item/ItemLineSalespersonDecorator.d.ts +17 -0
- package/lib/domain/model/item/ItemLineSalespersonDecorator.js +44 -0
- package/lib/domain/model/item/ItemLineSendSaleDecorator.d.ts +16 -0
- package/lib/domain/model/item/ItemLineSendSaleDecorator.js +39 -0
- package/lib/domain/model/item/ItemLineSubscriptionDecorator.d.ts +17 -0
- package/lib/domain/model/item/ItemLineSubscriptionDecorator.js +40 -0
- package/lib/domain/model/item/ItemLineTaxExemptDecorator.d.ts +21 -0
- package/lib/domain/model/item/ItemLineTaxExemptDecorator.js +64 -0
- package/lib/domain/model/item/ItemLineTaxOverrideDecorator.d.ts +19 -0
- package/lib/domain/model/item/ItemLineTaxOverrideDecorator.js +59 -0
- package/lib/domain/model/item/ItemOrderCancellationLine.d.ts +27 -0
- package/lib/domain/model/item/ItemOrderCancellationLine.js +65 -0
- package/lib/domain/model/item/ItemPriceChangeLine.d.ts +44 -0
- package/lib/domain/model/item/ItemPriceChangeLine.js +131 -0
- package/lib/domain/model/item/ItemQuantityChangeLine.d.ts +31 -0
- package/lib/domain/model/item/ItemQuantityChangeLine.js +93 -0
- package/lib/domain/model/item/ReasonCodeChangeLine.d.ts +32 -0
- package/lib/domain/model/item/ReasonCodeChangeLine.js +83 -0
- package/lib/domain/model/item/ReservedOrderItemLineCancellationDecorator.d.ts +19 -0
- package/lib/domain/model/item/ReservedOrderItemLineCancellationDecorator.js +52 -0
- package/lib/domain/model/item/VoidedItemLineDecorator.d.ts +28 -0
- package/lib/domain/model/item/VoidedItemLineDecorator.js +65 -0
- package/lib/domain/model/item/VoidedPriceChangeLineDecorator.d.ts +15 -0
- package/lib/domain/model/item/VoidedPriceChangeLineDecorator.js +38 -0
- package/lib/domain/model/item/index.d.ts +37 -0
- package/lib/domain/model/item/index.js +41 -0
- package/lib/domain/model/lottery/TaxLotteryAddLine.d.ts +24 -0
- package/lib/domain/model/lottery/TaxLotteryAddLine.js +54 -0
- package/lib/domain/model/lottery/TaxLotteryModificationLine.d.ts +26 -0
- package/lib/domain/model/lottery/TaxLotteryModificationLine.js +61 -0
- package/lib/domain/model/lottery/TaxLotteryVoidLine.d.ts +28 -0
- package/lib/domain/model/lottery/TaxLotteryVoidLine.js +66 -0
- package/lib/domain/model/lottery/index.d.ts +3 -0
- package/lib/domain/model/lottery/index.js +9 -0
- package/lib/domain/model/loyaltyMembership/LoyaltyEnrollmentLine.d.ts +46 -0
- package/lib/domain/model/loyaltyMembership/LoyaltyEnrollmentLine.js +105 -0
- package/lib/domain/model/loyaltyMembership/LoyaltyMembershipLine.d.ts +34 -0
- package/lib/domain/model/loyaltyMembership/LoyaltyMembershipLine.js +117 -0
- package/lib/domain/model/loyaltyMembership/index.d.ts +2 -0
- package/lib/domain/model/loyaltyMembership/index.js +8 -0
- package/lib/domain/model/mixedBasket/IMixedBasket.d.ts +4 -0
- package/lib/domain/model/mixedBasket/IMixedBasket.js +3 -0
- package/lib/domain/model/mixedBasket/MixedBasketSession.d.ts +21 -0
- package/lib/domain/model/mixedBasket/MixedBasketSession.js +55 -0
- package/lib/domain/model/mixedBasket/index.d.ts +2 -0
- package/lib/domain/model/mixedBasket/index.js +7 -0
- package/lib/domain/model/noSale/NoSaleLine.d.ts +32 -0
- package/lib/domain/model/noSale/NoSaleLine.js +75 -0
- package/lib/domain/model/noSale/StartNoSaleLine.d.ts +33 -0
- package/lib/domain/model/noSale/StartNoSaleLine.js +75 -0
- package/lib/domain/model/noSale/index.d.ts +2 -0
- package/lib/domain/model/noSale/index.js +8 -0
- package/lib/domain/model/order/IOrderTotalsAccumulator.d.ts +23 -0
- package/lib/domain/model/order/IOrderTotalsAccumulator.js +3 -0
- package/lib/domain/model/order/OrderDeliveryAssignmentLine.d.ts +20 -0
- package/lib/domain/model/order/OrderDeliveryAssignmentLine.js +64 -0
- package/lib/domain/model/order/OrderItemReference.d.ts +5 -0
- package/lib/domain/model/order/OrderItemReference.js +3 -0
- package/lib/domain/model/order/OrderTotalsAccumulator.d.ts +39 -0
- package/lib/domain/model/order/OrderTotalsAccumulator.js +48 -0
- package/lib/domain/model/order/index.d.ts +4 -0
- package/lib/domain/model/order/index.js +8 -0
- package/lib/domain/model/paidOperation/PaidOperationLine.d.ts +23 -0
- package/lib/domain/model/paidOperation/PaidOperationLine.js +65 -0
- package/lib/domain/model/paidOperation/PaidOperationSignatureLine.d.ts +27 -0
- package/lib/domain/model/paidOperation/PaidOperationSignatureLine.js +58 -0
- package/lib/domain/model/paidOperation/StartPaidOperationLine.d.ts +34 -0
- package/lib/domain/model/paidOperation/StartPaidOperationLine.js +75 -0
- package/lib/domain/model/paidOperation/index.d.ts +3 -0
- package/lib/domain/model/paidOperation/index.js +9 -0
- package/lib/domain/model/paymentDevice/IUploadDeviceLogsLine.d.ts +6 -0
- package/lib/domain/model/paymentDevice/IUploadDeviceLogsLine.js +3 -0
- package/lib/domain/model/paymentDevice/UploadDeviceLogLine.d.ts +28 -0
- package/lib/domain/model/paymentDevice/UploadDeviceLogLine.js +57 -0
- package/lib/domain/model/paymentDevice/index.d.ts +1 -0
- package/lib/domain/model/paymentDevice/index.js +7 -0
- package/lib/domain/model/print/PrintStatusLine.d.ts +27 -0
- package/lib/domain/model/print/PrintStatusLine.js +55 -0
- package/lib/domain/model/print/index.d.ts +1 -0
- package/lib/domain/model/print/index.js +7 -0
- package/lib/domain/model/receipt/BaseReceiptLineDecorator.d.ts +49 -0
- package/lib/domain/model/receipt/BaseReceiptLineDecorator.js +115 -0
- package/lib/domain/model/receipt/FiscalReceiptLine.d.ts +63 -0
- package/lib/domain/model/receipt/FiscalReceiptLine.js +170 -0
- package/lib/domain/model/receipt/GiftReceiptLine.d.ts +17 -0
- package/lib/domain/model/receipt/GiftReceiptLine.js +51 -0
- package/lib/domain/model/receipt/IPrintRetryLine.d.ts +4 -0
- package/lib/domain/model/receipt/IPrintRetryLine.js +3 -0
- package/lib/domain/model/receipt/IReceiptLine.d.ts +37 -0
- package/lib/domain/model/receipt/IReceiptLine.js +3 -0
- package/lib/domain/model/receipt/IReceiptRefundMessage.d.ts +4 -0
- package/lib/domain/model/receipt/IReceiptRefundMessage.js +3 -0
- package/lib/domain/model/receipt/ItemCommentLine.d.ts +16 -0
- package/lib/domain/model/receipt/ItemCommentLine.js +50 -0
- package/lib/domain/model/receipt/PrintRetryLine.d.ts +14 -0
- package/lib/domain/model/receipt/PrintRetryLine.js +43 -0
- package/lib/domain/model/receipt/PrintRetryLineDecorator.d.ts +12 -0
- package/lib/domain/model/receipt/PrintRetryLineDecorator.js +28 -0
- package/lib/domain/model/receipt/PrinterStatusReceiptLineDecorator.d.ts +12 -0
- package/lib/domain/model/receipt/PrinterStatusReceiptLineDecorator.js +38 -0
- package/lib/domain/model/receipt/ReceiptDestinationReceiptLineDecorator.d.ts +18 -0
- package/lib/domain/model/receipt/ReceiptDestinationReceiptLineDecorator.js +44 -0
- package/lib/domain/model/receipt/ReceiptLine.d.ts +88 -0
- package/lib/domain/model/receipt/ReceiptLine.js +236 -0
- package/lib/domain/model/receipt/ReceiptOptionLine.d.ts +44 -0
- package/lib/domain/model/receipt/ReceiptOptionLine.js +107 -0
- package/lib/domain/model/receipt/index.d.ts +12 -0
- package/lib/domain/model/receipt/index.js +15 -0
- package/lib/domain/model/reprint/ReprintTransactionLine.d.ts +30 -0
- package/lib/domain/model/reprint/ReprintTransactionLine.js +64 -0
- package/lib/domain/model/reprint/index.d.ts +1 -0
- package/lib/domain/model/reprint/index.js +7 -0
- package/lib/domain/model/salesperson/SalespersonLine.d.ts +27 -0
- package/lib/domain/model/salesperson/SalespersonLine.js +60 -0
- package/lib/domain/model/salesperson/index.d.ts +1 -0
- package/lib/domain/model/salesperson/index.js +7 -0
- package/lib/domain/model/sendsale/SendSaleConversionLine.d.ts +25 -0
- package/lib/domain/model/sendsale/SendSaleConversionLine.js +50 -0
- package/lib/domain/model/sendsale/index.d.ts +1 -0
- package/lib/domain/model/sendsale/index.js +7 -0
- package/lib/domain/model/shipping/ShippingFeeChangeLine.d.ts +39 -0
- package/lib/domain/model/shipping/ShippingFeeChangeLine.js +95 -0
- package/lib/domain/model/shipping/ShippingFeeLineChangeDecorator.d.ts +26 -0
- package/lib/domain/model/shipping/ShippingFeeLineChangeDecorator.js +81 -0
- package/lib/domain/model/shipping/index.d.ts +2 -0
- package/lib/domain/model/shipping/index.js +8 -0
- package/lib/domain/model/subscription/AddSubscriptionLine.d.ts +31 -0
- package/lib/domain/model/subscription/AddSubscriptionLine.js +69 -0
- package/lib/domain/model/subscription/ModifySubscriptionLine.d.ts +31 -0
- package/lib/domain/model/subscription/ModifySubscriptionLine.js +69 -0
- package/lib/domain/model/subscription/RemoveSubscriptionLine.d.ts +25 -0
- package/lib/domain/model/subscription/RemoveSubscriptionLine.js +50 -0
- package/lib/domain/model/subscription/index.d.ts +3 -0
- package/lib/domain/model/subscription/index.js +9 -0
- package/lib/domain/model/supervisorOverride/ISupervisorCredentials.d.ts +4 -0
- package/lib/domain/model/supervisorOverride/ISupervisorCredentials.js +3 -0
- package/lib/domain/model/supervisorOverride/SupervisorOverrideLine.d.ts +24 -0
- package/lib/domain/model/supervisorOverride/SupervisorOverrideLine.js +51 -0
- package/lib/domain/model/supervisorOverride/index.d.ts +2 -0
- package/lib/domain/model/supervisorOverride/index.js +7 -0
- package/lib/domain/model/taxExempt/BaseTaxExemptLine.d.ts +53 -0
- package/lib/domain/model/taxExempt/BaseTaxExemptLine.js +187 -0
- package/lib/domain/model/taxExempt/BaseTaxExemptLineDecorator.d.ts +27 -0
- package/lib/domain/model/taxExempt/BaseTaxExemptLineDecorator.js +74 -0
- package/lib/domain/model/taxExempt/ITaxExemptLine.d.ts +22 -0
- package/lib/domain/model/taxExempt/ITaxExemptLine.js +3 -0
- package/lib/domain/model/taxExempt/ItemTaxExemptLine.d.ts +23 -0
- package/lib/domain/model/taxExempt/ItemTaxExemptLine.js +47 -0
- package/lib/domain/model/taxExempt/ItemTaxExemptLineModificationDecorator.d.ts +32 -0
- package/lib/domain/model/taxExempt/ItemTaxExemptLineModificationDecorator.js +91 -0
- package/lib/domain/model/taxExempt/ModifyItemTaxExemptLine.d.ts +28 -0
- package/lib/domain/model/taxExempt/ModifyItemTaxExemptLine.js +62 -0
- package/lib/domain/model/taxExempt/ModifyTransactionTaxExemptLine.d.ts +28 -0
- package/lib/domain/model/taxExempt/ModifyTransactionTaxExemptLine.js +62 -0
- package/lib/domain/model/taxExempt/TransactionTaxExemptLine.d.ts +23 -0
- package/lib/domain/model/taxExempt/TransactionTaxExemptLine.js +47 -0
- package/lib/domain/model/taxExempt/TransactionTaxExemptLineModificationDecorator.d.ts +32 -0
- package/lib/domain/model/taxExempt/TransactionTaxExemptLineModificationDecorator.js +93 -0
- package/lib/domain/model/taxExempt/VoidedItemTaxExemptLineDecorator.d.ts +15 -0
- package/lib/domain/model/taxExempt/VoidedItemTaxExemptLineDecorator.js +38 -0
- package/lib/domain/model/taxExempt/VoidedTransactionTaxExemptLineDecorator.d.ts +15 -0
- package/lib/domain/model/taxExempt/VoidedTransactionTaxExemptLineDecorator.js +38 -0
- package/lib/domain/model/taxExempt/index.d.ts +11 -0
- package/lib/domain/model/taxExempt/index.js +16 -0
- package/lib/domain/model/taxLottery/TaxLotteryLine.d.ts +24 -0
- package/lib/domain/model/taxLottery/TaxLotteryLine.js +49 -0
- package/lib/domain/model/taxLottery/index.d.ts +1 -0
- package/lib/domain/model/taxLottery/index.js +7 -0
- package/lib/domain/model/taxOverride/BaseTaxOverrideLine.d.ts +40 -0
- package/lib/domain/model/taxOverride/BaseTaxOverrideLine.js +153 -0
- package/lib/domain/model/taxOverride/BaseTaxOverrideLineDecorator.d.ts +21 -0
- package/lib/domain/model/taxOverride/BaseTaxOverrideLineDecorator.js +54 -0
- package/lib/domain/model/taxOverride/ITaxOverrideLine.d.ts +19 -0
- package/lib/domain/model/taxOverride/ITaxOverrideLine.js +3 -0
- package/lib/domain/model/taxOverride/ModifyTaxOverrideLine.d.ts +31 -0
- package/lib/domain/model/taxOverride/ModifyTaxOverrideLine.js +70 -0
- package/lib/domain/model/taxOverride/TaxOverrideLine.d.ts +15 -0
- package/lib/domain/model/taxOverride/TaxOverrideLine.js +49 -0
- package/lib/domain/model/taxOverride/TaxOverrideLineModificationDecorator.d.ts +14 -0
- package/lib/domain/model/taxOverride/TaxOverrideLineModificationDecorator.js +39 -0
- package/lib/domain/model/taxOverride/VoidedTaxOverrideLineDecorator.d.ts +15 -0
- package/lib/domain/model/taxOverride/VoidedTaxOverrideLineDecorator.js +38 -0
- package/lib/domain/model/taxOverride/index.d.ts +7 -0
- package/lib/domain/model/taxOverride/index.js +12 -0
- package/lib/domain/model/taxRecord/ITaxRecordLine.d.ts +90 -0
- package/lib/domain/model/taxRecord/ITaxRecordLine.js +3 -0
- package/lib/domain/model/taxRecord/TaxRecordLine.d.ts +67 -0
- package/lib/domain/model/taxRecord/TaxRecordLine.js +175 -0
- package/lib/domain/model/taxRecord/index.d.ts +2 -0
- package/lib/domain/model/taxRecord/index.js +7 -0
- package/lib/domain/model/taxRefund/ReprintTaxRefundLine.d.ts +30 -0
- package/lib/domain/model/taxRefund/ReprintTaxRefundLine.js +64 -0
- package/lib/domain/model/taxRefund/StartTaxRefundLine.d.ts +29 -0
- package/lib/domain/model/taxRefund/StartTaxRefundLine.js +62 -0
- package/lib/domain/model/taxRefund/TaxRefundInterfaces.d.ts +229 -0
- package/lib/domain/model/taxRefund/TaxRefundInterfaces.js +36 -0
- package/lib/domain/model/taxRefund/TaxRefundLine.d.ts +34 -0
- package/lib/domain/model/taxRefund/TaxRefundLine.js +73 -0
- package/lib/domain/model/taxRefund/TaxRefundSession.d.ts +84 -0
- package/lib/domain/model/taxRefund/TaxRefundSession.js +214 -0
- package/lib/domain/model/taxRefund/VoidTaxRefundLine.d.ts +30 -0
- package/lib/domain/model/taxRefund/VoidTaxRefundLine.js +71 -0
- package/lib/domain/model/taxRefund/index.d.ts +6 -0
- package/lib/domain/model/taxRefund/index.js +12 -0
- package/lib/domain/model/tender/BaseTenderLineDecorator.d.ts +47 -0
- package/lib/domain/model/tender/BaseTenderLineDecorator.js +110 -0
- package/lib/domain/model/tender/CancelSubscriptionTokenLine.d.ts +11 -0
- package/lib/domain/model/tender/CancelSubscriptionTokenLine.js +32 -0
- package/lib/domain/model/tender/ITenderLine.d.ts +45 -0
- package/lib/domain/model/tender/ITenderLine.js +3 -0
- package/lib/domain/model/tender/OfflineAuthorization.d.ts +17 -0
- package/lib/domain/model/tender/OfflineAuthorization.js +47 -0
- package/lib/domain/model/tender/RefundedTenderLineDecorator.d.ts +12 -0
- package/lib/domain/model/tender/RefundedTenderLineDecorator.js +42 -0
- package/lib/domain/model/tender/TenderAuthorizationStatusLine.d.ts +65 -0
- package/lib/domain/model/tender/TenderAuthorizationStatusLine.js +220 -0
- package/lib/domain/model/tender/TenderChangeCancelLine.d.ts +25 -0
- package/lib/domain/model/tender/TenderChangeCancelLine.js +51 -0
- package/lib/domain/model/tender/TenderLine.d.ts +113 -0
- package/lib/domain/model/tender/TenderLine.js +385 -0
- package/lib/domain/model/tender/TenderSignatureLine.d.ts +29 -0
- package/lib/domain/model/tender/TenderSignatureLine.js +66 -0
- package/lib/domain/model/tender/TenderTaxLineDecorator.d.ts +12 -0
- package/lib/domain/model/tender/TenderTaxLineDecorator.js +29 -0
- package/lib/domain/model/tender/TenderUtils.d.ts +9 -0
- package/lib/domain/model/tender/TenderUtils.js +43 -0
- package/lib/domain/model/tender/VoidedTenderLineDecorator.d.ts +13 -0
- package/lib/domain/model/tender/VoidedTenderLineDecorator.js +43 -0
- package/lib/domain/model/tender/exchange/StartTenderExchangeLine.d.ts +28 -0
- package/lib/domain/model/tender/exchange/StartTenderExchangeLine.js +56 -0
- package/lib/domain/model/tender/exchange/index.d.ts +1 -0
- package/lib/domain/model/tender/exchange/index.js +7 -0
- package/lib/domain/model/tender/index.d.ts +16 -0
- package/lib/domain/model/tender/index.js +21 -0
- package/lib/domain/model/tender/reversals/Interfaces.d.ts +25 -0
- package/lib/domain/model/tender/reversals/Interfaces.js +10 -0
- package/lib/domain/model/tender/reversals/index.d.ts +1 -0
- package/lib/domain/model/tender/reversals/index.js +7 -0
- package/lib/domain/model/tender/valueCard/Interfaces.d.ts +84 -0
- package/lib/domain/model/tender/valueCard/Interfaces.js +104 -0
- package/lib/domain/model/tender/valueCard/index.d.ts +1 -0
- package/lib/domain/model/tender/valueCard/index.js +7 -0
- package/lib/domain/model/tender/valueCertificate/Interfaces.d.ts +228 -0
- package/lib/domain/model/tender/valueCertificate/Interfaces.js +78 -0
- package/lib/domain/model/tender/valueCertificate/index.d.ts +1 -0
- package/lib/domain/model/tender/valueCertificate/index.js +7 -0
- package/lib/domain/model/terminal/FiscalPrinterAbortLineType.d.ts +21 -0
- package/lib/domain/model/terminal/FiscalPrinterAbortLineType.js +45 -0
- package/lib/domain/model/terminal/FiscalPrinterReportLineType.d.ts +34 -0
- package/lib/domain/model/terminal/FiscalPrinterReportLineType.js +85 -0
- package/lib/domain/model/terminal/FiscalPrinterStatusLineType.d.ts +24 -0
- package/lib/domain/model/terminal/FiscalPrinterStatusLineType.js +55 -0
- package/lib/domain/model/terminal/FiscalPrinterSyncLineType.d.ts +28 -0
- package/lib/domain/model/terminal/FiscalPrinterSyncLineType.js +67 -0
- package/lib/domain/model/terminal/TerminalStateChangeLine.d.ts +27 -0
- package/lib/domain/model/terminal/TerminalStateChangeLine.js +61 -0
- package/lib/domain/model/terminal/index.d.ts +5 -0
- package/lib/domain/model/terminal/index.js +11 -0
- package/lib/domain/model/till/StartTillLine.d.ts +58 -0
- package/lib/domain/model/till/StartTillLine.js +119 -0
- package/lib/domain/model/till/TenderTransferLine.d.ts +33 -0
- package/lib/domain/model/till/TenderTransferLine.js +140 -0
- package/lib/domain/model/till/TillAdjustmentLine.d.ts +21 -0
- package/lib/domain/model/till/TillAdjustmentLine.js +64 -0
- package/lib/domain/model/till/TillCountLine.d.ts +27 -0
- package/lib/domain/model/till/TillCountLine.js +96 -0
- package/lib/domain/model/till/TillFloatLine.d.ts +29 -0
- package/lib/domain/model/till/TillFloatLine.js +90 -0
- package/lib/domain/model/till/TillStateChangeLine.d.ts +26 -0
- package/lib/domain/model/till/TillStateChangeLine.js +78 -0
- package/lib/domain/model/till/index.d.ts +6 -0
- package/lib/domain/model/till/index.js +12 -0
- package/lib/domain/model/transaction/AttachmentLine.d.ts +17 -0
- package/lib/domain/model/transaction/AttachmentLine.js +45 -0
- package/lib/domain/model/transaction/CloseTransactionLine.d.ts +22 -0
- package/lib/domain/model/transaction/CloseTransactionLine.js +44 -0
- package/lib/domain/model/transaction/IPostVoidSearchResult.d.ts +7 -0
- package/lib/domain/model/transaction/IPostVoidSearchResult.js +4 -0
- package/lib/domain/model/transaction/RecordTransactionLine.d.ts +29 -0
- package/lib/domain/model/transaction/RecordTransactionLine.js +60 -0
- package/lib/domain/model/transaction/SignatureLine.d.ts +30 -0
- package/lib/domain/model/transaction/SignatureLine.js +67 -0
- package/lib/domain/model/transaction/SuspendTransactionLine.d.ts +24 -0
- package/lib/domain/model/transaction/SuspendTransactionLine.js +52 -0
- package/lib/domain/model/transaction/TotalTransactionLine.d.ts +26 -0
- package/lib/domain/model/transaction/TotalTransactionLine.js +55 -0
- package/lib/domain/model/transaction/TransactionResumeCompleteLine.d.ts +22 -0
- package/lib/domain/model/transaction/TransactionResumeCompleteLine.js +44 -0
- package/lib/domain/model/transaction/TransactionResumeStartLine.d.ts +25 -0
- package/lib/domain/model/transaction/TransactionResumeStartLine.js +55 -0
- package/lib/domain/model/transaction/TransactionReturnModeLine.d.ts +23 -0
- package/lib/domain/model/transaction/TransactionReturnModeLine.js +45 -0
- package/lib/domain/model/transaction/fiscal/FiscalTransactionLine.d.ts +27 -0
- package/lib/domain/model/transaction/fiscal/FiscalTransactionLine.js +61 -0
- package/lib/domain/model/transaction/fiscal/index.d.ts +1 -0
- package/lib/domain/model/transaction/fiscal/index.js +7 -0
- package/lib/domain/model/transaction/index.d.ts +12 -0
- package/lib/domain/model/transaction/index.js +18 -0
- package/lib/domain/model/transaction/order/ItemFulfillmentReferenceLine.d.ts +25 -0
- package/lib/domain/model/transaction/order/ItemFulfillmentReferenceLine.js +51 -0
- package/lib/domain/model/transaction/order/ItemPickupSignatureLine.d.ts +28 -0
- package/lib/domain/model/transaction/order/ItemPickupSignatureLine.js +63 -0
- package/lib/domain/model/transaction/order/OrderReferenceLine.d.ts +25 -0
- package/lib/domain/model/transaction/order/OrderReferenceLine.js +50 -0
- package/lib/domain/model/transaction/order/index.d.ts +3 -0
- package/lib/domain/model/transaction/order/index.js +9 -0
- package/lib/domain/model/user/AuthenticationFailedLine.d.ts +16 -0
- package/lib/domain/model/user/AuthenticationFailedLine.js +45 -0
- package/lib/domain/model/user/IPasswordExpiration.d.ts +4 -0
- package/lib/domain/model/user/IPasswordExpiration.js +3 -0
- package/lib/domain/model/user/PasswordExpiration.d.ts +10 -0
- package/lib/domain/model/user/PasswordExpiration.js +38 -0
- package/lib/domain/model/user/UserLine.d.ts +33 -0
- package/lib/domain/model/user/UserLine.js +84 -0
- package/lib/domain/model/user/index.d.ts +4 -0
- package/lib/domain/model/user/index.js +9 -0
- package/lib/domain/model/void/LineVoidLine.d.ts +50 -0
- package/lib/domain/model/void/LineVoidLine.js +158 -0
- package/lib/domain/model/void/TransactionVoidLine.d.ts +34 -0
- package/lib/domain/model/void/TransactionVoidLine.js +86 -0
- package/lib/domain/model/void/VoidedLineDecorator.d.ts +10 -0
- package/lib/domain/model/void/VoidedLineDecorator.js +40 -0
- package/lib/domain/model/void/index.d.ts +3 -0
- package/lib/domain/model/void/index.js +9 -0
- package/lib/domain/processing/PosBusinessAction.d.ts +9 -0
- package/lib/domain/processing/PosBusinessAction.js +55 -0
- package/lib/domain/processing/index.d.ts +1 -0
- package/lib/domain/processing/index.js +7 -0
- package/lib/domain/service/IReceiptFormattingService.d.ts +48 -0
- package/lib/domain/service/IReceiptFormattingService.js +3 -0
- package/lib/domain/service/ITransactionAccountingService.d.ts +6 -0
- package/lib/domain/service/ITransactionAccountingService.js +3 -0
- package/lib/domain/service/ITransactionReferenceFormatter.d.ts +4 -0
- package/lib/domain/service/ITransactionReferenceFormatter.js +3 -0
- package/lib/domain/service/index.d.ts +3 -0
- package/lib/domain/service/index.js +3 -0
- package/lib/domain/utility/index.d.ts +3 -0
- package/lib/domain/utility/index.js +9 -0
- package/lib/domain/utility/orderUtils.d.ts +6 -0
- package/lib/domain/utility/orderUtils.js +47 -0
- package/lib/domain/utility/supervisorOverride.d.ts +28 -0
- package/lib/domain/utility/supervisorOverride.js +298 -0
- package/lib/domain/utility/utils.d.ts +12 -0
- package/lib/domain/utility/utils.js +128 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +8 -0
- package/package.json +194 -0
- package/types/es-symbol/index.d.ts +4 -0
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const scp_component_store_selling_core_1 = require("@aptos-scp/scp-component-store-selling-core");
|
|
4
|
+
const ErrorCodes_1 = require("../../config/ErrorCodes");
|
|
5
|
+
const VoidInterfaces_1 = require("./VoidInterfaces");
|
|
6
|
+
const BaseTransactionLine_1 = require("./BaseTransactionLine");
|
|
7
|
+
exports.isDecorator = (transactionLine) => {
|
|
8
|
+
// tslint:disable-next-line:no-use-before-declare
|
|
9
|
+
return transactionLine instanceof BaseLineDecorator;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Get the first decorated transaction line of the specified decorator type found while ascending the
|
|
13
|
+
* decoratedTransactionLine tree.
|
|
14
|
+
* @param {ITransactionLine} transactionLine
|
|
15
|
+
* @param {string} decoratorType
|
|
16
|
+
* @returns {ITransactionLine} The decoratedTransactionLine found, or null if not found.
|
|
17
|
+
*/
|
|
18
|
+
function getDecoratedTransactionLine(transactionLine, decoratorType) {
|
|
19
|
+
let line = transactionLine;
|
|
20
|
+
while (exports.isDecorator(line)) {
|
|
21
|
+
if (line.lineDecoratorType === decoratorType) {
|
|
22
|
+
return line;
|
|
23
|
+
}
|
|
24
|
+
line = line.decoratedTransactionLine;
|
|
25
|
+
}
|
|
26
|
+
return undefined;
|
|
27
|
+
}
|
|
28
|
+
exports.getDecoratedTransactionLine = getDecoratedTransactionLine;
|
|
29
|
+
/**
|
|
30
|
+
* Get the base transaction line after all the decorators while ascending the decoratedTransactionLine tree.
|
|
31
|
+
* @param {ITransactionLine} transactionLine
|
|
32
|
+
* @returns {ITransactionLine} The base transaction line found.
|
|
33
|
+
*/
|
|
34
|
+
function getBaseTransactionLine(transactionLine) {
|
|
35
|
+
let line = transactionLine;
|
|
36
|
+
while (exports.isDecorator(line)) {
|
|
37
|
+
line = line.decoratedTransactionLine;
|
|
38
|
+
}
|
|
39
|
+
return line;
|
|
40
|
+
}
|
|
41
|
+
exports.getBaseTransactionLine = getBaseTransactionLine;
|
|
42
|
+
/**
|
|
43
|
+
* Gets all the decorated transaction lines of the specified decorator type found while ascending the
|
|
44
|
+
* decoratedTransactionLine tree.
|
|
45
|
+
* @param {ITransactionLine} transactionLine
|
|
46
|
+
* @param {string} decoratorTypes Decorator types being looked for.
|
|
47
|
+
* Transaction lines matching any of these will be included.
|
|
48
|
+
* @returns {ITransactionLine} The decoratedTransactionLines found, or any empty array if not found.
|
|
49
|
+
*/
|
|
50
|
+
function getDecoratedTransactionLines(transactionLine, decoratorTypes) {
|
|
51
|
+
const result = [];
|
|
52
|
+
let line = transactionLine;
|
|
53
|
+
while (exports.isDecorator(line)) {
|
|
54
|
+
// check if the line decorator type matches any of the decorator types being looked for
|
|
55
|
+
if (decoratorTypes.indexOf(line.lineDecoratorType) >= 0) {
|
|
56
|
+
result.push(line);
|
|
57
|
+
}
|
|
58
|
+
line = line.decoratedTransactionLine;
|
|
59
|
+
}
|
|
60
|
+
return result;
|
|
61
|
+
}
|
|
62
|
+
exports.getDecoratedTransactionLines = getDecoratedTransactionLines;
|
|
63
|
+
/**
|
|
64
|
+
* Does there exist a decorator of the specific type for the transaction line?
|
|
65
|
+
* @param {ITransactionLine} transactionLine
|
|
66
|
+
* @param {string} decoratorType
|
|
67
|
+
* @returns {boolean}
|
|
68
|
+
*/
|
|
69
|
+
function isDecoratorOfType(transactionLine, decoratorType) {
|
|
70
|
+
return !!getDecoratedTransactionLine(transactionLine, decoratorType);
|
|
71
|
+
}
|
|
72
|
+
exports.isDecoratorOfType = isDecoratorOfType;
|
|
73
|
+
/**
|
|
74
|
+
* BaseLineDecorator acts as the base class for all line decorators, handling the essentials of line decorating.
|
|
75
|
+
*
|
|
76
|
+
* Note: Subclasses must also implement/extend T (the type of line that they decorate), but this cannot be enforced in
|
|
77
|
+
* the class signature.
|
|
78
|
+
*
|
|
79
|
+
* T is the class or interface of line that is decorated by the subclass.
|
|
80
|
+
*/
|
|
81
|
+
class BaseLineDecorator extends BaseTransactionLine_1.BaseTransactionLine {
|
|
82
|
+
// End of BaseTransactionLine API --------------------------------------------------------------
|
|
83
|
+
// Since this class is abstract, only subclasses need access to the constructor.
|
|
84
|
+
constructor(lineDecoratorType, decoratedTransactionLine, annotationDescription, annotationSourceType, annotationSourceLineNumber, couldDecoratorAffectPricing, couldDecoratorAffectTaxation) {
|
|
85
|
+
super(decoratedTransactionLine.lineNumber, decoratedTransactionLine.lineType);
|
|
86
|
+
this._lineDecoratorType = lineDecoratorType;
|
|
87
|
+
this._decoratedTransactionLine = decoratedTransactionLine;
|
|
88
|
+
this._annotationDescription = annotationDescription;
|
|
89
|
+
this._annotationSourceType = annotationSourceType;
|
|
90
|
+
this._annotationSourceLineNumber = annotationSourceLineNumber;
|
|
91
|
+
this._couldDecoratorAffectPricing = couldDecoratorAffectPricing;
|
|
92
|
+
this._couldDecoratorAffectTaxation = couldDecoratorAffectTaxation;
|
|
93
|
+
}
|
|
94
|
+
static getLineDecoratorTypeFromJsonObject(transactionLineJsonObject) {
|
|
95
|
+
return transactionLineJsonObject._lineDecoratorType;
|
|
96
|
+
}
|
|
97
|
+
static getDecoratedTransactionLineJsonObjectFromJsonObject(transactionLineJsonObject) {
|
|
98
|
+
return transactionLineJsonObject._decoratedTransactionLine;
|
|
99
|
+
}
|
|
100
|
+
static getAnnotationDescriptionFromJsonObject(transactionLineJsonObject) {
|
|
101
|
+
return transactionLineJsonObject._annotationDescription;
|
|
102
|
+
}
|
|
103
|
+
static getAnnotationSourceTypeFromJsonObject(transactionLineJsonObject) {
|
|
104
|
+
return transactionLineJsonObject._annotationSourceType;
|
|
105
|
+
}
|
|
106
|
+
static getAnnotationSourceLineNumberFromJsonObject(transactionLineJsonObject) {
|
|
107
|
+
return transactionLineJsonObject._annotationSourceLineNumber;
|
|
108
|
+
}
|
|
109
|
+
static getCouldDecoratorAffectPricingFromJsonObject(transactionLineJsonObject) {
|
|
110
|
+
return transactionLineJsonObject._couldDecoratorAffectPricing;
|
|
111
|
+
}
|
|
112
|
+
static getCouldDecoratorAffectTaxationFromJsonObject(transactionLineJsonObject) {
|
|
113
|
+
return transactionLineJsonObject._couldDecoratorAffectTaxation;
|
|
114
|
+
}
|
|
115
|
+
// Decorator API -------------------------------------------------------------
|
|
116
|
+
get lineDecoratorType() {
|
|
117
|
+
return this._lineDecoratorType;
|
|
118
|
+
}
|
|
119
|
+
get decoratedTransactionLine() {
|
|
120
|
+
return this._decoratedTransactionLine;
|
|
121
|
+
}
|
|
122
|
+
get annotationDescription() {
|
|
123
|
+
return this._annotationDescription;
|
|
124
|
+
}
|
|
125
|
+
get annotationSourceType() {
|
|
126
|
+
return this._annotationSourceType;
|
|
127
|
+
}
|
|
128
|
+
get annotationSourceLineNumber() {
|
|
129
|
+
return this._annotationSourceLineNumber;
|
|
130
|
+
}
|
|
131
|
+
get couldDecoratorAffectPricing() {
|
|
132
|
+
return this._couldDecoratorAffectPricing;
|
|
133
|
+
}
|
|
134
|
+
get couldDecoratorAffectTaxation() {
|
|
135
|
+
return this._couldDecoratorAffectTaxation;
|
|
136
|
+
}
|
|
137
|
+
updateDecoratedTransactionLine(transactionLine) {
|
|
138
|
+
const updatedItemLineDecorator = this.clone();
|
|
139
|
+
updatedItemLineDecorator._decoratedTransactionLine = transactionLine;
|
|
140
|
+
// Fixme: this comment is no longer true with the updated typescript version
|
|
141
|
+
// Unfortunately, TS can't know that BaseLineDecorator<T> must implement T, because we cannot declare that
|
|
142
|
+
// BaseLineDecorator<T> implements T.
|
|
143
|
+
return updatedItemLineDecorator;
|
|
144
|
+
}
|
|
145
|
+
hasDecorator(lineDecoratorType) {
|
|
146
|
+
let transactionLine = this;
|
|
147
|
+
while (transactionLine && exports.isDecorator(transactionLine)) {
|
|
148
|
+
if (transactionLine.lineDecoratorType === lineDecoratorType) {
|
|
149
|
+
return true;
|
|
150
|
+
}
|
|
151
|
+
transactionLine = transactionLine.decoratedTransactionLine;
|
|
152
|
+
}
|
|
153
|
+
return false;
|
|
154
|
+
}
|
|
155
|
+
// BaseTransactionLine API --------------------------------------------------------------
|
|
156
|
+
get lineNumber() {
|
|
157
|
+
return this._decoratedTransactionLine.lineNumber;
|
|
158
|
+
}
|
|
159
|
+
get lineType() {
|
|
160
|
+
return this._decoratedTransactionLine.lineType;
|
|
161
|
+
}
|
|
162
|
+
get performingUser() {
|
|
163
|
+
return this._decoratedTransactionLine.performingUser;
|
|
164
|
+
}
|
|
165
|
+
get originalLineNumber() {
|
|
166
|
+
return this._decoratedTransactionLine.originalLineNumber;
|
|
167
|
+
}
|
|
168
|
+
get extendedAmount() {
|
|
169
|
+
return this._decoratedTransactionLine.extendedAmount;
|
|
170
|
+
}
|
|
171
|
+
get extendedAmountExcludingTax() {
|
|
172
|
+
return this._decoratedTransactionLine.extendedAmountExcludingTax;
|
|
173
|
+
}
|
|
174
|
+
get extendedAmountIncludingTax() {
|
|
175
|
+
return this._decoratedTransactionLine.extendedAmountIncludingTax;
|
|
176
|
+
}
|
|
177
|
+
get endDateTime() {
|
|
178
|
+
// If the endDate time has been set on the decorator, then use that, but if not, use the one on the decorated line.
|
|
179
|
+
// This avoids issues with undefined endDateTimes on decorated lines that do not have the endDateTime set on the
|
|
180
|
+
// decorator.
|
|
181
|
+
return super.endDateTime || this._decoratedTransactionLine.endDateTime;
|
|
182
|
+
}
|
|
183
|
+
get couldAffectPricing() {
|
|
184
|
+
return this._decoratedTransactionLine.couldAffectPricing;
|
|
185
|
+
}
|
|
186
|
+
get couldAffectTaxation() {
|
|
187
|
+
return this._decoratedTransactionLine.couldAffectTaxation;
|
|
188
|
+
}
|
|
189
|
+
get voided() {
|
|
190
|
+
// We don't want the decorator to make it look like all decorated lines are voidable, so we check that, first.
|
|
191
|
+
return VoidInterfaces_1.isVoidableLine(this._decoratedTransactionLine) ? this._decoratedTransactionLine.voided : undefined;
|
|
192
|
+
}
|
|
193
|
+
get voidSource() {
|
|
194
|
+
// We don't want the decorator to make it look like all decorated lines are voidable, so we check that, first.
|
|
195
|
+
return VoidInterfaces_1.isVoidableLine(this._decoratedTransactionLine)
|
|
196
|
+
? this._decoratedTransactionLine.voidSource
|
|
197
|
+
: undefined;
|
|
198
|
+
}
|
|
199
|
+
clone() {
|
|
200
|
+
const newBaseLineDecorator = super.clone();
|
|
201
|
+
newBaseLineDecorator._lineDecoratorType = this._lineDecoratorType;
|
|
202
|
+
newBaseLineDecorator._decoratedTransactionLine = this._decoratedTransactionLine;
|
|
203
|
+
newBaseLineDecorator._annotationDescription = this._annotationDescription;
|
|
204
|
+
newBaseLineDecorator._annotationSourceType = this._annotationSourceType;
|
|
205
|
+
newBaseLineDecorator._annotationSourceLineNumber = this._annotationSourceLineNumber;
|
|
206
|
+
newBaseLineDecorator._couldDecoratorAffectPricing = this._couldDecoratorAffectPricing;
|
|
207
|
+
newBaseLineDecorator._couldDecoratorAffectPricing = this._couldDecoratorAffectTaxation;
|
|
208
|
+
return newBaseLineDecorator;
|
|
209
|
+
}
|
|
210
|
+
loadFromJsonObject(transactionLineJsonObj) {
|
|
211
|
+
// Decorators use a createFromJsonObject instead of this.
|
|
212
|
+
throw new scp_component_store_selling_core_1.PosError("Decorator creation from JSON is expected to use createFromJsonObject, not loadFromJsonObject", ErrorCodes_1.SSF_DECORATOR_ERROR_CODE);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
exports.BaseLineDecorator = BaseLineDecorator;
|
|
216
|
+
//# sourceMappingURL=BaseLineDecorator.js.map
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Money } from "@aptos-scp/scp-component-business-core";
|
|
2
|
+
import { ITransactionLine, IUser } from "@aptos-scp/scp-component-store-selling-core";
|
|
3
|
+
export declare abstract class BaseTransactionLine implements ITransactionLine {
|
|
4
|
+
private _lineNumber;
|
|
5
|
+
private _lineType;
|
|
6
|
+
private _extendedAmount;
|
|
7
|
+
private _extendedAmountExcludingTax?;
|
|
8
|
+
private _extendedAmountIncludingTax?;
|
|
9
|
+
private _endDateTime;
|
|
10
|
+
private _performingUser;
|
|
11
|
+
private _originalLineNumber;
|
|
12
|
+
static lineNumberFromJsonObject(transactionLineJsonObj: any): number;
|
|
13
|
+
static lineTypeFromJsonObject(transactionLineJsonObj: any): string;
|
|
14
|
+
static copiedFromLineNumberFromJsonObject(transactionLineJsonObj: any): number;
|
|
15
|
+
static zReportFromJsonObject(transactionLineJsonObj: any): string;
|
|
16
|
+
static fiscalIdFromJsonObject(transactionLineJsonObj: any): string;
|
|
17
|
+
static printerStatusFromJsonObject(transactionLineJsonObj: any): string;
|
|
18
|
+
static printerReportTypeFromJsonObject(transactionLineJsonObj: any): string;
|
|
19
|
+
static requestDataFromJsonObject(transactionLineJsonObj: any): string;
|
|
20
|
+
static printerSyncTypeFromJsonObject(transactionLineJsonObj: any): string;
|
|
21
|
+
static extendedAmountFromJsonObject(transactionLineJsonObj: any): Money;
|
|
22
|
+
static extendedAmountExcludingTaxFromJsonObject(transactionLineJsonObj: any): Money;
|
|
23
|
+
static extendedAmountIncludingTaxFromJsonObject(transactionLineJsonObj: any): Money;
|
|
24
|
+
static endDateTimeFromJsonObject(transactionLineJsonObj: any): Date;
|
|
25
|
+
get endDateTime(): Date;
|
|
26
|
+
/**
|
|
27
|
+
* Return TRUE if adding this line to a transaction should cause pricing for the transaction to be recalculated and
|
|
28
|
+
* FALSE otherwise. This value is used to improve performance by avoiding unnecessary requests to calculate pricing.
|
|
29
|
+
* @returns {boolean}
|
|
30
|
+
*/
|
|
31
|
+
abstract get couldAffectPricing(): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Return TRUE if adding this line to a transaction should cause taxation for the transaction to be recalculated and
|
|
34
|
+
* FALSE otherwise. This value is used to improve performance by avoiding unnecessary requests to calculate taxes.
|
|
35
|
+
* @returns {boolean}
|
|
36
|
+
*/
|
|
37
|
+
get couldAffectTaxation(): boolean;
|
|
38
|
+
get lineNumber(): number;
|
|
39
|
+
get lineType(): string;
|
|
40
|
+
get extendedAmount(): Money;
|
|
41
|
+
get extendedAmountExcludingTax(): Money;
|
|
42
|
+
get extendedAmountIncludingTax(): Money;
|
|
43
|
+
get performingUser(): IUser;
|
|
44
|
+
get originalLineNumber(): number;
|
|
45
|
+
setEndDate(endDateTime: Date): ITransactionLine;
|
|
46
|
+
setPerformingUser(performingUser: IUser): ITransactionLine;
|
|
47
|
+
setOriginalLineNumber(lineNumber: number): ITransactionLine;
|
|
48
|
+
protected constructor(lineNumber: number, lineType: string, extendedAmount?: Money, extendedAmountExcludingTax?: Money, extendedAmountIncludingTax?: Money, endDateTime?: Date, performingUser?: IUser, originalLineNumber?: number);
|
|
49
|
+
/**
|
|
50
|
+
* In general, line numbers should not be changed as they are part
|
|
51
|
+
* of the business key for a transaction line. The updateLineNumber
|
|
52
|
+
* method should only be called by the line's copyLineWithNewLineNumber
|
|
53
|
+
* so that it is only used on a freshly copied line.
|
|
54
|
+
*
|
|
55
|
+
* @param {number} lineNumber The line number to be used by the transaction line
|
|
56
|
+
*
|
|
57
|
+
* @return {ITransactionLine} The new line object that has the provided line number.
|
|
58
|
+
*/
|
|
59
|
+
protected updateLineNumber(lineNumber: number): ITransactionLine;
|
|
60
|
+
protected clone(): BaseTransactionLine;
|
|
61
|
+
protected updateExtendedAmountValue(amount: Money): ITransactionLine;
|
|
62
|
+
protected updateExtendedAmountExcludingTaxValue(amount: Money): ITransactionLine;
|
|
63
|
+
protected updateExtendedAmountIncludingTaxValue(amount: Money): ITransactionLine;
|
|
64
|
+
/**
|
|
65
|
+
* All subclass must implement this, so that clone can get an instance of the correct class.
|
|
66
|
+
*
|
|
67
|
+
* @return {ITransactionLine}
|
|
68
|
+
*/
|
|
69
|
+
protected abstract newTransactionLine(): BaseTransactionLine;
|
|
70
|
+
protected loadFromJsonObject(transactionLineJsonObj: any): void;
|
|
71
|
+
}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const scp_component_business_core_1 = require("@aptos-scp/scp-component-business-core");
|
|
4
|
+
const scp_component_logging_1 = require("@aptos-scp/scp-component-logging");
|
|
5
|
+
const User_1 = require("./User");
|
|
6
|
+
const logger = scp_component_logging_1.LogManager.getLogger("com.aptos.storesellingfeatures.domain.model.BaseTransactionLine");
|
|
7
|
+
class BaseTransactionLine {
|
|
8
|
+
// Since this is an abstract class, only subclasses need access to the constructor
|
|
9
|
+
constructor(lineNumber, lineType, extendedAmount, extendedAmountExcludingTax, extendedAmountIncludingTax, endDateTime, performingUser, originalLineNumber) {
|
|
10
|
+
this._lineNumber = lineNumber;
|
|
11
|
+
this._lineType = lineType;
|
|
12
|
+
this._extendedAmount = extendedAmount;
|
|
13
|
+
this._extendedAmountExcludingTax = extendedAmountExcludingTax;
|
|
14
|
+
this._extendedAmountIncludingTax = extendedAmountIncludingTax;
|
|
15
|
+
this._endDateTime = endDateTime;
|
|
16
|
+
this._performingUser = performingUser;
|
|
17
|
+
this._originalLineNumber = originalLineNumber;
|
|
18
|
+
}
|
|
19
|
+
static lineNumberFromJsonObject(transactionLineJsonObj) {
|
|
20
|
+
return transactionLineJsonObj._lineNumber;
|
|
21
|
+
}
|
|
22
|
+
static lineTypeFromJsonObject(transactionLineJsonObj) {
|
|
23
|
+
return transactionLineJsonObj._lineType;
|
|
24
|
+
}
|
|
25
|
+
static copiedFromLineNumberFromJsonObject(transactionLineJsonObj) {
|
|
26
|
+
return transactionLineJsonObj._copiedFromLineNumber;
|
|
27
|
+
}
|
|
28
|
+
static zReportFromJsonObject(transactionLineJsonObj) {
|
|
29
|
+
return transactionLineJsonObj._zReportNumber;
|
|
30
|
+
}
|
|
31
|
+
static fiscalIdFromJsonObject(transactionLineJsonObj) {
|
|
32
|
+
return transactionLineJsonObj._fiscalId;
|
|
33
|
+
}
|
|
34
|
+
static printerStatusFromJsonObject(transactionLineJsonObj) {
|
|
35
|
+
return transactionLineJsonObj._printerStatus;
|
|
36
|
+
}
|
|
37
|
+
static printerReportTypeFromJsonObject(transactionLineJsonObj) {
|
|
38
|
+
return transactionLineJsonObj._reportType;
|
|
39
|
+
}
|
|
40
|
+
static requestDataFromJsonObject(transactionLineJsonObj) {
|
|
41
|
+
return transactionLineJsonObj._requestData;
|
|
42
|
+
}
|
|
43
|
+
static printerSyncTypeFromJsonObject(transactionLineJsonObj) {
|
|
44
|
+
return transactionLineJsonObj._syncType;
|
|
45
|
+
}
|
|
46
|
+
static extendedAmountFromJsonObject(transactionLineJsonObj) {
|
|
47
|
+
return transactionLineJsonObj._extendedAmount
|
|
48
|
+
? scp_component_business_core_1.Money.fromJSON(transactionLineJsonObj._extendedAmount)
|
|
49
|
+
: undefined;
|
|
50
|
+
}
|
|
51
|
+
static extendedAmountExcludingTaxFromJsonObject(transactionLineJsonObj) {
|
|
52
|
+
return transactionLineJsonObj._extendedAmountExcludingTax
|
|
53
|
+
? scp_component_business_core_1.Money.fromJSON(transactionLineJsonObj._extendedAmountExcludingTax)
|
|
54
|
+
: undefined;
|
|
55
|
+
}
|
|
56
|
+
static extendedAmountIncludingTaxFromJsonObject(transactionLineJsonObj) {
|
|
57
|
+
return transactionLineJsonObj._extendedAmountIncludingTax
|
|
58
|
+
? scp_component_business_core_1.Money.fromJSON(transactionLineJsonObj._extendedAmountIncludingTax)
|
|
59
|
+
: undefined;
|
|
60
|
+
}
|
|
61
|
+
static endDateTimeFromJsonObject(transactionLineJsonObj) {
|
|
62
|
+
return transactionLineJsonObj._endDateTime ? new Date(transactionLineJsonObj._endDateTime) : undefined;
|
|
63
|
+
}
|
|
64
|
+
get endDateTime() {
|
|
65
|
+
return this._endDateTime;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Return TRUE if adding this line to a transaction should cause taxation for the transaction to be recalculated and
|
|
69
|
+
* FALSE otherwise. This value is used to improve performance by avoiding unnecessary requests to calculate taxes.
|
|
70
|
+
* @returns {boolean}
|
|
71
|
+
*/
|
|
72
|
+
// NOTE: Logically, whenever a line can affect pricing, it also can affect taxation.
|
|
73
|
+
// Further, it's expected to be rather rare for a line to affect taxation but NOT affect pricing
|
|
74
|
+
// (consider the example of some kinds of tender such as WIC).
|
|
75
|
+
// Therefore we provide this default implementation here in the base class.
|
|
76
|
+
get couldAffectTaxation() {
|
|
77
|
+
return this.couldAffectPricing;
|
|
78
|
+
}
|
|
79
|
+
get lineNumber() {
|
|
80
|
+
return this._lineNumber;
|
|
81
|
+
}
|
|
82
|
+
get lineType() {
|
|
83
|
+
return this._lineType;
|
|
84
|
+
}
|
|
85
|
+
get extendedAmount() {
|
|
86
|
+
return this._extendedAmount;
|
|
87
|
+
}
|
|
88
|
+
get extendedAmountExcludingTax() {
|
|
89
|
+
return this._extendedAmountExcludingTax;
|
|
90
|
+
}
|
|
91
|
+
get extendedAmountIncludingTax() {
|
|
92
|
+
return this._extendedAmountIncludingTax;
|
|
93
|
+
}
|
|
94
|
+
get performingUser() {
|
|
95
|
+
return this._performingUser;
|
|
96
|
+
}
|
|
97
|
+
get originalLineNumber() {
|
|
98
|
+
return this._originalLineNumber;
|
|
99
|
+
}
|
|
100
|
+
setEndDate(endDateTime) {
|
|
101
|
+
const entryMessage = logger.traceEntry("setEndDate", endDateTime);
|
|
102
|
+
const newLine = this.clone();
|
|
103
|
+
newLine._endDateTime = endDateTime;
|
|
104
|
+
return logger.traceExit(entryMessage, newLine);
|
|
105
|
+
}
|
|
106
|
+
setPerformingUser(performingUser) {
|
|
107
|
+
const entryMessage = logger.traceEntry("setPerformingUser");
|
|
108
|
+
const newLine = this.clone();
|
|
109
|
+
newLine._performingUser = performingUser;
|
|
110
|
+
return logger.traceExit(entryMessage, newLine);
|
|
111
|
+
}
|
|
112
|
+
setOriginalLineNumber(lineNumber) {
|
|
113
|
+
const entryMessage = logger.traceEntry("setPerformingUser");
|
|
114
|
+
const newLine = this.clone();
|
|
115
|
+
newLine._originalLineNumber = lineNumber;
|
|
116
|
+
return logger.traceExit(entryMessage, newLine);
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* In general, line numbers should not be changed as they are part
|
|
120
|
+
* of the business key for a transaction line. The updateLineNumber
|
|
121
|
+
* method should only be called by the line's copyLineWithNewLineNumber
|
|
122
|
+
* so that it is only used on a freshly copied line.
|
|
123
|
+
*
|
|
124
|
+
* @param {number} lineNumber The line number to be used by the transaction line
|
|
125
|
+
*
|
|
126
|
+
* @return {ITransactionLine} The new line object that has the provided line number.
|
|
127
|
+
*/
|
|
128
|
+
updateLineNumber(lineNumber) {
|
|
129
|
+
const entryMessage = logger.traceEntry("updateLineNumber");
|
|
130
|
+
const newLine = this.clone();
|
|
131
|
+
newLine._lineNumber = lineNumber;
|
|
132
|
+
return logger.traceExit(entryMessage, newLine);
|
|
133
|
+
}
|
|
134
|
+
clone() {
|
|
135
|
+
const newTransactionLine = this.newTransactionLine();
|
|
136
|
+
newTransactionLine._lineNumber = this._lineNumber;
|
|
137
|
+
newTransactionLine._lineType = this._lineType;
|
|
138
|
+
newTransactionLine._extendedAmount = this._extendedAmount;
|
|
139
|
+
newTransactionLine._extendedAmountExcludingTax = this._extendedAmountExcludingTax;
|
|
140
|
+
newTransactionLine._extendedAmountIncludingTax = this._extendedAmountIncludingTax;
|
|
141
|
+
newTransactionLine._endDateTime = this._endDateTime;
|
|
142
|
+
newTransactionLine._performingUser = this._performingUser;
|
|
143
|
+
newTransactionLine._originalLineNumber = this._originalLineNumber;
|
|
144
|
+
return newTransactionLine;
|
|
145
|
+
}
|
|
146
|
+
updateExtendedAmountValue(amount) {
|
|
147
|
+
const newLine = this.clone();
|
|
148
|
+
newLine._extendedAmount = amount;
|
|
149
|
+
return newLine;
|
|
150
|
+
}
|
|
151
|
+
updateExtendedAmountExcludingTaxValue(amount) {
|
|
152
|
+
const newLine = this.clone();
|
|
153
|
+
newLine._extendedAmountExcludingTax = amount;
|
|
154
|
+
return newLine;
|
|
155
|
+
}
|
|
156
|
+
updateExtendedAmountIncludingTaxValue(amount) {
|
|
157
|
+
const newLine = this.clone();
|
|
158
|
+
newLine._extendedAmountIncludingTax = amount;
|
|
159
|
+
return newLine;
|
|
160
|
+
}
|
|
161
|
+
loadFromJsonObject(transactionLineJsonObj) {
|
|
162
|
+
// Note: _lineNumber and _lineType are handled by the constructor, but the extendedAmount and endDateTime are
|
|
163
|
+
// optional on the constructor, so we handle them here, if not handled previously.
|
|
164
|
+
if (!this._extendedAmount && transactionLineJsonObj._extendedAmount) {
|
|
165
|
+
this._extendedAmount = scp_component_business_core_1.Money.fromJSON(transactionLineJsonObj._extendedAmount);
|
|
166
|
+
}
|
|
167
|
+
if (!this._extendedAmountExcludingTax && transactionLineJsonObj._extendedAmountExcludingTax) {
|
|
168
|
+
this._extendedAmountExcludingTax = scp_component_business_core_1.Money.fromJSON(transactionLineJsonObj._extendedAmountExcludingTax);
|
|
169
|
+
}
|
|
170
|
+
if (!this._extendedAmountIncludingTax && transactionLineJsonObj._extendedAmountIncludingTax) {
|
|
171
|
+
this._extendedAmountIncludingTax = scp_component_business_core_1.Money.fromJSON(transactionLineJsonObj._extendedAmountIncludingTax);
|
|
172
|
+
}
|
|
173
|
+
if (!this._endDateTime && transactionLineJsonObj._endDateTime) {
|
|
174
|
+
this._endDateTime = new Date(transactionLineJsonObj._endDateTime);
|
|
175
|
+
}
|
|
176
|
+
if (!this._performingUser && transactionLineJsonObj._performingUser) {
|
|
177
|
+
this._performingUser = User_1.User.createFromJsonObject(transactionLineJsonObj._performingUser);
|
|
178
|
+
}
|
|
179
|
+
this._originalLineNumber = transactionLineJsonObj._originalLineNumber;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
exports.BaseTransactionLine = BaseTransactionLine;
|
|
183
|
+
//# sourceMappingURL=BaseTransactionLine.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface ICashDrawerResponse {
|
|
2
|
+
data?: ICashDrawer[];
|
|
3
|
+
limit?: number;
|
|
4
|
+
offset?: number;
|
|
5
|
+
totalCount?: number;
|
|
6
|
+
}
|
|
7
|
+
export interface ICashDrawer {
|
|
8
|
+
id: string;
|
|
9
|
+
alternateKey: string;
|
|
10
|
+
cashDrawerKey: string;
|
|
11
|
+
hasTerminal: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface ICashDrawerDetail extends ICashDrawer {
|
|
14
|
+
retailLocationKey: string;
|
|
15
|
+
terminalKey?: string;
|
|
16
|
+
till: TillSummary;
|
|
17
|
+
}
|
|
18
|
+
export interface TillSummary {
|
|
19
|
+
id: string;
|
|
20
|
+
tillKey: string;
|
|
21
|
+
}
|