-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the
POST /api/v1/shipment/shipwithlabel
action
- Loading branch information
Julian Finkler
committed
Mar 7, 2019
1 parent
23fdadc
commit 73d7447
Showing
9 changed files
with
289 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php | ||
/** | ||
* This file is part of the Billbee API package. | ||
* | ||
* Copyright 2017 - 2019 by Billbee GmbH | ||
* | ||
* For the full copyright and license information, please read the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* Created by Julian Finkler <julian@billbee.io> | ||
*/ | ||
|
||
namespace BillbeeDe\BillbeeAPI\Model; | ||
|
||
use MintWare\DMM\DataField; | ||
|
||
class Dimensions | ||
{ | ||
/** | ||
* @var float | ||
* @DataField(name="width", type="float") | ||
*/ | ||
public $width; | ||
|
||
/** | ||
* @var float | ||
* @DataField(name="height", type="float") | ||
*/ | ||
public $height; | ||
|
||
/** | ||
* @var float | ||
* @DataField(name="length", type="float") | ||
*/ | ||
public $length; | ||
|
||
/** | ||
* @param float $width The width | ||
* @param float $height The height | ||
* @param float $length The length | ||
*/ | ||
public function __construct($width = 0.0, $height = 0.0, $length = 0.0) | ||
{ | ||
$this->width = (float)$width; | ||
$this->height = (float)$height; | ||
$this->length = (float)$length; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
<?php | ||
/** | ||
* This file is part of the Billbee API package. | ||
* | ||
* Copyright 2017 - 2019 by Billbee GmbH | ||
* | ||
* For the full copyright and license information, please read the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* Created by Julian Finkler <julian@mintware.de> | ||
*/ | ||
|
||
namespace BillbeeDe\BillbeeAPI\Model; | ||
|
||
use MintWare\DMM\DataField; | ||
|
||
class ShipmentWithLabel | ||
{ | ||
/** | ||
* The Billbee internal id of the order to ship | ||
* @var int | ||
* @DataField(name="OrderId", type="int") | ||
*/ | ||
public $orderId; | ||
|
||
/** | ||
* The id of the provider. You can query all providers with the shippingproviders endpoint | ||
* @var int | ||
* @DataField(name="ProviderId", type="int") | ||
*/ | ||
public $providerId; | ||
|
||
/** | ||
* The id of the shipping provider product to be used | ||
* @var int | ||
* @DataField(name="ProductId", type="int") | ||
*/ | ||
public $productId; | ||
|
||
/** | ||
* Optional parameter to automatically change the orderstate to sent after creating the shipment | ||
* @var bool | ||
* @DataField(name="ChangeStateToSend", type="bool") | ||
*/ | ||
public $changeStateToSend; | ||
|
||
/** | ||
* Optional the name of a connected cloudprinter to send the label to | ||
* @var string | ||
* @DataField(name="PrinterName", type="string") | ||
*/ | ||
public $printerName; | ||
|
||
/** | ||
* Optional the shipments weight in gram to override the calculated weight | ||
* @var int | ||
* @DataField(name="WeightInGram", type="int") | ||
*/ | ||
public $weightInGram; | ||
|
||
/** | ||
* Optional specify the shipdate to be transmitted to the carrier | ||
* @var \DateTime | ||
* @DataField(name="ShipDate", type="datetime") | ||
*/ | ||
public $shipDate; | ||
|
||
/** | ||
* Optional specify a reference text to be included on the label. Not all carriers support this option. | ||
* @var string | ||
* @DataField(name="ClientReference", type="string") | ||
*/ | ||
public $clientReference; | ||
|
||
/** | ||
* Option specify the dimensions of the package in cm | ||
* @var Dimensions | ||
* @DataField(name="Dimension", type="BillbeeDe\BillbeeAPI\Model\Dimensions") | ||
*/ | ||
public $dimension; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<?php | ||
/** | ||
* This file is part of the Billbee API package. | ||
* | ||
* Copyright 2017 - 2019 by Billbee GmbH | ||
* | ||
* For the full copyright and license information, please read the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* Created by Julian Finkler <julian@mintware.de> | ||
*/ | ||
|
||
namespace BillbeeDe\BillbeeAPI\Response\Model; | ||
|
||
use MintWare\DMM\DataField; | ||
|
||
class ShipmentWithLabelResult | ||
{ | ||
/** | ||
* @var int | ||
* @DataField(name="OrderId", type="int") | ||
*/ | ||
public $orderId; | ||
|
||
/** | ||
* @var string | ||
* @DataField(name="OrderReference", type="string") | ||
*/ | ||
public $orderReference; | ||
|
||
/** | ||
* @var string | ||
* @DataField(name="ShippingId", type="string") | ||
*/ | ||
public $shippingId; | ||
|
||
/** | ||
* @var string | ||
* @DataField(name="TrackingUrl", type="string") | ||
*/ | ||
public $trackingUrl; | ||
|
||
/** | ||
* @var string | ||
* @DataField(name="LabelDataPdf", type="string") | ||
*/ | ||
public $labelDataPdf; | ||
|
||
/** | ||
* @var string | ||
* @DataField(name="ExportDocsPdf", type="string") | ||
*/ | ||
public $exportDocsPdf; | ||
|
||
/** | ||
* @var string | ||
* @DataField(name="Carrier", type="string") | ||
*/ | ||
public $carrier; | ||
|
||
/** | ||
* @var string | ||
* @DataField(name="ShippingDate", type="string") | ||
*/ | ||
public $shippingDate; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
/** | ||
* This file is part of the Billbee API package. | ||
* | ||
* Copyright 2017 - 2019 by Billbee GmbH | ||
* | ||
* For the full copyright and license information, please read the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* Created by Julian Finkler <julian@billbee.io> | ||
*/ | ||
|
||
namespace BillbeeDe\BillbeeAPI\Response; | ||
|
||
use MintWare\DMM\DataField; | ||
|
||
class ShipWithLabelResponse extends BaseResponse | ||
{ | ||
/** | ||
* @var \BillbeeDe\BillbeeAPI\Response\Model\ShipmentWithLabelResult | ||
* @DataField(name="Data", type="\BillbeeDe\BillbeeAPI\Response\Model\ShipmentWithLabelResult") | ||
*/ | ||
public $data = null; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters