phpclassic / php-shopify

PHP SDK for Shopify API
Apache License 2.0
568 stars 211 forks source link

Accessing AssignedFulfillmentOrder #294

Closed Spotnyk closed 1 year ago

Spotnyk commented 1 year ago

I'm dreading posting this because I'm sure the answer is simple and obvious. :)

I am unsure how to access AssignedFulfillmentOrder. I have looked extensively (code, issues, etc) to find the answer but have not succeeded.

I (incorrectly) assumed, based on the endpoint path it would be $shopify->AssignedFulfillmentOrder()->get().

I then tried (just to be sure): $shopify->Order()->AssignedFulfillmentOrder()->get() $shopify->FulfillmentOrder()->AssignedFulfillmentOrder()->get() $shopify->Fulfillment()->AssignedFulfillmentOrder()->get() ..all which failed.

I found the pull request #278, and while the AssignedFulfillmentOrder docs are linked in that PR, there does not seem to be anything in it specifically to support it.

What am I missing? Thank you in advance.

PS: I do have the proper scopes.

Spotnyk commented 1 year ago

I went ahead and made the changes (primarily to check my own sanity that I wasn't missing it) then created a PR (#295).

Hopefully it is acceptable (literally 😉).

tareqtms commented 1 year ago

Solved by #278

Spotnyk commented 1 year ago

Solved by #278

Is it? I've looked and looked. Done searches through the entire codebase. If there is a way to access the AssignedFulfillmentOrder resource, I have not been able to find it.

Spotnyk commented 1 year ago

I see you merged it.

Thank you sir!