Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.0 #38

Merged
merged 104 commits into from
Dec 3, 2024
Merged

1.0 #38

Changes from 1 commit
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
c226239
Example Bank API
PSNAppz Aug 4, 2024
971a78e
Example Bank Celery
PSNAppz Aug 4, 2024
85ebef2
Example Bank Models
PSNAppz Aug 4, 2024
b0d9cf8
Merge pull request #1 from PSNAppz/develop
venky-ganapathy Aug 5, 2024
4d76588
Mt940 Writer Helper
PSNAppz Aug 5, 2024
5de6898
Account Statement
PSNAppz Aug 5, 2024
429414f
Pre-commit and minor fixes
PSNAppz Aug 5, 2024
9a56964
Pre-commit and minor fixes
PSNAppz Aug 5, 2024
53232af
Pre-commit and minor fixes
PSNAppz Aug 5, 2024
28ba765
Add celery_app.py
PSNAppz Aug 5, 2024
1e580f4
remove .idea folder
PSNAppz Aug 5, 2024
06a3c7b
Fix Formating for Mt940 Writer
PSNAppz Aug 6, 2024
092efa3
Add InitiatePaymentBatchRequest model
PSNAppz Aug 7, 2024
dc0624c
Initiate payments in batches
PSNAppz Aug 7, 2024
e665fde
Pre-commit fixes
PSNAppz Aug 7, 2024
3b8eb31
Add logging to all methods
PSNAppz Aug 7, 2024
1cdfdd6
add example env file
PSNAppz Aug 7, 2024
01c9268
add example env file
PSNAppz Aug 7, 2024
5166bb0
Refactor models
PSNAppz Aug 7, 2024
ec51c5d
Refactor schemas
PSNAppz Aug 7, 2024
1fc0d37
Merge pull request #2 from PSNAppz/develop
venky-ganapathy Aug 8, 2024
f4ebb8b
Example Bank API Docker Publish
PSNAppz Aug 12, 2024
8a52184
Example Bank API Workflows
PSNAppz Aug 12, 2024
8c96a1f
Merge pull request #3 from PSNAppz/develop
venky-ganapathy Aug 12, 2024
bddae06
Example Bank API Dockerfile fix
PSNAppz Aug 22, 2024
2584099
Example Bank API OpenAPI Workflow fix
PSNAppz Aug 22, 2024
f4c26fb
Example Bank API Celery Dockerfile fix
PSNAppz Aug 22, 2024
99f47b0
Merge pull request #4 from PSNAppz/develop
venky-ganapathy Aug 22, 2024
19cbd88
Example Bank API Celery Dockerfile fix
PSNAppz Aug 22, 2024
7dbdbfc
Merge pull request #5 from PSNAppz/develop
venky-ganapathy Aug 22, 2024
fe26685
Move redis urls to env
PSNAppz Aug 22, 2024
69af117
Merge pull request #6 from PSNAppz/develop
venky-ganapathy Aug 22, 2024
3b1c21a
Remove controller init from celery project app.py
PSNAppz Aug 22, 2024
83ec43c
Pre-commit fix
PSNAppz Aug 22, 2024
315ee19
Merge pull request #7 from PSNAppz/develop
venky-ganapathy Aug 22, 2024
a8580a2
Update celery worker to listen to g2p_bridge_celery_worker_tasks
PSNAppz Aug 26, 2024
cfa904f
Merge pull request #8 from PSNAppz/develop
shibu-narayanan Aug 26, 2024
a72d2c4
Fix error in initiate_payment_batch_request
PSNAppz Aug 26, 2024
9f6c46e
pre-commit fixes
PSNAppz Aug 26, 2024
c0a1e02
Merge pull request #9 from PSNAppz/develop
shibu-narayanan Aug 26, 2024
b70abdd
Update payment status enum to SUCCESS
PSNAppz Aug 26, 2024
6a8c255
Merge pull request #10 from PSNAppz/develop
shibu-narayanan Aug 27, 2024
c1feab7
Move celery config to env
PSNAppz Aug 27, 2024
3b98317
Pre-commit issues fix
PSNAppz Aug 27, 2024
6bca9df
Merge pull request #11 from PSNAppz/develop
lalithkota Aug 27, 2024
27af3fa
Call back upload statement API after account statement is generated
PSNAppz Sep 15, 2024
ee89392
Pre-commit fix
PSNAppz Sep 16, 2024
0e5757a
Merge pull request #12 from PSNAppz/develop
venky-ganapathy Sep 16, 2024
e0b19ef
Process credit transaction in bank simulator
PSNAppz Sep 16, 2024
d42185d
Merge pull request #13 from PSNAppz/develop
venky-ganapathy Sep 16, 2024
454b031
Update dependency in example-bank
PSNAppz Sep 16, 2024
e7f2f51
Merge pull request #14 from PSNAppz/develop
venky-ganapathy Sep 16, 2024
89f88fa
Fix error in process_payments_worker
PSNAppz Sep 16, 2024
3ee7192
Merge pull request #15 from PSNAppz/develop
venky-ganapathy Sep 16, 2024
88f8770
Add account_holder_name while creating new account
PSNAppz Sep 16, 2024
c3edf6d
Merge pull request #16 from PSNAppz/develop
venky-ganapathy Sep 16, 2024
cbfe2ae
Add account_currency while creating new account
PSNAppz Sep 16, 2024
5d78aa7
Merge pull request #17 from PSNAppz/develop
venky-ganapathy Sep 16, 2024
41987b6
Fix update_account_for_credit in generate_failures method
PSNAppz Sep 16, 2024
4e22d9f
Roll back session in case of exception
PSNAppz Sep 16, 2024
c834a5e
Merge pull request #18 from PSNAppz/develop
venky-ganapathy Sep 16, 2024
6cb1dd3
Update fund block only for DEBIT transactions
PSNAppz Sep 16, 2024
cba6d8e
Merge pull request #19 from PSNAppz/develop
venky-ganapathy Sep 16, 2024
7add623
Added USSD controller
tahzeer Sep 16, 2024
2a3002f
Merge branch '1.0.0' of https://github.com/tahzeer/openg2p-g2p-bridge…
tahzeer Sep 16, 2024
aaedd29
Merge pull request #20 from tahzeer/1.0.0
venky-ganapathy Sep 16, 2024
d43e55a
Pre-commit fixes
PSNAppz Sep 16, 2024
dc09dd3
Merge pull request #21 from PSNAppz/1.0.0
venky-ganapathy Sep 16, 2024
e3dfe46
Fix credit account details
PSNAppz Sep 17, 2024
1d11c67
Create account statement after processing payment
PSNAppz Sep 17, 2024
1b94a2c
Pre-commit fixes
PSNAppz Sep 17, 2024
dbd2d48
Merge pull request #22 from PSNAppz/1.0.0
venky-ganapathy Sep 17, 2024
8eda9f0
Invoke account_statement_generator task after the payments are processed
PSNAppz Sep 18, 2024
72a7042
Merge pull request #23 from PSNAppz/1.0.0
venky-ganapathy Sep 18, 2024
906f353
Fix formatting for USSD responses
PSNAppz Sep 18, 2024
084e65e
Merge pull request #24 from PSNAppz/1.0.0
venky-ganapathy Sep 18, 2024
e9e1ccc
Fix formatting for USSD responses
PSNAppz Sep 18, 2024
f370837
Merge pull request #25 from PSNAppz/1.0.0
venky-ganapathy Sep 18, 2024
dd88d1a
Add get_recent_transactions option for USSD
PSNAppz Sep 18, 2024
775c13a
Merge pull request #26 from PSNAppz/1.0.0
venky-ganapathy Sep 18, 2024
6e08b99
Fix response in USSD
PSNAppz Sep 18, 2024
40f3bcd
Merge pull request #27 from PSNAppz/1.0.0
venky-ganapathy Sep 18, 2024
a2bf365
Fix transaction_text in USSD
PSNAppz Sep 18, 2024
c9cfdca
Pre-commit issue fix
PSNAppz Sep 18, 2024
7882679
Merge pull request #28 from PSNAppz/1.0.0
venky-ganapathy Sep 18, 2024
736beda
INR -> USD update for demo
PSNAppz Sep 18, 2024
1bc66d7
Merge pull request #29 from PSNAppz/1.0.0
venky-ganapathy Sep 18, 2024
f3c7e10
Run dummy account phone and email
PSNAppz Sep 19, 2024
27577c6
Return random account phone and email
PSNAppz Sep 19, 2024
ef32205
Merge pull request #30 from PSNAppz/1.0.0
venky-ganapathy Sep 19, 2024
a6fab92
Patch failure log failure_reason
PSNAppz Sep 19, 2024
31e7520
Merge pull request #31 from PSNAppz/1.0.0
venky-ganapathy Sep 19, 2024
7853a2d
Example bank workflow and docker changes
PSNAppz Sep 30, 2024
0d0bf96
Merge pull request #32 from PSNAppz/1.0.0
venky-ganapathy Oct 1, 2024
10a2ea1
Add reported_in_mt940 to AccountingLog
PSNAppz Oct 7, 2024
9ffeb0f
Merge pull request #33 from PSNAppz/1.0.0
venky-ganapathy Oct 7, 2024
3e50e86
Fix Dockerfile issue in example bank celery
PSNAppz Oct 7, 2024
0f5bb22
Merge pull request #34 from PSNAppz/1.0.0
venky-ganapathy Oct 7, 2024
31a394b
Update USSD controller response text
PSNAppz Oct 20, 2024
4db52e4
Merge pull request #35 from PSNAppz/1.0.0
venky-ganapathy Oct 21, 2024
16a1b40
Update fastapi-common version
PSNAppz Dec 3, 2024
894d643
Merge pull request #36 from PSNAppz/1.0.0
venky-ganapathy Dec 3, 2024
dde56b3
Update fastapi-common version
PSNAppz Dec 3, 2024
9c4a07f
Merge pull request #37 from PSNAppz/1.0.0
venky-ganapathy Dec 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Example Bank Models
  • Loading branch information
