Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Owo Sugiana
/
opensipkd-iso8583
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 98389f0c
authored
Apr 22, 2026
by
aa.gustiana@gmail.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Revert "v1" accidentaly push
This reverts commit
41927d0c
.
1 parent
41927d0c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
29 deletions
opensipkd/iso8583/doc.py
opensipkd/iso8583/doc.py
View file @
98389f0
...
...
@@ -2,35 +2,6 @@ from ISO8583.ISO8583 import ISO8583
class
BaseISO8583
(
ISO8583
):
@property
def
ack_message
(
self
):
"""Default ack_message property for compatibility."""
return
getattr
(
self
,
'_ack_message'
,
None
)
@ack_message.setter
def
ack_message
(
self
,
value
):
self
.
_ack_message
=
value
def
to_dict
(
self
):
"""Serialize all set bits and their values to a dict."""
d
=
{}
for
item
in
self
.
getBitsAndValues
():
bit
=
int
(
item
[
'bit'
])
d
[
bit
]
=
self
.
getBit
(
bit
)
d
[
'MTI'
]
=
self
.
getMTI
()
return
d
@classmethod
def
from_dict
(
cls
,
d
):
"""Create a new ISO8583 object from a dict of bits and values."""
mti
=
d
.
get
(
'MTI'
)
obj
=
cls
()
if
mti
:
obj
.
setMTI
(
mti
)
for
bit
,
value
in
d
.
items
():
if
bit
==
'MTI'
:
continue
obj
.
setBit
(
int
(
bit
),
value
)
return
obj
def
__init__
(
self
,
from_iso
=
None
,
debug
=
False
):
ISO8583
.
__init__
(
self
,
debug
=
debug
)
self
.
from_iso
=
from_iso
...
...
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