Skip to content

Commit 8db27a0

Browse files
authored
Merge pull request #51 from JeremyDunn/in-flight-shipment-service
Added In Flight Shipment Service
2 parents e18be06 + 82b7adc commit 8db27a0

File tree

86 files changed

+6140
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+6140
-0
lines changed

CHANGELOG.md

+21
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# CHANGELOG
22

3+
## 2.4 (released 2017-11-02)
4+
- Added In Flight Shipment Service
5+
6+
|Service|Version|
7+
|---|---|
8+
|Address Validation|2|
9+
|Close|2|
10+
|Courier Dispatch|3|
11+
|Locator|2|
12+
|Package Movement Information|5|
13+
|Pickup|3|
14+
|Rate|10|
15+
|Return Tag|1|
16+
|Ship|12|
17+
|Track|5|
18+
|Upload Document|1|
19+
|Open Ship|11|
20+
|Validation Availability and Commitment Service|6|
21+
|ASYNC Transaction Service|4|
22+
|In Flight Shipment Service|1|
23+
324
## 2.3 (released 2017-11-02)
425
- Added ASYNC Transaction Service
526

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Each web service has it's own class namespace. See the official FedEx web servic
2424
* [Open Ship Service](src/FedEx/OpenShipService)
2525
* [Validation Availability and Commitment Service](src/FedEx/ValidationAvailabilityAndCommitmentService)
2626
* [ASYNC Transaction Service](src/FedEx/AsyncService)
27+
* [In Flight Shipment Service](src/FedEx/InFlightShipmentService)
2728

