-
-
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.
feat(Tickets): added support for OrderUnits with Tickets
- Loading branch information
Showing
4 changed files
with
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Phodoval\KauflandMarketplace\Dto; | ||
|
||
use DateTime; | ||
|
||
class Ticket { | ||
public function __construct( | ||
public string $id_ticket, | ||
/** | ||
* @var int[] | ||
*/ | ||
public array $ids_order_units, | ||
public int $id_buyer, | ||
public DateTime $ts_created_iso, | ||
public DateTime $ts_updated_iso, | ||
public TicketStatus $status, | ||
public TicketReason $open_reason, | ||
public ?string $topic, | ||
public string $callback_phone, | ||
public bool $is_seller_responsible, | ||
) {} | ||
} |
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,12 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Phodoval\KauflandMarketplace\Dto; | ||
|
||
enum TicketReason: string { | ||
case ProductNotAsDescribed = 'product_not_as_described'; | ||
case ProductDefect = 'product_defect'; | ||
case ProductNotDelivered = 'product_not_delivered'; | ||
case ProductReturn = 'product_return'; | ||
case ContactOther = 'contact_other'; | ||
} |
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,12 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Phodoval\KauflandMarketplace\Dto; | ||
|
||
enum TicketStatus: string { | ||
case Opened = 'opened'; | ||
case BuyerClosed = 'buyer_closed'; | ||
case SellerClosed = 'seller_closed'; | ||
case BothClosed = 'both_closed'; | ||
case CustomerServiceClosedFinal = 'customer_service_closed_final'; | ||
} |