Skip to content

Commit

Permalink
Merge pull request #53 from JeremyDunn/dgds-service
Browse files Browse the repository at this point in the history
Added DGDS Service v4
  • Loading branch information
JeremyDunn authored Nov 2, 2017
2 parents 0cd13f5 + ad5d5d9 commit cde95f3
Show file tree
Hide file tree
Showing 76 changed files with 6,144 additions and 0 deletions.
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# CHANGELOG

## 2.6 (released 2017-11-02)
- Added Dangerous Goods Data Service

|Service|Version|
|---|---|
|Address Validation|2|
|Close|2|
|Courier Dispatch|3|
|Locator|2|
|Package Movement Information|5|
|Pickup|3|
|Rate|10|
|Return Tag|1|
|Ship|12|
|Track|5|
|Upload Document|1|
|Open Ship|11|
|Validation Availability and Commitment Service|6|
|ASYNC Transaction Service|4|
|In Flight Shipment Service|1|
|DGLD Service|1|
|DGDS Service|4|

## 2.5 (released 2017-11-02)
- Added List Dangerous Goods Service

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Each web service has it's own class namespace. See the official FedEx web servic
* [ASYNC Transaction Service](src/FedEx/AsyncService)
* [In Flight Shipment Service](src/FedEx/InFlightShipmentService)
* [DGLD Service](src/FedEx/DGLDService)
* [DGDS Service](src/FedEx/DGDSService)

## Installation

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
<?php
namespace FedEx\DGDSService\ComplexType;

use FedEx\AbstractComplexType;

