taxtank-core 0.30.9 → 0.30.10

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 (257) hide show
  1. package/esm2020/lib/models/service-subscription/service-payment-method.mjs +12 -2
  2. package/fesm2015/taxtank-core.mjs +16 -1
  3. package/fesm2015/taxtank-core.mjs.map +1 -1
  4. package/fesm2020/taxtank-core.mjs +16 -1
  5. package/fesm2020/taxtank-core.mjs.map +1 -1
  6. package/lib/models/service-subscription/service-payment-method.d.ts +1 -0
  7. package/package.json +1 -1
  8. package/lib/forms/abstract.form.d.ts.map +0 -1
  9. package/lib/forms/address/address.form.d.ts.map +0 -1
  10. package/lib/forms/address/index.d.ts.map +0 -1
  11. package/lib/forms/bank/bank-account/bank-account-add-manual.form.d.ts.map +0 -1
  12. package/lib/forms/bank/bank-account/bank-account-allocation.form.d.ts.map +0 -1
  13. package/lib/forms/bank/bank-account/bank-account-import.form.d.ts.map +0 -1
  14. package/lib/forms/bank/bank-account/bank-account-properties.form.d.ts.map +0 -1
  15. package/lib/forms/bank/bank-account/bank-accounts-import.form.d.ts.map +0 -1
  16. package/lib/forms/bank/bank-login.form.d.ts.map +0 -1
  17. package/lib/forms/client/client-income-types.form.d.ts.map +0 -1
  18. package/lib/forms/depreciation/depreciation.form.d.ts.map +0 -1
  19. package/lib/forms/depreciation/index.d.ts.map +0 -1
  20. package/lib/forms/form-validations.enum.d.ts.map +0 -1
  21. package/lib/forms/index.d.ts.map +0 -1
  22. package/lib/forms/loan/index.d.ts.map +0 -1
  23. package/lib/forms/loan/loan.form.d.ts.map +0 -1
  24. package/lib/forms/login/login.form.d.ts.map +0 -1
  25. package/lib/forms/phone/index.d.ts.map +0 -1
  26. package/lib/forms/phone/phone.form.d.ts.map +0 -1
  27. package/lib/forms/property/index.d.ts.map +0 -1
  28. package/lib/forms/property/property-sale/index.d.ts.map +0 -1
  29. package/lib/forms/property/property-sale/property-sale-cost-base.form.d.ts.map +0 -1
  30. package/lib/forms/property/property-sale/property-sale-cost-sale.form.d.ts.map +0 -1
  31. package/lib/forms/property/property-sale/property-sale-exemptions.form.d.ts.map +0 -1
  32. package/lib/forms/register/register-client.form.d.ts.map +0 -1
  33. package/lib/forms/register/register-firm.form.d.ts.map +0 -1
  34. package/lib/forms/report/my-tax/index.d.ts.map +0 -1
  35. package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-details/my-tax-business-details.form.d.ts.map +0 -1
  36. package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income/my-tax-business-income.form.d.ts.map +0 -1
  37. package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income-or-losses.form.d.ts.map +0 -1
  38. package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-losses/my-tax-business-losses.form.d.ts.map +0 -1
  39. package/lib/forms/report/my-tax/my-tax-cgt.form.d.ts.map +0 -1
  40. package/lib/forms/report/my-tax/my-tax-deductions.form.d.ts.map +0 -1
  41. package/lib/forms/report/my-tax/my-tax-dividends.form.d.ts.map +0 -1
  42. package/lib/forms/report/my-tax/my-tax-income-statements.form.d.ts.map +0 -1
  43. package/lib/forms/report/my-tax/my-tax-income-tests.form.d.ts.map +0 -1
  44. package/lib/forms/report/my-tax/my-tax-interest.form.d.ts.map +0 -1
  45. package/lib/forms/report/my-tax/my-tax-losses.form.d.ts.map +0 -1
  46. package/lib/forms/report/my-tax/my-tax-medicare.form.d.ts.map +0 -1
  47. package/lib/forms/report/my-tax/my-tax-offsets.form.d.ts.map +0 -1
  48. package/lib/forms/report/my-tax/my-tax-other-income.form.d.ts.map +0 -1
  49. package/lib/forms/report/my-tax/my-tax-partnerships-and-trusts.form.d.ts.map +0 -1
  50. package/lib/forms/report/my-tax/my-tax-rent.form.d.ts.map +0 -1
  51. package/lib/forms/sole/bas-report.form.d.ts.map +0 -1
  52. package/lib/forms/sole/index.d.ts.map +0 -1
  53. package/lib/forms/sole/sole-business-allocations.form.d.ts.map +0 -1
  54. package/lib/forms/sole/sole-business-loss.form.d.ts.map +0 -1
  55. package/lib/forms/sole/sole-business.form.d.ts.map +0 -1
  56. package/lib/forms/sole/sole-contact.form.d.ts.map +0 -1
  57. package/lib/forms/sole/sole-depreciation-method.form.d.ts.map +0 -1
  58. package/lib/forms/sole/sole-details.form.d.ts.map +0 -1
  59. package/lib/forms/sole/sole-invoice-item.form.d.ts.map +0 -1
  60. package/lib/forms/sole/sole-invoice-template.form.d.ts.map +0 -1
  61. package/lib/forms/sole/sole-invoice.form.d.ts.map +0 -1
  62. package/lib/forms/transaction/index.d.ts.map +0 -1
  63. package/lib/forms/transaction/messages.enum.d.ts.map +0 -1
  64. package/lib/forms/transaction/transaction-base.form.d.ts.map +0 -1
  65. package/lib/forms/transaction/transaction.form.d.ts.map +0 -1
  66. package/lib/forms/transaction/work/work-expense.form.d.ts.map +0 -1
  67. package/lib/forms/transaction/work/work-income.form.d.ts.map +0 -1
  68. package/lib/forms/transaction/work/work-transaction.form.d.ts.map +0 -1
  69. package/lib/forms/user/index.d.ts.map +0 -1
  70. package/lib/forms/user/password.form.d.ts.map +0 -1
  71. package/lib/forms/user/reset-password.form.d.ts.map +0 -1
  72. package/lib/forms/user/user-invite.form.d.ts.map +0 -1
  73. package/lib/forms/vehicle/index.d.ts.map +0 -1
  74. package/lib/forms/vehicle/vehicle-claim-details.form.d.ts.map +0 -1
  75. package/lib/forms/vehicle/vehicle-claim.form.d.ts.map +0 -1
  76. package/lib/forms/vehicle/vehicle-logbook.form.d.ts.map +0 -1
  77. package/lib/forms/vehicle/vehicle.form.d.ts.map +0 -1
  78. package/lib/functions/clone-deep.d.ts.map +0 -1
  79. package/lib/functions/create-date.d.ts.map +0 -1
  80. package/lib/functions/get-doc-icon.d.ts.map +0 -1
  81. package/lib/functions/mat-options-functions.d.ts.map +0 -1
  82. package/lib/functions/mat-sort-options.d.ts.map +0 -1
  83. package/lib/functions/round-to.d.ts.map +0 -1
  84. package/lib/functions/tax-review-filter-predicate.d.ts.map +0 -1
  85. package/lib/models/account-setup/account-setup-items.const.d.ts.map +0 -1
  86. package/lib/models/account-setup/account-setup-items.enum.d.ts.map +0 -1
  87. package/lib/services/account-setup/account-setup.service.d.ts.map +0 -1
  88. package/lib/services/account-setup/index.d.ts.map +0 -1
  89. package/lib/services/affiliate/index.d.ts.map +0 -1
  90. package/lib/services/affiliate/rewardful/index.d.ts.map +0 -1
  91. package/lib/services/affiliate/rewardful/rewardful.service.d.ts.map +0 -1
  92. package/lib/services/asset/assets.service.d.ts.map +0 -1
  93. package/lib/services/asset/index.d.ts.map +0 -1
  94. package/lib/services/bank/bank-account-calculation.service.d.ts.map +0 -1
  95. package/lib/services/bank/bank-transaction-calculation.service.d.ts.map +0 -1
  96. package/lib/services/bank/index.d.ts.map +0 -1
  97. package/lib/services/export/export-formatter.service.d.ts.map +0 -1
  98. package/lib/services/export/index.d.ts.map +0 -1
  99. package/lib/services/header-title/header-title.service.d.ts.map +0 -1
  100. package/lib/services/header-title/index.d.ts.map +0 -1
  101. package/lib/services/http/bank/bank.service.d.ts.map +0 -1
  102. package/lib/services/http/bank/index.d.ts.map +0 -1
  103. package/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.d.ts.map +0 -1
  104. package/lib/services/http/chart-accounts/chart-accounts-depreciations/index.d.ts.map +0 -1
  105. package/lib/services/http/chart-accounts/chart-accounts.service.d.ts.map +0 -1
  106. package/lib/services/http/chart-accounts/index.d.ts.map +0 -1
  107. package/lib/services/http/chat/chat.service.d.ts.map +0 -1
  108. package/lib/services/http/chat/index.d.ts.map +0 -1
  109. package/lib/services/http/chat/message-document.service.d.ts.map +0 -1
  110. package/lib/services/http/chat/message.service.d.ts.map +0 -1
  111. package/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.d.ts.map +0 -1
  112. package/lib/services/http/depreciation/depreciation-capital-project/index.d.ts.map +0 -1
  113. package/lib/services/http/depreciation/depreciation-receipt/depreciation-receipt.service.d.ts.map +0 -1
  114. package/lib/services/http/depreciation/depreciation-receipt/index.d.ts.map +0 -1
  115. package/lib/services/http/depreciation/depreciation.service.d.ts.map +0 -1
  116. package/lib/services/http/depreciation/index.d.ts.map +0 -1
  117. package/lib/services/http/document/document-folder/document-folder.service.d.ts.map +0 -1
  118. package/lib/services/http/document/document.service.d.ts.map +0 -1
  119. package/lib/services/http/document/index.d.ts.map +0 -1
  120. package/lib/services/http/facebook/facebook-auth-options.interface.d.ts.map +0 -1
  121. package/lib/services/http/facebook/facebook-auth-response.interface.d.ts.map +0 -1
  122. package/lib/services/http/facebook/facebook-status-response.interface.d.ts.map +0 -1
  123. package/lib/services/http/facebook/facebook.service.d.ts.map +0 -1
  124. package/lib/services/http/facebook/index.d.ts.map +0 -1
  125. package/lib/services/http/file/file.service.d.ts.map +0 -1
  126. package/lib/services/http/file/index.d.ts.map +0 -1
  127. package/lib/services/http/firm/client-income/client-income-types.service.d.ts.map +0 -1
  128. package/lib/services/http/firm/client-income/index.d.ts.map +0 -1
  129. package/lib/services/http/firm/client-invite/client-invite.service.d.ts.map +0 -1
  130. package/lib/services/http/firm/client-invite/index.d.ts.map +0 -1
  131. package/lib/services/http/firm/client-movement/client-movement.service.d.ts.map +0 -1
  132. package/lib/services/http/firm/client-movement/index.d.ts.map +0 -1
  133. package/lib/services/http/firm/employee/employee.service.d.ts.map +0 -1
  134. package/lib/services/http/firm/employee/index.d.ts.map +0 -1
  135. package/lib/services/http/firm/employee-invite/employee-invite.service.d.ts.map +0 -1
  136. package/lib/services/http/firm/employee-invite/index.d.ts.map +0 -1
  137. package/lib/services/http/firm/firm.service.d.ts.map +0 -1
  138. package/lib/services/http/firm/index.d.ts.map +0 -1
  139. package/lib/services/http/firm/portfolio-report/client-portfolio-report.service.d.ts.map +0 -1
  140. package/lib/services/http/firm/portfolio-report/index.d.ts.map +0 -1
  141. package/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.d.ts.map +0 -1
  142. package/lib/services/http/income-source/income-source-forecast/index.d.ts.map +0 -1
  143. package/lib/services/http/income-source/income-source.service.d.ts.map +0 -1
  144. package/lib/services/http/income-source/index.d.ts.map +0 -1
  145. package/lib/services/http/income-source/salary-forecast/index.d.ts.map +0 -1
  146. package/lib/services/http/income-source/salary-forecast/salary-forecast.service.d.ts.map +0 -1
  147. package/lib/services/http/income-source/sole-forecast/index.d.ts.map +0 -1
  148. package/lib/services/http/income-source/sole-forecast/sole-forecast.service.d.ts.map +0 -1
  149. package/lib/services/http/index.d.ts.map +0 -1
  150. package/lib/services/http/loan/borrowing-expense/borrowing-expense.service.d.ts.map +0 -1
  151. package/lib/services/http/loan/borrowing-expense/index.d.ts.map +0 -1
  152. package/lib/services/http/loan/index.d.ts.map +0 -1
  153. package/lib/services/http/loan/loan.service.d.ts.map +0 -1
  154. package/lib/services/http/property/index.d.ts.map +0 -1
  155. package/lib/services/http/property/property-category/index.d.ts.map +0 -1
  156. package/lib/services/http/property/property-category/property-category.service.d.ts.map +0 -1
  157. package/lib/services/http/property/property-category-movement/index.d.ts.map +0 -1
  158. package/lib/services/http/property/property-category-movement/property-category-movement.service.d.ts.map +0 -1
  159. package/lib/services/http/property/property-document/index.d.ts.map +0 -1
  160. package/lib/services/http/property/property-document/property-document.service.d.ts.map +0 -1
  161. package/lib/services/http/property/property-sale/index.d.ts.map +0 -1
  162. package/lib/services/http/property/property-sale/property-sale.service.d.ts.map +0 -1
  163. package/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.d.ts.map +0 -1
  164. package/lib/services/http/property/property-share/index.d.ts.map +0 -1
  165. package/lib/services/http/property/property-share/property-share.service.d.ts.map +0 -1
  166. package/lib/services/http/property/property.service.d.ts.map +0 -1
  167. package/lib/services/http/receipt/index.d.ts.map +0 -1
  168. package/lib/services/http/receipt/receipt.service.d.ts.map +0 -1
  169. package/lib/services/http/rest/rest-old.service.d.ts.map +0 -1
  170. package/lib/services/http/service-notification/index.d.ts.map +0 -1
  171. package/lib/services/http/service-notification/service-notification.service.d.ts.map +0 -1
  172. package/lib/services/http/sole/bas-report/bas-report.service.d.ts.map +0 -1
  173. package/lib/services/http/sole/index.d.ts.map +0 -1
  174. package/lib/services/http/sole/sole-business/messages.enum.d.ts.map +0 -1
  175. package/lib/services/http/sole/sole-business/sole-business.service.d.ts.map +0 -1
  176. package/lib/services/http/sole/sole-business-activity/sole-business-activity.service.d.ts.map +0 -1
  177. package/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.d.ts.map +0 -1
  178. package/lib/services/http/sole/sole-business-loss/sole-business-loss.service.d.ts.map +0 -1
  179. package/lib/services/http/sole/sole-contact/sole-contact.service.d.ts.map +0 -1
  180. package/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.d.ts.map +0 -1
  181. package/lib/services/http/sole/sole-details/sole-details.service.d.ts.map +0 -1
  182. package/lib/services/http/sole/sole-invoice/sole-invoice.service.d.ts.map +0 -1
  183. package/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.d.ts.map +0 -1
  184. package/lib/services/http/subscription/index.d.ts.map +0 -1
  185. package/lib/services/http/subscription/service-payment/service-payment.service.d.ts.map +0 -1
  186. package/lib/services/http/subscription/service-payment-method/service-payment-method.service.d.ts.map +0 -1
  187. package/lib/services/http/subscription/service-price/service-price.service.d.ts.map +0 -1
  188. package/lib/services/http/subscription/service-product/service-product.service.d.ts.map +0 -1
  189. package/lib/services/http/subscription/service-subscription/subscription.service.d.ts.map +0 -1
  190. package/lib/services/http/tax-review/index.d.ts.map +0 -1
  191. package/lib/services/http/tax-review/tax-review-history/tax-review-history.service.d.ts.map +0 -1
  192. package/lib/services/http/tax-review/tax-review.service.d.ts.map +0 -1
  193. package/lib/services/http/tax-summary/index.d.ts.map +0 -1
  194. package/lib/services/http/tax-summary/tax-summary.service.d.ts.map +0 -1
  195. package/lib/services/http/transaction/index.d.ts.map +0 -1
  196. package/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.d.ts.map +0 -1
  197. package/lib/services/http/transaction/transaction-receipt/transaction-receipt.service.d.ts.map +0 -1
  198. package/lib/services/http/transaction/transaction.service.d.ts.map +0 -1
  199. package/lib/services/http/tutorial-video/index.d.ts.map +0 -1
  200. package/lib/services/http/tutorial-video/tutorial-video-response.interface.d.ts.map +0 -1
  201. package/lib/services/http/tutorial-video/tutorial-video.service.d.ts.map +0 -1
  202. package/lib/services/http/tutorial-video/video-source.interface.d.ts.map +0 -1
  203. package/lib/services/http/user/index.d.ts.map +0 -1
  204. package/lib/services/http/user/occupation/occupation.service.d.ts.map +0 -1
  205. package/lib/services/http/user/user-event-setting/user-event-setting.service.d.ts.map +0 -1
  206. package/lib/services/http/user/user-event-type/user-event-type.service.d.ts.map +0 -1
  207. package/lib/services/http/user/users-invite/users-invite.service.d.ts.map +0 -1
  208. package/lib/services/http/vehicle/index.d.ts.map +0 -1
  209. package/lib/services/http/vehicle/vehicle-claim-details.service.d.ts.map +0 -1
  210. package/lib/services/http/vehicle/vehicle-claim.service.d.ts.map +0 -1
  211. package/lib/services/http/vehicle/vehicle-logbook.service.d.ts.map +0 -1
  212. package/lib/services/http/vehicle/vehicle.service.d.ts.map +0 -1
  213. package/lib/services/index.d.ts.map +0 -1
  214. package/lib/services/intercom/index.d.ts.map +0 -1
  215. package/lib/services/intercom/intercom.service.d.ts.map +0 -1
  216. package/lib/services/pdf/index.d.ts.map +0 -1
  217. package/lib/services/pdf/js-pdf.d.ts.map +0 -1
  218. package/lib/services/pdf/pdf-from-dom-element/file-settings.d.ts.map +0 -1
  219. package/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.d.ts.map +0 -1
  220. package/lib/services/pdf/pdf-from-table/file-settings.d.ts.map +0 -1
  221. package/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.d.ts.map +0 -1
  222. package/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.d.ts.map +0 -1
  223. package/lib/services/pdf/pdf-from-table/pdf-from-table.service.d.ts.map +0 -1
  224. package/lib/services/preloader/index.d.ts.map +0 -1
  225. package/lib/services/property/corelogic/index.d.ts.map +0 -1
  226. package/lib/services/property/equity-position-chart/equity-position-chart.service.d.ts.map +0 -1
  227. package/lib/services/property/equity-position-chart/index.d.ts.map +0 -1
  228. package/lib/services/property/index.d.ts.map +0 -1
  229. package/lib/services/property/property-calculation/index.d.ts.map +0 -1
  230. package/lib/services/property/property-calculation/property-calculation.service.d.ts.map +0 -1
  231. package/lib/services/report/index.d.ts.map +0 -1
  232. package/lib/services/report/property/property-transaction-report.service.d.ts.map +0 -1
  233. package/lib/services/transaction/index.d.ts.map +0 -1
  234. package/lib/services/transaction/transaction-calculation.service.d.ts.map +0 -1
  235. package/lib/services/user/index.d.ts.map +0 -1
  236. package/lib/services/vehicle/index.d.ts.map +0 -1
  237. package/lib/services/vehicle/logbook-best-period.service.d.ts.map +0 -1
  238. package/lib/services/xlsx/index.d.ts.map +0 -1
  239. package/lib/services/xlsx/xlsx.service.d.ts.map +0 -1
  240. package/lib/validators/address-corelogic.validator.d.ts.map +0 -1
  241. package/lib/validators/at-least-one-enabled.validator.d.ts.map +0 -1
  242. package/lib/validators/at-least-one.validator.d.ts.map +0 -1
  243. package/lib/validators/autocomplete.validator.d.ts.map +0 -1
  244. package/lib/validators/conditional.validator.d.ts.map +0 -1
  245. package/lib/validators/current-fin-year.validator.d.ts.map +0 -1
  246. package/lib/validators/date-range.validator.d.ts.map +0 -1
  247. package/lib/validators/fields-sum.validator.d.ts.map +0 -1
  248. package/lib/validators/file.validator.d.ts.map +0 -1
  249. package/lib/validators/index.d.ts.map +0 -1
  250. package/lib/validators/min-date/messages.enum.d.ts.map +0 -1
  251. package/lib/validators/min-date/min-date.validator.d.ts.map +0 -1
  252. package/lib/validators/password-match.validator.d.ts.map +0 -1
  253. package/lib/validators/password.validator.d.ts.map +0 -1
  254. package/lib/validators/phone-number.validator.d.ts.map +0 -1
  255. package/lib/validators/required-length.validator.d.ts.map +0 -1
  256. package/public-api.d.ts.map +0 -1
  257. package/taxtank-core.d.ts.map +0 -1
