Skip to content

Commit

Permalink
Added support for GET of spender corporate cards API (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikeyrajvaidya authored Apr 12, 2022
1 parent 7732c51 commit 639e8a6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 2 additions & 0 deletions fyle/platform/apis/v1beta/spender/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from .employees import Employees
from .tax_groups import TaxGroups
from .files import Files
from .corporate_cards import CorporateCards
from ..version import version

role = 'spender'
Expand All @@ -29,3 +30,4 @@
employees = Employees(version, role)
tax_groups = TaxGroups(version, role)
files = Files(version, role)
corporate_cards = CorporateCards(version, role)
14 changes: 14 additions & 0 deletions fyle/platform/apis/v1beta/spender/corporate_cards.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
"""
V1 Beta Spender Corporate Cards
"""
from ....internals.list_all_resources import ListAllResources
from ....internals.list_resources import ListResources


class CorporateCards(ListResources, ListAllResources):
"""Class for Category APIs."""

CORPORATE_CARDS = '/corporate_cards'

def __init__(self, version, role):
super().__init__(version, role, CorporateCards.CORPORATE_CARDS)
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.23.0',
version='v0.24.0',
author='Siva Narayanan',
author_email='[email protected]',
description='Python SDK for accessing Fyle Platform APIs',
Expand Down

0 comments on commit 639e8a6

Please sign in to comment.