Skip to content

Commit

Permalink
Feat: Adding scheduled callbacks API (#83)
Browse files Browse the repository at this point in the history
* Feat: Adding scheduled callbacks API

* Bumping the version
  • Loading branch information
Shwetabhk committed Oct 27, 2023
1 parent 7ebcacf commit 5304ad6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 2 additions & 0 deletions fyle/platform/apis/v1beta/admin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from .corporate_card_transactions import CorporateCardTransactions
from .departments import Departments
from .subscriptions import Subscriptions
from .scheduled_callbacks import ScheduledCallbacks
from ..version import version

role = 'admin'
Expand All @@ -39,3 +40,4 @@
corporate_card_transactions = CorporateCardTransactions(version, role)
departments = Departments(version, role)
subscriptions = Subscriptions(version, role)
scheduled_callbacks = ScheduledCallbacks(version, role)
16 changes: 16 additions & 0 deletions fyle/platform/apis/v1beta/admin/scheduled_callbacks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"""
V1 Beta Admin Scheduled Callbacks
"""

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


class ScheduledCallbacks(ListResources, ListAllResources, PostResources):
"""Class for Scheduled Callbacks APIs."""

SCHEDULED_CALLBACKS = '/scheduled_callbacks'

def __init__(self, version, role):
super().__init__(version, role, ScheduledCallbacks.SCHEDULED_CALLBACKS)
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.35.0',
version='v0.36.0',
author='Siva Narayanan',
author_email='siva@fyle.in',
description='Python SDK for accessing Fyle Platform APIs',
Expand Down

0 comments on commit 5304ad6

Please sign in to comment.