PSNAppz committed Aug 4, 2024
commit 85ebef2b0a12485c842bd2d63dd22a2c307b2de5
81 changes: 81 additions & 0 deletions openg2p-g2p-bridge-example-bank-models/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
/venv
/.pytest_cache

# C extensions
*.so

# Distribution / packaging
.Python
env/
bin/
build/
develop-eggs/
dist/
eggs/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg
*.eggs

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.cache
nosetests.xml
coverage.xml

# Translations
*.mo

# Pycharm
.idea

# Eclipse
.settings

# Visual Studio cache/options directory
.vs/
.vscode

# OSX Files
.DS_Store

# Django stuff:
*.log

# Mr Developer
.mr.developer.cfg
.project
.pydevproject

# Rope
.ropeproject

# Sphinx documentation
docs/_build/

# Backup files
*~
*.swp

# OCA rules
!static/lib/

# Ruff stuff
.ruff_cache

# Ignore secret files and env
.secrets.*
../.env
49 changes: 49 additions & 0 deletions openg2p-g2p-bridge-example-bank-models/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
exclude: |
(?x)
# We don't want to mess with tool-generated files
.svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/|
# Maybe reactivate this when all README files include prettier ignore tags?
^README\.md$|
# Repos using Sphinx to generate docs don't need prettying
^docs/_templates/.*\.html$|
# You don't usually want a bot to modify your legal texts
(LICENSE.*|COPYING.*)
default_language_version:
python: python3
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: debug-statements
- id: fix-encoding-pragma
args: ["--remove"]
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: check-yaml
args:
- --unsafe
- id: mixed-line-ending
args: ["--fix=lf"]
- repo: https://github.com/asottile/pyupgrade
rev: v3.11.0
hooks:
- id: pyupgrade
args:
- --py3-plus
- --keep-runtime-typing
- repo: https://github.com/psf/black
rev: 23.9.1
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.289
hooks:
- id: ruff
args:
- --fix
16 changes: 16 additions & 0 deletions openg2p-g2p-bridge-example-bank-models/.ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # too complex
]

