diff --git a/fyle/platform/apis/v1beta/admin/expense_fields.py b/fyle/platform/apis/v1beta/admin/expense_fields.py index 534fb3f..f45dc40 100644 --- a/fyle/platform/apis/v1beta/admin/expense_fields.py +++ b/fyle/platform/apis/v1beta/admin/expense_fields.py @@ -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 + ) diff --git a/setup.py b/setup.py index 2dc180d..1677a3f 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name='fyle', - version='v0.31.0', + version='v0.32.0', author='Siva Narayanan', author_email='siva@fyle.in', description='Python SDK for accessing Fyle Platform APIs',