Skip to content

Commit

Permalink
adding support to corporate card transactions api (#24)
Browse files Browse the repository at this point in the history
adding support to corporate card transactions api (#24)
  • Loading branch information
Sravanksk authored Nov 9, 2021
1 parent e17cfc8 commit bf4a55e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
2 changes: 2 additions & 0 deletions fyle/platform/apis/v1/admin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from .files import Files
from .accounting_exports import AccountingExports
from .corporate_cards import CorporateCards
from .corporate_card_transactions import CorporateCardTransactions
from ..version import version

role = 'admin'
Expand All @@ -32,3 +33,4 @@
files = Files(version, role)
accounting_exports = AccountingExports(version, role)
corporate_cards = CorporateCards(version, role)
corporate_card_transactions = CorporateCardTransactions(version, role)
17 changes: 17 additions & 0 deletions fyle/platform/apis/v1/admin/corporate_card_transactions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
"""
V1 Admin Corporate Card Transactions
"""

from ....internals.get_resources import GetResources
from ....internals.list_all_resources import ListAllResources
from ....internals.list_resources import ListResources
from ....internals.post_resources import PostResources


class CorporateCardTransactions(ListResources, ListAllResources, PostResources, GetResources):
"""Class for Corporate Card Transactions APIs."""

CORPORATE_CARD_TRANSACTIONS = '/corporate_card_transactions'

def __init__(self, version, role):
super().__init__(version, role, CorporateCardTransactions.CORPORATE_CARD_TRANSACTIONS)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name='fyle',
version='v0.16.0',
version='v0.17.0',
author='Siva Narayanan',
author_email='[email protected]',
description='Python SDK for accessing Fyle Platform APIs',
Expand Down

0 comments on commit bf4a55e

Please sign in to comment.