Sendcloud bugfixes and improvements

This commit is contained in:
Andreas Palm
2022-10-29 21:38:28 +02:00
parent 1ddee4350c
commit 6a2a16c0a6
7 changed files with 383 additions and 214 deletions
@@ -29,7 +29,7 @@ class ParcelCreation extends ParcelBase
'customs_invoice_nr' => $this->CustomsInvoiceNr,
'customs_shipment_type' => $this->CustomsShipmentType,
'external_reference' => $this->ExternalReference,
'total_insured_value' => $this->TotalInsuredValue,
'total_insured_value' => $this->TotalInsuredValue ?? 0,
'parcel_items' => array_map(fn(ParcelItem $item)=>$item->toApiRequest(), $this->ParcelItems),
'is_return' => $this->IsReturn,
'length' => $this->Length,