2829
## Installation
2930

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
<?php
2+
namespace FedEx\InFlightShipmentService\ComplexType;
3+
4+
use FedEx\AbstractComplexType;
5+
6+
/**
7+
* 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).
8+
*
9+
* @author Jeremy Dunn <[email protected]>
10+
* @package PHP FedEx API wrapper
11+
* @subpackage In Flight Shipment Service
12+
*
13+
* @property string[] $StreetLines
14+
* @property string $City
15+
* @property string $StateOrProvinceCode
16+
* @property string $PostalCode
17+
* @property string $UrbanizationCode
18+
* @property string $CountryCode
19+
* @property string $CountryName
20+
* @property boolean $Residential
21+
22+
*/
23+
class Address extends AbstractComplexType
24+
{
25+
/**
26+
* Name of this complex type
27+
*
28+
* @var string
29+
*/
30+
protected $name = 'Address';
31+
32+
/**
33+
* Combination of number, street name, etc. At least one line is required for a valid physical address; empty lines should not be included.
34+
*
35+
* @param string $streetLines
36+
* @return $this
37+
*/
38+
public function setStreetLines($streetLines)
39+
{
40+
$this->values['StreetLines'] = $streetLines;
41+
return $this;
42+
}
43+
44+
/**
45+
* Name of city, town, etc.
46+
*
47+
* @param string $city
48+
* @return $this
49+
*/
50+
public function setCity($city)
51+
{
52+
$this->values['City'] = $city;
53+
return $this;
54+
}
55+
56+
/**
57+
* Identifying abbreviation for US state, Canada province, etc. Format and presence of this field will vary, depending on country.
58+
*
59+
* @param string $stateOrProvinceCode
60+
* @return $this
61+
*/
62+
public function setStateOrProvinceCode($stateOrProvinceCode)
63+
{
64+
$this->values['StateOrProvinceCode'] = $stateOrProvinceCode;
65+
return $this;
66+
}
67+
68+
/**
69+
* Identification of a region (usually small) for mail/package delivery. Format and presence of this field will vary, depending on country.
70+
*
71+
* @param string $postalCode
72+
* @return $this
73+
*/
74+
public function setPostalCode($postalCode)
75+
{
76+
$this->values['PostalCode'] = $postalCode;
77+
return $this;
78+
}
79+
80+
/**
81+
* Relevant only to addresses in Puerto Rico.
82+
*
83+
* @param string $urbanizationCode
84+
* @return $this
85+
*/
86+
public function setUrbanizationCode($urbanizationCode)
87+
{
88+
$this->values['UrbanizationCode'] = $urbanizationCode;
89+
return $this;
90+
}
91+
92+
/**
93+
* The two-letter code used to identify a country.
94+
*
95+
* @param string $countryCode
96+
* @return $this
97+
*/
98+
public function setCountryCode($countryCode)
99+
{
100+
$this->values['CountryCode'] = $countryCode;
101+
return $this;
102+
}
103+
104+
/**
105+
* The fully spelt out name of a country.
106+
*
107+
* @param string $countryName
108+
* @return $this
109+
*/
110+
public function setCountryName($countryName)
111+
{
112+
$this->values['CountryName'] = $countryName;
113+
return $this;
114+
}
115+
116+
/**
117+
* Indicates whether this address residential (as opposed to commercial).
118+
*
119+
* @param boolean $residential
120+
* @return $this
121+
*/
122+
public function setResidential($residential)
123+
{
124+
$this->values['Residential'] = $residential;
125+
return $this;
126+
}
127+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?php
2+
namespace FedEx\InFlightShipmentService\ComplexType;
3+
4+
use FedEx\AbstractComplexType;
5+
6+
/**
7+
* Specifies the different appointment times on a specific date.
8+
*
9+
* @author Jeremy Dunn <[email protected]>
10+
* @package PHP FedEx API wrapper
11+
* @subpackage In Flight Shipment Service
12+
*
13+
* @property string $Date
14+
* @property AppointmentTimeDetail[] $WindowDetails
15+
16+
*/
17+
class AppointmentDetail extends AbstractComplexType
18+
{
19+
/**
20+
* Name of this complex type
21+
*
22+
* @var string
23+
*/
24+
protected $name = 'AppointmentDetail';
25+
26+
/**
27+
* Set Date
28+
*
29+
* @param string $date
30+
* @return $this
31+
*/
32+
public function setDate($date)
33+
{
34+
$this->values['Date'] = $date;
35+
return $this;
36+
}
37+
38+
/**
39+
* Different appointment time windows on the date specified.
40+
*
41+
* @param AppointmentTimeDetail[] $windowDetails
42+
* @return $this
43+
*/
44+
public function setWindowDetails(array $windowDetails)
45+
{
46+
$this->values['WindowDetails'] = $windowDetails;
47+
return $this;
48+
}
49+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<?php
2+
namespace FedEx\InFlightShipmentService\ComplexType;
3+
4+
use FedEx\AbstractComplexType;
5+
6+
/**
7+
* Specifies the details about the appointment time window.
8+
*
9+
* @author Jeremy Dunn <[email protected]>
10+
* @package PHP FedEx API wrapper
11+
* @subpackage In Flight Shipment Service
12+
*
13+
* @property \FedEx\InFlightShipmentService\SimpleType\AppointmentWindowType|string $Type
14+
* @property LocalTimeRange $Window
15+
* @property string $Description
16+
17+
*/
18+
class AppointmentTimeDetail extends AbstractComplexType
19+
{
20+
/**
21+
* Name of this complex type
22+
*
23+
* @var string
24+
*/
25+
protected $name = 'AppointmentTimeDetail';
26+
27+
/**
28+
* The description that FedEx Ground uses for the appointment window being specified.
29+
*
30+
* @param \FedEx\InFlightShipmentService\SimpleType\AppointmentWindowType|string $type
31+
* @return $this
32+
*/
33+
public function setType($type)
34+
{
35+
$this->values['Type'] = $type;
36+
return $this;
37+
}
38+
39+
/**
40+
* Specifies the window of time for an appointment.
41+
*
42+
* @param LocalTimeRange $window
43+
* @return $this
44+
*/
45+
public function setWindow(LocalTimeRange $window)
46+
{
47+
$this->values['Window'] = $window;
48+
return $this;
49+
}
50+
51+
/**
52+
* Set Description
53+
*
54+
* @param string $description
55+
* @return $this
56+
*/
57+
public function setDescription($description)
58+
{
59+
$this->values['Description'] = $description;
60+
return $this;
61+
}
62+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?php
2+
namespace FedEx\InFlightShipmentService\ComplexType;
3+
4+
use FedEx\AbstractComplexType;
5+
6+
/**
7+
* AssociatedAccount
8+
*
9+
* @author Jeremy Dunn <[email protected]>
10+
* @package PHP FedEx API wrapper
11+
* @subpackage In Flight Shipment Service
12+
*
13+
* @property \FedEx\InFlightShipmentService\SimpleType\AssociatedAccountNumberType|string $Type
14+
* @property string $AccountNumber
15+
16+
*/
17+
class AssociatedAccount extends AbstractComplexType
18+
{
19+
/**
20+
* Name of this complex type
21+
*
22+
* @var string
23+
*/
24+
protected $name = 'AssociatedAccount';
25+
26+
/**
27+
* Set Type
28+
*
29+
* @param \FedEx\InFlightShipmentService\SimpleType\AssociatedAccountNumberType|string $type
30+
* @return $this
31+
*/
32+
public function setType($type)
33+
{
34+
$this->values['Type'] = $type;
35+
return $this;
36+
}
37+
38+
/**
39+
* Set AccountNumber
40+
*
41+
* @param string $accountNumber
42+
* @return $this
43+
*/
44+
public function setAccountNumber($accountNumber)
45+
{
46+
$this->values['AccountNumber'] = $accountNumber;
47+
return $this;
48+
}
49+
}

0 commit comments

Comments
 (0)