@@ -1,21 +1,31 @@
1
1
  import { ServicePaymentMethod as ServicePaymentMethodBase } from '../../db/Models/subscription/service-payment-method';
2
2
  import { PaymentMethodBrandEnum } from './payment-method-brand.enum';
3
3
  import { ServicePaymentMethodCardBrandEnum } from '../../db/Enums/subscription/service-payment-method-card-brand.enum';
4
+ import { ServicePaymentMethodTypeEnum } from '../../db/Enums/subscription/service-payment-method-type.enum';
4
5
  export class ServicePaymentMethod extends ServicePaymentMethodBase {
5
6
  get logo() {
7
+ if (!this.isCard()) {
8
+ return null;
9
+ }
6
10
  return `/assets/img/payment-methods/${this.cardBrand}.svg`;
7
11
  }
8
12
  get brandName() {
9
- return PaymentMethodBrandEnum[ServicePaymentMethodCardBrandEnum[this.cardBrand]];
13
+ return this.isCard() ? PaymentMethodBrandEnum[ServicePaymentMethodCardBrandEnum[this.cardBrand]] : 'BECS Direct Debit (AU)';
10
14
  }
11
15
  /**
12
16
  * Get expiration date formatted string (MM/YY)
13
17
  */
14
18
  get expirationDate() {
19
+ if (!this.isCard()) {
20
+ return null;
21
+ }
15
22
  return `${('0' + this.cardExpirationMonth).slice(-2)}/${this.cardExpirationYear.toString().slice(-2)}`;
16
23
  }
17
24
  get description() {
18
25
  return `${this.brandName} ***${this.lastFourDigits}`;
19
26
  }
27
+ isCard() {
28
+ return this.type === ServicePaymentMethodTypeEnum.CARD;
29
+ }
20
30
  }
