Skip to content

Commit

Permalink
Adds get_expense_debit_methods method (#141)
Browse files Browse the repository at this point in the history
* Adds get_expense_debit_methods method

* update changelog and setup.py
  • Loading branch information
vjurih authored Sep 25, 2023
1 parent c150cb9 commit 38b0e1e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [4.29.0] - 2023-09-20

## Changed

- Added call for expense debit methods

## [4.28.0] - 2023-03-17

## Changed
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='VacasaConnect',
version='4.28.0',
version='4.29.0',
description='A Python 3.6+ SDK for the connect.vacasa.com API.',
packages=['vacasa.connect'],
url='https://github.com/Vacasa/python-vacasa-connect-sdk',
Expand Down
12 changes: 12 additions & 0 deletions vacasa/connect/connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -1609,6 +1609,18 @@ def get_contract_amendment_by_notices(self):

return self._iterate_pages(url, headers, params)

def get_expense_debit_methods(self):
"""
Yields:
Iterator of expense debit methods, each one is a dict
"""

params = {}
url = f"{self.endpoint}/v1/expense-debit-methods"
headers = self._headers()

return self._iterate_pages(url, headers, params)

def get_contacts(self,
params: dict = None):
"""
Expand Down

0 comments on commit 38b0e1e

Please sign in to comment.