-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from JeremyDunn/dgds-service
Added DGDS Service v4
- Loading branch information
Showing
76 changed files
with
6,144 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
101 changes: 101 additions & 0 deletions
101
src/FedEx/DGDSService/ComplexType/AddDangerousGoodsHandlingUnitReply.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
101 changes: 101 additions & 0 deletions
101
src/FedEx/DGDSService/ComplexType/AddDangerousGoodsHandlingUnitRequest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
Oops, something went wrong.