18 lines
537 B
Python
18 lines
537 B
Python
from app.models import Transaction
|
|
|
|
class TransactionService:
|
|
|
|
@staticmethod
|
|
def get_transaction_by_transaction_id(transaction_id):
|
|
"""
|
|
Get the transaction by ID
|
|
"""
|
|
return Transaction.get_transaction_by_transaction_id(transaction_id)
|
|
|
|
@staticmethod
|
|
def create_transaction(transaction_id, account_id, customer_id, type, channel):
|
|
"""
|
|
Create Transaction Entry
|
|
"""
|
|
return Transaction.create_transaction(transaction_id, account_id, customer_id, type, channel)
|