Skip to content

Commit 924bc5a

Browse files
committed
1 parent a26fa2b commit 924bc5a

9 files changed

+32
-32
lines changed

src/Service/CertificateService.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function createAsync(Certificate $body)
5858
return $this->sendRequest(
5959
$this->domainrobotConfig->getUrl() . "/certificate",
6060
'POST',
61-
["json" => $body->toArray(true)]
61+
["json" => $body->toArray()]
6262
);
6363
}
6464

@@ -99,7 +99,7 @@ public function realtimeAsync(Certificate $body)
9999
return $this->sendRequest(
100100
$this->domainrobotConfig->getUrl() . "/certificate/_realtime",
101101
'POST',
102-
["json" => $body->toArray(true)]
102+
["json" => $body->toArray()]
103103
);
104104
}
105105

@@ -144,7 +144,7 @@ public function prepareOrderAsync(CertificateData $body)
144144
return new DomainrobotPromise($this->sendRequest(
145145
$this->domainrobotConfig->getUrl() . "/certificate/_prepareOrder",
146146
'POST',
147-
["json" => $body->toArray(true)]
147+
["json" => $body->toArray()]
148148
));
149149
}
150150

@@ -214,7 +214,7 @@ public function listAsync(Query $body = null)
214214
{
215215
$data = null;
216216
if ($body != null) {
217-
$data = $body->toArray(true);
217+
$data = $body->toArray();
218218
}
219219
return new DomainrobotPromise($this->sendRequest(
220220
$this->domainrobotConfig->getUrl() . "/certificate/_search",
@@ -324,7 +324,7 @@ public function reissueAsync(Certificate $body)
324324
return $this->sendRequest(
325325
$this->domainrobotConfig->getUrl() . "/certificate/".$body->getId(),
326326
'PUT',
327-
["json" => $body->toArray(true)]
327+
["json" => $body->toArray()]
328328
);
329329
}
330330

@@ -367,7 +367,7 @@ public function renewAsync(Certificate $body)
367367
return $this->sendRequest(
368368
$this->domainrobotConfig->getUrl() . "/certificate/".$body->getId()."/_renew",
369369
'PUT',
370-
["json" => $body->toArray(true)]
370+
["json" => $body->toArray()]
371371
);
372372
}
373373

src/Service/ContactService.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function createAsync(Contact $body)
4949
return $this->sendRequest(
5050
$this->domainrobotConfig->getUrl() . "/contact",
5151
'POST',
52-
["json" => $body->toArray(true)]
52+
["json" => $body->toArray()]
5353
);
5454
}
5555

@@ -134,7 +134,7 @@ public function listAsync(Query $body = null)
134134
{
135135
$data = null;
136136
if ($body != null) {
137-
$data = $body->toArray(true);
137+
$data = $body->toArray();
138138
}
139139
return new DomainrobotPromise($this->sendRequest(
140140
$this->domainrobotConfig->getUrl() . "/contact/_search",
@@ -231,7 +231,7 @@ public function updateAsync(Contact $body)
231231
return $this->sendRequest(
232232
$this->domainrobotConfig->getUrl() . "/contact/".$body->getId(),
233233
'PUT',
234-
["json" => $body->toArray(true)]
234+
["json" => $body->toArray()]
235235
);
236236
}
237237
}

src/Service/DomainCancelationService.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function createAsync(DomainCancelation $body)
5252
return $this->sendRequest(
5353
$this->domainrobotConfig->getUrl() . "/domain/".$body->getDomain()."/cancelation",
5454
'POST',
55-
["json" => $body->toArray(true)]
55+
["json" => $body->toArray()]
5656
);
5757
}
5858

@@ -86,7 +86,7 @@ public function updateAsync(DomainCancelation $body)
8686
return $this->sendRequest(
8787
$this->domainrobotConfig->getUrl() . "/domain/".$body->getDomain()."/cancelation",
8888
'PUT',
89-
["json" => $body->toArray(true)]
89+
["json" => $body->toArray()]
9090
);
9191
}
9292

@@ -211,7 +211,7 @@ public function listAsync(Query $body = null)
211211
{
212212
$data = null;
213213
if ($body != null) {
214-
$data = $body->toArray(true);
214+
$data = $body->toArray();
215215
}
216216
return new DomainrobotPromise($this->sendRequest(
217217
$this->domainrobotConfig->getUrl() . "/domain/cancelation/_search",

src/Service/DomainService.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function createAsync(Domain $body)
5353
return $this->sendRequest(
5454
$this->domainrobotConfig->getUrl() . "/domain",
5555
'POST',
56-
["json" => $body->toArray(true)]
56+
["json" => $body->toArray()]
5757
);
5858
}
5959

@@ -145,7 +145,7 @@ public function renewAsync(Domain $body)
145145
return $this->sendRequest(
146146
$this->domainrobotConfig->getUrl() . "/domain/".$body->getName()."/_renew",
147147
'PUT',
148-
["json" => $body->toArray(true)]
148+
["json" => $body->toArray()]
149149
);
150150
}
151151

@@ -178,7 +178,7 @@ public function transferAsync(Domain $body)
178178
return $this->sendRequest(
179179
$this->domainrobotConfig->getUrl() . "/domain/_transfer",
180180
'POST',
181-
["json" => $body->toArray(true)]
181+
["json" => $body->toArray()]
182182
);
183183
}
184184

@@ -210,7 +210,7 @@ public function updateStatusAsync(Domain $body)
210210
return $this->sendRequest(
211211
$this->domainrobotConfig->getUrl() . "/domain/".$body->getName()."/_statusUpdate",
212212
'PUT',
213-
["json" => $body->toArray(true)]
213+
["json" => $body->toArray()]
214214
);
215215
}
216216

