taxtank-core 0.30.7 → 0.30.9

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 (279) hide show
  1. package/esm2020/lib/db/Enums/subscription/service-payment-method-card-brand.enum.mjs +12 -0
  2. package/esm2020/lib/db/Enums/subscription/service-payment-method-type.enum.mjs +6 -0
  3. package/esm2020/lib/db/Models/subscription/service-payment-method.mjs +4 -0
  4. package/esm2020/lib/models/endpoint/endpoints.const.mjs +6 -1
  5. package/esm2020/lib/models/service-subscription/index.mjs +3 -1
  6. package/esm2020/lib/models/service-subscription/payment-method-brand.enum.mjs +12 -0
  7. package/esm2020/lib/models/service-subscription/service-payment-method.mjs +21 -0
  8. package/esm2020/lib/models/service-subscription/service-subscription.mjs +16 -3
  9. package/esm2020/lib/models/service-subscription/stripe-promo-code.mjs +12 -0
  10. package/esm2020/lib/services/http/subscription/index.mjs +3 -2
  11. package/esm2020/lib/services/http/subscription/service-payment-method/service-payment-method.service.mjs +62 -0
  12. package/esm2020/lib/services/http/subscription/service-subscription/subscription.service.mjs +5 -3
  13. package/fesm2015/taxtank-core.mjs +158 -24
  14. package/fesm2015/taxtank-core.mjs.map +1 -1
  15. package/fesm2020/taxtank-core.mjs +155 -24
  16. package/fesm2020/taxtank-core.mjs.map +1 -1
  17. package/lib/db/Enums/subscription/service-payment-method-card-brand.enum.d.ts +10 -0
  18. package/lib/db/Enums/subscription/service-payment-method-type.enum.d.ts +4 -0
  19. package/lib/db/Models/subscription/service-payment-method.d.ts +16 -0
  20. package/lib/forms/abstract.form.d.ts.map +1 -0
  21. package/lib/forms/address/address.form.d.ts.map +1 -0
  22. package/lib/forms/address/index.d.ts.map +1 -0
  23. package/lib/forms/bank/bank-account/bank-account-add-manual.form.d.ts.map +1 -0
  24. package/lib/forms/bank/bank-account/bank-account-allocation.form.d.ts.map +1 -0
  25. package/lib/forms/bank/bank-account/bank-account-import.form.d.ts.map +1 -0
  26. package/lib/forms/bank/bank-account/bank-account-properties.form.d.ts.map +1 -0
  27. package/lib/forms/bank/bank-account/bank-accounts-import.form.d.ts.map +1 -0
  28. package/lib/forms/bank/bank-login.form.d.ts.map +1 -0
  29. package/lib/forms/client/client-income-types.form.d.ts.map +1 -0
  30. package/lib/forms/depreciation/depreciation.form.d.ts.map +1 -0
  31. package/lib/forms/depreciation/index.d.ts.map +1 -0
  32. package/lib/forms/form-validations.enum.d.ts.map +1 -0
  33. package/lib/forms/index.d.ts.map +1 -0
  34. package/lib/forms/loan/index.d.ts.map +1 -0
  35. package/lib/forms/loan/loan.form.d.ts.map +1 -0
  36. package/lib/forms/login/login.form.d.ts.map +1 -0
  37. package/lib/forms/phone/index.d.ts.map +1 -0
  38. package/lib/forms/phone/phone.form.d.ts.map +1 -0
  39. package/lib/forms/property/index.d.ts.map +1 -0
  40. package/lib/forms/property/property-sale/index.d.ts.map +1 -0
  41. package/lib/forms/property/property-sale/property-sale-cost-base.form.d.ts.map +1 -0
  42. package/lib/forms/property/property-sale/property-sale-cost-sale.form.d.ts.map +1 -0
  43. package/lib/forms/property/property-sale/property-sale-exemptions.form.d.ts.map +1 -0
  44. package/lib/forms/register/register-client.form.d.ts.map +1 -0
  45. package/lib/forms/register/register-firm.form.d.ts.map +1 -0
  46. package/lib/forms/report/my-tax/index.d.ts.map +1 -0
  47. package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-details/my-tax-business-details.form.d.ts.map +1 -0
  48. package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income/my-tax-business-income.form.d.ts.map +1 -0
  49. package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income-or-losses.form.d.ts.map +1 -0
  50. package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-losses/my-tax-business-losses.form.d.ts.map +1 -0
  51. package/lib/forms/report/my-tax/my-tax-cgt.form.d.ts.map +1 -0
  52. package/lib/forms/report/my-tax/my-tax-deductions.form.d.ts.map +1 -0
  53. package/lib/forms/report/my-tax/my-tax-dividends.form.d.ts.map +1 -0
  54. package/lib/forms/report/my-tax/my-tax-income-statements.form.d.ts.map +1 -0
  55. package/lib/forms/report/my-tax/my-tax-income-tests.form.d.ts.map +1 -0
  56. package/lib/forms/report/my-tax/my-tax-interest.form.d.ts.map +1 -0
  57. package/lib/forms/report/my-tax/my-tax-losses.form.d.ts.map +1 -0
  58. package/lib/forms/report/my-tax/my-tax-medicare.form.d.ts.map +1 -0
  59. package/lib/forms/report/my-tax/my-tax-offsets.form.d.ts.map +1 -0
  60. package/lib/forms/report/my-tax/my-tax-other-income.form.d.ts.map +1 -0
  61. package/lib/forms/report/my-tax/my-tax-partnerships-and-trusts.form.d.ts.map +1 -0
  62. package/lib/forms/report/my-tax/my-tax-rent.form.d.ts.map +1 -0
  63. package/lib/forms/sole/bas-report.form.d.ts.map +1 -0
  64. package/lib/forms/sole/index.d.ts.map +1 -0
  65. package/lib/forms/sole/sole-business-allocations.form.d.ts.map +1 -0
  66. package/lib/forms/sole/sole-business-loss.form.d.ts.map +1 -0
  67. package/lib/forms/sole/sole-business.form.d.ts.map +1 -0
  68. package/lib/forms/sole/sole-contact.form.d.ts.map +1 -0
  69. package/lib/forms/sole/sole-depreciation-method.form.d.ts.map +1 -0
  70. package/lib/forms/sole/sole-details.form.d.ts.map +1 -0
  71. package/lib/forms/sole/sole-invoice-item.form.d.ts.map +1 -0
  72. package/lib/forms/sole/sole-invoice-template.form.d.ts.map +1 -0
  73. package/lib/forms/sole/sole-invoice.form.d.ts.map +1 -0
  74. package/lib/forms/transaction/index.d.ts.map +1 -0
  75. package/lib/forms/transaction/messages.enum.d.ts.map +1 -0
  76. package/lib/forms/transaction/transaction-base.form.d.ts.map +1 -0
  77. package/lib/forms/transaction/transaction.form.d.ts.map +1 -0
  78. package/lib/forms/transaction/work/work-expense.form.d.ts.map +1 -0
  79. package/lib/forms/transaction/work/work-income.form.d.ts.map +1 -0
  80. package/lib/forms/transaction/work/work-transaction.form.d.ts.map +1 -0
  81. package/lib/forms/user/index.d.ts.map +1 -0
  82. package/lib/forms/user/password.form.d.ts.map +1 -0
  83. package/lib/forms/user/reset-password.form.d.ts.map +1 -0
  84. package/lib/forms/user/user-invite.form.d.ts.map +1 -0
  85. package/lib/forms/vehicle/index.d.ts.map +1 -0
  86. package/lib/forms/vehicle/vehicle-claim-details.form.d.ts.map +1 -0
  87. package/lib/forms/vehicle/vehicle-claim.form.d.ts.map +1 -0
  88. package/lib/forms/vehicle/vehicle-logbook.form.d.ts.map +1 -0
  89. package/lib/forms/vehicle/vehicle.form.d.ts.map +1 -0
  90. package/lib/functions/clone-deep.d.ts.map +1 -0
  91. package/lib/functions/create-date.d.ts.map +1 -0
  92. package/lib/functions/get-doc-icon.d.ts.map +1 -0
  93. package/lib/functions/mat-options-functions.d.ts.map +1 -0
  94. package/lib/functions/mat-sort-options.d.ts.map +1 -0
  95. package/lib/functions/round-to.d.ts.map +1 -0
  96. package/lib/functions/tax-review-filter-predicate.d.ts.map +1 -0
  97. package/lib/models/account-setup/account-setup-items.const.d.ts.map +1 -0
  98. package/lib/models/account-setup/account-setup-items.enum.d.ts.map +1 -0
  99. package/lib/models/endpoint/endpoints.const.d.ts +1 -0
  100. package/lib/models/service-subscription/index.d.ts +2 -0
  101. package/lib/models/service-subscription/payment-method-brand.enum.d.ts +10 -0
  102. package/lib/models/service-subscription/service-payment-method.d.ts +10 -0
  103. package/lib/models/service-subscription/service-subscription.d.ts +6 -0
  104. package/lib/models/service-subscription/stripe-promo-code.d.ts +8 -0
  105. package/lib/services/account-setup/account-setup.service.d.ts.map +1 -0
  106. package/lib/services/account-setup/index.d.ts.map +1 -0
  107. package/lib/services/affiliate/index.d.ts.map +1 -0
  108. package/lib/services/affiliate/rewardful/index.d.ts.map +1 -0
  109. package/lib/services/affiliate/rewardful/rewardful.service.d.ts.map +1 -0
  110. package/lib/services/asset/assets.service.d.ts.map +1 -0
  111. package/lib/services/asset/index.d.ts.map +1 -0
  112. package/lib/services/bank/bank-account-calculation.service.d.ts.map +1 -0
  113. package/lib/services/bank/bank-transaction-calculation.service.d.ts.map +1 -0
  114. package/lib/services/bank/index.d.ts.map +1 -0
  115. package/lib/services/export/export-formatter.service.d.ts.map +1 -0
  116. package/lib/services/export/index.d.ts.map +1 -0
  117. package/lib/services/header-title/header-title.service.d.ts.map +1 -0
  118. package/lib/services/header-title/index.d.ts.map +1 -0
  119. package/lib/services/http/bank/bank.service.d.ts.map +1 -0
  120. package/lib/services/http/bank/index.d.ts.map +1 -0
  121. package/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.d.ts.map +1 -0
  122. package/lib/services/http/chart-accounts/chart-accounts-depreciations/index.d.ts.map +1 -0
  123. package/lib/services/http/chart-accounts/chart-accounts.service.d.ts.map +1 -0
  124. package/lib/services/http/chart-accounts/index.d.ts.map +1 -0
  125. package/lib/services/http/chat/chat.service.d.ts.map +1 -0
  126. package/lib/services/http/chat/index.d.ts.map +1 -0
  127. package/lib/services/http/chat/message-document.service.d.ts.map +1 -0
  128. package/lib/services/http/chat/message.service.d.ts.map +1 -0
  129. package/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.d.ts.map +1 -0
  130. package/lib/services/http/depreciation/depreciation-capital-project/index.d.ts.map +1 -0
  131. package/lib/services/http/depreciation/depreciation-receipt/depreciation-receipt.service.d.ts.map +1 -0
  132. package/lib/services/http/depreciation/depreciation-receipt/index.d.ts.map +1 -0
  133. package/lib/services/http/depreciation/depreciation.service.d.ts.map +1 -0
  134. package/lib/services/http/depreciation/index.d.ts.map +1 -0
  135. package/lib/services/http/document/document-folder/document-folder.service.d.ts.map +1 -0
  136. package/lib/services/http/document/document.service.d.ts.map +1 -0
  137. package/lib/services/http/document/index.d.ts.map +1 -0
  138. package/lib/services/http/facebook/facebook-auth-options.interface.d.ts.map +1 -0
  139. package/lib/services/http/facebook/facebook-auth-response.interface.d.ts.map +1 -0
  140. package/lib/services/http/facebook/facebook-status-response.interface.d.ts.map +1 -0
  141. package/lib/services/http/facebook/facebook.service.d.ts.map +1 -0
  142. package/lib/services/http/facebook/index.d.ts.map +1 -0
  143. package/lib/services/http/file/file.service.d.ts.map +1 -0
  144. package/lib/services/http/file/index.d.ts.map +1 -0
  145. package/lib/services/http/firm/client-income/client-income-types.service.d.ts.map +1 -0
  146. package/lib/services/http/firm/client-income/index.d.ts.map +1 -0
  147. package/lib/services/http/firm/client-invite/client-invite.service.d.ts.map +1 -0
  148. package/lib/services/http/firm/client-invite/index.d.ts.map +1 -0
  149. package/lib/services/http/firm/client-movement/client-movement.service.d.ts.map +1 -0
  150. package/lib/services/http/firm/client-movement/index.d.ts.map +1 -0
  151. package/lib/services/http/firm/employee/employee.service.d.ts.map +1 -0
  152. package/lib/services/http/firm/employee/index.d.ts.map +1 -0
  153. package/lib/services/http/firm/employee-invite/employee-invite.service.d.ts.map +1 -0
  154. package/lib/services/http/firm/employee-invite/index.d.ts.map +1 -0
  155. package/lib/services/http/firm/firm.service.d.ts.map +1 -0
  156. package/lib/services/http/firm/index.d.ts.map +1 -0
  157. package/lib/services/http/firm/portfolio-report/client-portfolio-report.service.d.ts.map +1 -0
  158. package/lib/services/http/firm/portfolio-report/index.d.ts.map +1 -0
  159. package/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.d.ts.map +1 -0
  160. package/lib/services/http/income-source/income-source-forecast/index.d.ts.map +1 -0
  161. package/lib/services/http/income-source/income-source.service.d.ts.map +1 -0
  162. package/lib/services/http/income-source/index.d.ts.map +1 -0
  163. package/lib/services/http/income-source/salary-forecast/index.d.ts.map +1 -0
  164. package/lib/services/http/income-source/salary-forecast/salary-forecast.service.d.ts.map +1 -0
  165. package/lib/services/http/income-source/sole-forecast/index.d.ts.map +1 -0
  166. package/lib/services/http/income-source/sole-forecast/sole-forecast.service.d.ts.map +1 -0
  167. package/lib/services/http/index.d.ts.map +1 -0
  168. package/lib/services/http/loan/borrowing-expense/borrowing-expense.service.d.ts.map +1 -0
  169. package/lib/services/http/loan/borrowing-expense/index.d.ts.map +1 -0
  170. package/lib/services/http/loan/index.d.ts.map +1 -0
  171. package/lib/services/http/loan/loan.service.d.ts.map +1 -0
  172. package/lib/services/http/property/index.d.ts.map +1 -0
  173. package/lib/services/http/property/property-category/index.d.ts.map +1 -0
  174. package/lib/services/http/property/property-category/property-category.service.d.ts.map +1 -0
  175. package/lib/services/http/property/property-category-movement/index.d.ts.map +1 -0
  176. package/lib/services/http/property/property-category-movement/property-category-movement.service.d.ts.map +1 -0
  177. package/lib/services/http/property/property-document/index.d.ts.map +1 -0
  178. package/lib/services/http/property/property-document/property-document.service.d.ts.map +1 -0
  179. package/lib/services/http/property/property-sale/index.d.ts.map +1 -0
  180. package/lib/services/http/property/property-sale/property-sale.service.d.ts.map +1 -0
  181. package/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.d.ts.map +1 -0
  182. package/lib/services/http/property/property-share/index.d.ts.map +1 -0
  183. package/lib/services/http/property/property-share/property-share.service.d.ts.map +1 -0
  184. package/lib/services/http/property/property.service.d.ts.map +1 -0
  185. package/lib/services/http/receipt/index.d.ts.map +1 -0
  186. package/lib/services/http/receipt/receipt.service.d.ts.map +1 -0
  187. package/lib/services/http/rest/rest-old.service.d.ts.map +1 -0
  188. package/lib/services/http/service-notification/index.d.ts.map +1 -0
  189. package/lib/services/http/service-notification/service-notification.service.d.ts.map +1 -0
  190. package/lib/services/http/sole/bas-report/bas-report.service.d.ts.map +1 -0
  191. package/lib/services/http/sole/index.d.ts.map +1 -0
  192. package/lib/services/http/sole/sole-business/messages.enum.d.ts.map +1 -0
  193. package/lib/services/http/sole/sole-business/sole-business.service.d.ts.map +1 -0
  194. package/lib/services/http/sole/sole-business-activity/sole-business-activity.service.d.ts.map +1 -0
  195. package/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.d.ts.map +1 -0
  196. package/lib/services/http/sole/sole-business-loss/sole-business-loss.service.d.ts.map +1 -0
  197. package/lib/services/http/sole/sole-contact/sole-contact.service.d.ts.map +1 -0
  198. package/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.d.ts.map +1 -0
  199. package/lib/services/http/sole/sole-details/sole-details.service.d.ts.map +1 -0
  200. package/lib/services/http/sole/sole-invoice/sole-invoice.service.d.ts.map +1 -0
  201. package/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.d.ts.map +1 -0
  202. package/lib/services/http/subscription/index.d.ts +2 -1
  203. package/lib/services/http/subscription/index.d.ts.map +1 -0
  204. package/lib/services/http/subscription/service-payment/service-payment.service.d.ts.map +1 -0
  205. package/lib/services/http/subscription/service-payment-method/service-payment-method.service.d.ts +27 -0
  206. package/lib/services/http/subscription/service-payment-method/service-payment-method.service.d.ts.map +1 -0
  207. package/lib/services/http/subscription/service-price/service-price.service.d.ts.map +1 -0
  208. package/lib/services/http/subscription/service-product/service-product.service.d.ts.map +1 -0
  209. package/lib/services/http/subscription/service-subscription/subscription.service.d.ts +2 -1
  210. package/lib/services/http/subscription/service-subscription/subscription.service.d.ts.map +1 -0
  211. package/lib/services/http/tax-review/index.d.ts.map +1 -0
  212. package/lib/services/http/tax-review/tax-review-history/tax-review-history.service.d.ts.map +1 -0
  213. package/lib/services/http/tax-review/tax-review.service.d.ts.map +1 -0
  214. package/lib/services/http/tax-summary/index.d.ts.map +1 -0
  215. package/lib/services/http/tax-summary/tax-summary.service.d.ts.map +1 -0
  216. package/lib/services/http/transaction/index.d.ts.map +1 -0
  217. package/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.d.ts.map +1 -0
  218. package/lib/services/http/transaction/transaction-receipt/transaction-receipt.service.d.ts.map +1 -0
  219. package/lib/services/http/transaction/transaction.service.d.ts.map +1 -0
  220. package/lib/services/http/tutorial-video/index.d.ts.map +1 -0
  221. package/lib/services/http/tutorial-video/tutorial-video-response.interface.d.ts.map +1 -0
  222. package/lib/services/http/tutorial-video/tutorial-video.service.d.ts.map +1 -0
  223. package/lib/services/http/tutorial-video/video-source.interface.d.ts.map +1 -0
  224. package/lib/services/http/user/index.d.ts.map +1 -0
  225. package/lib/services/http/user/occupation/occupation.service.d.ts.map +1 -0
  226. package/lib/services/http/user/user-event-setting/user-event-setting.service.d.ts.map +1 -0
  227. package/lib/services/http/user/user-event-type/user-event-type.service.d.ts.map +1 -0
  228. package/lib/services/http/user/users-invite/users-invite.service.d.ts.map +1 -0
  229. package/lib/services/http/vehicle/index.d.ts.map +1 -0
  230. package/lib/services/http/vehicle/vehicle-claim-details.service.d.ts.map +1 -0
  231. package/lib/services/http/vehicle/vehicle-claim.service.d.ts.map +1 -0
  232. package/lib/services/http/vehicle/vehicle-logbook.service.d.ts.map +1 -0
  233. package/lib/services/http/vehicle/vehicle.service.d.ts.map +1 -0
  234. package/lib/services/index.d.ts.map +1 -0
  235. package/lib/services/intercom/index.d.ts.map +1 -0
  236. package/lib/services/intercom/intercom.service.d.ts.map +1 -0
  237. package/lib/services/pdf/index.d.ts.map +1 -0
  238. package/lib/services/pdf/js-pdf.d.ts.map +1 -0
  239. package/lib/services/pdf/pdf-from-dom-element/file-settings.d.ts.map +1 -0
  240. package/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.d.ts.map +1 -0
  241. package/lib/services/pdf/pdf-from-table/file-settings.d.ts.map +1 -0
  242. package/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.d.ts.map +1 -0
  243. package/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.d.ts.map +1 -0
  244. package/lib/services/pdf/pdf-from-table/pdf-from-table.service.d.ts.map +1 -0
  245. package/lib/services/preloader/index.d.ts.map +1 -0
  246. package/lib/services/property/corelogic/index.d.ts.map +1 -0
  247. package/lib/services/property/equity-position-chart/equity-position-chart.service.d.ts.map +1 -0
  248. package/lib/services/property/equity-position-chart/index.d.ts.map +1 -0
  249. package/lib/services/property/index.d.ts.map +1 -0
  250. package/lib/services/property/property-calculation/index.d.ts.map +1 -0
  251. package/lib/services/property/property-calculation/property-calculation.service.d.ts.map +1 -0
  252. package/lib/services/report/index.d.ts.map +1 -0
  253. package/lib/services/report/property/property-transaction-report.service.d.ts.map +1 -0
  254. package/lib/services/transaction/index.d.ts.map +1 -0
  255. package/lib/services/transaction/transaction-calculation.service.d.ts.map +1 -0
  256. package/lib/services/user/index.d.ts.map +1 -0
  257. package/lib/services/vehicle/index.d.ts.map +1 -0
  258. package/lib/services/vehicle/logbook-best-period.service.d.ts.map +1 -0
  259. package/lib/services/xlsx/index.d.ts.map +1 -0
  260. package/lib/services/xlsx/xlsx.service.d.ts.map +1 -0
  261. package/lib/validators/address-corelogic.validator.d.ts.map +1 -0
  262. package/lib/validators/at-least-one-enabled.validator.d.ts.map +1 -0
  263. package/lib/validators/at-least-one.validator.d.ts.map +1 -0
  264. package/lib/validators/autocomplete.validator.d.ts.map +1 -0
  265. package/lib/validators/conditional.validator.d.ts.map +1 -0
  266. package/lib/validators/current-fin-year.validator.d.ts.map +1 -0
  267. package/lib/validators/date-range.validator.d.ts.map +1 -0
  268. package/lib/validators/fields-sum.validator.d.ts.map +1 -0
  269. package/lib/validators/file.validator.d.ts.map +1 -0
  270. package/lib/validators/index.d.ts.map +1 -0
  271. package/lib/validators/min-date/messages.enum.d.ts.map +1 -0
  272. package/lib/validators/min-date/min-date.validator.d.ts.map +1 -0
  273. package/lib/validators/password-match.validator.d.ts.map +1 -0
  274. package/lib/validators/password.validator.d.ts.map +1 -0
  275. package/lib/validators/phone-number.validator.d.ts.map +1 -0
  276. package/lib/validators/required-length.validator.d.ts.map +1 -0
  277. package/package.json +1 -1
  278. package/public-api.d.ts.map +1 -0
  279. package/taxtank-core.d.ts.map +1 -0
