-
Notifications
You must be signed in to change notification settings - Fork 57
Query params arguments in constructor, fixes #456 #457
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
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.
Unit tests are missing for this class in general. We should add them to this PR now we have the chance.
Now I don't know about having a builder style-setter methods or just go with destructuring object param and make the page request immutable (readonly fields).
I would probably remove the setter methods and make the fields readonly
|
Double-check unit tests and tslint. Travis is complaining about the missing {} as args is mandatory. |
they could be private as well |
rg911
left a comment
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.
Would need to do the same on the TransactionFilter
Also the PR description links to the wrong issue
|
I would take it further and change the objects with something like Examples: About |
|
|
I will make the QueryParams fields readonly and add unit tests. This would be a future improvement as we are in the middle of the rebranding |
fixes #456