Skip to content

Commit

Permalink
add CfsAccountStatus enums
Browse files Browse the repository at this point in the history
  • Loading branch information
Jxio committed May 9, 2024
1 parent f332243 commit 7b48f12
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ def upgrade():
"(code, description,\"default\") "
"VALUES "
"('OVERDUE_EFT', 'Overdue EFT Payments', false)")
op.execute("commit")


def downgrade():
op.execute("DELETE FROM suspension_reason_codes WHERE code in ('OVERDUE_EFT')")
op.execute("commit")
7 changes: 4 additions & 3 deletions auth-web/src/components/pay/LinkedShortNameTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<template #item-slot-accountName="{ item }">
<span>{{ item.accountName }}</span>
<v-chip
v-if="item.cfsAccountStatus === 'FREEZE'"
v-if="item.cfsAccountStatus === CfsAccountStatus.FREEZE"
small
label
color="error"
Expand Down Expand Up @@ -77,7 +77,7 @@
</div>
</template>
<script lang="ts">
import { SessionStorageKeys, ShortNameStatus } from '@/util/constants'
import { CfsAccountStatus, SessionStorageKeys, ShortNameStatus } from '@/util/constants'
import { defineComponent, onMounted, reactive, watch } from '@vue/composition-api'
import { BaseVDataTable } from '..'
import CommonUtils from '@/util/common-util'
Expand Down Expand Up @@ -249,7 +249,8 @@ export default defineComponent({
state,
updateFilter,
viewDetails,
formatAmount
formatAmount,
CfsAccountStatus
}
}
})
Expand Down
8 changes: 8 additions & 0 deletions auth-web/src/util/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -638,3 +638,11 @@ export enum ShortNameStatus {
export enum ShortNameResponseStatus {
EFT_SHORT_NAME_ALREADY_MAPPED = 'EFT_SHORT_NAME_ALREADY_MAPPED'
}

export enum CfsAccountStatus {
PENDING = 'PENDING',
PENDING_PAD_ACTIVATION = 'PENDING_PAD_ACTIVATION',
ACTIVE = 'ACTIVE',
INACTIVE = 'INACTIVE',
FREEZE = 'FREEZE'
}

0 comments on commit 7b48f12

Please sign in to comment.