21
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmljZS1wYXltZW50LW1ldGhvZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9tb2RlbHMvc2VydmljZS1zdWJzY3JpcHRpb24vc2VydmljZS1wYXltZW50LW1ldGhvZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQU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==
@@ -7813,22 +7813,37 @@ var ServicePaymentMethodCardBrandEnum;
7813
7813
  ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["VISA"] = 7] = "VISA";
7814
7814
  })(ServicePaymentMethodCardBrandEnum || (ServicePaymentMethodCardBrandEnum = {}));
7815
7815
 
7816
+ var ServicePaymentMethodTypeEnum;
7817
+ (function (ServicePaymentMethodTypeEnum) {
7818
+ ServicePaymentMethodTypeEnum[ServicePaymentMethodTypeEnum["AU_BECS_DEBIT"] = 1] = "AU_BECS_DEBIT";
7819
+ ServicePaymentMethodTypeEnum[ServicePaymentMethodTypeEnum["CARD"] = 2] = "CARD";
7820
+ })(ServicePaymentMethodTypeEnum || (ServicePaymentMethodTypeEnum = {}));
7821
+
7816
7822
  class ServicePaymentMethod extends ServicePaymentMethod$1 {
7817
7823
  get logo() {
7824
+ if (!this.isCard()) {
7825
+ return null;
7826
+ }
7818
7827
  return `/assets/img/payment-methods/${this.cardBrand}.svg`;
7819
7828
  }
7820
7829
  get brandName() {
7821
- return PaymentMethodBrandEnum[ServicePaymentMethodCardBrandEnum[this.cardBrand]];
7830
+ return this.isCard() ? PaymentMethodBrandEnum[ServicePaymentMethodCardBrandEnum[this.cardBrand]] : 'BECS Direct Debit (AU)';
7822
7831
  }
7823
7832
  /**
7824
7833
  * Get expiration date formatted string (MM/YY)
7825
7834
  */
7826
7835
  get expirationDate() {
7836
+ if (!this.isCard()) {
7837
+ return null;
7838
+ }
7827
7839
  return `${('0' + this.cardExpirationMonth).slice(-2)}/${this.cardExpirationYear.toString().slice(-2)}`;
7828
7840
  }
7829
7841
  get description() {
7830
7842
  return `${this.brandName} ***${this.lastFourDigits}`;
7831
7843
  }
7844
+ isCard() {
7845
+ return this.type === ServicePaymentMethodTypeEnum.CARD;
7846
+ }
7832
7847
  }
7833
7848
 
7834
7849
  class StripePromoCode {