@aptos-scp/scp-component-store-selling-features-domain-model 1.0.6 → 1.0.7

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.
Files changed (334) hide show
  1. package/lib/config/DiTypes.js +0 -1
  2. package/lib/config/ErrorCodes.js +0 -1
  3. package/lib/config/index.js +6 -17
  4. package/lib/config/inversify/binding-helpers.d.ts +1 -1
  5. package/lib/config/inversify/binding-helpers.js +0 -1
  6. package/lib/config/inversify/index.js +6 -17
  7. package/lib/config/inversify/inversify.app.config.js +2 -3
  8. package/lib/config/inversify/inversify.terminal.config/index.js +4 -15
  9. package/lib/config/inversify/inversify.terminal.config/transaction-services.config.js +1 -2
  10. package/lib/domain/UIBusinessEventTypes.js +0 -7
  11. package/lib/domain/index.js +7 -19
  12. package/lib/domain/model/ApplicationControlTransaction.js +2 -4
  13. package/lib/domain/model/BaseLineDecorator.js +19 -21
  14. package/lib/domain/model/BaseTransactionLine.js +11 -12
  15. package/lib/domain/model/Constants.js +0 -1
  16. package/lib/domain/model/CorruptedTransaction.js +5 -7
  17. package/lib/domain/model/CreateEinvoiceLine.js +4 -5
  18. package/lib/domain/model/Customer.js +7 -9
  19. package/lib/domain/model/CustomerServiceTransaction.js +1 -3
  20. package/lib/domain/model/EmailVerification.js +6 -7
  21. package/lib/domain/model/Employee.js +9 -10
  22. package/lib/domain/model/EndOfTransactionTenderingSession.js +12 -12
  23. package/lib/domain/model/ExchangeRates.js +0 -1
  24. package/lib/domain/model/FiscalControlTransaction.js +2 -4
  25. package/lib/domain/model/FulfillmentGroup.js +34 -36
  26. package/lib/domain/model/IFiscalTransactionNumberMaintainer.js +0 -1
  27. package/lib/domain/model/IInvoiceOperation.js +0 -1
  28. package/lib/domain/model/ILoyaltyVoucher.js +0 -1
  29. package/lib/domain/model/ISingleUseCoupon.js +4 -4
  30. package/lib/domain/model/Inventory.js +3 -4
  31. package/lib/domain/model/ItemHandlingSession.js +12 -13
  32. package/lib/domain/model/LoyaltyMembership.js +0 -1
  33. package/lib/domain/model/MerchandiseTransaction.js +46 -48
  34. package/lib/domain/model/MetricsLogs.d.ts +1 -1
  35. package/lib/domain/model/NoSaleTransaction.js +2 -4
  36. package/lib/domain/model/Order.js +24 -25
  37. package/lib/domain/model/OrderTotals.js +28 -29
  38. package/lib/domain/model/Organization.d.ts +27 -37
  39. package/lib/domain/model/ReceiptSession.js +16 -17
  40. package/lib/domain/model/ReprintReceiptTransaction.js +11 -13
  41. package/lib/domain/model/ResumeTransactionSession.js +4 -5
  42. package/lib/domain/model/RetailTransaction.js +18 -19
  43. package/lib/domain/model/StoreItem.js +31 -32
  44. package/lib/domain/model/StoredValueCardSession.js +5 -6
  45. package/lib/domain/model/StoredValueCertificateSession.js +15 -14
  46. package/lib/domain/model/SubscriptionTokenSession.js +6 -7
  47. package/lib/domain/model/TaxRefundControlTransaction.js +2 -4
  48. package/lib/domain/model/TenderAuthorizationSession.js +13 -14
  49. package/lib/domain/model/TenderControlTransaction.js +14 -14
  50. package/lib/domain/model/TenderHandlingSession.js +36 -31
  51. package/lib/domain/model/TenderType.js +126 -106
  52. package/lib/domain/model/TerminalControlTransaction.js +6 -8
  53. package/lib/domain/model/TerminalSession.js +10 -11
  54. package/lib/domain/model/TillControlTransaction.js +10 -11
  55. package/lib/domain/model/TillSession.js +16 -14
  56. package/lib/domain/model/TransactionFlowState.js +4 -5
  57. package/lib/domain/model/TransactionReferenceLine.js +46 -50
  58. package/lib/domain/model/User.js +46 -47
  59. package/lib/domain/model/UserSession.js +10 -11
  60. package/lib/domain/model/UserTransaction.js +1 -3
  61. package/lib/domain/model/VoidInterfaces.js +0 -1
  62. package/lib/domain/model/cashDrawer/CashDrawerRequestLine.js +5 -6
  63. package/lib/domain/model/cashDrawer/CashDrawerSession.js +19 -20
  64. package/lib/domain/model/cashDrawer/CashDrawerStatusChangeLine.js +11 -12
  65. package/lib/domain/model/cashDrawer/index.js +6 -19
  66. package/lib/domain/model/configuration/ConfigurationUtils.js +0 -1
  67. package/lib/domain/model/configuration/DataEntryRule.js +0 -1
  68. package/lib/domain/model/configuration/IAdapterPoliciesConfig.js +0 -1
  69. package/lib/domain/model/configuration/IConditionalAttributeBehaviorRuleConfig.js +0 -1
  70. package/lib/domain/model/configuration/ICustomerConfig.js +0 -1
  71. package/lib/domain/model/configuration/IDataEntryRuleConfig.js +0 -1
  72. package/lib/domain/model/configuration/IDiscountAttributesConfig .js +1 -2
  73. package/lib/domain/model/configuration/IDiscountBehaviorsConfig.d.ts +3 -3
  74. package/lib/domain/model/configuration/IDiscountBehaviorsConfig.js +0 -1
  75. package/lib/domain/model/configuration/IFeatureAccessConfig.d.ts +5 -5
  76. package/lib/domain/model/configuration/IFeatureAccessConfig.js +0 -1
  77. package/lib/domain/model/configuration/IFeesConfig.js +0 -1
  78. package/lib/domain/model/configuration/IProductInquiryBehaviorsConfig.js +0 -1
  79. package/lib/domain/model/configuration/IReceiptConfig.js +0 -1
  80. package/lib/domain/model/configuration/IReceiptFormattingConfig.js +0 -1
  81. package/lib/domain/model/configuration/IReceiptStylingConfig.d.ts +1 -1
  82. package/lib/domain/model/configuration/IReceiptStylingConfig.js +0 -1
  83. package/lib/domain/model/configuration/IReserveInventoryConfig.js +0 -1
  84. package/lib/domain/model/configuration/ISequenceConfig.js +0 -1
  85. package/lib/domain/model/configuration/IStoreOperationsBehavior.js +0 -1
  86. package/lib/domain/model/configuration/ITendersConfig.d.ts +1 -1
  87. package/lib/domain/model/configuration/ITendersConfig.js +0 -1
  88. package/lib/domain/model/configuration/TaxLottery.js +0 -1
  89. package/lib/domain/model/configuration/index.js +22 -44
  90. package/lib/domain/model/customer/CreateCustomerLine.js +4 -5
  91. package/lib/domain/model/customer/CustomerLine.js +12 -13
  92. package/lib/domain/model/customer/ICustomerI18nFormats.js +0 -1
  93. package/lib/domain/model/customer/TaxCustomerLine.js +4 -5
  94. package/lib/domain/model/customer/UpdateCustomerLine.js +4 -5
  95. package/lib/domain/model/customer/index.js +8 -23
  96. package/lib/domain/model/digitalSignature/DigitalSignatureFailureLine.js +0 -1
  97. package/lib/domain/model/digitalSignature/index.js +4 -15
  98. package/lib/domain/model/discounts/BaseManualDiscountLine.js +31 -32
  99. package/lib/domain/model/discounts/BaseManualDiscountLineDecorator.js +2 -3
  100. package/lib/domain/model/discounts/BasePromotionCouponLine.js +0 -1
  101. package/lib/domain/model/discounts/BasePromotionCouponLineDecorator.js +0 -1
  102. package/lib/domain/model/discounts/ExpiredCouponOverrideLine.js +6 -8
  103. package/lib/domain/model/discounts/LoyaltyActivityDiscountLineTotalDecorator.js +5 -6
  104. package/lib/domain/model/discounts/LoyaltyDiscountLine.js +19 -20
  105. package/lib/domain/model/discounts/LoyaltyDiscountLineTotalDecorator.js +0 -1
  106. package/lib/domain/model/discounts/ManualDiscountLineModificationDecorator.js +21 -22
  107. package/lib/domain/model/discounts/ManualDiscountLineTotalDecorator.js +4 -5
  108. package/lib/domain/model/discounts/ManualItemDiscountLine.js +6 -7
  109. package/lib/domain/model/discounts/ManualTransactionDiscountLine.js +0 -1
  110. package/lib/domain/model/discounts/ModifyManualDiscountLine.js +5 -6
  111. package/lib/domain/model/discounts/PromotionCouponLine.js +6 -13
  112. package/lib/domain/model/discounts/VoidedDiscountLineDecorator.js +4 -5
  113. package/lib/domain/model/discounts/VoidedLoyaltyDiscountLineDecorator.js +0 -1
  114. package/lib/domain/model/discounts/VoidedPromotionCouponLineDecorator.js +4 -5
  115. package/lib/domain/model/discounts/employee/EmployeeDiscountLine.js +5 -7
  116. package/lib/domain/model/discounts/employee/index.js +4 -15
  117. package/lib/domain/model/discounts/index.js +20 -33
  118. package/lib/domain/model/discounts/lineTypes.js +0 -1
  119. package/lib/domain/model/donation/BaseDonationLineDecorator.js +0 -1
  120. package/lib/domain/model/donation/DonationLine.js +7 -8
  121. package/lib/domain/model/donation/VoidedDonationLineDecorator.js +5 -6
  122. package/lib/domain/model/donation/index.js +6 -18
  123. package/lib/domain/model/employeeCustomer/BaseEmployeeCustomerLineDecorator.js +0 -1
  124. package/lib/domain/model/employeeCustomer/EmployeeCustomerLine.js +6 -7
  125. package/lib/domain/model/employeeCustomer/VoidedEmployeeCustomerLineDecorator.js +4 -5
  126. package/lib/domain/model/employeeCustomer/index.js +6 -18
  127. package/lib/domain/model/extensibilityForm/ExtensibilityFormDataLine.js +8 -9
  128. package/lib/domain/model/extensibilityForm/index.js +4 -16
  129. package/lib/domain/model/fee/BaseFeeLineDecorator.js +0 -1
  130. package/lib/domain/model/fee/FeeLine.js +29 -29
  131. package/lib/domain/model/fee/FeeLineBaseTaxAdjustmentDecorator.js +6 -7
  132. package/lib/domain/model/fee/FeeLineChangeQuantityDecorator.js +4 -5
  133. package/lib/domain/model/fee/FeeLineExtendedAmountDecorator.js +12 -13
  134. package/lib/domain/model/fee/FeeLineOriginalPricingAdjustmentDecorator.js +9 -10
  135. package/lib/domain/model/fee/FeeLinePricingExtendedAmountDecorator.js +9 -10
  136. package/lib/domain/model/fee/FeeLineTaxExemptDecorator.js +7 -8
  137. package/lib/domain/model/fee/FeeLineTaxOverrideDecorator.js +6 -7
  138. package/lib/domain/model/fee/FeeQuantityChangeLine.js +6 -7
  139. package/lib/domain/model/fee/VoidedFeeLineDecorator.js +4 -5
  140. package/lib/domain/model/fee/index.js +14 -26
  141. package/lib/domain/model/fiscalDevice/FiscalDeviceManagementLine.js +6 -7
  142. package/lib/domain/model/fiscalDevice/FiscalDeviceManagementRetryLine.js +4 -5
  143. package/lib/domain/model/fiscalDevice/FiscalDeviceStatusLine.js +10 -12
  144. package/lib/domain/model/fiscalDevice/index.js +6 -17
  145. package/lib/domain/model/foreignCurrency/ExchangeRateManualEntryLine.js +5 -6
  146. package/lib/domain/model/foreignCurrency/index.js +4 -15
  147. package/lib/domain/model/geoLocation.d.ts +10 -12
  148. package/lib/domain/model/giftCard/BalanceInquiryLine.js +7 -8
  149. package/lib/domain/model/giftCard/index.js +4 -15
  150. package/lib/domain/model/index.js +91 -122
  151. package/lib/domain/model/inventory/ReserveInventoryLine.js +8 -9
  152. package/lib/domain/model/inventory/index.js +4 -15
  153. package/lib/domain/model/item/BaseItemLineDecorator.js +5 -6
  154. package/lib/domain/model/item/BasePriceChangeLineDecorator.js +0 -1
  155. package/lib/domain/model/item/IAllLinePricingAdjustments.js +3 -4
  156. package/lib/domain/model/item/IItemLine.js +0 -1
  157. package/lib/domain/model/item/ItemLine.js +23 -29
  158. package/lib/domain/model/item/ItemLineBaseDiscountDecorator.d.ts +1 -1
  159. package/lib/domain/model/item/ItemLineBaseDiscountDecorator.js +1 -2
  160. package/lib/domain/model/item/ItemLineBaseTaxAdjustmentDecorator.js +6 -7
  161. package/lib/domain/model/item/ItemLineCommentReceiptDecorator.js +4 -5
  162. package/lib/domain/model/item/ItemLineExtendedAmountDecorator.js +12 -13
  163. package/lib/domain/model/item/ItemLineExtensibilityFormDataDecorator.js +4 -5
  164. package/lib/domain/model/item/ItemLineGiftIssueDecorator.js +4 -5
  165. package/lib/domain/model/item/ItemLineGiftReceiptDecorator.js +4 -5
  166. package/lib/domain/model/item/ItemLineManualDiscountDecorator.js +25 -26
  167. package/lib/domain/model/item/ItemLineNonFinancialRewardDecorator.js +18 -19
  168. package/lib/domain/model/item/ItemLineOriginalAdjustmentDecorator.js +5 -6
  169. package/lib/domain/model/item/ItemLinePriceChangeDecorator.js +4 -5
  170. package/lib/domain/model/item/ItemLinePromotionDecorator.js +15 -16
  171. package/lib/domain/model/item/ItemLineQuantityChangeDecorator.js +12 -13
  172. package/lib/domain/model/item/ItemLineReasonCodeChangeDecorator.js +8 -9
  173. package/lib/domain/model/item/ItemLineRegularPriceDecorator.js +5 -6
  174. package/lib/domain/model/item/ItemLineReserveInventoryDecorator.js +6 -7
  175. package/lib/domain/model/item/ItemLineRewardDecorator.js +17 -18
  176. package/lib/domain/model/item/ItemLineSalePriceDecorator.js +5 -6
  177. package/lib/domain/model/item/ItemLineSalespersonDecorator.js +4 -5
  178. package/lib/domain/model/item/ItemLineSendSaleDecorator.js +4 -5
  179. package/lib/domain/model/item/ItemLineSubscriptionDecorator.js +5 -6
  180. package/lib/domain/model/item/ItemLineTaxExemptDecorator.js +7 -8
  181. package/lib/domain/model/item/ItemLineTaxOverrideDecorator.js +6 -7
  182. package/lib/domain/model/item/ItemOrderCancellationLine.js +6 -7
  183. package/lib/domain/model/item/ItemPriceChangeLine.js +15 -15
  184. package/lib/domain/model/item/ItemQuantityChangeLine.js +8 -9
  185. package/lib/domain/model/item/ReasonCodeChangeLine.js +9 -10
  186. package/lib/domain/model/item/ReservedOrderItemLineCancellationDecorator.js +4 -5
  187. package/lib/domain/model/item/VoidedItemLineDecorator.js +4 -5
  188. package/lib/domain/model/item/VoidedPriceChangeLineDecorator.js +4 -5
  189. package/lib/domain/model/item/index.js +38 -51
  190. package/lib/domain/model/lottery/TaxLotteryAddLine.js +4 -5
  191. package/lib/domain/model/lottery/TaxLotteryModificationLine.js +5 -6
  192. package/lib/domain/model/lottery/TaxLotteryVoidLine.js +6 -7
  193. package/lib/domain/model/lottery/index.js +6 -17
  194. package/lib/domain/model/loyaltyMembership/LoyaltyEnrollmentLine.js +14 -15
  195. package/lib/domain/model/loyaltyMembership/LoyaltyMembershipLine.js +7 -8
  196. package/lib/domain/model/loyaltyMembership/index.js +5 -16
  197. package/lib/domain/model/mixedBasket/MixedBasketSession.js +5 -6
  198. package/lib/domain/model/mixedBasket/index.js +4 -16
  199. package/lib/domain/model/noSale/NoSaleLine.js +9 -10
  200. package/lib/domain/model/noSale/StartNoSaleLine.js +9 -10
  201. package/lib/domain/model/noSale/index.js +5 -16
  202. package/lib/domain/model/order/OrderDeliveryAssignmentLine.js +6 -7
  203. package/lib/domain/model/order/OrderTotalsAccumulator.js +0 -1
  204. package/lib/domain/model/order/index.js +5 -18
  205. package/lib/domain/model/paidOperation/PaidOperationLine.js +7 -8
  206. package/lib/domain/model/paidOperation/PaidOperationSignatureLine.js +5 -6
  207. package/lib/domain/model/paidOperation/StartPaidOperationLine.js +9 -10
  208. package/lib/domain/model/paidOperation/index.js +6 -17
  209. package/lib/domain/model/paymentDevice/UploadDeviceLogLine.js +7 -7
  210. package/lib/domain/model/paymentDevice/index.js +4 -15
  211. package/lib/domain/model/print/PrintStatusLine.js +5 -6
  212. package/lib/domain/model/print/index.js +4 -15
  213. package/lib/domain/model/receipt/BaseReceiptLineDecorator.js +0 -1
  214. package/lib/domain/model/receipt/FiscalReceiptLine.js +21 -22
  215. package/lib/domain/model/receipt/GiftReceiptLine.js +5 -6
  216. package/lib/domain/model/receipt/ItemCommentLine.js +5 -6
  217. package/lib/domain/model/receipt/PrintRetryLine.js +4 -5
  218. package/lib/domain/model/receipt/PrintRetryLineDecorator.js +4 -5
  219. package/lib/domain/model/receipt/PrinterStatusReceiptLineDecorator.js +4 -5
  220. package/lib/domain/model/receipt/ReceiptDestinationReceiptLineDecorator.js +7 -8
  221. package/lib/domain/model/receipt/ReceiptLine.js +29 -30
  222. package/lib/domain/model/receipt/ReceiptOptionLine.js +11 -12
  223. package/lib/domain/model/receipt/index.js +12 -26
  224. package/lib/domain/model/reprint/ReprintTransactionLine.js +7 -8
  225. package/lib/domain/model/reprint/index.js +4 -15
  226. package/lib/domain/model/salesperson/SalespersonLine.js +6 -7
  227. package/lib/domain/model/salesperson/index.js +4 -15
  228. package/lib/domain/model/sendsale/SendSaleConversionLine.js +4 -5
  229. package/lib/domain/model/sendsale/index.js +4 -15
  230. package/lib/domain/model/shipping/ShippingFeeChangeLine.js +10 -11
  231. package/lib/domain/model/shipping/ShippingFeeLineChangeDecorator.js +9 -10
  232. package/lib/domain/model/shipping/index.js +5 -16
  233. package/lib/domain/model/subscription/AddSubscriptionLine.js +7 -8
  234. package/lib/domain/model/subscription/ModifySubscriptionLine.js +7 -8
  235. package/lib/domain/model/subscription/RemoveSubscriptionLine.js +4 -5
  236. package/lib/domain/model/subscription/index.js +6 -17
  237. package/lib/domain/model/supervisorOverride/SupervisorOverrideLine.js +4 -5
  238. package/lib/domain/model/supervisorOverride/index.js +4 -16
  239. package/lib/domain/model/taxExempt/BaseTaxExemptLine.js +20 -21
  240. package/lib/domain/model/taxExempt/BaseTaxExemptLineDecorator.js +0 -1
  241. package/lib/domain/model/taxExempt/ItemTaxExemptLine.js +0 -1
  242. package/lib/domain/model/taxExempt/ItemTaxExemptLineModificationDecorator.js +13 -14
  243. package/lib/domain/model/taxExempt/ModifyItemTaxExemptLine.js +4 -5
  244. package/lib/domain/model/taxExempt/ModifyTransactionTaxExemptLine.js +4 -5
  245. package/lib/domain/model/taxExempt/TransactionTaxExemptLine.js +0 -1
  246. package/lib/domain/model/taxExempt/TransactionTaxExemptLineModificationDecorator.js +13 -14
  247. package/lib/domain/model/taxExempt/VoidedItemTaxExemptLineDecorator.js +4 -5
  248. package/lib/domain/model/taxExempt/VoidedTransactionTaxExemptLineDecorator.js +4 -5
  249. package/lib/domain/model/taxExempt/index.js +13 -25
  250. package/lib/domain/model/taxLottery/TaxLotteryLine.js +4 -5
  251. package/lib/domain/model/taxLottery/index.js +4 -15
  252. package/lib/domain/model/taxOverride/BaseTaxOverrideLine.js +12 -13
  253. package/lib/domain/model/taxOverride/BaseTaxOverrideLineDecorator.js +0 -1
  254. package/lib/domain/model/taxOverride/ModifyTaxOverrideLine.js +5 -6
  255. package/lib/domain/model/taxOverride/TaxOverrideLine.js +4 -5
  256. package/lib/domain/model/taxOverride/TaxOverrideLineModificationDecorator.js +4 -5
  257. package/lib/domain/model/taxOverride/VoidedTaxOverrideLineDecorator.js +4 -5
  258. package/lib/domain/model/taxOverride/index.js +9 -21
  259. package/lib/domain/model/taxRecord/TaxRecordLine.js +23 -24
  260. package/lib/domain/model/taxRecord/index.js +4 -16
  261. package/lib/domain/model/taxRefund/ReprintTaxRefundLine.js +7 -8
  262. package/lib/domain/model/taxRefund/StartTaxRefundLine.js +6 -7
  263. package/lib/domain/model/taxRefund/TaxRefundInterfaces.js +0 -1
  264. package/lib/domain/model/taxRefund/TaxRefundLine.js +8 -9
  265. package/lib/domain/model/taxRefund/TaxRefundSession.js +21 -22
  266. package/lib/domain/model/taxRefund/VoidTaxRefundLine.js +7 -8
  267. package/lib/domain/model/taxRefund/index.js +9 -20
  268. package/lib/domain/model/tender/BaseTenderLineDecorator.js +0 -1
  269. package/lib/domain/model/tender/CancelSubscriptionTokenLine.js +0 -1
  270. package/lib/domain/model/tender/OfflineAuthorization.js +0 -1
  271. package/lib/domain/model/tender/RefundedTenderLineDecorator.js +0 -1
  272. package/lib/domain/model/tender/TenderAuthorizationStatusLine.js +28 -28
  273. package/lib/domain/model/tender/TenderChangeCancelLine.js +5 -6
  274. package/lib/domain/model/tender/TenderLine.js +24 -25
  275. package/lib/domain/model/tender/TenderSignatureLine.js +6 -7
  276. package/lib/domain/model/tender/TenderTaxLineDecorator.js +4 -5
  277. package/lib/domain/model/tender/TenderUtils.js +0 -1
  278. package/lib/domain/model/tender/VoidedTenderLineDecorator.js +6 -7
  279. package/lib/domain/model/tender/exchange/StartTenderExchangeLine.js +6 -7
  280. package/lib/domain/model/tender/exchange/index.js +4 -15
  281. package/lib/domain/model/tender/index.js +18 -30
  282. package/lib/domain/model/tender/reversals/Interfaces.js +0 -1
  283. package/lib/domain/model/tender/reversals/index.js +4 -15
  284. package/lib/domain/model/tender/valueCard/Interfaces.js +0 -1
  285. package/lib/domain/model/tender/valueCard/index.js +4 -15
  286. package/lib/domain/model/tender/valueCertificate/Interfaces.js +0 -1
  287. package/lib/domain/model/tender/valueCertificate/index.js +4 -15
  288. package/lib/domain/model/terminal/FiscalPrinterAbortLineType.js +0 -1
  289. package/lib/domain/model/terminal/FiscalPrinterReportLineType.js +9 -10
  290. package/lib/domain/model/terminal/FiscalPrinterStatusLineType.js +4 -5
  291. package/lib/domain/model/terminal/FiscalPrinterSyncLineType.js +6 -7
  292. package/lib/domain/model/terminal/TerminalStateChangeLine.js +5 -6
  293. package/lib/domain/model/terminal/index.js +8 -19
  294. package/lib/domain/model/till/StartTillLine.js +13 -14
  295. package/lib/domain/model/till/TenderTransferLine.js +12 -13
  296. package/lib/domain/model/till/TillAdjustmentLine.js +7 -8
  297. package/lib/domain/model/till/TillCountLine.js +10 -11
  298. package/lib/domain/model/till/TillFloatLine.js +11 -12
  299. package/lib/domain/model/till/TillStateChangeLine.js +9 -10
  300. package/lib/domain/model/till/index.js +9 -20
  301. package/lib/domain/model/transaction/AttachmentLine.js +5 -6
  302. package/lib/domain/model/transaction/CloseTransactionLine.js +0 -1
  303. package/lib/domain/model/transaction/IPostVoidSearchResult.js +0 -1
  304. package/lib/domain/model/transaction/RecordTransactionLine.js +6 -7
  305. package/lib/domain/model/transaction/SignatureLine.js +6 -7
  306. package/lib/domain/model/transaction/SuspendTransactionLine.js +5 -6
  307. package/lib/domain/model/transaction/TotalTransactionLine.js +5 -6
  308. package/lib/domain/model/transaction/TransactionResumeCompleteLine.js +0 -1
  309. package/lib/domain/model/transaction/TransactionResumeStartLine.js +5 -6
  310. package/lib/domain/model/transaction/TransactionReturnModeLine.js +0 -1
  311. package/lib/domain/model/transaction/fiscal/FiscalTransactionLine.js +7 -10
  312. package/lib/domain/model/transaction/fiscal/index.js +4 -15
  313. package/lib/domain/model/transaction/index.js +15 -26
  314. package/lib/domain/model/transaction/order/ItemFulfillmentReferenceLine.js +5 -6
  315. package/lib/domain/model/transaction/order/ItemPickupSignatureLine.js +5 -6
  316. package/lib/domain/model/transaction/order/OrderReferenceLine.js +5 -6
  317. package/lib/domain/model/transaction/order/index.js +6 -17
  318. package/lib/domain/model/user/AuthenticationFailedLine.js +5 -6
  319. package/lib/domain/model/user/PasswordExpiration.js +4 -5
  320. package/lib/domain/model/user/UserLine.js +7 -8
  321. package/lib/domain/model/user/index.js +6 -18
  322. package/lib/domain/model/void/LineVoidLine.js +12 -13
  323. package/lib/domain/model/void/TransactionVoidLine.js +10 -11
  324. package/lib/domain/model/void/VoidedLineDecorator.js +0 -1
  325. package/lib/domain/model/void/index.js +6 -17
  326. package/lib/domain/processing/PosBusinessAction.js +8 -8
  327. package/lib/domain/processing/index.js +4 -15
  328. package/lib/domain/service/index.js +0 -17
  329. package/lib/domain/utility/index.js +6 -17
  330. package/lib/domain/utility/orderUtils.js +5 -6
  331. package/lib/domain/utility/supervisorOverride.js +4 -9
  332. package/lib/domain/utility/utils.js +7 -11
  333. package/lib/index.js +5 -16
  334. package/package.json +15 -19
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DI_TYPES = void 0;
4
3
  const Symbol = require("es-symbol");
