Download the PHP package mothership-ec/cog-mothership-returns without Composer
On this page you can find all versions of the php package mothership-ec/cog-mothership-returns. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mothership-ec/cog-mothership-returns
More information about mothership-ec/cog-mothership-returns
Files in mothership-ec/cog-mothership-returns
Package cog-mothership-returns
Short Description Cog module for order returns in Mothership
License GPL-3.0+
Homepage http://mothership.ec
Informations about the package cog-mothership-returns
Mothership Returns
description
Installation
Add "message/cog-mothership-returns": "1.1.*"
to your composer.json
.
Assembling a new return
The assembler helps you build a new return ready for passing to the create decorator.
This service is available via:
If you have an existing return you can pass this into the assembler with:
And retrieve the assembled return once you are finished building it:
If your return has no associated order, i.e. is standalone, you should set the currency. This defaults to 'GBP'
:
You can set the return item from either a instance of Commerce\Order\Entity\Item\Item
or Commerce\Product\Unit\Unit
.
Notes
Namespaces and classes are called OrderReturn
due to PHP having return
as a reserved word.
All versions of cog-mothership-returns with dependencies
mothership-ec/cog Version ~4.10
mothership-ec/cog-mothership-commerce Version ~5.0
mothership-ec/cog-mothership-ecommerce Version ~3.7
mothership-ec/cog-mothership-reports Version ~2.1