@@ -6643,6 +6643,9 @@ class UserEventTypeCollection extends Collection {
6643
6643
  // @TODO Alex move here all collections
6644
6644
 
6645
6645
  class ServiceSubscription extends ServiceSubscription$1 {
6646
+ get promoCodeId() {
6647
+ return this.stripePromoCode?.id || null;
6648
+ }
6646
6649
  get frequency() {
6647
6650
  return this.isAnnual() ? 'year' : 'month';
6648
6651
  }
@@ -6653,7 +6656,14 @@ class ServiceSubscription extends ServiceSubscription$1 {
6653
6656
  return !!this.stripeId;
6654
6657
  }
6655
6658
  get price() {
6656
- return this.items.reduce((sum, item) => sum + item.total, 0);
6659
+ const price = this.items.reduce((sum, item) => sum + item.total, 0);
6660
+ if (!!this.stripePromoCode) {
6661
+ if (this.stripePromoCode.isAmount()) {
6662
+ return price - this.stripePromoCode.amountOff;
6663
+ }
6664
+ return price - price * (this.stripePromoCode.percentOff / 100);
6665
+ }
6666
+ return price;
6657
6667
  }
6658
6668
  /**
6659
6669
  * get title of subscription
@@ -6744,6 +6754,9 @@ __decorate([
6744
6754
  __decorate([
6745
6755
  Type(() => ServiceSubscriptionItem)
6746
6756
  ], ServiceSubscription.prototype, "items", void 0);
6757
+ __decorate([
6758
+ Expose()
6759
+ ], ServiceSubscription.prototype, "promoCodeId", null);
6747
6760
 
6748
6761
  class User extends User$1 {
6749
6762
  get fullName() {
@@ -7730,6 +7743,63 @@ __decorate([
7730
7743
  Type(() => Date)
7731
7744
  ], ServicePayment.prototype, "date", void 0);
7732
7745
 
7746
+ let ServicePaymentMethod$1 = class ServicePaymentMethod extends AbstractModel {
7747
+ };
7748
+
7749
+ var PaymentMethodBrandEnum;
7750
+ (function (PaymentMethodBrandEnum) {
7751
+ PaymentMethodBrandEnum["UNKNOWN"] = "Unknown";
7752
+ PaymentMethodBrandEnum["AMEX"] = "American Express";
7753
+ PaymentMethodBrandEnum["DINERS"] = "Diners Club";
7754
+ PaymentMethodBrandEnum["DISCOVER"] = "Discover";
7755
+ PaymentMethodBrandEnum["JCB"] = "JCB";
7756
+ PaymentMethodBrandEnum["MASTERCARD"] = "Mastercard";
7757
+ PaymentMethodBrandEnum["UNIONPAY"] = "UnionPay";
7758
+ PaymentMethodBrandEnum["VISA"] = "Visa";
7759
+ })(PaymentMethodBrandEnum || (PaymentMethodBrandEnum = {}));
7760
+
7761
+ var ServicePaymentMethodCardBrandEnum;
7762
+ (function (ServicePaymentMethodCardBrandEnum) {
7763
+ ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["UNKNOWN"] = 0] = "UNKNOWN";
7764
+ ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["AMEX"] = 1] = "AMEX";
7765
+ ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["DINERS"] = 2] = "DINERS";
7766
+ ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["DISCOVER"] = 3] = "DISCOVER";
7767
+ ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["JCB"] = 4] = "JCB";
7768
+ ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["MASTERCARD"] = 5] = "MASTERCARD";
7769
+ ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["UNIONPAY"] = 6] = "UNIONPAY";
7770
+ ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["VISA"] = 7] = "VISA";
7771
+ })(ServicePaymentMethodCardBrandEnum || (ServicePaymentMethodCardBrandEnum = {}));
7772
+
7773
+ class ServicePaymentMethod extends ServicePaymentMethod$1 {
7774
+ get logo() {
7775
+ return `/assets/img/payment-methods/${this.cardBrand}.svg`;
7776
+ }
7777
+ get brandName() {
7778
+ return PaymentMethodBrandEnum[ServicePaymentMethodCardBrandEnum[this.cardBrand]];
7779
+ }
7780
+ /**
7781
+ * Get expiration date formatted string (MM/YY)
7782
+ */
7783
+ get expirationDate() {
7784
+ return `${('0' + this.cardExpirationMonth).slice(-2)}/${this.cardExpirationYear.toString().slice(-2)}`;
7785
+ }
7786
+ get description() {
7787
+ return `${this.brandName} ***${this.lastFourDigits}`;
7788
+ }
7789
+ }
7790
+
7791
+ class StripePromoCode {
7792
+ get description() {
7793
+ if (this.isAmount()) {
7794
+ return `$${this.amountOff} off`;
7795
+ }
7796
+ return `${this.percentOff}% off`;
7797
+ }
7798
+ isAmount() {
7799
+ return !!this.amountOff;
7800
+ }
7801
+ }
7802
+
7733
7803
  /**
7734
7804
  * Enum with document types which used to API url prefix
7735
7805
  */
@@ -8158,6 +8228,7 @@ class Endpoint {
8158
8228
 
8159
8229
  /**
8160
8230
  * List of all app endpoints
8231
+ * @TODO Alex/Vik: Create some smart system for preloader endpoints.
8161
8232
  */
8162
8233
  const ENDPOINTS = {
8163
8234
  ASSETS_GET: new Endpoint('GET', '\\/assets\\/\.\*\\/\\d+'),
@@ -8276,6 +8347,10 @@ const ENDPOINTS = {
8276
8347
  SERVICE_SUBSCRIPTIONS_CANCEL: new Endpoint('PUT', '\\/service-subscriptions\\/\\d+\\/cancel'),
8277
8348
  SERVICE_SUBSCRIPTIONS_RENEW: new Endpoint('PUT', '\\/service-subscriptions\\/\\d+\\/renewal'),
8278
8349
  SERVICE_PAYMENT_INVOICE_URL_GET: new Endpoint('GET', '\\/service-payments\\/\\d+\\/invoice-url'),
8350
+ SERVICE_PAYMENT_METHODS_GET: new Endpoint('GET', '\\/service-payment-methods'),
8351
+ SERVICE_PAYMENT_METHODS_DELETE: new Endpoint('DELETE', '\\/service-payment-methods\\/\\d+'),
8352
+ SERVICE_PAYMENT_METHODS_GET_SECRET: new Endpoint('GET', '\\/service-payment-methods\\/setup-intent-secret'),
8353
+ SERVICE_PAYMENT_METHODS_DEFAULT_PUT: new Endpoint('PUT', '\\/service-payment-methods\\/\\d+\\/default'),
8279
8354
  SUBSCRIPTION_ITEMS_PUT: new Endpoint('PUT', '\\/service-subscriptions\\/\\d+\\/items'),
8280
8355
  SOLE_BUSINESSES_GET: new Endpoint('GET', '\\/sole-businesses'),
8281
8356
  SOLE_BUSINESSES_POST: new Endpoint('POST', '\\/sole-businesses'),
@@ -13806,28 +13881,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
13806
13881
  }]
13807
13882
  }] });
