From 02e1d62de8533e5cf969f2ab55bbf1e3983262fb Mon Sep 17 00:00:00 2001 From: Nilesh Pant <58652823+NileshPant1999@users.noreply.github.com> Date: Wed, 1 Mar 2023 22:45:18 +0530 Subject: [PATCH] Added Support For Dependent Fields Values (#74) --- fyle/platform/apis/v1beta/admin/expense_fields.py | 14 ++++++++++++++ setup.py | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) 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',