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.
- package/esm2020/lib/models/service-subscription/service-payment-method.mjs +12 -2
- package/fesm2015/taxtank-core.mjs +16 -1
- package/fesm2015/taxtank-core.mjs.map +1 -1
- package/fesm2020/taxtank-core.mjs +16 -1
- package/fesm2020/taxtank-core.mjs.map +1 -1
- package/lib/models/service-subscription/service-payment-method.d.ts +1 -0
- package/package.json +1 -1
- package/lib/forms/abstract.form.d.ts.map +0 -1
- package/lib/forms/address/address.form.d.ts.map +0 -1
- package/lib/forms/address/index.d.ts.map +0 -1
- package/lib/forms/bank/bank-account/bank-account-add-manual.form.d.ts.map +0 -1
- package/lib/forms/bank/bank-account/bank-account-allocation.form.d.ts.map +0 -1
- package/lib/forms/bank/bank-account/bank-account-import.form.d.ts.map +0 -1
- package/lib/forms/bank/bank-account/bank-account-properties.form.d.ts.map +0 -1
- package/lib/forms/bank/bank-account/bank-accounts-import.form.d.ts.map +0 -1
- package/lib/forms/bank/bank-login.form.d.ts.map +0 -1
- package/lib/forms/client/client-income-types.form.d.ts.map +0 -1
- package/lib/forms/depreciation/depreciation.form.d.ts.map +0 -1
- package/lib/forms/depreciation/index.d.ts.map +0 -1
- package/lib/forms/form-validations.enum.d.ts.map +0 -1
- package/lib/forms/index.d.ts.map +0 -1
- package/lib/forms/loan/index.d.ts.map +0 -1
- package/lib/forms/loan/loan.form.d.ts.map +0 -1
- package/lib/forms/login/login.form.d.ts.map +0 -1
- package/lib/forms/phone/index.d.ts.map +0 -1
- package/lib/forms/phone/phone.form.d.ts.map +0 -1
- package/lib/forms/property/index.d.ts.map +0 -1
- package/lib/forms/property/property-sale/index.d.ts.map +0 -1
- package/lib/forms/property/property-sale/property-sale-cost-base.form.d.ts.map +0 -1
- package/lib/forms/property/property-sale/property-sale-cost-sale.form.d.ts.map +0 -1
- package/lib/forms/property/property-sale/property-sale-exemptions.form.d.ts.map +0 -1
- package/lib/forms/register/register-client.form.d.ts.map +0 -1
- package/lib/forms/register/register-firm.form.d.ts.map +0 -1
- package/lib/forms/report/my-tax/index.d.ts.map +0 -1
- 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
- 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
- package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income-or-losses.form.d.ts.map +0 -1
- 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
- package/lib/forms/report/my-tax/my-tax-cgt.form.d.ts.map +0 -1
- package/lib/forms/report/my-tax/my-tax-deductions.form.d.ts.map +0 -1
- package/lib/forms/report/my-tax/my-tax-dividends.form.d.ts.map +0 -1
- package/lib/forms/report/my-tax/my-tax-income-statements.form.d.ts.map +0 -1
- package/lib/forms/report/my-tax/my-tax-income-tests.form.d.ts.map +0 -1
- package/lib/forms/report/my-tax/my-tax-interest.form.d.ts.map +0 -1
- package/lib/forms/report/my-tax/my-tax-losses.form.d.ts.map +0 -1
- package/lib/forms/report/my-tax/my-tax-medicare.form.d.ts.map +0 -1
- package/lib/forms/report/my-tax/my-tax-offsets.form.d.ts.map +0 -1
- package/lib/forms/report/my-tax/my-tax-other-income.form.d.ts.map +0 -1
- package/lib/forms/report/my-tax/my-tax-partnerships-and-trusts.form.d.ts.map +0 -1
- package/lib/forms/report/my-tax/my-tax-rent.form.d.ts.map +0 -1
- package/lib/forms/sole/bas-report.form.d.ts.map +0 -1
- package/lib/forms/sole/index.d.ts.map +0 -1
- package/lib/forms/sole/sole-business-allocations.form.d.ts.map +0 -1
- package/lib/forms/sole/sole-business-loss.form.d.ts.map +0 -1
- package/lib/forms/sole/sole-business.form.d.ts.map +0 -1
- package/lib/forms/sole/sole-contact.form.d.ts.map +0 -1
- package/lib/forms/sole/sole-depreciation-method.form.d.ts.map +0 -1
- package/lib/forms/sole/sole-details.form.d.ts.map +0 -1
- package/lib/forms/sole/sole-invoice-item.form.d.ts.map +0 -1
- package/lib/forms/sole/sole-invoice-template.form.d.ts.map +0 -1
- package/lib/forms/sole/sole-invoice.form.d.ts.map +0 -1
- package/lib/forms/transaction/index.d.ts.map +0 -1
- package/lib/forms/transaction/messages.enum.d.ts.map +0 -1
- package/lib/forms/transaction/transaction-base.form.d.ts.map +0 -1
- package/lib/forms/transaction/transaction.form.d.ts.map +0 -1
- package/lib/forms/transaction/work/work-expense.form.d.ts.map +0 -1
- package/lib/forms/transaction/work/work-income.form.d.ts.map +0 -1
- package/lib/forms/transaction/work/work-transaction.form.d.ts.map +0 -1
- package/lib/forms/user/index.d.ts.map +0 -1
- package/lib/forms/user/password.form.d.ts.map +0 -1
- package/lib/forms/user/reset-password.form.d.ts.map +0 -1
- package/lib/forms/user/user-invite.form.d.ts.map +0 -1
- package/lib/forms/vehicle/index.d.ts.map +0 -1
- package/lib/forms/vehicle/vehicle-claim-details.form.d.ts.map +0 -1
- package/lib/forms/vehicle/vehicle-claim.form.d.ts.map +0 -1
- package/lib/forms/vehicle/vehicle-logbook.form.d.ts.map +0 -1
- package/lib/forms/vehicle/vehicle.form.d.ts.map +0 -1
- package/lib/functions/clone-deep.d.ts.map +0 -1
- package/lib/functions/create-date.d.ts.map +0 -1
- package/lib/functions/get-doc-icon.d.ts.map +0 -1
- package/lib/functions/mat-options-functions.d.ts.map +0 -1
- package/lib/functions/mat-sort-options.d.ts.map +0 -1
- package/lib/functions/round-to.d.ts.map +0 -1
- package/lib/functions/tax-review-filter-predicate.d.ts.map +0 -1
- package/lib/models/account-setup/account-setup-items.const.d.ts.map +0 -1
- package/lib/models/account-setup/account-setup-items.enum.d.ts.map +0 -1
- package/lib/services/account-setup/account-setup.service.d.ts.map +0 -1
- package/lib/services/account-setup/index.d.ts.map +0 -1
- package/lib/services/affiliate/index.d.ts.map +0 -1
- package/lib/services/affiliate/rewardful/index.d.ts.map +0 -1
- package/lib/services/affiliate/rewardful/rewardful.service.d.ts.map +0 -1
- package/lib/services/asset/assets.service.d.ts.map +0 -1
- package/lib/services/asset/index.d.ts.map +0 -1
- package/lib/services/bank/bank-account-calculation.service.d.ts.map +0 -1
- package/lib/services/bank/bank-transaction-calculation.service.d.ts.map +0 -1
- package/lib/services/bank/index.d.ts.map +0 -1
- package/lib/services/export/export-formatter.service.d.ts.map +0 -1
- package/lib/services/export/index.d.ts.map +0 -1
- package/lib/services/header-title/header-title.service.d.ts.map +0 -1
- package/lib/services/header-title/index.d.ts.map +0 -1
- package/lib/services/http/bank/bank.service.d.ts.map +0 -1
- package/lib/services/http/bank/index.d.ts.map +0 -1
- package/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.d.ts.map +0 -1
- package/lib/services/http/chart-accounts/chart-accounts-depreciations/index.d.ts.map +0 -1
- package/lib/services/http/chart-accounts/chart-accounts.service.d.ts.map +0 -1
- package/lib/services/http/chart-accounts/index.d.ts.map +0 -1
- package/lib/services/http/chat/chat.service.d.ts.map +0 -1
- package/lib/services/http/chat/index.d.ts.map +0 -1
- package/lib/services/http/chat/message-document.service.d.ts.map +0 -1
- package/lib/services/http/chat/message.service.d.ts.map +0 -1
- package/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.d.ts.map +0 -1
- package/lib/services/http/depreciation/depreciation-capital-project/index.d.ts.map +0 -1
- package/lib/services/http/depreciation/depreciation-receipt/depreciation-receipt.service.d.ts.map +0 -1
- package/lib/services/http/depreciation/depreciation-receipt/index.d.ts.map +0 -1
- package/lib/services/http/depreciation/depreciation.service.d.ts.map +0 -1
- package/lib/services/http/depreciation/index.d.ts.map +0 -1
- package/lib/services/http/document/document-folder/document-folder.service.d.ts.map +0 -1
- package/lib/services/http/document/document.service.d.ts.map +0 -1
- package/lib/services/http/document/index.d.ts.map +0 -1
- package/lib/services/http/facebook/facebook-auth-options.interface.d.ts.map +0 -1
- package/lib/services/http/facebook/facebook-auth-response.interface.d.ts.map +0 -1
- package/lib/services/http/facebook/facebook-status-response.interface.d.ts.map +0 -1
- package/lib/services/http/facebook/facebook.service.d.ts.map +0 -1
- package/lib/services/http/facebook/index.d.ts.map +0 -1
- package/lib/services/http/file/file.service.d.ts.map +0 -1
- package/lib/services/http/file/index.d.ts.map +0 -1
- package/lib/services/http/firm/client-income/client-income-types.service.d.ts.map +0 -1
- package/lib/services/http/firm/client-income/index.d.ts.map +0 -1
- package/lib/services/http/firm/client-invite/client-invite.service.d.ts.map +0 -1
- package/lib/services/http/firm/client-invite/index.d.ts.map +0 -1
- package/lib/services/http/firm/client-movement/client-movement.service.d.ts.map +0 -1
- package/lib/services/http/firm/client-movement/index.d.ts.map +0 -1
- package/lib/services/http/firm/employee/employee.service.d.ts.map +0 -1
- package/lib/services/http/firm/employee/index.d.ts.map +0 -1
- package/lib/services/http/firm/employee-invite/employee-invite.service.d.ts.map +0 -1
- package/lib/services/http/firm/employee-invite/index.d.ts.map +0 -1
- package/lib/services/http/firm/firm.service.d.ts.map +0 -1
- package/lib/services/http/firm/index.d.ts.map +0 -1
- package/lib/services/http/firm/portfolio-report/client-portfolio-report.service.d.ts.map +0 -1
- package/lib/services/http/firm/portfolio-report/index.d.ts.map +0 -1
- package/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.d.ts.map +0 -1
- package/lib/services/http/income-source/income-source-forecast/index.d.ts.map +0 -1
- package/lib/services/http/income-source/income-source.service.d.ts.map +0 -1
- package/lib/services/http/income-source/index.d.ts.map +0 -1
- package/lib/services/http/income-source/salary-forecast/index.d.ts.map +0 -1
- package/lib/services/http/income-source/salary-forecast/salary-forecast.service.d.ts.map +0 -1
- package/lib/services/http/income-source/sole-forecast/index.d.ts.map +0 -1
- package/lib/services/http/income-source/sole-forecast/sole-forecast.service.d.ts.map +0 -1
- package/lib/services/http/index.d.ts.map +0 -1
- package/lib/services/http/loan/borrowing-expense/borrowing-expense.service.d.ts.map +0 -1
- package/lib/services/http/loan/borrowing-expense/index.d.ts.map +0 -1
- package/lib/services/http/loan/index.d.ts.map +0 -1
- package/lib/services/http/loan/loan.service.d.ts.map +0 -1
- package/lib/services/http/property/index.d.ts.map +0 -1
- package/lib/services/http/property/property-category/index.d.ts.map +0 -1
- package/lib/services/http/property/property-category/property-category.service.d.ts.map +0 -1
- package/lib/services/http/property/property-category-movement/index.d.ts.map +0 -1
- package/lib/services/http/property/property-category-movement/property-category-movement.service.d.ts.map +0 -1
- package/lib/services/http/property/property-document/index.d.ts.map +0 -1
- package/lib/services/http/property/property-document/property-document.service.d.ts.map +0 -1
- package/lib/services/http/property/property-sale/index.d.ts.map +0 -1
- package/lib/services/http/property/property-sale/property-sale.service.d.ts.map +0 -1
- package/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.d.ts.map +0 -1
- package/lib/services/http/property/property-share/index.d.ts.map +0 -1
- package/lib/services/http/property/property-share/property-share.service.d.ts.map +0 -1
- package/lib/services/http/property/property.service.d.ts.map +0 -1
- package/lib/services/http/receipt/index.d.ts.map +0 -1
- package/lib/services/http/receipt/receipt.service.d.ts.map +0 -1
- package/lib/services/http/rest/rest-old.service.d.ts.map +0 -1
- package/lib/services/http/service-notification/index.d.ts.map +0 -1
- package/lib/services/http/service-notification/service-notification.service.d.ts.map +0 -1
- package/lib/services/http/sole/bas-report/bas-report.service.d.ts.map +0 -1
- package/lib/services/http/sole/index.d.ts.map +0 -1
- package/lib/services/http/sole/sole-business/messages.enum.d.ts.map +0 -1
- package/lib/services/http/sole/sole-business/sole-business.service.d.ts.map +0 -1
- package/lib/services/http/sole/sole-business-activity/sole-business-activity.service.d.ts.map +0 -1
- package/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.d.ts.map +0 -1
- package/lib/services/http/sole/sole-business-loss/sole-business-loss.service.d.ts.map +0 -1
- package/lib/services/http/sole/sole-contact/sole-contact.service.d.ts.map +0 -1
- package/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.d.ts.map +0 -1
- package/lib/services/http/sole/sole-details/sole-details.service.d.ts.map +0 -1
- package/lib/services/http/sole/sole-invoice/sole-invoice.service.d.ts.map +0 -1
- package/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.d.ts.map +0 -1
- package/lib/services/http/subscription/index.d.ts.map +0 -1
- package/lib/services/http/subscription/service-payment/service-payment.service.d.ts.map +0 -1
- package/lib/services/http/subscription/service-payment-method/service-payment-method.service.d.ts.map +0 -1
- package/lib/services/http/subscription/service-price/service-price.service.d.ts.map +0 -1
- package/lib/services/http/subscription/service-product/service-product.service.d.ts.map +0 -1
- package/lib/services/http/subscription/service-subscription/subscription.service.d.ts.map +0 -1
- package/lib/services/http/tax-review/index.d.ts.map +0 -1
- package/lib/services/http/tax-review/tax-review-history/tax-review-history.service.d.ts.map +0 -1
- package/lib/services/http/tax-review/tax-review.service.d.ts.map +0 -1
- package/lib/services/http/tax-summary/index.d.ts.map +0 -1
- package/lib/services/http/tax-summary/tax-summary.service.d.ts.map +0 -1
- package/lib/services/http/transaction/index.d.ts.map +0 -1
- package/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.d.ts.map +0 -1
- package/lib/services/http/transaction/transaction-receipt/transaction-receipt.service.d.ts.map +0 -1
- package/lib/services/http/transaction/transaction.service.d.ts.map +0 -1
- package/lib/services/http/tutorial-video/index.d.ts.map +0 -1
- package/lib/services/http/tutorial-video/tutorial-video-response.interface.d.ts.map +0 -1
- package/lib/services/http/tutorial-video/tutorial-video.service.d.ts.map +0 -1
- package/lib/services/http/tutorial-video/video-source.interface.d.ts.map +0 -1
- package/lib/services/http/user/index.d.ts.map +0 -1
- package/lib/services/http/user/occupation/occupation.service.d.ts.map +0 -1
- package/lib/services/http/user/user-event-setting/user-event-setting.service.d.ts.map +0 -1
- package/lib/services/http/user/user-event-type/user-event-type.service.d.ts.map +0 -1
- package/lib/services/http/user/users-invite/users-invite.service.d.ts.map +0 -1
- package/lib/services/http/vehicle/index.d.ts.map +0 -1
- package/lib/services/http/vehicle/vehicle-claim-details.service.d.ts.map +0 -1
- package/lib/services/http/vehicle/vehicle-claim.service.d.ts.map +0 -1
- package/lib/services/http/vehicle/vehicle-logbook.service.d.ts.map +0 -1
- package/lib/services/http/vehicle/vehicle.service.d.ts.map +0 -1
- package/lib/services/index.d.ts.map +0 -1
- package/lib/services/intercom/index.d.ts.map +0 -1
- package/lib/services/intercom/intercom.service.d.ts.map +0 -1
- package/lib/services/pdf/index.d.ts.map +0 -1
- package/lib/services/pdf/js-pdf.d.ts.map +0 -1
- package/lib/services/pdf/pdf-from-dom-element/file-settings.d.ts.map +0 -1
- package/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.d.ts.map +0 -1
- package/lib/services/pdf/pdf-from-table/file-settings.d.ts.map +0 -1
- package/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.d.ts.map +0 -1
- package/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.d.ts.map +0 -1
- package/lib/services/pdf/pdf-from-table/pdf-from-table.service.d.ts.map +0 -1
- package/lib/services/preloader/index.d.ts.map +0 -1
- package/lib/services/property/corelogic/index.d.ts.map +0 -1
- package/lib/services/property/equity-position-chart/equity-position-chart.service.d.ts.map +0 -1
- package/lib/services/property/equity-position-chart/index.d.ts.map +0 -1
- package/lib/services/property/index.d.ts.map +0 -1
- package/lib/services/property/property-calculation/index.d.ts.map +0 -1
- package/lib/services/property/property-calculation/property-calculation.service.d.ts.map +0 -1
- package/lib/services/report/index.d.ts.map +0 -1
- package/lib/services/report/property/property-transaction-report.service.d.ts.map +0 -1
- package/lib/services/transaction/index.d.ts.map +0 -1
- package/lib/services/transaction/transaction-calculation.service.d.ts.map +0 -1
- package/lib/services/user/index.d.ts.map +0 -1
- package/lib/services/vehicle/index.d.ts.map +0 -1
- package/lib/services/vehicle/logbook-best-period.service.d.ts.map +0 -1
- package/lib/services/xlsx/index.d.ts.map +0 -1
- package/lib/services/xlsx/xlsx.service.d.ts.map +0 -1
- package/lib/validators/address-corelogic.validator.d.ts.map +0 -1
- package/lib/validators/at-least-one-enabled.validator.d.ts.map +0 -1
- package/lib/validators/at-least-one.validator.d.ts.map +0 -1
- package/lib/validators/autocomplete.validator.d.ts.map +0 -1
- package/lib/validators/conditional.validator.d.ts.map +0 -1
- package/lib/validators/current-fin-year.validator.d.ts.map +0 -1
- package/lib/validators/date-range.validator.d.ts.map +0 -1
- package/lib/validators/fields-sum.validator.d.ts.map +0 -1
- package/lib/validators/file.validator.d.ts.map +0 -1
- package/lib/validators/index.d.ts.map +0 -1
- package/lib/validators/min-date/messages.enum.d.ts.map +0 -1
- package/lib/validators/min-date/min-date.validator.d.ts.map +0 -1
- package/lib/validators/password-match.validator.d.ts.map +0 -1
- package/lib/validators/password.validator.d.ts.map +0 -1
- package/lib/validators/phone-number.validator.d.ts.map +0 -1
- package/lib/validators/required-length.validator.d.ts.map +0 -1
- package/public-api.d.ts.map +0 -1
- 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,
|
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmljZS1wYXltZW50LW1ldGhvZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9tb2RlbHMvc2VydmljZS1zdWJzY3JpcHRpb24vc2VydmljZS1wYXltZW50LW1ldGhvZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsb0JBQW9CLElBQUksd0JBQXdCLEVBQUUsTUFBTSxxREFBcUQsQ0FBQztBQUN2SCxPQUFPLEVBQUUsc0JBQXNCLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztBQUNyRSxPQUFPLEVBQUUsaUNBQWlDLEVBQUUsTUFBTSxvRUFBb0UsQ0FBQztBQUN2SCxPQUFPLEVBQUUsNEJBQTRCLEVBQUUsTUFBTSw4REFBOEQsQ0FBQztBQUU1RyxNQUFNLE9BQU8sb0JBQXFCLFNBQVEsd0JBQXdCO0lBQ2hFLElBQUksSUFBSTtRQUNOL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ZSgpOiBzdHJpbmcge1xuICAgIGlmICghdGhpcy5pc0NhcmQoKSkge1xuICAgICAgcmV0dXJuIG51bGw7XG4gICAgfVxuXG4gICAgcmV0dXJuIGAkeygnMCcgKyB0aGlzLmNhcmRFeHBpcmF0aW9uTW9udGgpLnNsaWNlKC0yKX0vJHt0aGlzLmNhcmRFeHBpcmF0aW9uWWVhci50b1N0cmluZygpLnNsaWNlKC0yKX1gO1xuICB9XG5cbiAgZ2V0IGRlc2NyaXB0aW9uKCk6IHN0cmluZyB7XG4gICAgcmV0dXJuIGAke3RoaXMuYnJhbmROYW1lfSAqKioke3RoaXMubGFzdEZvdXJEaWdpdHN9YDtcbiAgfVxuXG4gIGlzQ2FyZCgpOiBib29sZWFuIHtcbiAgICByZXR1cm4gdGhpcy50eXBlID09PSBTZXJ2aWNlUGF5bWVudE1ldGhvZFR5cGVFbnVtLkNBUkQ7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -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 {
|