[per-file-ignores]
"__init__.py" = ["F401"]
114 changes: 114 additions & 0 deletions openg2p-g2p-bridge-example-bank-models/CODE-OF-CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
# Code of Conduct

## Contributor Covenant Code of Conduct

### Preamble

OpenG2P was created to foster an open, innovative and inclusive community around open source & open standard.
To clarify expected behaviour in our communities we have adopted the Contributor Covenant. This code of
conduct has been adopted by many other open source communities and we feel it expresses our values well.

### Our Pledge

We as members, contributors, and leaders pledge to make participation in our community a harassment-free
experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex
characteristics, gender identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.

We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy
community.

### Our Standards

Examples of behavior that contributes to a positive environment for our community include:

- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
- Focusing on what is best not just for us as individuals, but for the overall community

Examples of unacceptable behavior include:

- The use of sexualized language or imagery, and sexual attention or advances of any kind
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email address, without their explicit
permission
- Other conduct which could reasonably be considered inappropriate in a professional setting

### Enforcement Responsibilities

Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will
take appropriate and fair corrective action in response to any behavior that they deem inappropriate,
threatening, offensive, or harmful.

Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki
edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate
reasons for moderation decisions when appropriate.

### Scope

This Code of Conduct applies within all community spaces, and also applies when an individual is officially
representing the community in public spaces. Examples of representing our community include using an official
e-mail address, posting via an official social media account, or acting as an appointed representative at an
online or offline event.

### Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders
responsible for enforcement at \[INSERT CONTACT METHOD]. All complaints will be reviewed and investigated
promptly and fairly.

All community leaders are obligated to respect the privacy and security of the reporter of any incident.

### Enforcement Guidelines

Community leaders will follow these Community Impact Guidelines in determining the consequences for any action
they deem in violation of this Code of Conduct:

#### 1. Correction

**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in
the community.

**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the
violation and an explanation of why the behavior was inappropriate. A public apology may be requested.

#### 2. Warning

**Community Impact**: A violation through a single incident or series of actions.

**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved,
including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time.
This includes avoiding interactions in community spaces as well as external channels like social media.
Violating these terms may lead to a temporary or permanent ban.

#### 3. Temporary Ban

**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.

**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a
specified period of time. No public or private interaction with the people involved, including unsolicited
interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may
lead to a permanent ban.

#### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained
inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of
individuals.

**Consequence**: A permanent ban from any sort of public interaction within the community.

### Attribution

This Code of Conduct is adapted from the
[Contributor Covenant version 2.1](https://www.contributor-covenant.org/version/2/1/code_of_conduct/).

Community Impact Guidelines were inspired by
[Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).

For answers to common questions about this code of conduct, see the
[FAQ](https://www.contributor-covenant.org/faq). Translations are available
[here](https://www.contributor-covenant.org/translations).
2 changes: 2 additions & 0 deletions openg2p-g2p-bridge-example-bank-models/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Refer to contribution guidelines
[here](https://github.com/OpenG2P/openg2p-documentation/blob/1.0.0/community/contributing-to-openg2p.md).
Loading