Skip to content

Commit 84d0f09

Browse files
committed
generate OpenShipService code
1 parent 43992f6 commit 84d0f09

File tree

438 files changed

+34912
-3363
lines changed

Some content is hidden

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

438 files changed

+34912
-3363
lines changed

composer.lock

-3,363
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
<?php
2+
namespace FedEx\OpenShipService\ComplexType;
3+
4+
use FedEx\AbstractComplexType;
5+
6+
/**
7+
* AddPackagesToOpenShipmentReply
8+
*
9+
* @author Jeremy Dunn <[email protected]>
10+
* @package PHP FedEx API wrapper
11+
* @subpackage OpenShip Service
12+
*
13+
* @property \FedEx\OpenShipService\SimpleType\NotificationSeverityType|string $HighestSeverity
14+
* @property Notification[] $Notifications
15+
* @property TransactionDetail $TransactionDetail
16+
* @property VersionId $Version
17+
* @property string $JobId
18+
* @property \FedEx\OpenShipService\SimpleType\ServiceType|string $ServiceType
19+
* @property CompletedShipmentDetail $CompletedShipmentDetail
20+
* @property ShippingDocument[] $ErrorLabels
21+
22+
*/
23+
class AddPackagesToOpenShipmentReply extends AbstractComplexType
24+
{
25+
/**
26+
* Name of this complex type
27+
*
28+
* @var string
29+
*/
30+
protected $name = 'AddPackagesToOpenShipmentReply';
31+
32+
/**
33+
* Set HighestSeverity
34+
*
35+
* @param \FedEx\OpenShipService\SimpleType\NotificationSeverityType|string $highestSeverity
36+
* @return $this
37+
*/
38+
public function setHighestSeverity($highestSeverity)
39+
{
40+
$this->values['HighestSeverity'] = $highestSeverity;
41+
return $this;
42+
}
43+
44+
/**
45+
* Set Notifications
46+
*
47+
* @param Notification[] $notifications
48+
* @return $this
49+
*/
50+
public function setNotifications(array $notifications)
51+
{
52+
$this->values['Notifications'] = $notifications;
53+
return $this;
54+
}
55+
56+
/**
57+
* Set TransactionDetail
58+
*
59+
* @param TransactionDetail $transactionDetail
60+
* @return $this
61+
*/
62+
public function setTransactionDetail(TransactionDetail $transactionDetail)
63+
{
64+
$this->values['TransactionDetail'] = $transactionDetail;
65+
return $this;
66+
}
67+
68+
/**
69+
* Set Version
70+
*
71+
* @param VersionId $version
72+
* @return $this
73+
*/
74+
public function setVersion(VersionId $version)
75+
{
76+
$this->values['Version'] = $version;
77+
return $this;
78+
}
79+
80+
/**
81+
* Set JobId
82+
*
83+
* @param string $jobId
84+
* @return $this
85+
*/
86+
public function setJobId($jobId)
87+
{
88+
$this->values['JobId'] = $jobId;
89+
return $this;
90+
}
91+
92+
/**
93+
* Set ServiceType
94+
*
95+
* @param \FedEx\OpenShipService\SimpleType\ServiceType|string $serviceType
96+
* @return $this
97+
*/
98+
public function setServiceType($serviceType)
99+
{
100+
$this->values['ServiceType'] = $serviceType;
101+
return $this;
102+
}
103+
104+
/**
105+
* Provides Completed Shipment Details for PAY AS YOU GO scenarios of FXRS
106+
*
107+
* @param CompletedShipmentDetail $completedShipmentDetail
108+
* @return $this
109+
*/
110+
public function setCompletedShipmentDetail(CompletedShipmentDetail $completedShipmentDetail)
111+
{
112+
$this->values['CompletedShipmentDetail'] = $completedShipmentDetail;
113+
return $this;
114+
}
115+
116+
/**
117+
* Empty unless error label behavior is PACKAGE_ERROR_LABELS and one or more errors occured during transaction processing.
118+
*
119+
* @param ShippingDocument[] $errorLabels
120+
* @return $this
121+
*/
122+
public function setErrorLabels(array $errorLabels)
123+
{
124+
$this->values['ErrorLabels'] = $errorLabels;
125+
return $this;
126+
}
127+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
<?php
2+
namespace FedEx\OpenShipService\ComplexType;
3+
4+
use FedEx\AbstractComplexType;
5+
6+
/**
7+
* This request adds one or more packages to an existing open shipment.
8+
*
9+
* @author Jeremy Dunn <[email protected]>
10+
* @package PHP FedEx API wrapper
11+
* @subpackage OpenShip Service
12+
*
13+
* @property WebAuthenticationDetail $WebAuthenticationDetail
14+
* @property ClientDetail $ClientDetail
15+
* @property TransactionDetail $TransactionDetail
16+
* @property VersionId $Version
17+
* @property string $Index
18+
* @property \FedEx\OpenShipService\SimpleType\AddPackagesToOpenShipmentActionType|string[] $Actions
19+
* @property RequestedPackageLineItem[] $RequestedPackageLineItems
20+
21+
*/
22+
class AddPackagesToOpenShipmentRequest extends AbstractComplexType
23+
{
24+
/**
25+
* Name of this complex type
26+
*
27+
* @var string
28+
*/
29+
protected $name = 'AddPackagesToOpenShipmentRequest';
30+
31+
/**
32+
* Descriptive data to be used in authentication of the sender's identity (and right to use FedEx web services).
33+
*
34+
* @param WebAuthenticationDetail $webAuthenticationDetail
35+
* @return $this
36+
*/
37+
public function setWebAuthenticationDetail(WebAuthenticationDetail $webAuthenticationDetail)
38+
{
39+
$this->values['WebAuthenticationDetail'] = $webAuthenticationDetail;
40+
return $this;
41+
}
42+
43+
/**
44+
* Set ClientDetail
45+
*
46+
* @param ClientDetail $clientDetail
47+
* @return $this
48+
*/
49+
public function setClientDetail(ClientDetail $clientDetail)
50+
{
51+
$this->values['ClientDetail'] = $clientDetail;
52+
return $this;
53+
}
54+
55+
/**
56+
* Set TransactionDetail
57+
*
58+
* @param TransactionDetail $transactionDetail
59+
* @return $this
60+
*/
61+
public function setTransactionDetail(TransactionDetail $transactionDetail)
62+
{
63+
$this->values['TransactionDetail'] = $transactionDetail;
64+
return $this;
65+
}
66+
67+
/**
68+
* Set Version
69+
*
70+
* @param VersionId $version
71+
* @return $this
72+
*/
73+
public function setVersion(VersionId $version)
74+
{
75+
$this->values['Version'] = $version;
76+
return $this;
77+
}
78+
79+
/**
80+
* Customer-assigned identifier for this shipment (must be unique for stand-alone open shipments, or unique within consolidation if consolidation key is provided).
81+
*
82+
* @param string $index
83+
* @return $this
84+
*/
85+
public function setIndex($index)
86+
{
87+
$this->values['Index'] = $index;
88+
return $this;
89+
}
90+
91+
/**
92+
* Specifies the optional actions to be performed during the addition of packages to this open shipment.
93+
*
94+
* @param \FedEx\OpenShipService\SimpleType\AddPackagesToOpenShipmentActionType[]|string[] $actions
95+
* @return $this
96+
*/
97+
public function setActions(array $actions)
98+
{
99+
$this->values['Actions'] = $actions;
100+
return $this;
101+
}
102+
103+
/**
104+
* One or more package-attribute descriptions, each of which describes an individual package in the shipment.
105+
*
106+
* @param RequestedPackageLineItem[] $requestedPackageLineItems
107+
* @return $this
108+
*/
109+
public function setRequestedPackageLineItems(array $requestedPackageLineItems)
110+
{
111+
$this->values['RequestedPackageLineItems'] = $requestedPackageLineItems;
112+
return $this;
113+
}
114+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?php
2+
namespace FedEx\OpenShipService\ComplexType;
3+
4+
use FedEx\AbstractComplexType;
5+
6+
/**
7+
* Specifies additional labels to be produced. All required labels for shipments will be produced without the need to request additional labels. These are only available as thermal labels.
8+
*
9+
* @author Jeremy Dunn <[email protected]>
10+
* @package PHP FedEx API wrapper
11+
* @subpackage OpenShip Service
12+
*
13+
* @property \FedEx\OpenShipService\SimpleType\AdditionalLabelsType|string $Type
14+
* @property int $Count
15+
16+
*/
17+
class AdditionalLabelsDetail extends AbstractComplexType
18+
{
19+
/**
20+
* Name of this complex type
21+
*
22+
* @var string
23+
*/
24+
protected $name = 'AdditionalLabelsDetail';
25+
26+
/**
27+
* The type of additional labels to return.
28+
*
29+
* @param \FedEx\OpenShipService\SimpleType\AdditionalLabelsType|string $type
30+
* @return $this
31+
*/
32+
public function setType($type)
33+
{
34+
$this->values['Type'] = $type;
35+
return $this;
36+
}
37+
38+
/**
39+
* The number of this type label to return
40+
*
41+
* @param int $count
42+
* @return $this
43+
*/
44+
public function setCount($count)
45+
{
46+
$this->values['Count'] = $count;
47+
return $this;
48+
}
49+
}

0 commit comments

Comments
 (0)