13808
13883
 
13809
- /**
13810
- * Service that handling banks logic
13811
- */
13812
- class ServicePriceService extends RestService$1 {
13813
- constructor() {
13814
- super(...arguments);
13815
- this.endpointUri = 'service-prices';
13816
- this.modelClass = ServicePrice;
13817
- this.isApiPlatform = true;
13818
- this.collectionClass = ServicePriceCollection;
13819
- this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
13820
- }
13821
- }
13822
- ServicePriceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePriceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13823
- ServicePriceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePriceService, providedIn: 'root' });
13824
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePriceService, decorators: [{
13825
- type: Injectable,
13826
- args: [{
13827
- providedIn: 'root'
13828
- }]
13829
- }] });
13830
-
13831
13884
  class ServicePaymentService extends RestService$1 {
13832
13885
  constructor() {
13833
13886
  super(...arguments);
@@ -13856,6 +13909,81 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
13856
13909
  }]
13857
13910
  }] });
13858
13911
 
13912
+ class ServicePaymentMethodService extends RestService$1 {
13913
+ constructor(http, eventDispatcherService, environment, sseService) {
13914
+ super(http, eventDispatcherService, environment);
13915
+ this.http = http;
13916
+ this.eventDispatcherService = eventDispatcherService;
13917
+ this.environment = environment;
13918
+ this.sseService = sseService;
13919
+ this.endpointUri = 'service-payment-methods';
13920
+ this.collectionClass = Collection;
13921
+ this.modelClass = ServicePaymentMethod;
13922
+ this.isApiPlatform = true;
13923
+ this.listenPaymentMethods();
13924
+ }
13925
+ /**
13926
+ * Get Stripe client secret required for Payment form initialization
13927
+ */
13928
+ getSecret() {
13929
+ return this.http.get(`${this.apiUrl}/setup-intent-secret`)
13930
+ .pipe(map((response) => response));
13931
+ }
13932
+ setAsDefault(paymentMethod) {
13933
+ return this.http.put(`${this.apiUrl}/${paymentMethod.id}/default`, {})
13934
+ .pipe(map((updatedPaymentMethod) => plainToClass(ServicePaymentMethod, updatedPaymentMethod)));
13935
+ }
13936
+ listenPaymentMethods() {
13937
+ this.sseService.on('servicePaymentMethods').subscribe((newPaymentMethod) => {
13938
+ const paymentMethodFromCache = this.cache.findBy('id', newPaymentMethod.id);
13939
+ // backend send empty object when payment method deleted
13940
+ if (!newPaymentMethod.id) {
13941
+ return;
13942
+ }
13943
+ // replace cache item in cache when exist
13944
+ if (paymentMethodFromCache) {
13945
+ this.handleResponse([plainToClass(ServicePaymentMethod, newPaymentMethod)], 'put');
13946
+ return;
13947
+ }
13948
+ // add a new payment method to cache
13949
+ this.handleResponse([plainToClass(ServicePaymentMethod, newPaymentMethod)], 'post');
13950
+ });
13951
+ }
13952
+ }
13953
+ ServicePaymentMethodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePaymentMethodService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
13954
+ ServicePaymentMethodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePaymentMethodService, providedIn: 'root' });
13955
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePaymentMethodService, decorators: [{
13956
+ type: Injectable,
13957
+ args: [{
13958
+ providedIn: 'root'
13959
+ }]
13960
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
13961
+ type: Inject,
13962
+ args: ['environment']
13963
+ }] }, { type: SseService }]; } });
13964
+
13965
+ /**
13966
+ * Service that handling banks logic
13967
+ */
13968
+ class ServicePriceService extends RestService$1 {
13969
+ constructor() {
13970
+ super(...arguments);
13971
+ this.endpointUri = 'service-prices';
13972
+ this.modelClass = ServicePrice;
13973
+ this.isApiPlatform = true;
13974
+ this.collectionClass = ServicePriceCollection;
13975
+ this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
13976
+ }
13977
+ }
13978
+ ServicePriceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePriceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
13979
+ ServicePriceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePriceService, providedIn: 'root' });
13980
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePriceService, decorators: [{
13981
+ type: Injectable,
13982
+ args: [{
13983
+ providedIn: 'root'
13984
+ }]
13985
+ }] });
13986
+
13859
13987
  /**
13860
13988
  * @TODO Alex refactor
13861
13989
  */
