Skip to content

Commit e6c683f

Browse files
author
Jacob Barber
committed
Updated SOAP classes
1 parent 6f5947a commit e6c683f

File tree

529 files changed

+28677
-2602
lines changed

Some content is hidden

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

529 files changed

+28677
-2602
lines changed

composer.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
],
1515
"require": {
1616
"php": ">=5.3.0",
17-
"symfony/console": "2.4.*"
17+
"symfony/console": "2.4.*",
18+
"laravel/framework": "4.1.*"
19+
1820
},
1921
"autoload": {
2022
"psr-0": {"FedEx": "src/"}

src/FedEx/AddressValidationService/ComplexType/Address.php

+77-7
Original file line numberDiff line numberDiff line change
@@ -25,86 +25,156 @@ class Address
2525
* Combination of number, street name, etc. At least one line is required for a valid physical address; empty lines should not be included.
2626
*
2727
* @param string[] $streetLines
28-
* return Address
28+
* @return Address
2929
*/
3030
public function setStreetLines(array $streetLines)
3131
{
3232
$this->StreetLines = $streetLines;
3333
return $this;
3434
}
3535

36+
/**
37+
* Returns Combination of number, street name, etc. At least one line is required for a valid physical address; empty lines should not be included.
38+
*
39+
* @return string[]
40+
*/
41+
public function getStreetLines()
42+
{
43+
return $this->StreetLines;
44+
}
45+
3646
/**
3747
* Name of city, town, etc.
3848
*
3949
* @param string $city
40-
* return Address
50+
* @return Address
4151
*/
4252
public function setCity($city)
4353
{
4454
$this->City = $city;
4555
return $this;
4656
}
4757

58+
/**
59+
* Returns Name of city, town, etc.
60+
*
61+
* @return string
62+
*/
63+
public function getCity()
64+
{
65+
return $this->City;
66+
}
67+
4868
/**
4969
* Identifying abbreviation for US state, Canada province, etc. Format and presence of this field will vary, depending on country.
5070
*
5171
* @param string $stateOrProvinceCode
52-
* return Address
72+
* @return Address
5373
*/
5474
public function setStateOrProvinceCode($stateOrProvinceCode)
5575
{
5676
$this->StateOrProvinceCode = $stateOrProvinceCode;
5777
return $this;
5878
}
5979

80+
/**
81+
* Returns Identifying abbreviation for US state, Canada province, etc. Format and presence of this field will vary, depending on country.
82+
*
83+
* @return string
84+
*/
85+
public function getStateOrProvinceCode()
86+
{
87+
return $this->StateOrProvinceCode;
88+
}
89+
6090
/**
6191
* Identification of a region (usually small) for mail/package delivery. Format and presence of this field will vary, depending on country. This element is required if both the City and StateOrProvinceCode are not present.
6292
*
6393
* @param string $postalCode
64-
* return Address
94+
* @return Address
6595
*/
6696
public function setPostalCode($postalCode)
6797
{
6898
$this->PostalCode = $postalCode;
6999
return $this;
70100
}
71101

102+
/**
103+
* Returns Identification of a region (usually small) for mail/package delivery. Format and presence of this field will vary, depending on country. This element is required if both the City and StateOrProvinceCode are not present.
104+
*
105+
* @return string
106+
*/
107+
public function getPostalCode()
108+
{
109+
return $this->PostalCode;
110+
}
111+
72112
/**
73113
* Relevant only to addresses in Puerto Rico. In Puerto Rico, multiple addresses within the same ZIP code can have the same house number and street name. When this is the case, the urbanization code is needed to distinguish them.
74114
*
75115
* @param string $urbanizationCode
76-
* return Address
116+
* @return Address
77117
*/
78118
public function setUrbanizationCode($urbanizationCode)
79119
{
80120
$this->UrbanizationCode = $urbanizationCode;
81121
return $this;
82122
}
83123

124+
/**
125+
* Returns Relevant only to addresses in Puerto Rico. In Puerto Rico, multiple addresses within the same ZIP code can have the same house number and street name. When this is the case, the urbanization code is needed to distinguish them.
126+
*
127+
* @return string
128+
*/
129+
public function getUrbanizationCode()
130+
{
131+
return $this->UrbanizationCode;
132+
}
133+
84134
/**
85135
* Identification of a country.
86136
*
87137
* @param string $countryCode
88-
* return Address
138+
* @return Address
89139
*/
90140
public function setCountryCode($countryCode)
91141
{
92142
$this->CountryCode = $countryCode;
93143
return $this;
94144
}
95145

146+
/**
147+
* Returns Identification of a country.
148+
*
149+
* @return string
150+
*/
151+
public function getCountryCode()
152+
{
153+
return $this->CountryCode;
154+
}
155+
96156
/**
97157
* Indicates whether this address is residential (as opposed to commercial).
98158
*
99159
* @param boolean $residential
100-
* return Address
160+
* @return Address
101161
*/
102162
public function setResidential($residential)
103163
{
104164
$this->Residential = $residential;
105165
return $this;
106166
}
107167

168+
/**
169+
* Returns Indicates whether this address is residential (as opposed to commercial).
170+
*
171+
* @return boolean
172+
*/
173+
public function getResidential()
174+
{
175+
return $this->Residential;
176+
}
177+
108178

109179

110180
}

src/FedEx/AddressValidationService/ComplexType/AddressToValidate.php

+33-3
Original file line numberDiff line numberDiff line change
@@ -25,38 +25,68 @@ class AddressToValidate
2525
* Set AddressId
2626
*
2727
* @param string $addressId
28-
* return AddressToValidate
28+
* @return AddressToValidate
2929
*/
3030
public function setAddressId($addressId)
3131
{
3232
$this->AddressId = $addressId;
3333
return $this;
3434
}
3535

36+
/**
37+
* Returns Set AddressId
38+
*
39+
* @return string
40+
*/
41+
public function getAddressId()
42+
{
43+
return $this->AddressId;
44+
}
45+
3646
/**
3747
* Set CompanyName
3848
*
3949
* @param string $companyName
40-
* return AddressToValidate
50+
* @return AddressToValidate
4151
*/
4252
public function setCompanyName($companyName)
4353
{
4454
$this->CompanyName = $companyName;
4555
return $this;
4656
}
4757

58+
/**
59+
* Returns Set CompanyName
60+
*
61+
* @return string
62+
*/
63+
public function getCompanyName()
64+
{
65+
return $this->CompanyName;
66+
}
67+
4868
/**
4969
* Set Address
5070
*
5171
* @param Address $address
52-
* return AddressToValidate
72+
* @return AddressToValidate
5373
*/
5474
public function setAddress(Address $address)
5575
{
5676
$this->Address = $address;
5777
return $this;
5878
}
5979

80+
/**
81+
* Returns Set Address
82+
*
83+
* @return Address
84+
*/
85+
public function getAddress()
86+
{
87+
return $this->Address;
88+
}
89+
6090

6191

6292
}

0 commit comments

Comments
 (0)