Skip to content

Commit

Permalink
add IOSS DAP/DDP option
Browse files Browse the repository at this point in the history
  • Loading branch information
booni3 committed Aug 18, 2021
1 parent 985d310 commit 63a1536
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/DTO/ShipmentCreator.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,27 @@ public function setTermsDDP(string $ddpPayerAccountNumber)
$this->setDutyPayerAccountNumber($ddpPayerAccountNumber);
}

public function setTermsIOSS(string $importerTaxId, string $countryCode)
/**
* The IOSS tax ID can be added to orders to tell DHL that tax has already been paid by the customer.
*
* - Setting to DDP will ensure that any extra charges (storage etc.) are charged to the account but
* the DDP surcharge (if applicable) will remain in place.
*
* - DAP should be acceptable in most cases for the customer to receive the shipment without any furhter
* intervention or charges.
*
* @param string $importerTaxId
* @param string $countryCode
* @param string $incoterm
* @throws ShipmentException
*/
public function setTermsIOSS(string $importerTaxId, string $countryCode, string $incoterm = 'DAP')
{
if(! $this->shipper){
throw ShipmentException::shipperNotSet();
}

$this->setIncoterm('DAP');
$this->setIncoterm($incoterm);
$this->shipper->addIOSS($importerTaxId, $countryCode);
}

Expand Down

0 comments on commit 63a1536

Please sign in to comment.