@@ -13941,6 +14069,9 @@ class SubscriptionService extends RestService$1 {
13941
14069
  renew(subscription) {
13942
14070
  return this.http.put(`${this.environment.apiV2}/service-subscriptions/${subscription.id}/renewal`, {});
13943
14071
  }
14072
+ getCoupon(code) {
14073
+ return this.http.get(`${this.apiUrl}/promo-code/${code}`).pipe(map((response) => plainToClass(StripePromoCode, response)));
14074
+ }
13944
14075
  listenSubscriptions() {
13945
14076
  this.sseService.on(`serviceSubscriptions`)
13946
14077
  .subscribe((serviceSubscription) => {
@@ -18667,5 +18798,5 @@ class DepreciationForm extends TransactionBaseForm {
18667
18798
  * Generated bundle index. Do not edit.
18668
18799
  */
18669
18800
 
18670
- export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressForm, AddressService, AddressTypeEnum, AllocationGroup, AllocationGroupCollection, AlphabetColorsEnum, AnnualFrequencyEnum, AppEvent, AppEvent2, AppEventTypeEnum, AppFile, AssetEntityTypeEnum, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Badge, BadgeColorEnum, Bank, BankAccount, BankAccountAddManualForm, BankAccountAllocationForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountImportForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankAccountsImportForm, BankConnection, BankConnectionService, BankConnectionStatusEnum, BankExternalStats, BankLoginData, BankLoginForm, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasReport, BasReportForm, BasReportService, BasiqConfig, BasiqJob, BasiqJobResponse, BasiqJobStep, BasiqService, BasiqToken, BasiqTokenService, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, BusinessTypeEnum, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, CgtExemptionAndRolloverCodeEnum, ChartAccounts, ChartAccountsCategoryECollection, ChartAccountsCategoryEnum, ChartAccountsCollection, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsKeepSign, ChartAccountsListEnum, ChartAccountsMetadata, ChartAccountsMetadataListEnum, ChartAccountsMetadataTypeEnum, ChartAccountsSalaryAdjustmentsListEnum, ChartAccountsSalaryIncludedListEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartData, ChartSerie, Chat, ChatCollection, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteCollection, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CorelogicService, CorelogicSuggestion, Country, DEDUCTION_CATEGORIES, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, DeductionClothingTypeEnum, DeductionSelfEducationTypeEnum, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationForm, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpRateEnum, DepreciationLvpReportItem, DepreciationLvpReportItemCollection, DepreciationReceipt, DepreciationReceiptService, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Dictionary, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderService, DocumentService, DocumentTypeEnum, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeInvite, EmployeeInviteService, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, ExportFormatterService, ExportableCollection, FacebookService, FileService, FileValidator, FinancialYear, Firm, FirmService, FirmTypeEnum, FormValidationsEnum, HeaderTitleService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastService, IncomeSourceForecastTrustTypeEnum, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, InterceptorsModule, IntercomService, InviteStatusEnum, JsPdf, JwtService, Loan, LoanBankTypeEnum, LoanCollection, LoanForm, LoanFrequencyEnum, LoanInterestTypeEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookBestPeriodService, LogbookPeriod, LoginForm, LossTypeEnum, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, MyTaxBusinessDetails, MyTaxBusinessDetailsForm, MyTaxBusinessIncome, MyTaxBusinessIncomeForm, MyTaxBusinessIncomeOrLossesForm, MyTaxBusinessLosses, MyTaxBusinessLossesForm, MyTaxCgt, MyTaxCgtForm, MyTaxDeductions, MyTaxDeductionsForm, MyTaxDividends, MyTaxDividendsForm, MyTaxEstimate, MyTaxIncomeStatements, MyTaxIncomeStatementsForm, MyTaxIncomeTests, MyTaxIncomeTestsForm, MyTaxInterest, MyTaxInterestForm, MyTaxLosses, MyTaxLossesForm, MyTaxMedicareForm, MyTaxOffsets, MyTaxOffsetsForm, MyTaxOtherIncome, MyTaxOtherIncomeForm, MyTaxPartnershipsAndTrusts, MyTaxPartnershipsAndTrustsForm, MyTaxRent, MyTaxRentForm, Notification, Occupation, OccupationService, PASSWORD_REGEXPS, PasswordForm, PdfFromDataTableService, PdfFromDomElementService, PdfFromHtmlTableService, PdfFromTableService, PdfOrientationEnum, PdfSettings, Phone, PhoneForm, PhoneTypeEnum, PreloaderService, Property, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementCollection, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentService, PropertyEquityChartData, PropertyEquityChartItem, PropertyEquityChartTypeEnum, PropertyForecast, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciation, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleCollection, PropertySaleCostBase, PropertySaleCostBaseForm, PropertySaleCostSaleForm, PropertySaleExemptionsForm, PropertySaleService, PropertySaleTaxExemptionMetadata, PropertySaleTaxExemptionMetadataCollection, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareCollection, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, ReceiptService, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, RestService$1 as RestService, RewardfulService, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentService, ServicePaymentStatusEnum, ServicePrice, ServicePriceCollection, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductCollection, ServiceProductIdEnum, ServiceProductService, ServiceProductStatusEnum, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, ShareFilterOptionsEnum, SoleBusiness, SoleBusinessActivity, SoleBusinessActivityService, SoleBusinessAllocation, SoleBusinessAllocationsForm, SoleBusinessForm, SoleBusinessLoss, SoleBusinessLossForm, SoleBusinessLossOffsetRule, SoleBusinessLossOffsetRuleService, SoleBusinessLossReport, SoleBusinessLossService, SoleBusinessLossesCollection, SoleBusinessService, SoleContact, SoleContactForm, SoleContactService, SoleDepreciationMethod, SoleDepreciationMethodEnum, SoleDepreciationMethodForm, SoleDepreciationMethodService, SoleDetails, SoleDetailsForm, SoleDetailsService, SoleForecast, SoleForecastService, SoleInvoice, SoleInvoiceCollection, SoleInvoiceForm, SoleInvoiceItem, SoleInvoiceItemCollection, SoleInvoiceItemForm, SoleInvoiceService, SoleInvoiceStatusesEnum, SoleInvoiceTaxTypeEnum, SoleInvoiceTemplate, SoleInvoiceTemplateForm, SoleInvoiceTemplateService, SoleInvoiceTemplateTaxTypeEnum, SpareDocumentSpareTypeEnum, SseService, StatesEnum, SubscriptionItemCollection, SubscriptionService, TAX_RETURN_CATEGORIES, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionEnum, TaxExemptionMetadata, TaxExemptionMetadataEnum, TaxExemptionService, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReview, TaxReviewCollection, TaxReviewHistoryService, TaxReviewService, TaxReviewStatusEnum, TaxSummary, TaxSummaryListEnum, TaxSummarySection, TaxSummarySectionEnum, TaxSummaryService, TaxSummaryTaxSummaryEnum, TaxSummaryTypeEnum, TicketFeedbackEnum, TicketStatusEnum, TicketTypesEnum, Toast, ToastService, ToastTypeEnum, Transaction, TransactionAllocation, TransactionAllocationCollection, TransactionAllocationService, TransactionBase, TransactionBaseForm, TransactionCalculationService, TransactionCategoryEnum, TransactionCollection, TransactionForm, TransactionMetadata, TransactionOperationEnum, TransactionReceipt, TransactionReceiptService, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, TutorialVideoService, USER_ROLES, USER_WORK_POSITION, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeCollection, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserInviteForm, UserMedicareExemptionEnum, UserRolesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, UsersInviteService, Vehicle, VehicleClaim, VehicleClaimCollection, VehicleClaimDetails, VehicleClaimDetailsForm, VehicleClaimDetailsMethodEnum, VehicleClaimDetailsService, VehicleClaimForm, VehicleClaimService, VehicleExpense, VehicleExpenseCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookForm, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleService, WorkExpenseForm, WorkIncomeForm, XlsxService, atLeastOneCheckedValidator, atoLinks, autocompleteValidator, cloneDeep, compare, compareMatOptions, conditionalValidator, createDate, currentFinYearValidator, displayMatOptions, enumToList, fieldsSumValidator, getDocIcon, minDateValidator, passwordMatchValidator, passwordValidator, replace, roundTo, sort, sortDeep, taxReviewFilterPredicate, toArray };
18801
+ export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressForm, AddressService, AddressTypeEnum, AllocationGroup, AllocationGroupCollection, AlphabetColorsEnum, AnnualFrequencyEnum, AppEvent, AppEvent2, AppEventTypeEnum, AppFile, AssetEntityTypeEnum, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Badge, BadgeColorEnum, Bank, BankAccount, BankAccountAddManualForm, BankAccountAllocationForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountImportForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankAccountsImportForm, BankConnection, BankConnectionService, BankConnectionStatusEnum, BankExternalStats, BankLoginData, BankLoginForm, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasReport, BasReportForm, BasReportService, BasiqConfig, BasiqJob, BasiqJobResponse, BasiqJobStep, BasiqService, BasiqToken, BasiqTokenService, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, BusinessTypeEnum, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, CgtExemptionAndRolloverCodeEnum, ChartAccounts, ChartAccountsCategoryECollection, ChartAccountsCategoryEnum, ChartAccountsCollection, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsKeepSign, ChartAccountsListEnum, ChartAccountsMetadata, ChartAccountsMetadataListEnum, ChartAccountsMetadataTypeEnum, ChartAccountsSalaryAdjustmentsListEnum, ChartAccountsSalaryIncludedListEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartData, ChartSerie, Chat, ChatCollection, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteCollection, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CorelogicService, CorelogicSuggestion, Country, DEDUCTION_CATEGORIES, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, DeductionClothingTypeEnum, DeductionSelfEducationTypeEnum, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationForm, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpRateEnum, DepreciationLvpReportItem, DepreciationLvpReportItemCollection, DepreciationReceipt, DepreciationReceiptService, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Dictionary, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderService, DocumentService, DocumentTypeEnum, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeInvite, EmployeeInviteService, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, ExportFormatterService, ExportableCollection, FacebookService, FileService, FileValidator, FinancialYear, Firm, FirmService, FirmTypeEnum, FormValidationsEnum, HeaderTitleService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastService, IncomeSourceForecastTrustTypeEnum, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, InterceptorsModule, IntercomService, InviteStatusEnum, JsPdf, JwtService, Loan, LoanBankTypeEnum, LoanCollection, LoanForm, LoanFrequencyEnum, LoanInterestTypeEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookBestPeriodService, LogbookPeriod, LoginForm, LossTypeEnum, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, MyTaxBusinessDetails, MyTaxBusinessDetailsForm, MyTaxBusinessIncome, MyTaxBusinessIncomeForm, MyTaxBusinessIncomeOrLossesForm, MyTaxBusinessLosses, MyTaxBusinessLossesForm, MyTaxCgt, MyTaxCgtForm, MyTaxDeductions, MyTaxDeductionsForm, MyTaxDividends, MyTaxDividendsForm, MyTaxEstimate, MyTaxIncomeStatements, MyTaxIncomeStatementsForm, MyTaxIncomeTests, MyTaxIncomeTestsForm, MyTaxInterest, MyTaxInterestForm, MyTaxLosses, MyTaxLossesForm, MyTaxMedicareForm, MyTaxOffsets, MyTaxOffsetsForm, MyTaxOtherIncome, MyTaxOtherIncomeForm, MyTaxPartnershipsAndTrusts, MyTaxPartnershipsAndTrustsForm, MyTaxRent, MyTaxRentForm, Notification, Occupation, OccupationService, PASSWORD_REGEXPS, PasswordForm, PdfFromDataTableService, PdfFromDomElementService, PdfFromHtmlTableService, PdfFromTableService, PdfOrientationEnum, PdfSettings, Phone, PhoneForm, PhoneTypeEnum, PreloaderService, Property, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementCollection, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentService, PropertyEquityChartData, PropertyEquityChartItem, PropertyEquityChartTypeEnum, PropertyForecast, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciation, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleCollection, PropertySaleCostBase, PropertySaleCostBaseForm, PropertySaleCostSaleForm, PropertySaleExemptionsForm, PropertySaleService, PropertySaleTaxExemptionMetadata, PropertySaleTaxExemptionMetadataCollection, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareCollection, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, ReceiptService, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, RestService$1 as RestService, RewardfulService, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentMethod, ServicePaymentMethodService, ServicePaymentService, ServicePaymentStatusEnum, ServicePrice, ServicePriceCollection, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductCollection, ServiceProductIdEnum, ServiceProductService, ServiceProductStatusEnum, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, ShareFilterOptionsEnum, SoleBusiness, SoleBusinessActivity, SoleBusinessActivityService, SoleBusinessAllocation, SoleBusinessAllocationsForm, SoleBusinessForm, SoleBusinessLoss, SoleBusinessLossForm, SoleBusinessLossOffsetRule, SoleBusinessLossOffsetRuleService, SoleBusinessLossReport, SoleBusinessLossService, SoleBusinessLossesCollection, SoleBusinessService, SoleContact, SoleContactForm, SoleContactService, SoleDepreciationMethod, SoleDepreciationMethodEnum, SoleDepreciationMethodForm, SoleDepreciationMethodService, SoleDetails, SoleDetailsForm, SoleDetailsService, SoleForecast, SoleForecastService, SoleInvoice, SoleInvoiceCollection, SoleInvoiceForm, SoleInvoiceItem, SoleInvoiceItemCollection, SoleInvoiceItemForm, SoleInvoiceService, SoleInvoiceStatusesEnum, SoleInvoiceTaxTypeEnum, SoleInvoiceTemplate, SoleInvoiceTemplateForm, SoleInvoiceTemplateService, SoleInvoiceTemplateTaxTypeEnum, SpareDocumentSpareTypeEnum, SseService, StatesEnum, StripePromoCode, SubscriptionItemCollection, SubscriptionService, TAX_RETURN_CATEGORIES, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionEnum, TaxExemptionMetadata, TaxExemptionMetadataEnum, TaxExemptionService, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReview, TaxReviewCollection, TaxReviewHistoryService, TaxReviewService, TaxReviewStatusEnum, TaxSummary, TaxSummaryListEnum, TaxSummarySection, TaxSummarySectionEnum, TaxSummaryService, TaxSummaryTaxSummaryEnum, TaxSummaryTypeEnum, TicketFeedbackEnum, TicketStatusEnum, TicketTypesEnum, Toast, ToastService, ToastTypeEnum, Transaction, TransactionAllocation, TransactionAllocationCollection, TransactionAllocationService, TransactionBase, TransactionBaseForm, TransactionCalculationService, TransactionCategoryEnum, TransactionCollection, TransactionForm, TransactionMetadata, TransactionOperationEnum, TransactionReceipt, TransactionReceiptService, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, TutorialVideoService, USER_ROLES, USER_WORK_POSITION, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeCollection, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserInviteForm, UserMedicareExemptionEnum, UserRolesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, UsersInviteService, Vehicle, VehicleClaim, VehicleClaimCollection, VehicleClaimDetails, VehicleClaimDetailsForm, VehicleClaimDetailsMethodEnum, VehicleClaimDetailsService, VehicleClaimForm, VehicleClaimService, VehicleExpense, VehicleExpenseCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookForm, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleService, WorkExpenseForm, WorkIncomeForm, XlsxService, atLeastOneCheckedValidator, atoLinks, autocompleteValidator, cloneDeep, compare, compareMatOptions, conditionalValidator, createDate, currentFinYearValidator, displayMatOptions, enumToList, fieldsSumValidator, getDocIcon, minDateValidator, passwordMatchValidator, passwordValidator, replace, roundTo, sort, sortDeep, taxReviewFilterPredicate, toArray };
18671
18802
  //# sourceMappingURL=taxtank-core.mjs.map