Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Owo Sugiana
/
linkaja-models
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9e108e85
authored
Oct 04, 2022
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Tambah tabel linkaja_edupay
1 parent
ca4c22d9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
1 deletions
CHANGES.txt
linkaja/models.py
linkaja/scripts/data/edupay.csv
linkaja/scripts/init_db.py
setup.py
CHANGES.txt
View file @
9e108e8
0.2.1 4-10-2022
---------------
- Penambahan tabel linkaja_edupay untuk menerjemahkan terminal (LA) menjadi
featureCode (BJB)
0.2 29-10-2021
--------------
- Penggunaan pkgutil agar fleksibel saat pip install -e
...
...
linkaja/models.py
View file @
9e108e8
...
...
@@ -76,3 +76,13 @@ class Pbb(Base):
# Nama tagihan response ke LinkAja
display_name
=
Column
(
String
(
64
),
nullable
=
False
,
unique
=
True
)
prefix_nop
=
Column
(
String
(
4
),
nullable
=
False
)
class
Edupay
(
Base
):
__tablename__
=
'linkaja_edupay'
# Nilai untuk featureCode saat request ke BJB
id
=
Column
(
String
(
3
),
primary_key
=
True
)
# Nama terminal request dari LinkAja
name
=
Column
(
String
(
64
),
nullable
=
False
,
unique
=
True
)
# Nama tagihan response ke LinkAja
display_name
=
Column
(
String
(
64
),
nullable
=
False
,
unique
=
True
)
linkaja/scripts/data/edupay.csv
0 → 100644
View file @
9e108e8
display_name,name,id
Universitas Muhammadiyah Cirebon,bjb_univmuham_crb,015
Universitas Telkom,bjb_telkom_university,023
linkaja/scripts/init_db.py
View file @
9e108e8
...
...
@@ -9,6 +9,7 @@ from zope.sqlalchemy import register
from
..models
import
(
Base
,
Pbb
,
Edupay
,
)
...
...
@@ -55,3 +56,4 @@ def main(argv=sys.argv[1:]):
register
(
db_session
)
with
transaction
.
manager
:
append_csv
(
Pbb
,
'pbb.csv'
,
[
'id'
])
append_csv
(
Edupay
,
'edupay.csv'
,
[
'id'
])
setup.py
View file @
9e108e8
...
...
@@ -15,7 +15,8 @@ line = CHANGES.splitlines()[0]
version
=
line
.
split
()[
0
]
requires
=
[
'sqlalchemy'
,
'zope.sqlalchemy'
,
'psycopg2-binary'
,
'opensipkd-hitung @ '
'git+https://git.opensipkd.com/sugiana/opensipkd-hitung.git'
,
]
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment