Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

Commit 6a3b8c7

Browse files
author
Stefan Ashwell
committed
Merge branch 'feature/update-wsdls'
2 parents 1ca871c + 7489362 commit 6a3b8c7

25 files changed

+5174
-5199
lines changed

examples/rate-request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
//version
2626
$rateRequest->Version->ServiceId = 'crs';
27-
$rateRequest->Version->Major = 24;
27+
$rateRequest->Version->Major = 28;
2828
$rateRequest->Version->Minor = 0;
2929
$rateRequest->Version->Intermediate = 0;
3030

src/FedEx/RateService/ComplexType/CommitDetail.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @subpackage Rate Service
1212
*
1313
* @property string $CommodityName
14-
* @property \FedEx\RateService\SimpleType\ServiceType|string $ServiceType
14+
* @property string $ServiceType
1515
* @property ServiceDescription $ServiceDescription
1616
* @property \FedEx\RateService\SimpleType\ServiceOptionType|string[] $AppliedOptions
1717
* @property ServiceSubOptionDetail $AppliedSubOptions
@@ -61,9 +61,9 @@ public function setCommodityName($commodityName)
6161
}
6262

6363
/**
64-
* Deprecated: This field will be removed in a future DOM release. New code should use serviceDescription.serviceType instead.
64+
* Set ServiceType
6565
*
66-
* @param \FedEx\RateService\SimpleType\ServiceType|string $serviceType
66+
* @param string $serviceType
6767
* @return $this
6868
*/
6969
public function setServiceType($serviceType)

src/FedEx/RateService/ComplexType/Commodity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public function setUnitPrice(Money $unitPrice)
172172
}
173173

174174
/**
175-
* Set CustomsValue
175+
* The value of the commodity for customs purposes. The field should be the unit price multiplied by the quantity.
176176
*
177177
* @param Money $customsValue
178178
* @return $this

src/FedEx/RateService/ComplexType/ContentRecord.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use FedEx\AbstractComplexType;
55

66
/**
7-
* ContentRecord
7+
* Details the contents of the package.
88
*
99
* @author Jeremy Dunn <jeremy@jsdunn.info>
1010
* @package PHP FedEx API wrapper

src/FedEx/RateService/ComplexType/CustomsClearanceDetail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public function setDocumentContent($documentContent)
121121
}
122122

123123
/**
124-
* Set CustomsValue
124+
* This represents the total commodity value of the shipment plus the charges required by the destination country.
125125
*
126126
* @param Money $customsValue
127127
* @return $this

src/FedEx/RateService/ComplexType/EdtCommodityTax.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
*
1313
* @property string $HarmonizedCode
1414
* @property EdtTaxDetail[] $Taxes
15+
* @property Money $Total
1516
1617
*/
1718
class EdtCommodityTax extends AbstractComplexType
@@ -46,4 +47,16 @@ public function setTaxes(array $taxes)
4647
$this->values['Taxes'] = $taxes;
4748
return $this;
4849
}
50+
51+
/**
52+
* Set Total
53+
*
54+
* @param Money $total
55+
* @return $this
56+
*/
57+
public function setTotal(Money $total)
58+
{
59+
$this->values['Total'] = $total;
60+
return $this;
61+
}
4962
}

src/FedEx/RateService/ComplexType/FreightServiceCenterDetail.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* @property string $InterlineCarrierCode
1414
* @property string $InterlineCarrierName
1515
* @property int $AdditionalDays
16-
* @property \FedEx\RateService\SimpleType\ServiceType|string $LocalService
16+
* @property string $LocalService
1717
* @property Distance $LocalDistance
1818
* @property string $LocalDuration
1919
* @property \FedEx\RateService\SimpleType\FreightServiceSchedulingType|string $LocalServiceScheduling
@@ -69,9 +69,9 @@ public function setAdditionalDays($additionalDays)
6969
}
7070

7171
/**
72-
* Service branding which may be used for local pickup or delivery, distinct from service used for line-haul of customer's shipment.
72+
* Set LocalService
7373
*
74-
* @param \FedEx\RateService\SimpleType\ServiceType|string $localService
74+
* @param string $localService
7575
* @return $this
7676
*/
7777
public function setLocalService($localService)

src/FedEx/RateService/ComplexType/FreightSpecialServicePayment.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* @package PHP FedEx API wrapper
1111
* @subpackage Rate Service
1212
*
13-
* @property \FedEx\RateService\SimpleType\ShipmentSpecialServiceType|string $SpecialService
13+
* @property string $SpecialService
1414
* @property \FedEx\RateService\SimpleType\FreightShipmentRoleType|string $PaymentType
1515
1616
*/
@@ -26,7 +26,7 @@ class FreightSpecialServicePayment extends AbstractComplexType
2626
/**
2727
* Identifies the special service.
2828
*
29-
* @param \FedEx\RateService\SimpleType\ShipmentSpecialServiceType|string $specialService
29+
* @param string $specialService
3030
* @return $this
3131
*/
3232
public function setSpecialService($specialService)

src/FedEx/RateService/ComplexType/PackageSpecialServicesRequested.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* @package PHP FedEx API wrapper
1111
* @subpackage Rate Service
1212
*
13-
* @property \FedEx\RateService\SimpleType\PackageSpecialServiceType|string[] $SpecialServiceTypes
13+
* @property string[] $SpecialServiceTypes
1414
* @property CodDetail $CodDetail
1515
* @property DangerousGoodsDetail $DangerousGoodsDetail
1616
* @property BatteryClassificationDetail[] $BatteryDetails
@@ -30,12 +30,12 @@ class PackageSpecialServicesRequested extends AbstractComplexType
3030
protected $name = 'PackageSpecialServicesRequested';
3131

3232
/**
33-
* The types of all special services requested for the enclosing shipment or package.
33+
* Indicates the package special service types that are requested on this shipment. For a list of the valid package special service types, please consult your integration documentation or get the list of the available special services from the getAllSpecialServices method of the Validation Availability and Commitment service.
3434
*
35-
* @param \FedEx\RateService\SimpleType\PackageSpecialServiceType[]|string[] $specialServiceTypes
35+
* @param string $specialServiceTypes
3636
* @return $this
3737
*/
38-
public function setSpecialServiceTypes(array $specialServiceTypes)
38+
public function setSpecialServiceTypes($specialServiceTypes)
3939
{
4040
$this->values['SpecialServiceTypes'] = $specialServiceTypes;
4141
return $this;

src/FedEx/RateService/ComplexType/ProductName.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class ProductName extends AbstractComplexType
2525
protected $name = 'ProductName';
2626

2727
/**
28-
* The type of branded, translated, and/or localized name to which this value refers.
28+
* The type of name (long, medium, short, etc.) to which this value refers.
2929
*
3030
* @param string $type
3131
* @return $this

0 commit comments

Comments
 (0)