-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
103 additions
and
1 deletion.
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
19 changes: 19 additions & 0 deletions
19
src/DataTransferObject/Webhook/WebhookDataPickOrderLine.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,19 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Setono\PeakWMS\DataTransferObject\Webhook; | ||
|
||
final class WebhookDataPickOrderLine | ||
{ | ||
public function __construct( | ||
/** The host id of the sales order line */ | ||
public string $orderLineId, | ||
/** | ||
* The quantity that was picked/packed on the line. If PickOrderPacked webhook then this is the packed quantity. | ||
* If PickOrderPicked webhook then this is the picked quantity | ||
*/ | ||
public int $quantity, | ||
) { | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/DataTransferObject/Webhook/WebhookDataPickOrderPacked.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,21 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Setono\PeakWMS\DataTransferObject\Webhook; | ||
|
||
final class WebhookDataPickOrderPacked | ||
{ | ||
public function __construct( | ||
/** The host id of the sales order */ | ||
public string $orderId, | ||
/** The PeakWMS internal id of the pick order */ | ||
public int $pickOrderId, | ||
public bool $paymentCaptured, | ||
/** @var list<WebhookDataPickOrderLine> $orderLines */ | ||
public array $orderLines, | ||
public ?string $trackingNumber = null, | ||
public ?string $trackingUrl = null, | ||
) { | ||
} | ||
} |