OpenXE/classes/Carrier/Go/Data/CreateOrderRequest.php

31 lines
801 B
PHP
Raw Normal View History

2025-01-03 21:07:07 +01:00
<?php
// SPDX-FileCopyrightText: 2025 Andreas Palm
//
// SPDX-License-Identifier: AGPL-3.0-only
namespace Xentral\Carrier\Go\Data;
use Xentral\Carrier\SendCloud\Data\Label;
class CreateOrderRequest {
public string $responsibleStation;
public string $customerId;
public Shipment $shipment;
public Address $consignorAddress;
public NeutralAddress $neutralAddress;
public Address $consigneeAddress;
public LabelType $label;
/***
* @var Package[]
*/
public array $packages;
public function __construct() {
$this->shipment = new Shipment();
$this->consignorAddress = new Address();
$this->consigneeAddress = new Address();
$this->neutralAddress = new NeutralAddress();
$this->packages = [new Package()];
}
}