@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,337 @@
|
|
|
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 scp_component_store_selling_core_1 = require("@aptos-scp/scp-component-store-selling-core");
|
|
6
|
+
const logger = scp_component_logging_1.LogManager.getLogger("com.aptos.storesellingfeatures.domain.model.TenderAuthorizationSession");
|
|
7
|
+
var TenderAuthorizationState;
|
|
8
|
+
(function (TenderAuthorizationState) {
|
|
9
|
+
TenderAuthorizationState["InProgress"] = "InProgress";
|
|
10
|
+
TenderAuthorizationState["WaitingForSignature"] = "WaitingForSignature";
|
|
11
|
+
TenderAuthorizationState["WaitingForReversal"] = "WaitingForReversal";
|
|
12
|
+
TenderAuthorizationState["WaitingForTransactionVoid"] = "WaitingForTransactionVoid";
|
|
13
|
+
TenderAuthorizationState["WaitingForCallforAuthorization"] = "WaitingForCallforAuthorization";
|
|
14
|
+
TenderAuthorizationState["Completed"] = "Completed";
|
|
15
|
+
TenderAuthorizationState["BalanceInquiryInProgress"] = "BalanceInquiryInProgress";
|
|
16
|
+
TenderAuthorizationState["GiftCardIssueInProgress"] = "GiftCardIssueInProgress";
|
|
17
|
+
TenderAuthorizationState["GiftCardRefundInProgress"] = "GiftCardRefundInProgress";
|
|
18
|
+
TenderAuthorizationState["WaitingForPartialAuthorizationApproval"] = "waitingForPartialAuthorizationApproval";
|
|
19
|
+
TenderAuthorizationState["WaitingForRetryLastAuthorization"] = "WaitingForRetryLastAuthorization";
|
|
20
|
+
TenderAuthorizationState["WaitingForNonIntegratedInput"] = "WaitingForNonIntegratedInput";
|
|
21
|
+
TenderAuthorizationState["WaitingForTenderAuthManualReversal"] = "WaitingForTenderAuthManualReversal";
|
|
22
|
+
TenderAuthorizationState["CancelInProgress"] = "CancelInProgress";
|
|
23
|
+
TenderAuthorizationState["TokenRetrievalInProgress"] = "TokenRetrievalInProgress";
|
|
24
|
+
TenderAuthorizationState["TenderVoidInProgress"] = "TenderVoidInProgress";
|
|
25
|
+
TenderAuthorizationState["WaitingForCashoutConfirmation"] = "WaitingForCashoutConfirmation";
|
|
26
|
+
})(TenderAuthorizationState = exports.TenderAuthorizationState || (exports.TenderAuthorizationState = {}));
|
|
27
|
+
var AuthorizationMode;
|
|
28
|
+
(function (AuthorizationMode) {
|
|
29
|
+
AuthorizationMode["Item"] = "Item";
|
|
30
|
+
AuthorizationMode["Tender"] = "Tender";
|
|
31
|
+
})(AuthorizationMode = exports.AuthorizationMode || (exports.AuthorizationMode = {}));
|
|
32
|
+
const TenderAuthorizationStateNumericMap = {
|
|
33
|
+
0: "InProgress",
|
|
34
|
+
1: "WaitingForSignature",
|
|
35
|
+
2: "WaitingForReversal",
|
|
36
|
+
3: "WaitingForTransactionVoid",
|
|
37
|
+
4: "WaitingForCallforAuthorization",
|
|
38
|
+
5: "Completed",
|
|
39
|
+
6: "BalanceInquiryInProgress",
|
|
40
|
+
7: "GiftCardIssueInProgress",
|
|
41
|
+
8: "waitingForPartialAuthorizationApproval",
|
|
42
|
+
9: "GiftCardRefundInProgress",
|
|
43
|
+
10: "TenderVoidInProgress",
|
|
44
|
+
};
|
|
45
|
+
exports.TENDER_AUTH_SESSION = "TenderAuthSession";
|
|
46
|
+
class TenderAuthorizationSession {
|
|
47
|
+
constructor(state, lineNumber, inputs, offlineAuthorizationFields, authorizationMode = AuthorizationMode.Tender, requiredInputs = undefined, nonIntegratedFields, cashoutAmount, cashoutThreshold, tenderAuthCategory) {
|
|
48
|
+
this._type = exports.TENDER_AUTH_SESSION;
|
|
49
|
+
this._state = state;
|
|
50
|
+
this._lineNumber = lineNumber;
|
|
51
|
+
this._offlineAuthorizationFields = offlineAuthorizationFields;
|
|
52
|
+
this._authorizationMode = authorizationMode;
|
|
53
|
+
this._inputs = inputs;
|
|
54
|
+
this._requiredInputs = requiredInputs;
|
|
55
|
+
this._nonIntegratedFields = nonIntegratedFields;
|
|
56
|
+
this._cashoutAmount = cashoutAmount;
|
|
57
|
+
this._cashoutThreshold = cashoutThreshold;
|
|
58
|
+
this._tenderAuthCategory = tenderAuthCategory;
|
|
59
|
+
}
|
|
60
|
+
static createFromJsonObject(tenderAuthorizationSessionJsonObj) {
|
|
61
|
+
logger.traceEntry("createFromJsonObject");
|
|
62
|
+
// Note: the _type property is set by the constructor to a constant value.
|
|
63
|
+
const state = typeof tenderAuthorizationSessionJsonObj._state === "number"
|
|
64
|
+
? TenderAuthorizationStateNumericMap[tenderAuthorizationSessionJsonObj._state]
|
|
65
|
+
: tenderAuthorizationSessionJsonObj._state;
|
|
66
|
+
const lineNumber = tenderAuthorizationSessionJsonObj._lineNumber;
|
|
67
|
+
const offlineAuthorizationFields = loadOfflineAuthorizationFields(tenderAuthorizationSessionJsonObj);
|
|
68
|
+
const authorizationMode = tenderAuthorizationSessionJsonObj._authorizationMode;
|
|
69
|
+
let inputs = undefined;
|
|
70
|
+
//deserialize inputs from json into UiInput objects
|
|
71
|
+
if (tenderAuthorizationSessionJsonObj._inputs) {
|
|
72
|
+
inputs = [];
|
|
73
|
+
if (tenderAuthorizationSessionJsonObj._inputs) {
|
|
74
|
+
for (const input of tenderAuthorizationSessionJsonObj._inputs) {
|
|
75
|
+
inputs.push(new scp_component_store_selling_core_1.UiInput(input._inputKey, input._inputValue, input._inputType, input._inputOptions));
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
const requiredInputs = tenderAuthorizationSessionJsonObj._requiredInputs;
|
|
80
|
+
const cashoutAmount = tenderAuthorizationSessionJsonObj._cashoutAmount &&
|
|
81
|
+
scp_component_business_core_1.Money.fromJSON(tenderAuthorizationSessionJsonObj._cashoutAmount);
|
|
82
|
+
const cashoutThreshold = tenderAuthorizationSessionJsonObj._cashoutThreshold &&
|
|
83
|
+
scp_component_business_core_1.Money.fromJSON(tenderAuthorizationSessionJsonObj._cashoutThreshold);
|
|
84
|
+
return new TenderAuthorizationSession(state, lineNumber, inputs, offlineAuthorizationFields, authorizationMode, requiredInputs, undefined, cashoutAmount, cashoutThreshold);
|
|
85
|
+
}
|
|
86
|
+
static create() {
|
|
87
|
+
logger.traceEntry("create");
|
|
88
|
+
return new TenderAuthorizationSession(TenderAuthorizationState.Completed, undefined, undefined, undefined);
|
|
89
|
+
}
|
|
90
|
+
get type() {
|
|
91
|
+
return this._type;
|
|
92
|
+
}
|
|
93
|
+
get lineNumber() {
|
|
94
|
+
return this._lineNumber;
|
|
95
|
+
}
|
|
96
|
+
get offlineAuthorizationFields() {
|
|
97
|
+
return this._offlineAuthorizationFields;
|
|
98
|
+
}
|
|
99
|
+
get authorizationAmount() {
|
|
100
|
+
return this._offlineAuthorizationFields && this._offlineAuthorizationFields.authorizationAmount;
|
|
101
|
+
}
|
|
102
|
+
get authorizationMode() {
|
|
103
|
+
return this._authorizationMode;
|
|
104
|
+
}
|
|
105
|
+
get state() {
|
|
106
|
+
return this._state;
|
|
107
|
+
}
|
|
108
|
+
get inputs() {
|
|
109
|
+
return this._inputs;
|
|
110
|
+
}
|
|
111
|
+
get nonIntegratedFields() {
|
|
112
|
+
return this._nonIntegratedFields;
|
|
113
|
+
}
|
|
114
|
+
get cashoutAmount() {
|
|
115
|
+
return this._cashoutAmount;
|
|
116
|
+
}
|
|
117
|
+
get cashoutThreshold() {
|
|
118
|
+
return this._cashoutThreshold;
|
|
119
|
+
}
|
|
120
|
+
get requiredInputs() {
|
|
121
|
+
return this._requiredInputs;
|
|
122
|
+
}
|
|
123
|
+
get tenderAuthCategory() {
|
|
124
|
+
return this._tenderAuthCategory;
|
|
125
|
+
}
|
|
126
|
+
get stateValues() {
|
|
127
|
+
logger.traceEntry("get stateValues");
|
|
128
|
+
return new Map([
|
|
129
|
+
["TenderAuthorizationSession.authorizationAmount", this.authorizationAmount],
|
|
130
|
+
["TenderAuthorizationSession.lineNumber", this.lineNumber],
|
|
131
|
+
["TenderAuthorizationSession.authorizationMode", this.authorizationMode],
|
|
132
|
+
["TenderAuthorizationSession.state", this._state],
|
|
133
|
+
["TenderAuthorizationSession.requiredInputs", this._requiredInputs],
|
|
134
|
+
["TenderAuthorizationSession.offlineAuthorizationFields", this._offlineAuthorizationFields],
|
|
135
|
+
["TenderAuthorizationSession.nonIntegratedFields", this._nonIntegratedFields],
|
|
136
|
+
["TenderAuthorizationSession.isAuthorizationDeviceActive", this.isAuthorizationDeviceActive],
|
|
137
|
+
["TenderAuthorizationSession.inWaitingForCashoutConfirmation", this.inWaitingForCashoutConfirmation],
|
|
138
|
+
["TenderAuthorizationSession.cashoutAmount", this.cashoutAmount],
|
|
139
|
+
["TenderAuthorizationSession.cashoutThreshold", this.cashoutThreshold],
|
|
140
|
+
["TenderAuthorizationSession.tenderAuthCategory", this.tenderAuthCategory],
|
|
141
|
+
[
|
|
142
|
+
"TenderAuthorizationSession.inWaitingForPartialAuthorizationApproval",
|
|
143
|
+
this.inWaitingForPartialAuthorizationApproval,
|
|
144
|
+
],
|
|
145
|
+
]);
|
|
146
|
+
}
|
|
147
|
+
get inProgress() {
|
|
148
|
+
return (this._state === TenderAuthorizationState.InProgress ||
|
|
149
|
+
this._state === TenderAuthorizationState.TenderVoidInProgress);
|
|
150
|
+
}
|
|
151
|
+
get inWaitingForSignature() {
|
|
152
|
+
return this._state === TenderAuthorizationState.WaitingForSignature;
|
|
153
|
+
}
|
|
154
|
+
get inWaitingForCashoutConfirmation() {
|
|
155
|
+
return this._state === TenderAuthorizationState.WaitingForCashoutConfirmation;
|
|
156
|
+
}
|
|
157
|
+
get inWaitingForReversal() {
|
|
158
|
+
return this._state === TenderAuthorizationState.WaitingForReversal;
|
|
159
|
+
}
|
|
160
|
+
get inWaitingForCallforAuthorization() {
|
|
161
|
+
return this._state === TenderAuthorizationState.WaitingForCallforAuthorization;
|
|
162
|
+
}
|
|
163
|
+
get inWaitingForRetryLastAuthorization() {
|
|
164
|
+
return this._state === TenderAuthorizationState.WaitingForRetryLastAuthorization;
|
|
165
|
+
}
|
|
166
|
+
get inWaitingForTenderAuthManualReversal() {
|
|
167
|
+
return this._state === TenderAuthorizationState.WaitingForTenderAuthManualReversal;
|
|
168
|
+
}
|
|
169
|
+
get inCancelInProgress() {
|
|
170
|
+
return this._state === TenderAuthorizationState.CancelInProgress;
|
|
171
|
+
}
|
|
172
|
+
get completed() {
|
|
173
|
+
return this._state === TenderAuthorizationState.Completed;
|
|
174
|
+
}
|
|
175
|
+
get inBalanceInquiryInProgress() {
|
|
176
|
+
return this._state === TenderAuthorizationState.BalanceInquiryInProgress;
|
|
177
|
+
}
|
|
178
|
+
get inGiftCardIssueInProgress() {
|
|
179
|
+
return this._state === TenderAuthorizationState.GiftCardIssueInProgress;
|
|
180
|
+
}
|
|
181
|
+
get inGiftCardRefundInProgress() {
|
|
182
|
+
return this._state === TenderAuthorizationState.GiftCardRefundInProgress;
|
|
183
|
+
}
|
|
184
|
+
get inWaitingForPartialAuthorizationApproval() {
|
|
185
|
+
return this._state === TenderAuthorizationState.WaitingForPartialAuthorizationApproval;
|
|
186
|
+
}
|
|
187
|
+
get inWaitingForTransactionVoid() {
|
|
188
|
+
return this._state === TenderAuthorizationState.WaitingForTransactionVoid;
|
|
189
|
+
}
|
|
190
|
+
get inWaitingForNonIntegratedInput() {
|
|
191
|
+
return this._state === TenderAuthorizationState.WaitingForNonIntegratedInput;
|
|
192
|
+
}
|
|
193
|
+
get inTokenRetrievalInProgress() {
|
|
194
|
+
return this._state === TenderAuthorizationState.TokenRetrievalInProgress;
|
|
195
|
+
}
|
|
196
|
+
get inTenderVoidInProgress() {
|
|
197
|
+
return this._state === TenderAuthorizationState.TenderVoidInProgress;
|
|
198
|
+
}
|
|
199
|
+
get isAuthorizationDeviceActive() {
|
|
200
|
+
return (this.inGiftCardIssueInProgress ||
|
|
201
|
+
this.inBalanceInquiryInProgress ||
|
|
202
|
+
this.inWaitingForReversal ||
|
|
203
|
+
this.inWaitingForTransactionVoid ||
|
|
204
|
+
this.inCancelInProgress ||
|
|
205
|
+
this.inProgress ||
|
|
206
|
+
this.inGiftCardRefundInProgress ||
|
|
207
|
+
this.inTokenRetrievalInProgress ||
|
|
208
|
+
this.inTenderVoidInProgress);
|
|
209
|
+
}
|
|
210
|
+
startAuthorization(lineNumber, tenderAuthCategory) {
|
|
211
|
+
logger.traceEntry("startAuthorization");
|
|
212
|
+
if (this.inWaitingForTransactionVoid) {
|
|
213
|
+
return new TenderAuthorizationSession(TenderAuthorizationState.WaitingForTransactionVoid, lineNumber, this.inputs, undefined);
|
|
214
|
+
}
|
|
215
|
+
else {
|
|
216
|
+
return this.startInProgress(lineNumber, tenderAuthCategory);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
startInProgress(lineNumber, tenderAuthCategory, authorizationMode = AuthorizationMode.Tender) {
|
|
220
|
+
logger.traceEntry("startInProgress");
|
|
221
|
+
return this.inProgress
|
|
222
|
+
? this
|
|
223
|
+
: new TenderAuthorizationSession(TenderAuthorizationState.InProgress, lineNumber, undefined, undefined, authorizationMode, undefined, undefined, undefined, undefined, tenderAuthCategory);
|
|
224
|
+
}
|
|
225
|
+
startTenderVoid(lineNumber, tenderAuthCategory) {
|
|
226
|
+
logger.traceEntry("startTenderVoid");
|
|
227
|
+
return this.inTenderVoidInProgress
|
|
228
|
+
? this
|
|
229
|
+
: new TenderAuthorizationSession(TenderAuthorizationState.TenderVoidInProgress, lineNumber, undefined, undefined, undefined, undefined, undefined, undefined, undefined, tenderAuthCategory);
|
|
230
|
+
}
|
|
231
|
+
startBalanceInquiry(lineNumber) {
|
|
232
|
+
logger.traceEntry("startBalanceInquiry");
|
|
233
|
+
return this.inBalanceInquiryInProgress
|
|
234
|
+
? this
|
|
235
|
+
: new TenderAuthorizationSession(TenderAuthorizationState.BalanceInquiryInProgress, lineNumber, undefined, undefined);
|
|
236
|
+
}
|
|
237
|
+
startGiftCardIssue(lineNumber) {
|
|
238
|
+
logger.traceEntry("startGiftCardIssue");
|
|
239
|
+
return this.inGiftCardIssueInProgress
|
|
240
|
+
? this
|
|
241
|
+
: new TenderAuthorizationSession(TenderAuthorizationState.GiftCardIssueInProgress, lineNumber, undefined, undefined, AuthorizationMode.Item);
|
|
242
|
+
}
|
|
243
|
+
startGiftCardRefund(lineNumber) {
|
|
244
|
+
logger.traceEntry("startGiftCardRefund");
|
|
245
|
+
return this.inGiftCardRefundInProgress
|
|
246
|
+
? this
|
|
247
|
+
: new TenderAuthorizationSession(TenderAuthorizationState.GiftCardRefundInProgress, lineNumber, undefined, undefined);
|
|
248
|
+
}
|
|
249
|
+
startWaitingForPartialAuthorizationApproval(lineNumber) {
|
|
250
|
+
logger.traceEntry("startWaitingForPartialAuthorizationApproval");
|
|
251
|
+
return this.inWaitingForPartialAuthorizationApproval
|
|
252
|
+
? this
|
|
253
|
+
: new TenderAuthorizationSession(TenderAuthorizationState.WaitingForPartialAuthorizationApproval, lineNumber, undefined, undefined);
|
|
254
|
+
}
|
|
255
|
+
waitForSignature() {
|
|
256
|
+
logger.traceEntry("startSignature");
|
|
257
|
+
return this.inWaitingForSignature
|
|
258
|
+
? this
|
|
259
|
+
: new TenderAuthorizationSession(TenderAuthorizationState.WaitingForSignature, undefined, undefined, undefined);
|
|
260
|
+
}
|
|
261
|
+
waitForCashoutConfirmation(lineNumber, amount, threshold) {
|
|
262
|
+
logger.traceEntry("waitForCashoutConfirmation");
|
|
263
|
+
return this.inWaitingForCashoutConfirmation
|
|
264
|
+
? this
|
|
265
|
+
: new TenderAuthorizationSession(TenderAuthorizationState.WaitingForCashoutConfirmation, lineNumber, undefined, undefined, undefined, undefined, undefined, amount, threshold);
|
|
266
|
+
}
|
|
267
|
+
waitForCallforAuthorization(lineNumber, offlineAuthorizationFields, authorizationMode) {
|
|
268
|
+
logger.traceEntry("waitForCallforAuthorization");
|
|
269
|
+
return this.inWaitingForCallforAuthorization
|
|
270
|
+
? this
|
|
271
|
+
: new TenderAuthorizationSession(TenderAuthorizationState.WaitingForCallforAuthorization, lineNumber, undefined, offlineAuthorizationFields, authorizationMode);
|
|
272
|
+
}
|
|
273
|
+
waitForTokenRetrieval(lineNumber) {
|
|
274
|
+
logger.traceEntry("waitForTokenRetrieval");
|
|
275
|
+
return this.inTokenRetrievalInProgress
|
|
276
|
+
? this
|
|
277
|
+
: new TenderAuthorizationSession(TenderAuthorizationState.TokenRetrievalInProgress, lineNumber, undefined, undefined, AuthorizationMode.Item);
|
|
278
|
+
}
|
|
279
|
+
waitForRetryLastAuthorization(lineNumber) {
|
|
280
|
+
logger.traceEntry("waitForRetryLastAuthorization");
|
|
281
|
+
return this.inWaitingForCallforAuthorization
|
|
282
|
+
? this
|
|
283
|
+
: new TenderAuthorizationSession(TenderAuthorizationState.WaitingForRetryLastAuthorization, lineNumber, undefined, undefined);
|
|
284
|
+
}
|
|
285
|
+
waitForNonIntegratedInput(lineNumber, requiredInputs, nonIntegratedFields) {
|
|
286
|
+
logger.traceEntry("waitForNonIntegratedInput");
|
|
287
|
+
return this.inWaitingForNonIntegratedInput
|
|
288
|
+
? this
|
|
289
|
+
: new TenderAuthorizationSession(TenderAuthorizationState.WaitingForNonIntegratedInput, lineNumber, this._inputs, undefined, undefined, requiredInputs, nonIntegratedFields);
|
|
290
|
+
}
|
|
291
|
+
waitForTenderAuthManualReversal(lineNumber) {
|
|
292
|
+
logger.traceEntry("waitForTenderAuthManualReversal");
|
|
293
|
+
return this.inWaitingForTenderAuthManualReversal
|
|
294
|
+
? this
|
|
295
|
+
: new TenderAuthorizationSession(TenderAuthorizationState.WaitingForTenderAuthManualReversal, lineNumber, undefined, undefined);
|
|
296
|
+
}
|
|
297
|
+
startTenderAuthManualReversal(lineNumber) {
|
|
298
|
+
logger.traceEntry("startTenderAuthManualReversal");
|
|
299
|
+
return this.inCancelInProgress
|
|
300
|
+
? this
|
|
301
|
+
: new TenderAuthorizationSession(TenderAuthorizationState.CancelInProgress, lineNumber, undefined, undefined);
|
|
302
|
+
}
|
|
303
|
+
startReversal(lineNumber) {
|
|
304
|
+
logger.traceEntry("startReversal");
|
|
305
|
+
return this.inWaitingForReversal
|
|
306
|
+
? this
|
|
307
|
+
: new TenderAuthorizationSession(TenderAuthorizationState.WaitingForReversal, lineNumber, undefined, undefined);
|
|
308
|
+
}
|
|
309
|
+
saveInputs(uiInputs) {
|
|
310
|
+
logger.traceEntry("saveInputs");
|
|
311
|
+
return new TenderAuthorizationSession(this._state, this._lineNumber, uiInputs, undefined);
|
|
312
|
+
}
|
|
313
|
+
stop() {
|
|
314
|
+
logger.traceEntry("stop");
|
|
315
|
+
return this.completed
|
|
316
|
+
? this
|
|
317
|
+
: new TenderAuthorizationSession(TenderAuthorizationState.Completed, undefined, undefined, undefined);
|
|
318
|
+
}
|
|
319
|
+
startVoidTransaction(lineNumber) {
|
|
320
|
+
logger.traceEntry("startVoidTransaction");
|
|
321
|
+
return this.inWaitingForTransactionVoid
|
|
322
|
+
? this
|
|
323
|
+
: new TenderAuthorizationSession(TenderAuthorizationState.WaitingForTransactionVoid, lineNumber, this._inputs, undefined);
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
exports.TenderAuthorizationSession = TenderAuthorizationSession;
|
|
327
|
+
function loadOfflineAuthorizationFields(tenderAuthorizationSessionJsonObj) {
|
|
328
|
+
return (tenderAuthorizationSessionJsonObj &&
|
|
329
|
+
tenderAuthorizationSessionJsonObj._offlineAuthorizationFields && {
|
|
330
|
+
phoneNumber: tenderAuthorizationSessionJsonObj._offlineAuthorizationFields.phoneNumber,
|
|
331
|
+
maskedCardNumber: tenderAuthorizationSessionJsonObj._offlineAuthorizationFields.maskedCardNumber,
|
|
332
|
+
authorizationAmount: tenderAuthorizationSessionJsonObj._offlineAuthorizationFields.authorizationAmount &&
|
|
333
|
+
new scp_component_business_core_1.Money(tenderAuthorizationSessionJsonObj._offlineAuthorizationFields.authorizationAmount.amount, tenderAuthorizationSessionJsonObj._offlineAuthorizationFields.authorizationAmount.currency),
|
|
334
|
+
originalRequestType: tenderAuthorizationSessionJsonObj._offlineAuthorizationFields.originalRequestType,
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
//# sourceMappingURL=TenderAuthorizationSession.js.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { DeviceIdentity, ITransaction, ITransactionLine, ITransactionLineFactory, IUser } from "@aptos-scp/scp-component-store-selling-core";
|
|
2
|
+
import { ITransactionReferenceFormatter } from "../service";
|
|
3
|
+
import { RetailTransaction } from "./RetailTransaction";
|
|
4
|
+
import { IFiscalSignature } from "@aptos-scp/scp-types-commerce-transaction";
|
|
5
|
+
export declare const TENDER_CONTROL_TRANSACTION_TYPE = "TenderControlTransaction";
|
|
6
|
+
export declare class TenderControlTransaction extends RetailTransaction {
|
|
7
|
+
private _accountingCurrency;
|
|
8
|
+
private _referenceNumber;
|
|
9
|
+
private _transactionReferenceFormatter;
|
|
10
|
+
private _fiscalTransactionNumber;
|
|
11
|
+
private _fiscalSignature;
|
|
12
|
+
static createFromJsonObj(transactionJsonObj: any, transactionLineFactory: ITransactionLineFactory, transactionReferenceFormatter: ITransactionReferenceFormatter): TenderControlTransaction;
|
|
13
|
+
constructor(deviceIdentity: DeviceIdentity, businessDayDate: string, transactionNumber: number, user?: IUser, transactionId?: string, accountingCurrency?: string, transactionReferenceFormatter?: ITransactionReferenceFormatter, fiscalTransactionNumber?: string, fiscalSignature?: IFiscalSignature);
|
|
14
|
+
clone(): ITransaction;
|
|
15
|
+
assignFiscalSignature(signatureData: IFiscalSignature): ITransaction;
|
|
16
|
+
assignFiscalTransactionNumber(fiscalTransactionNumber: string): ITransaction;
|
|
17
|
+
get accountingCurrency(): string;
|
|
18
|
+
get referenceNumber(): string;
|
|
19
|
+
get isTenderExchangeTransaction(): boolean;
|
|
20
|
+
get isCompleteTenderExchangeTransaction(): boolean;
|
|
21
|
+
get transactionStateValues(): Readonly<Map<string, any>>;
|
|
22
|
+
get fiscalTransactionNumber(): string;
|
|
23
|
+
get fiscalSignature(): IFiscalSignature;
|
|
24
|
+
findLineByLineNumber(lineNumber: number): ITransactionLine;
|
|
25
|
+
toJSON(): object;
|
|
26
|
+
protected newTransaction(): RetailTransaction;
|
|
27
|
+
protected loadFromJsonObject(transactionJsonObj: any, transactionLineFactory: ITransactionLineFactory): void;
|
|
28
|
+
private generateTransactionReferenceNumber;
|
|
29
|
+
}
|
|
30
|
+
export declare const isTenderControlTransaction: (transaction: ITransaction) => transaction is TenderControlTransaction;
|
|
@@ -0,0 +1,138 @@
|
|
|
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 config_1 = require("../../config");
|
|
5
|
+
const RetailTransaction_1 = require("./RetailTransaction");
|
|
6
|
+
const tender_1 = require("./tender");
|
|
7
|
+
exports.TENDER_CONTROL_TRANSACTION_TYPE = "TenderControlTransaction";
|
|
8
|
+
class TenderControlTransaction extends RetailTransaction_1.RetailTransaction {
|
|
9
|
+
constructor(deviceIdentity, businessDayDate, transactionNumber, user, transactionId, accountingCurrency, transactionReferenceFormatter, fiscalTransactionNumber, fiscalSignature) {
|
|
10
|
+
super(deviceIdentity, businessDayDate, transactionNumber, exports.TENDER_CONTROL_TRANSACTION_TYPE, user, transactionId);
|
|
11
|
+
this._accountingCurrency = accountingCurrency;
|
|
12
|
+
this._transactionReferenceFormatter = transactionReferenceFormatter;
|
|
13
|
+
this._fiscalTransactionNumber = fiscalTransactionNumber;
|
|
14
|
+
this._fiscalSignature = fiscalSignature;
|
|
15
|
+
}
|
|
16
|
+
static createFromJsonObj(transactionJsonObj, transactionLineFactory, transactionReferenceFormatter) {
|
|
17
|
+
const transactionId = RetailTransaction_1.RetailTransaction.getTransactionIdFromJsonObject(transactionJsonObj);
|
|
18
|
+
const deviceIdentity = RetailTransaction_1.RetailTransaction.getDeviceIdentityFromJsonObject(transactionJsonObj);
|
|
19
|
+
const businessDayDate = RetailTransaction_1.RetailTransaction.getBusinessDayDateFromJsonObject(transactionJsonObj);
|
|
20
|
+
const transactionNumber = RetailTransaction_1.RetailTransaction.getTransactionNumberFromJsonObject(transactionJsonObj);
|
|
21
|
+
const performingUser = RetailTransaction_1.RetailTransaction.getPerformingUserFromJsonObject(transactionJsonObj);
|
|
22
|
+
const accountingCurrency = transactionJsonObj._accountingCurrency;
|
|
23
|
+
const transaction = new TenderControlTransaction(deviceIdentity, businessDayDate, transactionNumber, performingUser, transactionId, accountingCurrency, transactionReferenceFormatter);
|
|
24
|
+
transaction.updateAccountabilityMode(transactionJsonObj._tillAccountabilityMode, transactionJsonObj._cashDrawerAccessMode);
|
|
25
|
+
transaction.loadFromJsonObject(transactionJsonObj, transactionLineFactory);
|
|
26
|
+
return transaction;
|
|
27
|
+
}
|
|
28
|
+
clone() {
|
|
29
|
+
const transaction = super.clone();
|
|
30
|
+
if (exports.isTenderControlTransaction(transaction)) {
|
|
31
|
+
transaction._accountingCurrency = this._accountingCurrency;
|
|
32
|
+
transaction._transactionReferenceFormatter = this._transactionReferenceFormatter;
|
|
33
|
+
transaction._referenceNumber = this._referenceNumber;
|
|
34
|
+
transaction._fiscalTransactionNumber = this._fiscalTransactionNumber;
|
|
35
|
+
transaction._fiscalSignature = this._fiscalSignature;
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
throw new scp_component_store_selling_core_1.PosError("Cannot clone TenderControlTransaction, because new " + "instance is not a TenderControlTransaction.", config_1.SSF_TRANSACTION_ERROR_CODE);
|
|
39
|
+
}
|
|
40
|
+
return transaction;
|
|
41
|
+
}
|
|
42
|
+
assignFiscalSignature(signatureData) {
|
|
43
|
+
const newTransaction = this.clone();
|
|
44
|
+
newTransaction._fiscalSignature = signatureData;
|
|
45
|
+
return newTransaction;
|
|
46
|
+
}
|
|
47
|
+
assignFiscalTransactionNumber(fiscalTransactionNumber) {
|
|
48
|
+
const newTransaction = this.clone();
|
|
49
|
+
newTransaction._fiscalTransactionNumber = fiscalTransactionNumber;
|
|
50
|
+
return newTransaction;
|
|
51
|
+
}
|
|
52
|
+
get accountingCurrency() {
|
|
53
|
+
return this._accountingCurrency;
|
|
54
|
+
}
|
|
55
|
+
get referenceNumber() {
|
|
56
|
+
if (super.isOpen() && this._referenceNumber === undefined) {
|
|
57
|
+
this.generateTransactionReferenceNumber(this);
|
|
58
|
+
}
|
|
59
|
+
return this._referenceNumber;
|
|
60
|
+
}
|
|
61
|
+
get isTenderExchangeTransaction() {
|
|
62
|
+
return !!(this.lines && this.lines.find(tender_1.isStartTenderExchangeLine));
|
|
63
|
+
}
|
|
64
|
+
get isCompleteTenderExchangeTransaction() {
|
|
65
|
+
return (this.isTenderExchangeTransaction &&
|
|
66
|
+
!!(this.lines.find((line) => tender_1.isTenderExchangeLine && line.lineType === tender_1.TENDER_EXCHANGE_IN_LINE_TYPE) &&
|
|
67
|
+
this.lines.find((line) => tender_1.isTenderExchangeLine && line.lineType === tender_1.TENDER_EXCHANGE_OUT_LINE_TYPE)));
|
|
68
|
+
}
|
|
69
|
+
get transactionStateValues() {
|
|
70
|
+
return new Map([
|
|
71
|
+
...super.transactionStateValues.entries(),
|
|
72
|
+
["transaction.referenceNumber", this._referenceNumber],
|
|
73
|
+
["transaction.accountingCurrency", this._accountingCurrency],
|
|
74
|
+
["transaction.isTenderExchangeTransaction", this.isTenderExchangeTransaction],
|
|
75
|
+
]);
|
|
76
|
+
}
|
|
77
|
+
get fiscalTransactionNumber() {
|
|
78
|
+
return this._fiscalTransactionNumber;
|
|
79
|
+
}
|
|
80
|
+
get fiscalSignature() {
|
|
81
|
+
return this._fiscalSignature;
|
|
82
|
+
}
|
|
83
|
+
findLineByLineNumber(lineNumber) {
|
|
84
|
+
if (lineNumber && super.lines.length > 0) {
|
|
85
|
+
return super.findLineByLineNumber(lineNumber);
|
|
86
|
+
}
|
|
87
|
+
return undefined;
|
|
88
|
+
}
|
|
89
|
+
//Any new property needs to added here as well.
|
|
90
|
+
//Overridden toJSON to ensure that circular reference does not fail the transaction
|
|
91
|
+
//when storing in local memory and loading back as json object
|
|
92
|
+
toJSON() {
|
|
93
|
+
return {
|
|
94
|
+
_transactionId: super.transactionId,
|
|
95
|
+
_deviceIdentity: super.deviceIdentity,
|
|
96
|
+
_businessDayDate: super.businessDayDate,
|
|
97
|
+
_transactionNumber: super.transactionNumber,
|
|
98
|
+
_transactionType: super.transactionType,
|
|
99
|
+
_performingUser: super.performingUser,
|
|
100
|
+
_startDateTime: super.startDateTime,
|
|
101
|
+
_endDateTime: super.endDateTime,
|
|
102
|
+
_timezoneOffsetInMinutes: super.timezoneOffsetInMinutes,
|
|
103
|
+
_lines: super.lines,
|
|
104
|
+
_state: super.state,
|
|
105
|
+
_voided: super.voided,
|
|
106
|
+
_closingState: super.closingState,
|
|
107
|
+
_resumeToken: super.resumeToken,
|
|
108
|
+
_accountingCurrency: this.accountingCurrency,
|
|
109
|
+
_referenceNumber: this.referenceNumber,
|
|
110
|
+
_fiscalTransactionNumber: this.fiscalTransactionNumber,
|
|
111
|
+
_fiscalSignature: this.fiscalSignature,
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
newTransaction() {
|
|
115
|
+
return new TenderControlTransaction(this.deviceIdentity, this.businessDayDate, this.transactionNumber, this.performingUser, this.transactionId, this.accountingCurrency, this._transactionReferenceFormatter, this.fiscalTransactionNumber, this.fiscalSignature);
|
|
116
|
+
}
|
|
117
|
+
loadFromJsonObject(transactionJsonObj, transactionLineFactory) {
|
|
118
|
+
var _a, _b;
|
|
119
|
+
super.loadFromJsonObject(transactionJsonObj, transactionLineFactory);
|
|
120
|
+
this._referenceNumber = transactionJsonObj._referenceNumber;
|
|
121
|
+
if ((_a = transactionJsonObj) === null || _a === void 0 ? void 0 : _a._fiscalTransactionNumber) {
|
|
122
|
+
this._fiscalTransactionNumber = transactionJsonObj._fiscalTransactionNumber;
|
|
123
|
+
}
|
|
124
|
+
if ((_b = transactionJsonObj) === null || _b === void 0 ? void 0 : _b._fiscalSignature) {
|
|
125
|
+
this._fiscalSignature = transactionJsonObj._fiscalSignature;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
generateTransactionReferenceNumber(transaction) {
|
|
129
|
+
this._referenceNumber = this._transactionReferenceFormatter.generateTransactionReference(transaction);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
exports.TenderControlTransaction = TenderControlTransaction;
|
|
133
|
+
exports.isTenderControlTransaction = (transaction) => {
|
|
134
|
+
var _a;
|
|
135
|
+
return (transaction instanceof TenderControlTransaction ||
|
|
136
|
+
((_a = transaction) === null || _a === void 0 ? void 0 : _a.transactionType) === exports.TENDER_CONTROL_TRANSACTION_TYPE);
|
|
137
|
+
};
|
|
138
|
+
//# sourceMappingURL=TenderControlTransaction.js.map
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { Money } from "@aptos-scp/scp-component-business-core";
|
|
2
|
+
import { IConfigurationValues, IState } from "@aptos-scp/scp-component-store-selling-core";
|
|
3
|
+
import { IPaymentProviderSpecificInfo, TenderSubType, TenderType } from "@aptos-scp/scp-types-commerce-devices";
|
|
4
|
+
import { IOtherTransactionLineReference, ITransactionReference } from "@aptos-scp/scp-types-commerce-transaction";
|
|
5
|
+
import { TransactionWithAdditionalData } from "@aptos-scp/scp-types-ss-transaction-history";
|
|
6
|
+
import { TenderAdjustmentType, TenderAuthCategory } from "./Constants";
|
|
7
|
+
import { TenderAuthorizationStatusLine } from "./tender";
|
|
8
|
+
export declare const TENDER_SESSION: string;
|
|
9
|
+
export declare enum TenderHandlingSessionState {
|
|
10
|
+
InProgress = "InProgress",
|
|
11
|
+
Completed = "Completed"
|
|
12
|
+
}
|
|
13
|
+
export interface IOriginalTransactionDetails {
|
|
14
|
+
originalTransactionId: string;
|
|
15
|
+
originalTenders: IOriginalTender[];
|
|
16
|
+
originalTransactionReferenceNumber: string;
|
|
17
|
+
orderReferenceNumber: string;
|
|
18
|
+
returnTotalAmount: Money;
|
|
19
|
+
cancelTotalAmount: Money;
|
|
20
|
+
refundedAmount: Money;
|
|
21
|
+
}
|
|
22
|
+
export interface IOriginalTender {
|
|
23
|
+
/**
|
|
24
|
+
* Total amount that can be refunded to the tender
|
|
25
|
+
*/
|
|
26
|
+
originalTenderAmount: Money;
|
|
27
|
+
/**
|
|
28
|
+
* Total amount refunded in the current return for the referenced tender
|
|
29
|
+
*/
|
|
30
|
+
refundedAmount: Money;
|
|
31
|
+
/**
|
|
32
|
+
* Total amount refunded from previous transactions
|
|
33
|
+
*/
|
|
34
|
+
previouslyRefundedAmount: Money;
|
|
35
|
+
/**
|
|
36
|
+
* Refunds is not allowed if:
|
|
37
|
+
* The tender has had its full originalTenderAmount refunded outside of the current return
|
|
38
|
+
*/
|
|
39
|
+
refundAllowed: boolean;
|
|
40
|
+
showReference: boolean;
|
|
41
|
+
tenderName: string;
|
|
42
|
+
tenderId: string;
|
|
43
|
+
tenderType?: TenderType;
|
|
44
|
+
tenderAuthCategory: TenderAuthCategory;
|
|
45
|
+
referenceNumber?: string;
|
|
46
|
+
maskedCardNumber?: string;
|
|
47
|
+
cardToken?: string;
|
|
48
|
+
originalLineReferences: IOriginalLineReference[];
|
|
49
|
+
paymentProviderSpecificInfo?: IPaymentProviderSpecificInfo;
|
|
50
|
+
adjustmentType?: TenderAdjustmentType;
|
|
51
|
+
adjustmentAmount?: Money;
|
|
52
|
+
subType?: TenderSubType;
|
|
53
|
+
isForeignTender?: boolean;
|
|
54
|
+
originalTransactionReferences?: IOriginalTransactionRefundReference[];
|
|
55
|
+
lastFour?: string;
|
|
56
|
+
currencyCode?: string;
|
|
57
|
+
isMappedTender?: boolean;
|
|
58
|
+
refundableAmount?: Money;
|
|
59
|
+
mappedOriginTenderId?: string;
|
|
60
|
+
additionalTenderAuthCategories?: TenderAuthCategory[];
|
|
61
|
+
}
|
|
62
|
+
export interface IOriginalLineReference {
|
|
63
|
+
lineNumber: number;
|
|
64
|
+
canonicalSequenceNumber: number;
|
|
65
|
+
/**
|
|
66
|
+
* Total amount from the original tender, used to keep track of original tender when unreferenced tenders are combined
|
|
67
|
+
*/
|
|
68
|
+
originalReferenceTenderAmount?: Money;
|
|
69
|
+
/**
|
|
70
|
+
* Previously refunded amount from the original tender,
|
|
71
|
+
* used to keep track of original tender when unreferenced tenders are combined
|
|
72
|
+
*/
|
|
73
|
+
originalReferencePreviouslyRefundedAmount?: Money;
|
|
74
|
+
}
|
|
75
|
+
export interface IOriginalTransactionRefundReference {
|
|
76
|
+
transactionLineReference: IOtherTransactionLineReference;
|
|
77
|
+
refundableAmount: Money;
|
|
78
|
+
transactionReference?: ITransactionReference;
|
|
79
|
+
}
|
|
80
|
+
export declare class TenderHandlingSession implements IState {
|
|
81
|
+
private readonly _type;
|
|
82
|
+
private readonly _state;
|
|
83
|
+
private readonly _originalTransactionDetails;
|
|
84
|
+
static createFromJsonObject(tenderSessionJsonObj: any): TenderHandlingSession;
|
|
85
|
+
static create(): TenderHandlingSession;
|
|
86
|
+
get type(): string;
|
|
87
|
+
get stateValues(): Readonly<Map<string, any>>;
|
|
88
|
+
complete(): TenderHandlingSession;
|
|
89
|
+
addOriginalTransaction(originalTransaction: TransactionWithAdditionalData, configuredTenders: IConfigurationValues): TenderHandlingSession;
|
|
90
|
+
updateOriginalTransactionDetails(originalTransactionDetails: IOriginalTransactionDetails, originalTransactionId: string): TenderHandlingSession;
|
|
91
|
+
getReferencedOriginalTender(reference: IOriginalTransactionRefundReference): IOriginalTender;
|
|
92
|
+
getOriginalReferenceNumber(statusLine: TenderAuthorizationStatusLine): string;
|
|
93
|
+
getOriginalTenderReferenceLineSequenceNumber(reference: IOriginalTransactionRefundReference): number;
|
|
94
|
+
get activeOriginalTransactionDetails(): IOriginalTransactionDetails[];
|
|
95
|
+
get originalTransactionDetails(): IOriginalTransactionDetails[];
|
|
96
|
+
get inProgress(): boolean;
|
|
97
|
+
private constructor();
|
|
98
|
+
}
|
|
99
|
+
export declare function originalTenderHasOriginalLineNumber(originalTender: IOriginalTender, lineNumber: number): boolean;
|
|
100
|
+
export declare function getOriginalTransactionReferences(transactionId: string, originalLineReferences: IOriginalLineReference[]): IOriginalTransactionRefundReference[];
|