/**
* AddDangerousGoodsHandlingUnitReply
*
* @author Jeremy Dunn <[email protected]>
* @package PHP FedEx API wrapper
* @subpackage Dangerous Goods Data Service
*
* @property \FedEx\DGDSService\SimpleType\NotificationSeverityType|string $HighestSeverity
* @property Notification[] $Notifications
* @property TransactionDetail $TransactionDetail
* @property VersionId $Version
* @property CompletedDangerousGoodsShipmentDetail $CompletedShipmentDetail
* @property CompletedDangerousGoodsHandlingUnitGroup $CompletedHandlingUnitGroup
*/
class AddDangerousGoodsHandlingUnitReply extends AbstractComplexType
{
/**
* Name of this complex type
*
* @var string
*/
protected $name = 'AddDangerousGoodsHandlingUnitReply';

/**
* Set HighestSeverity
*
* @param \FedEx\DGDSService\SimpleType\NotificationSeverityType|string $highestSeverity
* @return $this
*/
public function setHighestSeverity($highestSeverity)
{
$this->values['HighestSeverity'] = $highestSeverity;
return $this;
}

/**
* Set Notifications
*
* @param Notification[] $notifications
* @return $this
*/
public function setNotifications(array $notifications)
{
$this->values['Notifications'] = $notifications;
return $this;
}

/**
* Set TransactionDetail
*
* @param TransactionDetail $transactionDetail
* @return $this
*/
public function setTransactionDetail(TransactionDetail $transactionDetail)
{
$this->values['TransactionDetail'] = $transactionDetail;
return $this;
}

/**
* Set Version
*
* @param VersionId $version
* @return $this
*/
public function setVersion(VersionId $version)
{
$this->values['Version'] = $version;
return $this;
}

/**
* Set CompletedShipmentDetail
*
* @param CompletedDangerousGoodsShipmentDetail $completedShipmentDetail
* @return $this
*/
public function setCompletedShipmentDetail(CompletedDangerousGoodsShipmentDetail $completedShipmentDetail)
{
$this->values['CompletedShipmentDetail'] = $completedShipmentDetail;
return $this;
}

/**
* Set CompletedHandlingUnitGroup
*
* @param CompletedDangerousGoodsHandlingUnitGroup $completedHandlingUnitGroup
* @return $this
*/
public function setCompletedHandlingUnitGroup(CompletedDangerousGoodsHandlingUnitGroup $completedHandlingUnitGroup)
{
$this->values['CompletedHandlingUnitGroup'] = $completedHandlingUnitGroup;
return $this;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
<?php
namespace FedEx\DGDSService\ComplexType;

use FedEx\AbstractComplexType;

/**
* AddDangerousGoodsHandlingUnitRequest
*
* @author Jeremy Dunn <[email protected]>
* @package PHP FedEx API wrapper
* @subpackage Dangerous Goods Data Service
*
* @property WebAuthenticationDetail $WebAuthenticationDetail
* @property ClientDetail $ClientDetail
* @property TransactionDetail $TransactionDetail
* @property VersionId $Version
* @property string $UploadId
* @property UploadedDangerousGoodsHandlingUnitGroup $HandlingUnitGroup
*/
class AddDangerousGoodsHandlingUnitRequest extends AbstractComplexType
{
/**
* Name of this complex type
*
* @var string
*/
protected $name = 'AddDangerousGoodsHandlingUnitRequest';

/**
* Descriptive data to be used in authentication of the sender's identity (and right to use FedEx web services).
*
* @param WebAuthenticationDetail $webAuthenticationDetail
* @return $this
*/
public function setWebAuthenticationDetail(WebAuthenticationDetail $webAuthenticationDetail)
{
$this->values['WebAuthenticationDetail'] = $webAuthenticationDetail;
return $this;
}

/**
* Set ClientDetail
*
* @param ClientDetail $clientDetail
* @return $this
*/
public function setClientDetail(ClientDetail $clientDetail)
{
$this->values['ClientDetail'] = $clientDetail;
return $this;
}

/**
* Set TransactionDetail
*
* @param TransactionDetail $transactionDetail
* @return $this
*/
public function setTransactionDetail(TransactionDetail $transactionDetail)
{
$this->values['TransactionDetail'] = $transactionDetail;
return $this;
}

/**
* Set Version
*
* @param VersionId $version
* @return $this
*/
public function setVersion(VersionId $version)
{
$this->values['Version'] = $version;
return $this;
}

/**
* Set UploadId
*
* @param string $uploadId
* @return $this
*/
public function setUploadId($uploadId)
{
$this->values['UploadId'] = $uploadId;
return $this;
}

/**
* Set HandlingUnitGroup
*
* @param UploadedDangerousGoodsHandlingUnitGroup $handlingUnitGroup
* @return $this
*/
public function setHandlingUnitGroup(UploadedDangerousGoodsHandlingUnitGroup $handlingUnitGroup)
{
$this->values['HandlingUnitGroup'] = $handlingUnitGroup;
return $this;
}
}
127 changes: 127 additions & 0 deletions src/FedEx/DGDSService/ComplexType/Address.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
<?php
namespace FedEx\DGDSService\ComplexType;

use FedEx\AbstractComplexType;

/**
* Descriptive data for a physical location. May be used as an actual physical address (place to which one could go), or as a container of "address parts" which should be handled as a unit (such as a city-state-ZIP combination within the US).
*
* @author Jeremy Dunn <[email protected]>
* @package PHP FedEx API wrapper
* @subpackage Dangerous Goods Data Service
*
* @property string[] $StreetLines
* @property string $City
* @property string $StateOrProvinceCode
* @property string $PostalCode
* @property string $UrbanizationCode
* @property string $CountryCode
* @property string $CountryName
* @property boolean $Residential
*/
class Address extends AbstractComplexType
{
/**
* Name of this complex type
*
* @var string
*/
protected $name = 'Address';

/**
* Combination of number, street name, etc. At least one line is required for a valid physical address; empty lines should not be included.
*
* @param string $streetLines
* @return $this
*/
public function setStreetLines($streetLines)
{
$this->values['StreetLines'] = $streetLines;
return $this;
}

/**
* Name of city, town, etc.
*
* @param string $city
* @return $this
*/
public function setCity($city)
{
$this->values['City'] = $city;
return $this;
}

/**
* Identifying abbreviation for US state, Canada province, etc. Format and presence of this field will vary, depending on country.
*
* @param string $stateOrProvinceCode
* @return $this
*/
public function setStateOrProvinceCode($stateOrProvinceCode)
{
$this->values['StateOrProvinceCode'] = $stateOrProvinceCode;
return $this;
}

/**
* Identification of a region (usually small) for mail/package delivery. Format and presence of this field will vary, depending on country.
*
* @param string $postalCode
* @return $this
*/
public function setPostalCode($postalCode)
{
$this->values['PostalCode'] = $postalCode;
return $this;
}

/**
* Relevant only to addresses in Puerto Rico.
*
* @param string $urbanizationCode
* @return $this
*/
public function setUrbanizationCode($urbanizationCode)
{
$this->values['UrbanizationCode'] = $urbanizationCode;
return $this;
}

/**
* The two-letter code used to identify a country.
*
* @param string $countryCode
* @return $this
*/
public function setCountryCode($countryCode)
{
$this->values['CountryCode'] = $countryCode;
return $this;
}

/**
* The fully spelt out name of a country.
*
* @param string $countryName
* @return $this
*/
public function setCountryName($countryName)
{
$this->values['CountryName'] = $countryName;
return $this;
}

/**
* Indicates whether this address residential (as opposed to commercial).
*
* @param boolean $residential
* @return $this
*/
public function setResidential($residential)
{
$this->values['Residential'] = $residential;
return $this;
}
}
Loading

0 comments on commit cde95f3

Please sign in to comment.