-
Notifications
You must be signed in to change notification settings - Fork 58
Services1 #274
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
Services1 #274
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, left non-blocking feedback
self._client = client | ||
self._model_class = Batch.__name__ | ||
|
||
def create(self, **params) -> List[Any]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def create(self, **params) -> List[Any]: | |
def create(self, **params) -> Batch: |
"""Create a Batch.""" | ||
return self._create_resource(self._model_class, **params) | ||
|
||
def all(self, **params) -> List[Any]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def all(self, **params) -> List[Any]: | |
def all(self, **params) -> List[Batch]: |
"""Update a CarrierAccount.""" | ||
return self._update_resource(self._model_class, id, **params) | ||
|
||
def delete(self, id): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def delete(self, id): | |
def delete(self, id) -> None: |
@jchen293 thanks Jack! I'll make sure to do a good pass over everything once done to fix type hints |
Description
Adds the following services and models:
Updates various base service functions to handle new flows or differing names.
Testing
Updated tests
Pull Request Type
Please select the option(s) that are relevant to this PR.