Skip to content

Commit 6b6dafb

Browse files
committed
Updated Close Service v5.
1 parent decc69a commit 6b6dafb

Some content is hidden

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

41 files changed

+1827
-906
lines changed

src/FedEx/CloseService/ComplexType/ClientDetail.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class ClientDetail extends AbstractComplexType
2626
protected $name = 'ClientDetail';
2727

2828
/**
29-
* Set AccountNumber
29+
* The FedEx account number associated with this transaction.
3030
*
3131
* @param string $accountNumber
3232
* @return $this
@@ -38,7 +38,7 @@ public function setAccountNumber($accountNumber)
3838
}
3939

4040
/**
41-
* Set MeterNumber
41+
* This number is assigned by FedEx and identifies the unique device from which the request is originating
4242
*
4343
* @param string $meterNumber
4444
* @return $this
@@ -50,7 +50,7 @@ public function setMeterNumber($meterNumber)
5050
}
5151

5252
/**
53-
* Only used in transactions which require identification of the Fed Ex Office integrator.
53+
* Only used in transactions which require identification of the FedEx Office integrator.
5454
*
5555
* @param string $integratorId
5656
* @return $this

src/FedEx/CloseService/ComplexType/CloseDocument.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function setType($type)
4141
}
4242

4343
/**
44-
* The client's shipping cycle to which this shipment belongs.
44+
* Identifies the shipping cycle covered by the content of this document.
4545
*
4646
* @param string $shippingCycle
4747
* @return $this
@@ -89,7 +89,7 @@ public function setResolution($resolution)
8989
}
9090

9191
/**
92-
* Number of copies to print.
92+
* Can be zero for documents whose disposition implies that no content is included.
9393
*
9494
* @param int $copiesToPrint
9595
* @return $this

src/FedEx/CloseService/ComplexType/CloseDocumentFormat.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use FedEx\AbstractComplexType;
55

66
/**
7-
* Specifies characteristics of a shipping document to be produced.
7+
* Specifies characteristics of a close document to be produced.
88
*
99
* @author Jeremy Dunn <[email protected]>
1010
* @package PHP FedEx API wrapper
@@ -52,7 +52,7 @@ public function setTopOfPageOffset(LinearMeasure $topOfPageOffset)
5252
}
5353

5454
/**
55-
* The type of image or printer commands the image is to be formatted in.
55+
* Set ImageType
5656
*
5757
* @param \FedEx\CloseService\SimpleType\ShippingDocumentImageType|string $imageType
5858
* @return $this

src/FedEx/CloseService/ComplexType/CloseDocumentSpecification.php

+39
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
* @subpackage Close Service
1212
*
1313
* @property \FedEx\CloseService\SimpleType\CloseDocumentType|string[] $CloseDocumentTypes
14+
* @property DetailedDeliveryManifestDetail $DetailedDeliveryManifestDetail
15+
* @property HazardousMaterialsCertificationDetail $HazardousMaterialsCertificationDetail
16+
* @property ManifestDetail $ManifestDetail
1417
* @property Op950Detail $Op950Detail
1518
1619
*/
@@ -35,6 +38,42 @@ public function setCloseDocumentTypes(array $closeDocumentTypes)
3538
return $this;
3639
}
3740

