-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
55 additions
and
45 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
12 changes: 8 additions & 4 deletions
12
...bridge-example-bank-models/src/openg2p_g2p_bridge_example_bank_models/schemas/__init__.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 |
---|---|---|
@@ -1,10 +1,14 @@ | ||
from .fund_schemas import ( | ||
AccountStatementRequest, | ||
AccountStatementResponse, | ||
from .account import ( | ||
BlockFundsRequest, | ||
BlockFundsResponse, | ||
CheckFundRequest, | ||
CheckFundResponse, | ||
) | ||
from .account_statement import ( | ||
AccountStatementRequest, | ||
AccountStatementResponse, | ||
) | ||
from .payment_request import ( | ||
InitiatePaymentPayload, | ||
InitiatorPaymentResponse, | ||
InitiatePaymentResponse, | ||
) |
28 changes: 28 additions & 0 deletions
28
...-bridge-example-bank-models/src/openg2p_g2p_bridge_example_bank_models/schemas/account.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 @@ | ||
from typing import Optional | ||
|
||
from pydantic import BaseModel | ||
|
||
|
||
class CheckFundRequest(BaseModel): | ||
account_number: str | ||
account_currency: str | ||
total_funds_needed: float | ||
|
||
|
||
class CheckFundResponse(BaseModel): | ||
status: str | ||
account_number: str | ||
has_sufficient_funds: bool | ||
error_message: Optional[str] = None | ||
|
||
|
||
class BlockFundsRequest(BaseModel): | ||
account_number: str | ||
currency: str | ||
amount: float | ||
|
||
|
||
class BlockFundsResponse(BaseModel): | ||
status: str | ||
block_reference_no: str | ||
error_message: Optional[str] = None |
13 changes: 13 additions & 0 deletions
13
...ample-bank-models/src/openg2p_g2p_bridge_example_bank_models/schemas/account_statement.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,13 @@ | ||
from typing import Optional | ||
|
||
from pydantic import BaseModel | ||
|
||
|
||
class AccountStatementRequest(BaseModel): | ||
program_account_number: str | ||
|
||
|
||
class AccountStatementResponse(BaseModel): | ||
status: str | ||
account_statement_id: Optional[str] = None | ||
error_message: Optional[str] = None |
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