From 295cc4996696a8c9c494c05cf3d28cc44aeb13eb Mon Sep 17 00:00:00 2001 From: Jia Xu Date: Fri, 20 Oct 2023 16:40:54 -0700 Subject: [PATCH 1/4] add EFT payments --- auth-web/package-lock.json | 4 +-- auth-web/package.json | 2 +- .../components/auth/common/PaymentMethods.vue | 34 ++++++++++++++++++- auth-web/src/util/config-helper.ts | 2 +- 4 files changed, 37 insertions(+), 5 deletions(-) diff --git a/auth-web/package-lock.json b/auth-web/package-lock.json index e23e12dfad..f86b9e2fd9 100644 --- a/auth-web/package-lock.json +++ b/auth-web/package-lock.json @@ -1,12 +1,12 @@ { "name": "auth-web", - "version": "2.4.41", + "version": "2.4.42", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "auth-web", - "version": "2.4.41", + "version": "2.4.42", "dependencies": { "@bcrs-shared-components/base-address": "2.0.3", "@bcrs-shared-components/bread-crumb": "1.0.8", diff --git a/auth-web/package.json b/auth-web/package.json index aa4cc13392..a8525ec633 100644 --- a/auth-web/package.json +++ b/auth-web/package.json @@ -1,6 +1,6 @@ { "name": "auth-web", - "version": "2.4.41", + "version": "2.4.42", "appName": "Auth Web", "sbcName": "SBC Common Components", "private": true, diff --git a/auth-web/src/components/auth/common/PaymentMethods.vue b/auth-web/src/components/auth/common/PaymentMethods.vue index b63cb22d41..c95f22e678 100644 --- a/auth-web/src/components/auth/common/PaymentMethods.vue +++ b/auth-web/src/components/auth/common/PaymentMethods.vue @@ -82,6 +82,18 @@ /> + +
+ +
+ To send us a payment through electronic funds transfer (EFT), please read the + Electronic Funds Transfer Payment Instructions. +
+
+
import { Component, Emit, Prop, Vue } from 'vue-property-decorator' -import { Organization, PADInfo } from '@/models/Organization' +import { OrgProduct, Organization, PADInfo } from '@/models/Organization' import { Action } from 'pinia-class' import { BcolProfile } from '@/models/bcol' +import CommonUtils from '@/util/common-util' import ConfigHelper from '@/util/config-helper' +import DocumentService from '@/services/document.services' import GLPaymentForm from '@/components/auth/common/GLPaymentForm.vue' import LinkedBCOLBanner from '@/components/auth/common/LinkedBCOLBanner.vue' import PADInfoForm from '@/components/auth/common/PADInfoForm.vue' @@ -140,6 +154,14 @@ const PAYMENT_METHODS = { be requested when you are ready to complete a transaction.`, isSelected: false }, + [PaymentTypes.EFT]: { + type: PaymentTypes.EFT, + icon: 'mdi-arrow-right-circle-outline', + title: 'Electronic Funds Transfer', + subtitle: 'Make payments from your bank account. Statement will be issued monthly.', + description: ``, + isSelected: false + }, [PaymentTypes.PAD]: { type: PaymentTypes.PAD, icon: 'mdi-bank-outline', @@ -256,6 +278,16 @@ export default class PaymentMethods extends Vue { return (this.selectedPaymentMethod === payment.type) } + private async getEftInstructions () { + try { + const downloadData = await DocumentService.getEftInstructions() + CommonUtils.fileDownload(downloadData?.data, `bcrs_eft_instructions.pdf`, downloadData?.headers['content-type']) + } catch (error) { + // eslint-disable-next-line no-console + console.log(error) + } + } + @Emit() paymentMethodSelected (payment, isTouched = true) { this.selectedPaymentMethod = payment.type diff --git a/auth-web/src/util/config-helper.ts b/auth-web/src/util/config-helper.ts index c721c7301f..f3f1622883 100644 --- a/auth-web/src/util/config-helper.ts +++ b/auth-web/src/util/config-helper.ts @@ -235,7 +235,7 @@ export default class ConfigHelper { static paymentsAllowedPerAccountType () { return { [Account.BASIC]: [ PaymentTypes.CREDIT_CARD, PaymentTypes.ONLINE_BANKING ], - [Account.PREMIUM]: [ PaymentTypes.PAD, PaymentTypes.BCOL ], + [Account.PREMIUM]: [ PaymentTypes.PAD, PaymentTypes.BCOL, PaymentTypes.EFT ], [Account.UNLINKED_PREMIUM]: [ PaymentTypes.PAD, PaymentTypes.BCOL ] } } From 103cfd0b5b37af2a2331d41c2367b4e0d9e17ed5 Mon Sep 17 00:00:00 2001 From: Jia Xu Date: Fri, 20 Oct 2023 16:50:00 -0700 Subject: [PATCH 2/4] fix lint error --- auth-web/src/components/auth/common/PaymentMethods.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth-web/src/components/auth/common/PaymentMethods.vue b/auth-web/src/components/auth/common/PaymentMethods.vue index c95f22e678..f2896b7fbc 100644 --- a/auth-web/src/components/auth/common/PaymentMethods.vue +++ b/auth-web/src/components/auth/common/PaymentMethods.vue @@ -132,7 +132,7 @@