adding in hooks and model for Purchases#21
Conversation
|
Use Case: This stemmed from the need to retrieve So I patched in a Purchases wrapper in order to get If this could get pulled in so it can be updated and distro'd via Composer, that would be super awesome! Let me know if any changes are needed. |
|
You can always use the generic endpoint and pass in an objectID in order to retrieve models we don't have built out yet. This way you don't have to patch in your own code, or wait for us to implement it. We will look into getting this PR implemented, and what it will take to add Thanks! |
|
Hey @00firestar00, That's very useful! I'll test around with using the generic endpoint :) Also, that would be fantastic if Much appreciated |
|
Purchases don't contain any shipping information. That information will be on either the transaction, or the open order. |
|
Gotcha, worth a try haha. ~ "Give a mouse a cookie" |
Adding in base wrappers for Purchases, which according to the API (https://api.ontraport.com/live/#!/Purchases/getPurchases) only has
GETendpoints available.I cloned most of this from the Transaction wrappers.