Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add support for admin subscriptions #82

Merged
merged 1 commit into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -17,6 +17,7 @@
from .corporate_cards import CorporateCards
from .corporate_card_transactions import CorporateCardTransactions
from .departments import Departments
from .subscriptions import Subscriptions
from ..version import version

role = 'admin'
Expand All @@ -37,3 +38,4 @@
corporate_cards = CorporateCards(version, role)
corporate_card_transactions = CorporateCardTransactions(version, role)
departments = Departments(version, role)
subscriptions = Subscriptions(version, role)
15 changes: 15 additions & 0 deletions fyle/platform/apis/v1beta/admin/subscriptions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
"""
V1 Beta Admin Subscriptions
"""

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

class Subscriptions(ListResources, ListAllResources, PostResources):
"""Class for Subscriptions APIs."""

SUBSCRIPTIONS = '/subscriptions'

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