41+
/**
42+
* Set DetailedDeliveryManifestDetail
43+
*
44+
* @param DetailedDeliveryManifestDetail $detailedDeliveryManifestDetail
45+
* @return $this
46+
*/
47+
public function setDetailedDeliveryManifestDetail(DetailedDeliveryManifestDetail $detailedDeliveryManifestDetail)
48+
{
49+
$this->values['DetailedDeliveryManifestDetail'] = $detailedDeliveryManifestDetail;
50+
return $this;
51+
}
52+
53+
/**
54+
* Set HazardousMaterialsCertificationDetail
55+
*
56+
* @param HazardousMaterialsCertificationDetail $hazardousMaterialsCertificationDetail
57+
* @return $this
58+
*/
59+
public function setHazardousMaterialsCertificationDetail(HazardousMaterialsCertificationDetail $hazardousMaterialsCertificationDetail)
60+
{
61+
$this->values['HazardousMaterialsCertificationDetail'] = $hazardousMaterialsCertificationDetail;
62+
return $this;
63+
}
64+
65+
/**
66+
* Set ManifestDetail
67+
*
68+
* @param ManifestDetail $manifestDetail
69+
* @return $this
70+
*/
71+
public function setManifestDetail(ManifestDetail $manifestDetail)
72+
{
73+
$this->values['ManifestDetail'] = $manifestDetail;
74+
return $this;
75+
}
76+
3877
/**
3978
* Specifies the production of the OP-950 document for hazardous materials.
4079
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?php
2+
namespace FedEx\CloseService\ComplexType;
3+
4+
use FedEx\AbstractComplexType;
5+
6+
/**
7+
* CloseManifestReferenceDetail
8+
*
9+
* @author Jeremy Dunn <[email protected]>
10+
* @package PHP FedEx API wrapper
11+
* @subpackage Close Service
12+
*
13+
* @property \FedEx\CloseService\SimpleType\CustomerReferenceType|string $Type
14+
* @property string $Value
15+
16+
*/
17+
class CloseManifestReferenceDetail extends AbstractComplexType
18+
{
19+
/**
20+
* Name of this complex type
21+
*
22+
* @var string
23+
*/
24+
protected $name = 'CloseManifestReferenceDetail';
25+
26+
/**
27+
* This identifies which customer reference field used as the manifest ID.
28+
*
29+
* @param \FedEx\CloseService\SimpleType\CustomerReferenceType|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 Value
40+
*
41+
* @param string $value
42+
* @return $this
43+
*/
44+
public function setValue($value)
45+
{
46+
$this->values['Value'] = $value;
47+
return $this;
48+
}
49+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
<?php
2+
namespace FedEx\CloseService\ComplexType;
3+
4+
use FedEx\AbstractComplexType;
5+
6+
/**
7+
* CloseSmartPostDetail
8+
*
9+
* @author Jeremy Dunn <[email protected]>
10+
* @package PHP FedEx API wrapper
11+
* @subpackage Close Service
12+
*
13+
* @property string $HubId
14+
* @property string $CustomerId
15+
* @property string $CustomerManifestId
16+
* @property string $DestinationCountryCode
17+
* @property \FedEx\CloseService\SimpleType\CarrierCodeType|string $PickupCarrier
18+
19+
*/
20+
class CloseSmartPostDetail extends AbstractComplexType
21+
{
22+
/**
23+
* Name of this complex type
24+
*
25+
* @var string
26+
*/
27+
protected $name = 'CloseSmartPostDetail';
28+
29+
/**
30+
* Set HubId
31+
*
32+
* @param string $hubId
33+
* @return $this
34+
*/
35+
public function setHubId($hubId)
36+
{
37+
$this->values['HubId'] = $hubId;
38+
return $this;
39+
}
40+
41+
/**
42+
* Set CustomerId
43+
*
44+
* @param string $customerId
45+
* @return $this
46+
*/
47+
public function setCustomerId($customerId)
48+
{
49+
$this->values['CustomerId'] = $customerId;
50+
return $this;
51+
}
52+
53+
/**
54+
* Set CustomerManifestId
55+
*
56+
* @param string $customerManifestId
57+
* @return $this
58+
*/
59+
public function setCustomerManifestId($customerManifestId)
60+
{
61+
$this->values['CustomerManifestId'] = $customerManifestId;
62+
return $this;
63+
}
64+
65+
/**
66+
* Set DestinationCountryCode
67+
*
68+
* @param string $destinationCountryCode
69+
* @return $this
70+
*/
71+
public function setDestinationCountryCode($destinationCountryCode)
72+
{
73+
$this->values['DestinationCountryCode'] = $destinationCountryCode;
74+
return $this;
75+
}
76+
77+
/**
78+
* Set PickupCarrier
79+
*
80+
* @param \FedEx\CloseService\SimpleType\CarrierCodeType|string $pickupCarrier
81+
* @return $this
82+
*/
83+
public function setPickupCarrier($pickupCarrier)
84+
{
85+
$this->values['PickupCarrier'] = $pickupCarrier;
86+
return $this;
87+
}
88+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?php
2+
namespace FedEx\CloseService\ComplexType;
3+
4+
use FedEx\AbstractComplexType;
5+
6+
/**
7+
* CloseWithDocumentsProcessingOptionsRequested
8+
*
9+
* @author Jeremy Dunn <[email protected]>
10+
* @package PHP FedEx API wrapper
11+
* @subpackage Close Service
12+
*
13+
* @property \FedEx\CloseService\SimpleType\CloseWithDocumentsProcessingOptionType|string[] $Options
14+
15+
*/
16+
class CloseWithDocumentsProcessingOptionsRequested extends AbstractComplexType
17+
{
18+
/**
19+
* Name of this complex type
20+
*
21+
* @var string
22+
*/
23+
protected $name = 'CloseWithDocumentsProcessingOptionsRequested';
24+
25+
/**
26+
* Set Options
27+
*
28+
* @param \FedEx\CloseService\SimpleType\CloseWithDocumentsProcessingOptionType[]|string[] $options
29+
* @return $this
30+
*/
31+
public function setOptions(array $options)
32+
{
33+
$this->values['Options'] = $options;
34+
return $this;
35+
}
36+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
<?php
2+
namespace FedEx\CloseService\ComplexType;
3+
4+
use FedEx\AbstractComplexType;
5+
6+
/**
7+
* CloseWithDocumentsReply
8+
*
9+
* @author Jeremy Dunn <[email protected]>
10+
* @package PHP FedEx API wrapper
11+
* @subpackage Close Service
12+
*
13+
* @property \FedEx\CloseService\SimpleType\NotificationSeverityType|string $HighestSeverity
14+
* @property Notification[] $Notifications
15+
* @property TransactionDetail $TransactionDetail
16+
* @property VersionId $Version
17+
* @property CloseDocument[] $Documents
18+
19+
*/
20+
class CloseWithDocumentsReply extends AbstractComplexType
21+
{
22+
/**
23+
* Name of this complex type
24+
*
25+
* @var string
26+
*/
27+
protected $name = 'CloseWithDocumentsReply';
28+
29+
/**
30+
* Set HighestSeverity
31+
*
32+
* @param \FedEx\CloseService\SimpleType\NotificationSeverityType|string $highestSeverity
33+
* @return $this
34+
*/
35+
public function setHighestSeverity($highestSeverity)
36+
{
37+
$this->values['HighestSeverity'] = $highestSeverity;
38+
return $this;
39+
}
40+
41+
/**
42+
* Set Notifications
43+
*
44+
* @param Notification[] $notifications
45+
* @return $this
46+
*/
47+
public function setNotifications(array $notifications)
48+
{
49+
$this->values['Notifications'] = $notifications;
50+
return $this;
51+
}
52+
53+
/**
54+
* Set TransactionDetail
55+
*
56+
* @param TransactionDetail $transactionDetail
57+
* @return $this
58+
*/
59+
public function setTransactionDetail(TransactionDetail $transactionDetail)
60+
{
61+
$this->values['TransactionDetail'] = $transactionDetail;
62+
return $this;
63+
}
64+
65+
/**
66+
* Set Version
67+
*
68+
* @param VersionId $version
69+
* @return $this
70+
*/
71+
public function setVersion(VersionId $version)
72+
{
73+
$this->values['Version'] = $version;
74+
return $this;
75+
}
76+
77+
/**
78+
* Set Documents
79+
*
80+
* @param CloseDocument[] $documents
81+
* @return $this
82+
*/
83+
public function setDocuments(array $documents)
84+
{
85+
$this->values['Documents'] = $documents;
86+
return $this;
87+
}
88+
}

0 commit comments

Comments
 (0)