1
1
<?php
2
2
namespace FedEx \DGDSService ;
3
-
3
+
4
4
use FedEx \AbstractRequest ;
5
5
6
6
/**
@@ -16,7 +16,7 @@ class Request extends AbstractRequest
16
16
const TESTING_URL = 'https://wsbeta.fedex.com:443/web-services/dgds ' ;
17
17
18
18
protected static $ wsdlFileName = 'DGDS_v3.wsdl ' ;
19
-
19
+
20
20
/**
21
21
* Sends the AddDangerousGoodsHandlingUnitRequest and returns the response
22
22
*
@@ -30,12 +30,12 @@ public function getAddDangerousGoodsHandlingUnitReply(ComplexType\AddDangerousGo
30
30
if ($ returnStdClass ) {
31
31
return $ response ;
32
32
}
33
-
33
+
34
34
$ addDangerousGoodsHandlingUnitReply = new ComplexType \AddDangerousGoodsHandlingUnitReply ;
35
35
$ addDangerousGoodsHandlingUnitReply ->populateFromStdClass ($ response );
36
36
return $ addDangerousGoodsHandlingUnitReply ;
37
37
}
38
-
38
+
39
39
/**
40
40
* Sends the ModifyDangerousGoodsShipmentRequest and returns the response
41
41
*
@@ -49,12 +49,12 @@ public function getModifyDangerousGoodsShipmentReply(ComplexType\ModifyDangerous
49
49
if ($ returnStdClass ) {
50
50
return $ response ;
51
51
}
52
-
52
+
53
53
$ modifyDangerousGoodsShipmentReply = new ComplexType \ModifyDangerousGoodsShipmentReply ;
54
54
$ modifyDangerousGoodsShipmentReply ->populateFromStdClass ($ response );
55
55
return $ modifyDangerousGoodsShipmentReply ;
56
56
}
57
-
57
+
58
58
/**
59
59
* Sends the UploadDangerousGoodsRequest and returns the response
60
60
*
@@ -68,12 +68,12 @@ public function getUploadDangerousGoodsReply(ComplexType\UploadDangerousGoodsReq
68
68
if ($ returnStdClass ) {
69
69
return $ response ;
70
70
}
71
-
71
+
72
72
$ uploadDangerousGoodsReply = new ComplexType \UploadDangerousGoodsReply ;
73
73
$ uploadDangerousGoodsReply ->populateFromStdClass ($ response );
74
74
return $ uploadDangerousGoodsReply ;
75
75
}
76
-
76
+
77
77
/**
78
78
* Sends the ModifyDangerousGoodsHandlingUnitRequest and returns the response
79
79
*
@@ -87,12 +87,12 @@ public function getModifyDangerousGoodsHandlingUnitReply(ComplexType\ModifyDange
87
87
if ($ returnStdClass ) {
88
88
return $ response ;
89
89
}
90
-
90
+
91
91
$ modifyDangerousGoodsHandlingUnitReply = new ComplexType \ModifyDangerousGoodsHandlingUnitReply ;
92
92
$ modifyDangerousGoodsHandlingUnitReply ->populateFromStdClass ($ response );
93
93
return $ modifyDangerousGoodsHandlingUnitReply ;
94
94
}
95
-
95
+
96
96
/**
97
97
* Sends the DeleteDangerousGoodsHandlingUnitRequest and returns the response
98
98
*
@@ -106,12 +106,12 @@ public function getDeleteDangerousGoodsHandlingUnitReply(ComplexType\DeleteDange
106
106
if ($ returnStdClass ) {
107
107
return $ response ;
108
108
}
109
-
109
+
110
110
$ deleteDangerousGoodsHandlingUnitReply = new ComplexType \DeleteDangerousGoodsHandlingUnitReply ;
111
111
$ deleteDangerousGoodsHandlingUnitReply ->populateFromStdClass ($ response );
112
112
return $ deleteDangerousGoodsHandlingUnitReply ;
113
113
}
114
-
114
+
115
115
/**
116
116
* Sends the DeleteDangerousGoodsRequest and returns the response
117
117
*
@@ -125,12 +125,12 @@ public function getDeleteDangerousGoodsReply(ComplexType\DeleteDangerousGoodsReq
125
125
if ($ returnStdClass ) {
126
126
return $ response ;
127
127
}
128
-
128
+
129
129
$ deleteDangerousGoodsReply = new ComplexType \DeleteDangerousGoodsReply ;
130
130
$ deleteDangerousGoodsReply ->populateFromStdClass ($ response );
131
131
return $ deleteDangerousGoodsReply ;
132
132
}
133
-
133
+
134
134
/**
135
135
* Sends the RetrieveDangerousGoodsRequest and returns the response
136
136
*
@@ -144,26 +144,26 @@ public function getRetrieveDangerousGoodsReply(ComplexType\RetrieveDangerousGood
144
144
if ($ returnStdClass ) {
145
145
return $ response ;
146
146
}
147
-
147
+
148
148
$ retrieveDangerousGoodsReply = new ComplexType \RetrieveDangerousGoodsReply ;
149
149
$ retrieveDangerousGoodsReply ->populateFromStdClass ($ response );
150
150
return $ retrieveDangerousGoodsReply ;
151
151
}
152
-
152
+
153
153
/**
154
- * Sends the alidateDangerousGoods and returns the response
154
+ * Sends the ValidateDangerousGoodsRequest and returns the response
155
155
*
156
- * @param ComplexType\alidateDangerousGoods $alidateDangerousGoods
156
+ * @param ComplexType\ValidateDangerousGoodsRequest $validateDangerousGoodsRequest
157
157
* @param bool $returnStdClass Return the $stdClass response directly from \SoapClient
158
158
* @return ComplexType\ValidateDangerousGoodsReply|stdClass
159
159
*/
160
- public function getReply (ComplexType \alidateDangerousGoods $ alidateDangerousGoods , $ returnStdClass = false )
160
+ public function getValidateDangerousGoodsReply (ComplexType \ValidateDangerousGoodsRequest $ validateDangerousGoodsRequest , $ returnStdClass = false )
161
161
{
162
- $ response = $ this ->getSoapClient ()->$ alidateDangerousGoods ->toArray ();
162
+ $ response = $ this ->getSoapClient ()->validateDangerousGoods ( $ validateDangerousGoodsRequest ->toArray () );
163
163
if ($ returnStdClass ) {
164
164
return $ response ;
165
165
}
166
-
166
+
167
167
$ validateDangerousGoodsReply = new ComplexType \ValidateDangerousGoodsReply ;
168
168
$ validateDangerousGoodsReply ->populateFromStdClass ($ response );
169
169
return $ validateDangerousGoodsReply ;
0 commit comments