Skip to content

Commit

Permalink
Create order shipment
Browse files Browse the repository at this point in the history
  • Loading branch information
kg-bot committed Aug 19, 2019
1 parent 58f1301 commit 91cbbdd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Models/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,14 @@ public function reopen()
->getContents();
} );
}

public function createShipment()
{
return $this->request->handleWithExceptions(function () {

return $this->request->client->post("{$this->entity}/{$this->{$this->primaryKey}}/create-shipment")
->getBody()
->getContents();
});
}
}

0 comments on commit 91cbbdd

Please sign in to comment.