-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #838 from bcgov/cfs_rcpt_adjust
CFS integration for routing slip write off and refund
- Loading branch information
Showing
11 changed files
with
136 additions
and
8 deletions.
There are no files selected for viewing
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
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
39 changes: 39 additions & 0 deletions
39
pay-api/migrations/versions/aa9207187d6b_fas_routing_slip_status_updates.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,39 @@ | ||
"""fas_routing_slip_status_updates | ||
Revision ID: aa9207187d6b | ||
Revises: b336780735dc | ||
Create Date: 2021-12-10 10:28:11.033487 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
import sqlalchemy as sa | ||
from alembic import op | ||
from sqlalchemy import String | ||
from sqlalchemy.sql import column, table | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'aa9207187d6b' | ||
down_revision = 'b336780735dc' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
rs_status_table = table('routing_slip_status_codes', | ||
column('code', sa.String), | ||
column('description', sa.String), | ||
) | ||
op.bulk_insert( | ||
rs_status_table, | ||
[ | ||
{'code': 'WRITE_OFF', 'description': 'Write Off'}, | ||
{'code': 'REFUND_REJECTED', 'description': 'Refund Rejected'} | ||
] | ||
) | ||
op.execute("delete from routing_slip_status_codes where code in ('BOUNCED', 'REFUND');") | ||
|
||
|
||
def downgrade(): | ||
op.execute("delete from routing_slip_status_codes where code in ('WRITE_OFF', 'REFUND_REJECTED');") |
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