@@ -287,7 +287,7 @@ public function listAsync(Query $body = null)
287287
{
288288
$data = null;
289289
if ($body != null) {
290-
$data = $body->toArray(true);
290+
$data = $body->toArray();
291291
}
292292
return new DomainrobotPromise($this->sendRequest(
293293
$this->domainrobotConfig->getUrl() . "/domain/_search",
@@ -388,7 +388,7 @@ public function restoreListAsync(Query $body = null)
388388
{
389389
$data = null;
390390
if ($body != null) {
391-
$data = $body->toArray(true);
391+
$data = $body->toArray();
392392
}
393393
return new DomainrobotPromise($this->sendRequest(
394394
$this->domainrobotConfig->getUrl() . "/domain/restore/_search",
@@ -483,7 +483,7 @@ public function updateAsync(Domain $body)
483483
return $this->sendRequest(
484484
$this->domainrobotConfig->getUrl() . "/domain/".$body->getName(),
485485
'PUT',
486-
["json" => $body->toArray(true)]
486+
["json" => $body->toArray()]
487487
);
488488
}
489489

@@ -519,7 +519,7 @@ public function restoreAsync(DomainRestore $body)
519519
return $this->sendRequest(
520520
$this->domainrobotConfig->getUrl() . "/domain/".$body->getName()."/_restore",
521521
'PUT',
522-
["json" => $body->toArray(true)]
522+
["json" => $body->toArray()]
523523
);
524524
}
525525
}

src/Service/DomainStudioService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function searchAsync(DomainEnvelopeSearchRequest $body)
8080
return $this->sendRequest(
8181
$this->domainrobotConfig->getUrl()."/domainstudio",
8282
"POST",
83-
["json" => $body->toArray(true)]
83+
["json" => $body->toArray()]
8484
);
8585
}
8686
}

src/Service/SslContactService.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function createAsync(SslContact $body)
4949
return $this->sendRequest(
5050
$this->domainrobotConfig->getUrl() . "/sslcontacct",
5151
'POST',
52-
["json" => $body->toArray(true)]
52+
["json" => $body->toArray()]
5353
);
5454
}
5555

@@ -122,7 +122,7 @@ public function listAsync(Query $body = null)
122122
{
123123
$data = null;
124124
if ($body != null) {
125-
$data = $body->toArray(true);
125+
$data = $body->toArray();
126126
}
127127
return new DomainrobotPromise($this->sendRequest(
128128
$this->domainrobotConfig->getUrl() . "/sslcontact/_search",
@@ -217,7 +217,7 @@ public function updateAsync(SslContact $body)
217217
return $this->sendRequest(
218218
$this->domainrobotConfig->getUrl()."/sslcontact/".$body->getId(),
219219
'PUT',
220-
["json" => $body->toArray(true)]
220+
["json" => $body->toArray()]
221221
);
222222
}
223223
}

src/Service/TransferOutService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public function listAsync(Query $body = null)
129129
{
130130
$data = null;
131131
if ($body != null) {
132-
$data = $body->toArray(true);
132+
$data = $body->toArray();
133133
}
134134
return new DomainrobotPromise($this->sendRequest(
135135
$this->domainrobotConfig->getUrl() . "/transferout/_search",

src/Service/TrustedApplicationService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function createAsync(TrustedApplication $body)
5050
return $this->sendRequest(
5151
$this->domainrobotConfig->getUrl() . "/trustedapp",
5252
'POST',
53-
["json" => $body->toArray(true)]
53+
["json" => $body->toArray()]
5454
);
5555
}
5656

@@ -198,7 +198,7 @@ public function updateAsync(TrustedApplication $body)
198198
return $this->sendRequest(
199199
$this->domainrobotConfig->getUrl() . "/trustedapp/".$body->getUuId(),
200200
'PUT',
201-
["json" => $body->toArray(true)]
201+
["json" => $body->toArray()]
202202
);
203203
}
204204
}

src/Service/ZoneService.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function createAsync(Zone $body)
5050
return $this->sendRequest(
5151
$this->domainrobotConfig->getUrl() . "/zone",
5252
'POST',
53-
["json" => $body->toArray(true)]
53+
["json" => $body->toArray()]
5454
);
5555
}
5656

@@ -84,7 +84,7 @@ public function streamAsync($origin, ZoneStream $body)
8484
return $this->sendRequest(
8585
$this->domainrobotConfig->getUrl() . "/zone/$origin/_stream",
8686
'POST',
87-
["json" => $body->toArray(true)]
87+
["json" => $body->toArray()]
8888
);
8989
}
9090

@@ -118,7 +118,7 @@ public function importZoneAsync(Zone $body)
118118
return new DomainrobotPromise($this->sendRequest(
119119
$this->domainrobotConfig->getUrl() . "/zone/$name/$systemNameServer/_import",
120120
'POST',
121-
["json" => $body->toArray(true)]
121+
["json" => $body->toArray()]
122122
));
123123
}
124124

@@ -197,7 +197,7 @@ public function listAsync(Query $body = null)
197197
{
198198
$data = null;
199199
if ($body != null) {
200-
$data = $body->toArray(true);
200+
$data = $body->toArray();
201201
}
202202
return new DomainrobotPromise($this->sendRequest(
203203
$this->domainrobotConfig->getUrl() . "/zone/_search",
@@ -303,7 +303,7 @@ public function updateAsync(Zone $body)
303303
return $this->sendRequest(
304304
$this->domainrobotConfig->getUrl() . "/zone/$name/$systemNameServer",
305305
'PUT',
306-
["json" => $body->toArray(true)]
306+
["json" => $body->toArray()]
307307
);
308308
}
309309
}

0 commit comments

Comments
 (0)