Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Get Quote functionality for EA region #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
167 changes: 167 additions & 0 deletions DHL/Datatype/EA/BkgDetailsType.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
<?php
/**
* Note : Code is released under the GNU LGPL
*
* Please do not change the header of this file
*
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU
* Lesser General Public License as published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* See the GNU Lesser General Public License for more details.
*/

/**
* File: BkgDetailsType.php
* Project: DHL API
*
* @author Al-Fallouji Bashar
* @version 0.1
*/

namespace DHL\Datatype\EA;
use DHL\Datatype\Base;

/**
* BkgDetailsType Request model for DHL API
*/
class BkgDetailsType extends Base
{
/**
* Is this object a subobject
* @var boolean
*/
protected $_isSubobject = true;

/**
* Parent node name of the object
* @var string
*/
protected $_xmlNodeName = 'BkgDetails';

/**
* Parameters of the datatype
* @var array
*/
protected $_params = array(
'PaymentCountryCode' => array(
'type' => '',
'required' => true,
'subobject' => false,
),
'Date' => array(
'type' => '',
'required' => true,
'subobject' => false,
),
'ReadyTime' => array(
'type' => '',
'required' => false,
'subobject' => false,
),
'ReadyTimeGMTOffset' => array(
'type' => '',
'required' => false,
'subobject' => false,
),
'DimensionUnit' => array(
'type' => '',
'required' => true,
'subobject' => false,
),
'WeightUnit' => array(
'type' => '',
'required' => true,
'subobject' => false,
),
'NumberOfPieces' => array(
'type' => '',
'required' => false,
'subobject' => false,
),
'ShipmentWeight' => array(
'type' => '',
'required' => false,
'subobject' => false,
),
'Volume' => array(
'type' => '',
'required' => false,
'subobject' => false,
),
'MaxPieceWeight' => array(
'type' => '',
'required' => false,
'subobject' => false,
),
'MaxPieceHeight' => array(
'type' => '',
'required' => false,
'subobject' => false,
),
'MaxPieceDepth' => array(
'type' => '',
'required' => false,
'subobject' => false,
),
'MaxPieceWidth' => array(
'type' => '',
'required' => false,
'subobject' => false,
),
'Pieces' => array(
'type' => 'PieceType',
'required' => false,
'subobject' => false,
'multivalues' => true,
),
'PaymentAccountNumber' => array(
'type' => '',
'required' => false,
'subobject' => false,
),
'IsDutiable' => array(
'type' => '',
'required' => false,
'subobject' => false,
),
'NetworkTypeCode' => array(
'type' => '',
'required' => false,
'subobject' => false,
),
'QtdShp' => array(
'type' => 'QtdShpType',
'required' => true,
'subobject' => true,
),
'CODAmount' => array(
'type' => '',
'required' => false,
'subobject' => false,
),
'CODCurrencyCode' => array(
'type' => '',
'required' => false,
'subobject' => false,
),
'CODAccountNumber' => array(
'type' => '',
'required' => false,
'subobject' => false,
),
'InsuredValue' => array(
'type' => '',
'required' => false,
'subobject' => false,
),
'InsuredCurrency' => array(
'type' => '',
'required' => false,
'subobject' => false,
),
);
}
61 changes: 61 additions & 0 deletions DHL/Datatype/EA/DCTDutiable.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?php
/**
* Note : Code is released under the GNU LGPL
*
* Please do not change the header of this file
*
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU
* Lesser General Public License as published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* See the GNU Lesser General Public License for more details.
*/

/**
* File: DCTDutiable.php
* Project: DHL API
*
* @author Al-Fallouji Bashar
* @version 0.1
*/

namespace DHL\Datatype\EA;
use DHL\Datatype\Base;

/**
* DCTDutiable Request model for DHL API
*/
class DCTDutiable extends Base
{
/**
* Is this object a subobject
* @var boolean
*/
protected $_isSubobject = true;

/**
* Parent node name of the object
* @var string
*/
protected $_xmlNodeName = 'Dutiable';

/**
* Parameters of the datatype
* @var array
*/
protected $_params = array(
'DeclaredCurrency' => array(
'type' => '',
'required' => false,
'subobject' => false,
),
'DeclaredValue' => array(
'type' => '',
'required' => false,
'subobject' => false,
),
);
}
76 changes: 76 additions & 0 deletions DHL/Datatype/EA/DCTFrom.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<?php
/**
* Note : Code is released under the GNU LGPL
*
* Please do not change the header of this file
*
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU
* Lesser General Public License as published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* See the GNU Lesser General Public License for more details.
*/

/**
* File: DCTFrom.php
* Project: DHL API
*
* @author Al-Fallouji Bashar
* @version 0.1
*/

namespace DHL\Datatype\EA;
use DHL\Datatype\Base;

/**
* DCTFrom Request model for DHL API
*/
class DCTFrom extends Base
{
/**
* Is this object a subobject
* @var boolean
*/
protected $_isSubobject = true;

/**
* Parent node name of the object
* @var string
*/
protected $_xmlNodeName = 'From';

/**
* Parameters of the datatype
* @var array
*/
protected $_params = array(
'CountryCode' => array(
'type' => '',
'required' => true,
'subobject' => false,
),
'Postalcode' => array(
'type' => '',
'required' => false,
'subobject' => false,
),
'City' => array(
'type' => '',
'required' => false,
'subobject' => false,
),
'Suburb' => array(
'type' => '',
'required' => false,
'subobject' => false,
),
'VatNo' => array(
'type' => '',
'required' => false,
'subobject' => false,
),
);
}
76 changes: 76 additions & 0 deletions DHL/Datatype/EA/DCTTo.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<?php
/**
* Note : Code is released under the GNU LGPL
*
* Please do not change the header of this file
*
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU
* Lesser General Public License as published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* See the GNU Lesser General Public License for more details.
*/

/**
* File: DCTTo.php
* Project: DHL API
*
* @author Al-Fallouji Bashar
* @version 0.1
*/

namespace DHL\Datatype\EA;
use DHL\Datatype\Base;

/**
* DCTTo Request model for DHL API
*/
class DCTTo extends Base
{
/**
* Is this object a subobject
* @var boolean
*/
protected $_isSubobject = true;

/**
* Parent node name of the object
* @var string
*/
protected $_xmlNodeName = 'To';

/**
* Parameters of the datatype
* @var array
*/
protected $_params = array(
'CountryCode' => array(
'type' => '',
'required' => true,
'subobject' => false,
),
'Postalcode' => array(
'type' => '',
'required' => false,
'subobject' => false,
),
'City' => array(
'type' => '',
'required' => false,
'subobject' => false,
),
'Suburb' => array(
'type' => '',
'required' => false,
'subobject' => false,
),
'VatNo' => array(
'type' => '',
'required' => false,
'subobject' => false,
),
);
}
Loading