Skip to content

Commit

Permalink
Added Support For Dependent Fields Values (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
NileshPant1999 authored Mar 1, 2023
1 parent 2bf4f47 commit 02e1d62
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions fyle/platform/apis/v1beta/admin/expense_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,20 @@ class ExpenseFields(ListResources, ListAllResources, PostResources, GetResources
"""Class for Expense Fields APIs."""

EXPENSE_FIELDS = '/expense_fields'
DEPENDENT_EXPENSE_FIELDS_VALUES = '/dependent_expense_field_values'
BULK_CREATE_DEPENDENT_EXPENSE_FIELDS_VALUES = '/dependent_expense_field_values/bulk'

def __init__(self, version, role):
super().__init__(version, role, ExpenseFields.EXPENSE_FIELDS)


def get_dependent_expense_field_values(self):
return self.api.make_get_request(
api_url=ExpenseFields.DEPENDENT_EXPENSE_FIELDS_VALUES
)

def bulk_post_dependent_expense_field_values(self, payload):
return self.api.make_post_request(
api_url=ExpenseFields.BULK_CREATE_DEPENDENT_EXPENSE_FIELDS_VALUES,
payload=payload
)
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.31.0',
version='v0.32.0',
author='Siva Narayanan',
author_email='[email protected]',
description='Python SDK for accessing Fyle Platform APIs',
Expand Down

0 comments on commit 02e1d62

Please sign in to comment.