From 639e8a6b238f0f144e9ab1d2bcc1a63cabb8cbae Mon Sep 17 00:00:00 2001 From: kartikey rajvaidya Date: Tue, 12 Apr 2022 11:33:05 +0530 Subject: [PATCH] Added support for GET of spender corporate cards API (#52) --- fyle/platform/apis/v1beta/spender/__init__.py | 2 ++ .../apis/v1beta/spender/corporate_cards.py | 14 ++++++++++++++ setup.py | 2 +- 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 fyle/platform/apis/v1beta/spender/corporate_cards.py diff --git a/fyle/platform/apis/v1beta/spender/__init__.py b/fyle/platform/apis/v1beta/spender/__init__.py index 256c300..1d37547 100644 --- a/fyle/platform/apis/v1beta/spender/__init__.py +++ b/fyle/platform/apis/v1beta/spender/__init__.py @@ -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' @@ -29,3 +30,4 @@ employees = Employees(version, role) tax_groups = TaxGroups(version, role) files = Files(version, role) +corporate_cards = CorporateCards(version, role) diff --git a/fyle/platform/apis/v1beta/spender/corporate_cards.py b/fyle/platform/apis/v1beta/spender/corporate_cards.py new file mode 100644 index 0000000..477d77b --- /dev/null +++ b/fyle/platform/apis/v1beta/spender/corporate_cards.py @@ -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) diff --git a/setup.py b/setup.py index bdf91b4..b7a0f4c 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name='fyle', - version='v0.23.0', + version='v0.24.0', author='Siva Narayanan', author_email='siva@fyle.in', description='Python SDK for accessing Fyle Platform APIs',