-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
18099 - PAY API - endpoint to add EFT Allowed flag to an account (#1307)
* add eft flag to "get payment account route" * fix event_listener issue * fix queue_listener issue * add eft_enable to payment_accounts datamodel * make eft_enable non-nullable * lint error fix * add a route to enable eft * add eft_enable column to payment_accounts_version * fix from code review * unit test fix * add back missing test payload for eft_enable * fix flake8 error
- Loading branch information
Showing
7 changed files
with
103 additions
and
3 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
pay-api/migrations/versions/2023_10_26_2ef58b39cafc_add_eft_enable_to_payment_accounts.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
"""18099-eft allowed flag | ||
Revision ID: 2ef58b39cafc | ||
Revises: 194cdd7cf986 | ||
Create Date: 2023-10-26 13:31:50.959562 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '2ef58b39cafc' | ||
down_revision = '194cdd7cf986' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
op.execute("set statement_timeout=20000;") | ||
op.add_column('payment_accounts', sa.Column('eft_enable', sa.Boolean(), nullable=False, default=False)) | ||
op.add_column('payment_accounts_version', sa.Column('eft_enable', sa.Boolean(), nullable=False, default=False)) | ||
|
||
|
||
def downgrade(): | ||
op.execute("set statement_timeout=20000;") | ||
op.drop_column('payment_accounts', 'eft_enable') | ||
op.drop_column('payment_accounts_version', 'eft_enable') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters