Commit graph

5 commits

Author SHA1 Message Date
b238e6655a Re-organise the src and tests directories 2020-06-11 20:21:51 +01:00
ae766763b2 Allow for easily sending multiple order items
This allows for the sending of multiple items in a single order, by
adding a new `OrderItem` class and moving all of the order item specific
fields from the `Order` to an individual item.

These can then be assigned to an order using the `withOrderItems()`
method as an array of order items.

Fixes #19
2020-06-08 19:50:13 +01:00
259946d961 Fix Psalm issues 2020-06-05 21:58:35 +01:00
2ba89e1c6a Make the Client parameter optional for requests
Make the Client parameter optional when creating auth token, customer or
order requests, and create a new Client instance within the abstract
request if one isn't passed in.
2020-06-05 21:04:17 +01:00
532dfd43a1 Add order and order request classes
References #3
2020-06-05 00:04:49 +01:00