5
4
  exports.DI_TYPES = {
6
5
  ITransactionAccountingService: Symbol("ITransactionAccountingService"),
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SSF_CURRENCY_MISMATCH_I18N_CODE = exports.SSF_PRICE_NOT_FOUND_I18N_CODE = exports.SSF_PRICING_API_ERROR_I18N_CODE = exports.SSF_ORDER_ERROR_CODE = exports.SSF_ERROR_POPULATING_STORE_ITEM_ERROR_CODE = exports.SSF_PRICING_API_ERROR_CODE = exports.SSF_DATA_ERROR_CODE = exports.SSF_LINE_TYPE_ERROR_CODE = exports.SSF_DECORATOR_ERROR_CODE = exports.SSF_TRANSACTION_ERROR_CODE = void 0;
4
3
  // Error codes
5
4
  exports.SSF_TRANSACTION_ERROR_CODE = "SSF_TRANSACTION_ERROR_CODE";
6
5
  exports.SSF_DECORATOR_ERROR_CODE = "SSF_DECORATOR_ERROR_CODE";
@@ -1,20 +1,9 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
2
+ function __export(m) {
3
+ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4
+ }
16
5
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./DiTypes"), exports);
18
- __exportStar(require("./ErrorCodes"), exports);
19
- __exportStar(require("./inversify"), exports);
6
+ __export(require("./DiTypes"));
7
+ __export(require("./ErrorCodes"));
8
+ __export(require("./inversify"));
20
9
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,3 @@
1
1
  import { interfaces } from "inversify";
2
- export type BindToCallback<T> = (bind: interfaces.BindingToSyntax<T>) => void;
2
+ export declare type BindToCallback<T> = (bind: interfaces.BindingToSyntax<T>) => void;
3
3
  export declare function bindExternal<T>(bind: interfaces.Bind, serviceIdentifier: interfaces.ServiceIdentifier<T>, bindToCallback: BindToCallback<T>): void;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.bindExternal = void 0;
4
3
  function bindExternal(bind, serviceIdentifier, bindToCallback) {
5
4
  bindToCallback(bind(serviceIdentifier));
6
5
  }
@@ -1,20 +1,9 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
2
+ function __export(m) {
3
+ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4
+ }
16
5
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./binding-helpers"), exports);
18
- __exportStar(require("./inversify.terminal.config"), exports);
19
- __exportStar(require("./inversify.app.config"), exports);
6
+ __export(require("./binding-helpers"));
7
+ __export(require("./inversify.terminal.config"));
8
+ __export(require("./inversify.app.config"));
20
9
  //# sourceMappingURL=index.js.map
@@ -9,7 +9,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.createDomainAfterCreateAuthContainerModule = exports.createAppDomainContainerModule = exports.loadAppDomainAfterCreateAuth = exports.loadAppDomain = void 0;
13
12
  const inversify_1 = require("inversify");
14
13
  const binding_helpers_1 = require("./binding-helpers");
15
14
  const DiTypes_1 = require("../DiTypes");
@@ -33,13 +32,13 @@ function loadAppDomainAfterCreateAuth(container, external) {
33
32
  exports.loadAppDomainAfterCreateAuth = loadAppDomainAfterCreateAuth;
34
33
  function createAppDomainContainerModule(external) {
35
34
  return new inversify_1.ContainerModule((bind) => {
36
- (0, binding_helpers_1.bindExternal)(bind, DiTypes_1.default.IAppLocalFeaturesStorage, external.IAppLocalFeaturesStorage);
35
+ binding_helpers_1.bindExternal(bind, DiTypes_1.default.IAppLocalFeaturesStorage, external.IAppLocalFeaturesStorage);
37
36
  });
38
37
  }
39
38
  exports.createAppDomainContainerModule = createAppDomainContainerModule;
40
39
  function createDomainAfterCreateAuthContainerModule(external) {
41
40
  return new inversify_1.ContainerModule((bind) => {
42
- (0, binding_helpers_1.bindExternal)(bind, DiTypes_1.default.ITransactionReferenceFormatter, external.ITransactionReferenceFormatter);
41
+ binding_helpers_1.bindExternal(bind, DiTypes_1.default.ITransactionReferenceFormatter, external.ITransactionReferenceFormatter);
43
42
  });
44
43
  }
45
44
  exports.createDomainAfterCreateAuthContainerModule = createDomainAfterCreateAuthContainerModule;
@@ -1,18 +1,7 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
2
+ function __export(m) {
3
+ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4
+ }
16
5
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./transaction-services.config"), exports);
6
+ __export(require("./transaction-services.config"));
18
7
  //# sourceMappingURL=index.js.map
@@ -9,7 +9,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.createTransactionServicesDomainContainerModule = exports.loadTransactionServicesDomain = void 0;
13
12
  const inversify_1 = require("inversify");
14
13
  const binding_helpers_1 = require("../binding-helpers");
15
14
  const DiTypes_1 = require("../../DiTypes");
@@ -24,7 +23,7 @@ function loadTransactionServicesDomain(container, external) {
24
23
  exports.loadTransactionServicesDomain = loadTransactionServicesDomain;
25
24
  function createTransactionServicesDomainContainerModule(external) {
26
25
  return new inversify_1.ContainerModule((bind) => {
27
- (0, binding_helpers_1.bindExternal)(bind, DiTypes_1.default.ITransactionAccountingService, external.ITransactionAccountingService);
26
+ binding_helpers_1.bindExternal(bind, DiTypes_1.default.ITransactionAccountingService, external.ITransactionAccountingService);
28
27
  });
29
28
  }
30
29
  exports.createTransactionServicesDomainContainerModule = createTransactionServicesDomainContainerModule;
@@ -1,12 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SELL_ITEM_NOT_ON_FILE_EVENT = exports.ITEM_TAX_OVERRIDE_EVENT = exports.ITEM_NOT_ON_FILE_EVENT = exports.ISSUE_GIFT_CERTIFICATE_EVENT = exports.ISSUE_GIFT_CARD_EVENT = exports.COMMENT_ITEM_EVENT = exports.GIFT_RECEIPT_TRANSACTION_EVENT = exports.GIFT_RECEIPT_ITEM_EVENT = exports.FIND_LOYALTY_VOUCHERS_EVENT = exports.FIND_CUSTOMERS_EVENT = exports.RESTORE_LOYALTY_DISCOUNT_EVENT = exports.ENROLL_CUSTOMER_EVENT = exports.LOYALTY_ENROLLMENT_EVENT = exports.LOYALTY_DISCOUNT_EVENT = exports.CUSTOM_LOYALTY_DISCOUNT_EVENT = exports.FAST_DISCOUNT_EVENT = exports.EXIT_ATTENDANT_MODE_EVENT = exports.ENTER_ATTENDANT_MODE_EVENT = exports.EMPLOYEE_DISCOUNT_OVERRIDE_EVENT = exports.CREATE_CUSTOMER_EVENT = exports.CORRUPTED_TRANSACTION_EVENT = exports.USER_CONTINUE_CASH_DRAWER_OPEN_EVENT = exports.CLOSE_TRANSACTION_EVENT = exports.CLOSE_TERMINAL_EVENT = exports.CHANGE_PASSWORD_EVENT = exports.CANCEL_PARTIAL_AUTHORIZATION_EVENT = exports.CANCEL_TENDER_SESSION_EVENT = exports.BALANCE_INQUIRY_RECEIPT_EVENT = exports.BALANCE_INQUIRY_EVENT = exports.BAG_FEE_EVENT = exports.ASSIGN_ORDER_CUSTOMER_EVENT = exports.ASSIGN_CUSTOMER_EVENT = exports.ADD_CUSTOMER_EVENT = exports.APP_STARTUP_EVENT = exports.APPLY_TAX_OVERRIDE_EVENT = exports.APPLY_TENDER_REFUND_EVENT = exports.APPLY_TENDER_PAYMENT_EVENT = exports.APPLY_TENDER_EVENT = exports.APPLY_EMPLOYEE_TRANSACTION_DISCOUNT_EVENT = exports.APPLY_EMPLOYEE_DISCOUNT_EVENT = exports.APPLY_SINGLE_USE_COUPON_EVENT = exports.ADD_CUSTOMER_ALTERNATE_KEY_EVENT = exports.ASSIGN_CUSTOMER_BY_ALTERNATE_KEY_EVENT = exports.APPLY_ALTERNATE_KEY_EVENT = exports.APPLY_COUPON_EVENT = exports.ADD_TAX_CUSTOMER_EVENT = exports.ADD_TRANSACTION_TAX_EXEMPT_EVENT = exports.ADD_ITEM_FEE_EVENT = exports.ADD_TRANSACTION_FEE_EVENT = exports.ADD_RECEIPT_EVENT = void 0;
4
- exports.RECORD_CASH_DRAWER_STATUS_EVENT = exports.RECEIPT_STATUS_EVENT = exports.QUANTITY_CHANGE_EVENT = exports.PRINT_FISCAL_PRINTER_CHANGE_RETRY_EVENT = exports.PRINT_FISCAL_RETRY_EVENT = exports.FISCAL_POST_VOID_NO_RECEIPT = exports.PRINT_FISCAL_RECEIPT_EVENT = exports.PRINT_PENDING_RECEIPT_LINES = exports.PRINT_RECEIPT_EVENT = exports.CREATE_EINVOICE_EVENT = exports.PRICE_CHANGE_EVENT = exports.POST_VOID_TRANSACTION_EVENT = exports.POST_VOID_RESTORED_TRANSACTION_EVENT = exports.VALIDATE_VAT_NUMBER_EVENT = exports.FISCAL_DOCUMENT_NUMBER_APP_RELOAD_EVENT = exports.FISCAL_DOCUMENT_NO_EVENT = exports.POST_VOID_FAILED_EVENT = exports.OPEN_TERMINAL_EVENT = exports.SEARCH_NON_MERCH_ITEMS_EVENT = exports.MULTI_LINE_EVENT = exports.MODIFY_TRANSACTION_TAX_EXEMPT_EVENT = exports.MODIFY_TRANSACTION_MANUAL_DISCOUNT_EVENT = exports.MODIFY_MANUAL_DISCOUNT_EVENT = exports.MODIFY_ITEM_MANUAL_DISCOUNT_EVENT = exports.MODIFY_EMPLOYEE_MANUAL_DISCOUNT_EVENT = exports.APPLY_EMPLOYEE_CUSTOMER_DISCOUNT_EVENT = exports.ADD_EMPLOYEE_CUSTOMER_EVENT = exports.PERMANENT_MEMBERSHIP_DISCOUNT_EVENT = exports.MANUAL_TRANSACTION_DISCOUNT_EVENT = exports.MANUAL_ITEM_DISCOUNT_EVENT = exports.MANUAL_DISCOUNT_VALIDATION_EVENT = exports.LOOKUP_CUSTOMER_EVENT = exports.LOG_ON_UNATTENDED_USER_EVENT = exports.LOG_ON_EVENT = exports.LOG_OFF_EVENT = exports.SEARCH_ORDERS_EVENT = exports.RESERVE_INVENTORY_EVENT = exports.INVENTORY_EVENT = exports.RETURN_ITEM_NOT_ON_FILE_EVENT = exports.RECORD_TRANSACTION_REFERENCE_FOR_ORDER_EVENT = exports.ORDER_DISCOUNT_ROUNDING_ADJUSTMENT_EVENT = exports.ORDER_ITEM_FULFILLMENT_REFERENCE_EVENT = exports.PREPAID_TENDERS_TO_APPLY_EVENT = exports.ORDER_REFERENCE_EVENT = exports.ORDER_ITEM_MULTI_LINE_EVENT = exports.ORDER_ITEM_PICKUP_EVENT = exports.RESERVED_ORDER_ITEM_CANCELLATION_EVENT = exports.ORDER_ITEM_RESTORE_EVENT = exports.ORDER_ITEM_CANCELLATION_EVENT = exports.ORDER_ITEM_NOT_ON_FILE_EVENT = void 0;
5
- exports.TENDER_CHANGE_FALLBACK_EVENT = exports.TENDER_CASHOUT_EVENT = exports.TENDER_CHANGE_EVENT = exports.TENDER_AUTH_STATUS_EVENT = exports.TENDER_AUTH_REVERSAL_EVENT = exports.GET_REFUNDABLE_TENDERS_EVENT = exports.SYNC_STATE_EVENT = exports.COMPLETE_SUSPEND_TRANSACTION_EVENT = exports.SUSPEND_TRANSACTION_EVENT = exports.EXIT_RETURN_MODE_EVENT = exports.ENTER_RETURN_MODE_EVENT = exports.ORDER_ITEM_EVENT = exports.ITEM_FEE_REFUND_EVENT = exports.RETURN_ITEM_EVENT = exports.SHIPPING_FEE_REFUND_EVENT = exports.ADD_SHIPPING_FEE_EVENT = exports.SHIPPING_FEE_CHANGE_EVENT = exports.SHIPPING_FEE_EVENT = exports.SELL_ITEM_EVENT = exports.APPLY_ITEM_EVENT = exports.SEARCH_POST_VOIDABLE_TRANSACTION_EVENT = exports.SEARCH_ITEM_VARIANTS_EVENT = exports.SEARCH_ITEM_EVENT = exports.QUERY_MERCHANDISE_HIERARCHY_NODES_EVENT = exports.SALESPERSON_TRANSACTION_ASSOCIATION_EVENT = exports.SALESPERSON_SEARCH_EVENT = exports.SALESPERSON_ITEM_ASSOCIATION_EVENT = exports.SALESPERSON_ASSOCIATION_EVENT = exports.SALESPERSON_VALIDATION_EVENT = exports.TENDER_AUTH_MANUAL_REVERSAL_EVENT = exports.RETURN_COUPON_EVENT = exports.RETRY_AUTHORIZATION_EVENT = exports.RESET_SUBSCRIPTION_AUTHORIZATION_TOKEN_EVENT = exports.APPLY_SUBSCRIPTION_AUTHORIZATION_TOKEN_EVENT = exports.RETRIEVE_SUBSCRIPTION_AUTHORIZATION_TOKEN_EVENT = exports.RESTORE_TRANSACTION_EVENT = exports.RESET_AUTHORIZATION_TIMER_EVENT = exports.RESET_CASH_DRAWER_EVENT = exports.CONFIRM_CASH_DRAWER_CLOSED_EVENT = exports.REPRINT_TRANSACTION_RECEIPTS_EVENT = exports.REPRINT_NON_FISCAL_RECEIPT_EVENT = exports.REPRINT_NON_FISCAL_LAST_RECEIPT_EVENT = exports.REPRINT_RECEIPT_EVENT = exports.REPRINT_LAST_TRANSACTION_RECEIPTS_EVENT = exports.REPRINT_LAST_RECEIPT_EVENT = exports.REMOVE_LOYALTY_DISCOUNTS_EVENT = exports.REMOVE_CUSTOMER_ALTERNATE_KEY_EVENT = exports.REMOVE_CUSTOMER_EVENT = exports.REMOVE_ASSOCIATED_MANUAL_DISCOUNTS_EVENT = exports.FISCAL_RECEIPT_STATUS_EVENT = void 0;
6
- exports.ITEM_TAX_EXEMPT_EVENT = exports.VOID_ITEM_LINE_EVENT = exports.VOID_PRICE_CHANGE_LINE_EVENT = exports.VOID_COUPON_LINE_EVENT = exports.VOID_CASH_DRAWER_TENDER_EVENT = exports.VOID_DISCOUNT_LINE_EVENT = exports.SETUP_FISCAL_DEVICE_STATUS_EVENT = exports.RETRY_SETUP_FISCAL_DEVICE_EVENT = exports.SETUP_FISCAL_DEVICE_EVENT = exports.REPLACE_FISCAL_DEVICE_HOST_STATUS_EVENT = exports.RETRY_REPLACE_FISCAL_DEVICE_HOST_EVENT = exports.REPLACE_FISCAL_DEVICE_HOST_EVENT = exports.REPLACE_FISCAL_DEVICE_STATUS_EVENT = exports.RETRY_REPLACE_FISCAL_DEVICE_EVENT = exports.REPLACE_FISCAL_DEVICE_EVENT = exports.GET_FISCAL_DEVICE_INFORMATION_EVENT = exports.FISCAL_DEVICE_ACTIVITY_RESULT_EVENT = exports.FISCAL_SYNC_DATA_STATUS = exports.FISCAL_SYNC_ROUNDING_STATUS = exports.FISCAL_SYNC_DATE_STATUS = exports.FISCAL_SYNC_RECEIPT_FOOTER_STATUS = exports.FISCAL_SYNC_RECEIPT_HEADER_STATUS = exports.FISCAL_SYNC_LOGO_STATUS = exports.FISCAL_SYNC_DEPT_STATUS = exports.FISCAL_SYNC_VAT_STATUS = exports.SYNC_FISCAL_PRINTER_DATA_EVENT = exports.FISCAL_PRINTER_QUERY_STATUS = exports.FISCAL_PRINTER_STATUS_OFFLINE = exports.FISCAL_PRINTER_STATUS_EVENT = exports.SYNC_FISCAL_PRINTER_ABORT_EVENT = exports.FISCAL_REPORT_STATUS = exports.PRINT_X_REPORT = exports.PRINT_Z_REPORT = exports.UPDATE_USER_PREFERENCES_EVENT = exports.UPDATE_USER_PREFERRED_LANGUAGE_EVENT = exports.UPDATE_RECEIPT_DESTINATIONS_EVENT = exports.UPDATE_CONTACT_EVENT = exports.UPDATE_CUSTOMER_ENROLLMENT_EVENT = exports.UPDATE_CUSTOMER_EVENT = exports.TRANSACTION_TAX_OVERRIDE_EVENT = exports.TRANSACTION_TAX_EXEMPT_EVENT = exports.TRANSACTION_RECEIPTS_EVENT = exports.MAKE_DONATION_EVENT = exports.TRANSACTION_FEE_EVENT = exports.TRANSACTION_FEE_CHANGE_QUANTITY_EVENT = exports.TERMINAL_STATE_SYNC_EVENT = exports.ITEM_PICKUP_SIGNATURE_EVENT = exports.SIGNATURE_EVENT = exports.TENDER_SIGNATURE_EVENT = exports.TENDER_CHANGE_CANCEL_EVENT = void 0;
7
- exports.ADD_ITEM_TAX_EXEMPT_EVENT = exports.START_TILL_TO_BANK_EVENT = exports.TILL_TO_BANK_EVENT = exports.RECORD_TRANSACTION_FOR_OFFLINE_RETURN_REFERENCE_EVENT = exports.RECORD_TRANSACTION_FOR_RETURN_REFERENCE_EVENT = exports.MODIFY_RETURN_ITEM_REASON_CODE_EVENT = exports.APPLY_RETURN_WITH_TRANSACTION_EVENT = exports.START_TILL_AUDIT_EVENT = exports.TILL_AUDIT_EVENT = exports.START_TILL_COUNT_EVENT = exports.TILL_COUNT_EVENT = exports.PRINT_PAID_OPERATION_RECEIPT_EVENT = exports.START_TILL_TO_SAFE_EVENT = exports.START_SAFE_TO_TILL_EVENT = exports.TILL_TO_SAFE_EVENT = exports.SAFE_TO_TILL_EVENT = exports.PAID_SIGNATURE_EVENT = exports.START_PAID_OUT_EVENT = exports.START_PAID_IN_EVENT = exports.PAID_OUT_EVENT = exports.PAID_IN_EVENT = exports.VOID_NO_SALE_TRANSACTION_EVENT = exports.PRINT_NO_SALE_RECEIPT_EVENT = exports.NO_SALE_EVENT = exports.START_NO_SALE_EVENT = exports.RECORD_TOTAL_TRANSACTION_EVENT = exports.CALCULATE_LINE_LOYALTY_MEMBERSHIP_EVENT = exports.APPLY_LOYALTY_MEMBERSHIP_EVENT = exports.CALCULATE_LOYALTY_MEMBERSHIP_EVENT = exports.PRINT_TILL_RECEIPT_EVENT = exports.START_TILL_OUT_EVENT = exports.START_TILL_IN_EVENT = exports.TILL_OUT_MODIFIED_FLOAT_AMOUNT_AUTHORIZATION_EVENT = exports.TILL_OUT_EVENT = exports.TILL_IN_EVENT = exports.OPEN_CASH_DRAWER_EVENT = exports.TOTAL_TRANSACTION_EVENT = exports.RESTORE_SUPERVISOR_OVERRIDE_RETURN_ITEM_EVENT = exports.RETURN_TOTAL_EVENT = exports.TRANSACTION_RESUME_COMPLETE_EVENT = exports.TRANSACTION_RESUME_EVENT = exports.VOID_TENDER_CONTROL_TRANSACTION_EVENT = exports.VOID_TAX_OVERRIDE_EVENT = exports.VOID_TRANSACTION_TAX_EXEMPT_EVENT = exports.VOID_DONATION_EVENT = exports.VOID_FEE_EVENT = exports.VOID_TRANSACTION_EVENT = exports.VOID_TILL_CONTROL_TRANSACTION_EVENT = exports.VOID_TENDER_LINE_EVENT = exports.VOID_LINE_EVENT = void 0;
8
- exports.UPLOAD_DEVICE_LOGS_EVENT = exports.FIND_VALUE_CERTIFICATES_EVENT = exports.FIND_TAX_CUSTOMER_FROM_HISTORICAL_EVENT = exports.START_EXCHANGE_RATE_ENTRY_EVENT = exports.LOOKUP_EXCHANGE_RATES_EVENT = exports.INIT_CACHED_DATA_EVENT = exports.FIND_TAX_LOTTERY_CUSTOMER_CODE_FROM_HISTORICAL_EVENT = exports.APPLY_DISCOUNT_EVENT = exports.FISCAL_SIGNATURE_EVENT = exports.FINISH_FISCAL_TRANSACTION_STATUS_EVENT = exports.FINISH_FISCAL_TRANSACTION_EVENT = exports.START_FISCAL_TRANSACTION_STATUS_EVENT = exports.START_FISCAL_TRANSACTION_EVENT = exports.TENDER_TRANSFER_FROM_ACCOUNT_EVENT = exports.TENDER_EXCHANGE_OUT_EVENT = exports.TENDER_EXCHANGE_IN_EVENT = exports.TENDER_EXCHANGE_EVENT = exports.MODIFY_ITEM_SUBSCRIPTION_EVENT = exports.REMOVE_TRANSACTION_SUBSCRIPTIONS_EVENT = exports.REMOVE_ITEM_SUBSCRIPTION_EVENT = exports.ADD_ITEM_SUBSCRIPTION_EVENT = exports.APPLY_ITEM_SUBSCRIPTION_EVENT = exports.CAPTURE_LOTTERY_CODE_EVENT = exports.START_OPEN_CASH_DRAWER_EVENT = exports.TAX_REFUND_DEFERRED_EVENT = exports.START_TAX_REFUND_DEFERRED_EVENT = exports.TAX_REFUND_VOID_EVENT = exports.START_TAX_REFUND_VOID_EVENT = exports.TAX_REFUND_REPRINT_EVENT = exports.START_TAX_REFUND_REPRINT_EVENT = exports.COMPLETE_RETURN_WITH_TRANSACTION_EVENT = exports.DOMAIN_NOTIFICATION_EVENT = exports.MODIFY_ITEM_TAX_OVERRIDE_EVENT = exports.SEARCH_HISTORICAL_TRANSACTIONS_EVENT = exports.DISCONNECT_TAX_REFUND_EVENT = exports.SKIP_TAX_REFUND_EVENT = exports.TAX_REFUND_PRINT_STATUS_EVENT = exports.TAX_REFUND_STATUS_EVENT = exports.OPEN_TAX_REFUND_UI_EVENT = exports.TAX_REFUND_EVENT = exports.START_TAX_REFUND_EVENT = exports.TILL_RECONCILIATION_EVENT = exports.START_TILL_RECONCILIATION_EVENT = exports.RECORD_TRANSACTION_FOR_ORDER_EVENT = exports.SELECT_TRANSACTION_FOR_RETURN_EVENT = exports.RECORD_TRANSACTION_FOR_RETURN_EVENT = exports.EXIT_RETURN_WITH_TRANSACTION_EVENT = exports.ENTER_RETURN_WITH_TRANSACTION_EVENT = exports.VOID_ITEM_TAX_EXEMPT_EVENT = exports.MODIFY_ITEM_TAX_EXEMPT_EVENT = void 0;
9
- exports.UPDATE_LINE_DISPLAY_EVENT = exports.APPLY_ITEM_SEND_SALE_EVENT = exports.APPLY_ITEM_EXTENSIBILITY_FORM_DATA_EVENT = exports.CLEAR_VALUE_CERTIFICATE_INQUIRY_RESULTS_EVENT = exports.BYPASS_REFUNDED_TAX_FREE_WARNING_EVENT = void 0;
10
3
  // State Events
11
4
  exports.ADD_RECEIPT_EVENT = "AddReceipt";
12
5
  exports.ADD_TRANSACTION_FEE_EVENT = "AddTransactionFee";
@@ -1,22 +1,10 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
2
+ function __export(m) {
3
+ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4
+ }
16
5
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./model/"), exports);
18
- __exportStar(require("./processing/"), exports);
19
- __exportStar(require("./service/"), exports);
20
- __exportStar(require("./utility/"), exports);
21
- __exportStar(require("./UIBusinessEventTypes"), exports);
6
+ __export(require("./model/"));
7
+ __export(require("./processing/"));
8
+ __export(require("./utility/"));
9
+ __export(require("./UIBusinessEventTypes"));
22
10
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isApplicationControlTransaction = exports.ApplicationControlTransaction = exports.APPLICATION_CONTROL_TRANSACTION_TYPE = void 0;
4
3
  const scp_component_store_selling_core_1 = require("@aptos-scp/scp-component-store-selling-core");
5
4
  const config_1 = require("../../config");
6
5
  const RetailTransaction_1 = require("./RetailTransaction");
@@ -21,7 +20,7 @@ class ApplicationControlTransaction extends RetailTransaction_1.RetailTransactio
21
20
  }
22
21
  clone() {
23
22
  const transaction = super.clone();
24
- if (!(0, exports.isApplicationControlTransaction)(transaction)) {
23
+ if (!exports.isApplicationControlTransaction(transaction)) {
25
24
  throw new scp_component_store_selling_core_1.PosError("Cannot clone ApplicationControlTransaction, because new " +
26
25
  "instance is not a ApplicationControlTransaction.", config_1.SSF_TRANSACTION_ERROR_CODE);
27
26
  }
@@ -41,9 +40,8 @@ class ApplicationControlTransaction extends RetailTransaction_1.RetailTransactio
41
40
  }
42
41
  }
43
42
  exports.ApplicationControlTransaction = ApplicationControlTransaction;
44
- const isApplicationControlTransaction = (transaction) => {
43
+ exports.isApplicationControlTransaction = (transaction) => {
45
44
  return (transaction instanceof ApplicationControlTransaction ||
46
45
  transaction.transactionType === exports.APPLICATION_CONTROL_TRANSACTION_TYPE);
47
46
  };
48
- exports.isApplicationControlTransaction = isApplicationControlTransaction;
49
47
  //# sourceMappingURL=ApplicationControlTransaction.js.map
@@ -1,15 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BaseLineDecorator = exports.isDecoratorOfType = exports.getDecoratedTransactionLines = exports.getBaseTransactionLine = exports.getDecoratedTransactionLine = exports.isDecorator = void 0;
4
3
  const scp_component_store_selling_core_1 = require("@aptos-scp/scp-component-store-selling-core");
5
4
  const ErrorCodes_1 = require("../../config/ErrorCodes");
6
5
  const VoidInterfaces_1 = require("./VoidInterfaces");
7
6
  const BaseTransactionLine_1 = require("./BaseTransactionLine");
8
- const isDecorator = (transactionLine) => {
7
+ exports.isDecorator = (transactionLine) => {
9
8
  // tslint:disable-next-line:no-use-before-declare
10
9
  return transactionLine instanceof BaseLineDecorator;
11
10
  };
12
- exports.isDecorator = isDecorator;
13
11
  /**
14
12
  * Get the first decorated transaction line of the specified decorator type found while ascending the
15
13
  * decoratedTransactionLine tree.
@@ -19,7 +17,7 @@ exports.isDecorator = isDecorator;
19
17
  */
20
18
  function getDecoratedTransactionLine(transactionLine, decoratorType) {
21
19
  let line = transactionLine;
22
- while ((0, exports.isDecorator)(line)) {
20
+ while (exports.isDecorator(line)) {
23
21
  if (line.lineDecoratorType === decoratorType) {
24
22
  return line;
25
23
  }
@@ -35,7 +33,7 @@ exports.getDecoratedTransactionLine = getDecoratedTransactionLine;
35
33
  */
36
34
  function getBaseTransactionLine(transactionLine) {
37
35
  let line = transactionLine;
38
- while ((0, exports.isDecorator)(line)) {
36
+ while (exports.isDecorator(line)) {
39
37
  line = line.decoratedTransactionLine;
40
38
  }
41
39
  return line;
@@ -52,7 +50,7 @@ exports.getBaseTransactionLine = getBaseTransactionLine;
52
50
  function getDecoratedTransactionLines(transactionLine, decoratorTypes) {
53
51
  const result = [];
54
52
  let line = transactionLine;
55
- while ((0, exports.isDecorator)(line)) {
53
+ while (exports.isDecorator(line)) {
56
54
  // check if the line decorator type matches any of the decorator types being looked for
57
55
  if (decoratorTypes.indexOf(line.lineDecoratorType) >= 0) {
58
56
  result.push(line);
@@ -81,6 +79,18 @@ exports.isDecoratorOfType = isDecoratorOfType;
81
79
  * T is the class or interface of line that is decorated by the subclass.
82
80
  */
83
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
+ }
84
94
  static getLineDecoratorTypeFromJsonObject(transactionLineJsonObject) {
85
95
  return transactionLineJsonObject._lineDecoratorType;
86
96
  }
@@ -134,7 +144,7 @@ class BaseLineDecorator extends BaseTransactionLine_1.BaseTransactionLine {
134
144
  }
135
145
  hasDecorator(lineDecoratorType) {
136
146
  let transactionLine = this;
137
- while (transactionLine && (0, exports.isDecorator)(transactionLine)) {
147
+ while (transactionLine && exports.isDecorator(transactionLine)) {
138
148
  if (transactionLine.lineDecoratorType === lineDecoratorType) {
139
149
  return true;
140
150
  }
@@ -178,26 +188,14 @@ class BaseLineDecorator extends BaseTransactionLine_1.BaseTransactionLine {
178
188
  }
179
189
  get voided() {
180
190
  // We don't want the decorator to make it look like all decorated lines are voidable, so we check that, first.
181
- return (0, VoidInterfaces_1.isVoidableLine)(this._decoratedTransactionLine) ? this._decoratedTransactionLine.voided : undefined;
191
+ return VoidInterfaces_1.isVoidableLine(this._decoratedTransactionLine) ? this._decoratedTransactionLine.voided : undefined;
182
192
  }
183
193
  get voidSource() {
184
194
  // We don't want the decorator to make it look like all decorated lines are voidable, so we check that, first.
185
- return (0, VoidInterfaces_1.isVoidableLine)(this._decoratedTransactionLine)
195
+ return VoidInterfaces_1.isVoidableLine(this._decoratedTransactionLine)
186
196
  ? this._decoratedTransactionLine.voidSource
187
197
  : undefined;
188
198
  }
189
- // End of BaseTransactionLine API --------------------------------------------------------------
190
- // Since this class is abstract, only subclasses need access to the constructor.
191
- constructor(lineDecoratorType, decoratedTransactionLine, annotationDescription, annotationSourceType, annotationSourceLineNumber, couldDecoratorAffectPricing, couldDecoratorAffectTaxation) {
192
- super(decoratedTransactionLine.lineNumber, decoratedTransactionLine.lineType);
193
- this._lineDecoratorType = lineDecoratorType;
194
- this._decoratedTransactionLine = decoratedTransactionLine;
195
- this._annotationDescription = annotationDescription;
196
- this._annotationSourceType = annotationSourceType;
197
- this._annotationSourceLineNumber = annotationSourceLineNumber;
198
- this._couldDecoratorAffectPricing = couldDecoratorAffectPricing;
199
- this._couldDecoratorAffectTaxation = couldDecoratorAffectTaxation;
200
- }
201
199
  clone() {
202
200
  const newBaseLineDecorator = super.clone();
203
201
  newBaseLineDecorator._lineDecoratorType = this._lineDecoratorType;
@@ -1,11 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BaseTransactionLine = void 0;
4
3
  const scp_component_business_core_1 = require("@aptos-scp/scp-component-business-core");
5
4
  const scp_component_logging_1 = require("@aptos-scp/scp-component-logging");
6
5
  const User_1 = require("./User");
7
6
  const logger = scp_component_logging_1.LogManager.getLogger("com.aptos.storesellingfeatures.domain.model.BaseTransactionLine");
8
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
+ }
9
19
  static lineNumberFromJsonObject(transactionLineJsonObj) {
10
20
  return transactionLineJsonObj._lineNumber;
11
21
  }
@@ -105,17 +115,6 @@ class BaseTransactionLine {
105
115
  newLine._originalLineNumber = lineNumber;
106
116
  return logger.traceExit(entryMessage, newLine);
107
117
  }
108
- // Since this is an abstract class, only subclasses need access to the constructor
109
- constructor(lineNumber, lineType, extendedAmount, extendedAmountExcludingTax, extendedAmountIncludingTax, endDateTime, performingUser, originalLineNumber) {
110
- this._lineNumber = lineNumber;
111
- this._lineType = lineType;
112
- this._extendedAmount = extendedAmount;
113
- this._extendedAmountExcludingTax = extendedAmountExcludingTax;
114
- this._extendedAmountIncludingTax = extendedAmountIncludingTax;
115
- this._endDateTime = endDateTime;
116
- this._performingUser = performingUser;
117
- this._originalLineNumber = originalLineNumber;
118
- }
119
118
  /**
120
119
  * In general, line numbers should not be changed as they are part
121
120
  * of the business key for a transaction line. The updateLineNumber
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DELIVERY_CONTACT_UPDATED_EVENT = exports.AssignCustomerForReturnAction = exports.LinePropertyOverrides = exports.SendSaleTaxEnum = exports.ATCUDDataEnum = exports.EmployeeValidation = exports.OrderTypeCode = exports.DigitalSignatureCategory = exports.CalculationProfileTypesEnum = exports.CheckThresholdAgainst = exports.ItemDiscountBehavior = exports.USER_NOTIFICATION_ERROR_EVENT_TYPE = exports.RETURN_WITH_TRANSACTION_ITEM_EVENT = exports.ITEM_QUANTITY_CHANGE_EVENT = exports.CASH_DRAWER_OPEN_REQUESTED_EVENT = exports.TENDER_CHANGE_CANCEL_EVENT_TYPE = exports.STORED_VALUE_CERTIFICATE_REVERSAL_COMPLETED_EVENT_TYPE = exports.STORED_VALUE_REVERSAL_COMPLETED_EVENT_TYPE = exports.TRANSACTION_RESUMING_ON_STARTUP_EVENT = exports.TRANSACTION_WAITING_ON_STARTUP_EVENT = exports.APPLICATION_STARTUP_EVENT = exports.PRODUCT_ATTRIBUTE_TYPE_STYLE = exports.APPLICATION_CONTEXT = exports.SourceForOrderHistory = exports.TillAccountabilityMode = exports.TillState = exports.ItemLookupType = exports.CollectedDataKey = exports.UiInputKey = exports.LotteryVoidDescription = exports.LotteryVoidReason = exports.SecurityAuthorizationStatusType = exports.TenderAdjustmentType = exports.OverTenderRule = exports.TenderAuthCategory = exports.VoidSource = exports.GiftReceiptMode = exports.ReprintTransactionType = exports.ReceiptStatus = exports.ReceiptType = exports.Usage = void 0;
4
3
  var Usage;
5
4
  (function (Usage) {
6
5
  Usage["Required"] = "Required";
@@ -1,9 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isCorruptedTransaction = exports.CorruptedTransaction = exports.CORRUPTED_TRANSACTION_TYPE = void 0;
4
3
  const _1 = require("./");
5
4
  exports.CORRUPTED_TRANSACTION_TYPE = "CorruptedTransaction";
6
5
  class CorruptedTransaction extends _1.RetailTransaction {
6
+ constructor(deviceIdentity, businessDayDate, transactionNumber, user, transactionId) {
7
+ super(deviceIdentity, businessDayDate, transactionNumber, exports.CORRUPTED_TRANSACTION_TYPE, user, transactionId);
8
+ }
7
9
  static createFromJsonObj(transactionJsonObj, transactionLineFactory) {
8
10
  const transactionId = _1.RetailTransaction.getTransactionIdFromJsonObject(transactionJsonObj);
9
11
  const deviceIdentity = _1.RetailTransaction.getDeviceIdentityFromJsonObject(transactionJsonObj);
@@ -18,12 +20,9 @@ class CorruptedTransaction extends _1.RetailTransaction {
18
20
  corruptedTransaction.loadFromJsonObject(transactionJsonObj, transactionLineFactory);
19
21
  return corruptedTransaction;
20
22
  }
21
- constructor(deviceIdentity, businessDayDate, transactionNumber, user, transactionId) {
22
- super(deviceIdentity, businessDayDate, transactionNumber, exports.CORRUPTED_TRANSACTION_TYPE, user, transactionId);
23
- }
24
23
  clone() {
25
24
  const transaction = super.clone();
26
- if ((0, exports.isCorruptedTransaction)(transaction)) {
25
+ if (exports.isCorruptedTransaction(transaction)) {
27
26
  transaction._rawTransactionJSON = this._rawTransactionJSON;
28
27
  transaction._conversionError = this._conversionError;
29
28
  }
@@ -52,9 +51,8 @@ class CorruptedTransaction extends _1.RetailTransaction {
52
51
  }
53
52
  }
54
53
  exports.CorruptedTransaction = CorruptedTransaction;
55
- const isCorruptedTransaction = (transaction) => {
54
+ exports.isCorruptedTransaction = (transaction) => {
56
55
  return (transaction instanceof CorruptedTransaction ||
57
56
  transaction.transactionType === exports.CORRUPTED_TRANSACTION_TYPE);
58
57
  };
59
- exports.isCorruptedTransaction = isCorruptedTransaction;
60
58
  //# sourceMappingURL=CorruptedTransaction.js.map
@@ -1,12 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isCreateEinvoiceLine = exports.CreateEinvoiceLine = exports.EINVOICE_CREATION_RESULT = exports.CREATE_EINVOICE_LINE_TYPE = void 0;
4
3
  const scp_component_logging_1 = require("@aptos-scp/scp-component-logging");
5
4
  const BaseTransactionLine_1 = require("./BaseTransactionLine");
6
5
  const logger = scp_component_logging_1.LogManager.getLogger("com.aptos.storesellingfeatures.domain.model.CreateEinvoiceLine");
7
6
  exports.CREATE_EINVOICE_LINE_TYPE = "CreateEinvoice";
8
7
  exports.EINVOICE_CREATION_RESULT = "EinvoiceCreationResult";
9
8
  class CreateEinvoiceLine extends BaseTransactionLine_1.BaseTransactionLine {
9
+ // Since the constructor is only called from the create methods it is made protected to prevent use by others.
10
+ constructor(lineNumber, lineType) {
11
+ super(lineNumber, lineType);
12
+ }
10
13
  /**
11
14
  * The create method is called by the transaction line factory to create an instance and initialize it from the
12
15
  * data collected during the qualification process.
@@ -43,10 +46,6 @@ class CreateEinvoiceLine extends BaseTransactionLine_1.BaseTransactionLine {
43
46
  get serviceResult() {
44
47
  return this._serviceResult;
45
48
  }
46
- // Since the constructor is only called from the create methods it is made protected to prevent use by others.
47
- constructor(lineNumber, lineType) {
48
- super(lineNumber, lineType);
49
- }
50
49
  clone() {
51
50
  const logEntryMessage = logger.traceEntry("clone", arguments);
52
51
  const newCreateEinvoiceLine = super.clone();
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.convertTag = exports.convertAttribute = exports.convertLoyaltyMembership = exports.TaxCustomer = exports.Customer = exports.CustomerAttributes = exports.TriggeredMessageType = exports.CUSTOMER_DATE_FORMAT = exports.CUSTOMER_LOOKUP_RESULT = exports.CUSTOMER_UPDATE_RESULT = exports.CUSTOMER_CREATION_RESULT = exports.CUSTOMER_CREATE_PROPERTIES = exports.CUSTOMER_LIST = exports.TAX_CUSTOMER = exports.CUSTOMER = void 0;
4
3
  const scp_types_commerce_transaction_1 = require("@aptos-scp/scp-types-commerce-transaction");
5
4
  //
6
5
  // Keys for use in relaying customers in collectedData (qualification) and nonContextualData (action).
@@ -244,14 +243,13 @@ class Customer {
244
243
  var _a;
245
244
  //filter out already joined plans and make sure default plan is first.
246
245
  this.availableLoyaltyPlans =
247
- storeLoyaltyPlans &&
248
- ((_a = storeLoyaltyPlans.loyaltyPlans
249
- .filter((plan) => {
250
- return (!(this.loyaltyMemberships &&
251
- this.loyaltyMemberships.find((custMembership) => custMembership.loyaltyPlanKey === plan.loyaltyPlanKey)) &&
252
- plan.membershipTypes &&
253
- plan.membershipTypes.find((memType) => memType.assignAtPos));
254
- })) === null || _a === void 0 ? void 0 : _a.sort((l1, l2) => (l1.loyaltyPlanKey === storeLoyaltyPlans.defaultLoyaltyPlanKey ? -1 : 1)));
246
+ storeLoyaltyPlans && ((_a = storeLoyaltyPlans.loyaltyPlans
247
+ .filter((plan) => {
248
+ return (!(this.loyaltyMemberships &&
249
+ this.loyaltyMemberships.find((custMembership) => custMembership.loyaltyPlanKey === plan.loyaltyPlanKey)) &&
250
+ plan.membershipTypes &&
251
+ plan.membershipTypes.find((memType) => memType.assignAtPos));
252
+ })) === null || _a === void 0 ? void 0 : _a.sort((l1, l2) => (l1.loyaltyPlanKey === storeLoyaltyPlans.defaultLoyaltyPlanKey ? -1 : 1)));
255
253
  }
256
254
  }
257
255
  exports.Customer = Customer;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isCustomerServiceTransaction = exports.CustomerServiceTransaction = exports.CUSTOMER_TRANSACTION_TYPE = void 0;
4
3
  const RetailTransaction_1 = require("./RetailTransaction");
5
4
  exports.CUSTOMER_TRANSACTION_TYPE = "CustomerServiceTransaction";
6
5
  class CustomerServiceTransaction extends RetailTransaction_1.RetailTransaction {
@@ -32,10 +31,9 @@ class CustomerServiceTransaction extends RetailTransaction_1.RetailTransaction {
32
31
  }
33
32
  }
34
33
  exports.CustomerServiceTransaction = CustomerServiceTransaction;
35
- const isCustomerServiceTransaction = (transaction) => {
34
+ exports.isCustomerServiceTransaction = (transaction) => {
36
35
  return (transaction &&
37
36
  (transaction instanceof CustomerServiceTransaction ||
38
37
  transaction.transactionType === exports.CUSTOMER_TRANSACTION_TYPE));
39
38
  };
40
- exports.isCustomerServiceTransaction = isCustomerServiceTransaction;
41
39
  //# sourceMappingURL=CustomerServiceTransaction.js.map
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EmailVerification = exports.VERIFIED_DATA_LIST = exports.EMAILVERIFICATION = exports.EmailStatus = void 0;
4
3
  var EmailStatus;
5
4
  (function (EmailStatus) {
6
5
  EmailStatus["Valid"] = "Valid";
@@ -10,12 +9,6 @@ var EmailStatus;
10
9
  exports.EMAILVERIFICATION = "EmailVerification";
11
10
  exports.VERIFIED_DATA_LIST = "VERIFIED_DATA_LIST";
12
11
  class EmailVerification {
13
- static createFromJsonObject(emailFromJson) {
14
- if (!emailFromJson) {
15
- return undefined;
16
- }
17
- return new EmailVerification(emailFromJson._emailAddress);
18
- }
19
12
  /**
20
13
  * Construct email verify status object to be used to exchange the verification message with the server.
21
14
  *
@@ -25,6 +18,12 @@ class EmailVerification {
25
18
  constructor(emailAddress) {
26
19
  this._emailAddress = emailAddress;
27
20
  }
21
+ static createFromJsonObject(emailFromJson) {
22
+ if (!emailFromJson) {
23
+ return undefined;
24
+ }
25
+ return new EmailVerification(emailFromJson._emailAddress);
26
+ }
28
27
  get emailAddress() {
29
28
  return this._emailAddress;
30
29
  }
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Employee = exports.AccountStatus = void 0;
4
3
  var AccountStatus;
5
4
  (function (AccountStatus) {
6
5
  AccountStatus["Active"] = "Active";
@@ -9,15 +8,6 @@ var AccountStatus;
9
8
  AccountStatus["Locked"] = "Locked";
10
9
  })(AccountStatus = exports.AccountStatus || (exports.AccountStatus = {}));
11
10
  class Employee {
12
- static createFromIEmployee(employee) {
13
- return new Employee(employee.employeeNumber, employee.firstName, employee.lastName, employee.employeeIdNumber, employee.middleName, employee.displayName, employee.accountStatus, employee.associatedUsername, employee.isDefault);
14
- }
15
- static createFromJsonObject(employeeFromJson) {
16
- if (!employeeFromJson) {
17
- return undefined;
18
- }
19
- return new Employee(employeeFromJson._employeeNumber, employeeFromJson._firstName, employeeFromJson._lastName, employeeFromJson._employeeIdNumber, employeeFromJson._middleName, employeeFromJson._displayName, employeeFromJson._accountStatus, employeeFromJson._associatedUsername, employeeFromJson._isDefault);
20
- }
21
11
  /**
22
12
  * Construct a new employee object to be used to exchange the information with the server.
23
13
  *
@@ -42,6 +32,15 @@ class Employee {
42
32
  this._associatedUsername = associatedUsername;
43
33
  this._isDefault = isDefault;
44
34
  }
35
+ static createFromIEmployee(employee) {
36
+ return new Employee(employee.employeeNumber, employee.firstName, employee.lastName, employee.employeeIdNumber, employee.middleName, employee.displayName, employee.accountStatus, employee.associatedUsername, employee.isDefault);
37
+ }
38
+ static createFromJsonObject(employeeFromJson) {
39
+ if (!employeeFromJson) {
40
+ return undefined;
41
+ }
42
+ return new Employee(employeeFromJson._employeeNumber, employeeFromJson._firstName, employeeFromJson._lastName, employeeFromJson._employeeIdNumber, employeeFromJson._middleName, employeeFromJson._displayName, employeeFromJson._accountStatus, employeeFromJson._associatedUsername, employeeFromJson._isDefault);
43
+ }
45
44
  get employeeNumber() {
46
45
  return this._employeeNumber;
47
46
  }