-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MOL-1225: add batch shipments to administration
- Loading branch information
1 parent
bb26750
commit 3171cfe
Showing
67 changed files
with
2,937 additions
and
1,777 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
7 changes: 7 additions & 0 deletions
7
src/Components/ShipmentManager/Exceptions/NoDeliveriesFoundException.php
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,7 @@ | ||
<?php | ||
|
||
namespace Kiener\MolliePayments\Components\ShipmentManager\Exceptions; | ||
|
||
class NoDeliveriesFoundException extends \Exception | ||
{ | ||
} |
7 changes: 7 additions & 0 deletions
7
src/Components/ShipmentManager/Exceptions/NoLineItemsProvidedException.php
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,7 @@ | ||
<?php | ||
|
||
namespace Kiener\MolliePayments\Components\ShipmentManager\Exceptions; | ||
|
||
class NoLineItemsProvidedException extends \Exception | ||
{ | ||
} |
43 changes: 43 additions & 0 deletions
43
src/Components/ShipmentManager/Models/ShipmentLineItem.php
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,43 @@ | ||
<?php | ||
|
||
namespace Kiener\MolliePayments\Components\ShipmentManager\Models; | ||
|
||
class ShipmentLineItem | ||
{ | ||
|
||
/** | ||
* @var string | ||
*/ | ||
private $shopwareId; | ||
|
||
/** | ||
* @var int | ||
*/ | ||
private $quantity; | ||
|
||
/** | ||
* @param string $shopwareId | ||
* @param int $quantity | ||
*/ | ||
public function __construct(string $shopwareId, int $quantity) | ||
{ | ||
$this->shopwareId = $shopwareId; | ||
$this->quantity = $quantity; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getShopwareId(): string | ||
{ | ||
return $this->shopwareId; | ||
} | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getQuantity(): int | ||
{ | ||
return $this->quantity; | ||
} | ||
} |
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,58 @@ | ||
<?php | ||
|
||
namespace Kiener\MolliePayments\Components\ShipmentManager\Models; | ||
|
||
class TrackingData | ||
{ | ||
|
||
/** | ||
* @var string | ||
*/ | ||
private $carrier; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
private $code; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
private $trackingUrl; | ||
|
||
/** | ||
* @param string $carrier | ||
* @param string $code | ||
* @param string $trackingUrl | ||
*/ | ||
public function __construct(string $carrier, string $code, string $trackingUrl) | ||
{ | ||
$this->carrier = $carrier; | ||
$this->code = $code; | ||
$this->trackingUrl = $trackingUrl; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getCarrier(): string | ||
{ | ||
return $this->carrier; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getCode(): string | ||
{ | ||
return $this->code; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getTrackingUrl(): string | ||
{ | ||
return $this->trackingUrl; | ||
} | ||
} |
Oops, something went wrong.