-
Notifications
You must be signed in to change notification settings - Fork 17
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
Update Client.php #42
base: master
Are you sure you want to change the base?
Conversation
add more options to getShipping methods
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.
I agree with the general changes (see comments below), but you've also included undesirable changes to the package name. Could you remove those?
?int $from_postal_code =null, | ||
?int $to_postal_code =null, | ||
?string $to_country =null, |
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.
I know it would be better to sync up the naming with Sendcloud's, but consistency with existing code is more important in this case. Let's rename these to use lowerCamelCase like the other arguments!
?int $from_postal_code =null, | ||
?int $to_postal_code =null, | ||
?string $to_country =null, | ||
|
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.
Empty line:
And: To bring this fully in line with the documentation all that's needed still is the is_return
boolean argument. Let's add that while we're at it?
add more options to getShipping methods according to the Sendcloud documentation