Skip to content
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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Update Client.php #42

wants to merge 5 commits into from

Conversation

akali22
Copy link

@akali22 akali22 commented Dec 14, 2024

add more options to getShipping methods according to the Sendcloud documentation

Copy link
Member

@villermen villermen left a 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?

Comment on lines +89 to +91
?int $from_postal_code =null,
?int $to_postal_code =null,
?string $to_country =null,
Copy link
Member

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,

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Empty line:

Suggested change

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants