Skip to content

Commit 49e34c2

Browse files
Merge pull request #590 from HubSpot/feature/fixBatchCreateMethods
Fix batchApi->create() methods in all CRM Objects
2 parents bf28ba8 + 52c8f68 commit 49e34c2

18 files changed

Lines changed: 188 additions & 188 deletions

File tree

codegen/Crm/Commerce/Invoices/Api/BatchApi.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ public function archiveWithHttpInfo($batch_input_simple_public_object_id, string
205205
$e->setResponseObject($data);
206206
throw $e;
207207
}
208-
208+
209209

210210
throw $e;
211211
}
@@ -424,7 +424,7 @@ public function createWithHttpInfo($batch_input_simple_public_object_batch_input
424424

425425

426426
switch($statusCode) {
427-
case 200:
427+
case 201:
428428
return $this->handleResponseWithDataType(
429429
'\HubSpot\Client\Crm\Commerce\Invoices\Model\BatchResponseSimplePublicObject',
430430
$request,
@@ -438,7 +438,7 @@ public function createWithHttpInfo($batch_input_simple_public_object_batch_input
438438
);
439439
}
440440

441-
441+
442442

443443
if ($statusCode < 200 || $statusCode > 299) {
444444
throw new ApiException(
@@ -477,7 +477,7 @@ public function createWithHttpInfo($batch_input_simple_public_object_batch_input
477477
$e->setResponseObject($data);
478478
throw $e;
479479
}
480-
480+
481481

482482
throw $e;
483483
}
@@ -725,7 +725,7 @@ public function readWithHttpInfo($batch_read_input_simple_public_object_id, $arc
725725
);
726726
}
727727

728-
728+
729729

730730
if ($statusCode < 200 || $statusCode > 299) {
731731
throw new ApiException(
@@ -764,7 +764,7 @@ public function readWithHttpInfo($batch_read_input_simple_public_object_id, $arc
764764
$e->setResponseObject($data);
765765
throw $e;
766766
}
767-
767+
768768

769769
throw $e;
770770
}
@@ -1023,7 +1023,7 @@ public function updateWithHttpInfo($batch_input_simple_public_object_batch_input
10231023
);
10241024
}
10251025

1026-
1026+
10271027

10281028
if ($statusCode < 200 || $statusCode > 299) {
10291029
throw new ApiException(
@@ -1062,7 +1062,7 @@ public function updateWithHttpInfo($batch_input_simple_public_object_batch_input
10621062
$e->setResponseObject($data);
10631063
throw $e;
10641064
}
1065-
1065+
10661066

10671067
throw $e;
10681068
}
@@ -1308,7 +1308,7 @@ public function upsertWithHttpInfo($batch_input_simple_public_object_batch_input
13081308
);
13091309
}
13101310

1311-
1311+
13121312

13131313
if ($statusCode < 200 || $statusCode > 299) {
13141314
throw new ApiException(
@@ -1347,7 +1347,7 @@ public function upsertWithHttpInfo($batch_input_simple_public_object_batch_input
13471347
$e->setResponseObject($data);
13481348
throw $e;
13491349
}
1350-
1350+
13511351

13521352
throw $e;
13531353
}

codegen/Crm/Companies/Api/BatchApi.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ public function archiveWithHttpInfo($batch_input_simple_public_object_id, string
205205
$e->setResponseObject($data);
206206
throw $e;
207207
}
208-
208+
209209

210210
throw $e;
211211
}
@@ -424,7 +424,7 @@ public function createWithHttpInfo($batch_input_simple_public_object_batch_input
424424

425425

426426
switch($statusCode) {
427-
case 200:
427+
case 201:
428428
return $this->handleResponseWithDataType(
429429
'\HubSpot\Client\Crm\Companies\Model\BatchResponseSimplePublicObject',
430430
$request,
@@ -438,7 +438,7 @@ public function createWithHttpInfo($batch_input_simple_public_object_batch_input
438438
);
439439
}
440440

441-
441+
442442

443443
if ($statusCode < 200 || $statusCode > 299) {
444444
throw new ApiException(
@@ -477,7 +477,7 @@ public function createWithHttpInfo($batch_input_simple_public_object_batch_input
477477
$e->setResponseObject($data);
478478
throw $e;
479479
}
480-
480+
481481

482482
throw $e;
483483
}
@@ -725,7 +725,7 @@ public function readWithHttpInfo($batch_read_input_simple_public_object_id, $arc
725725
);
726726
}
727727

728-
728+
729729

730730
if ($statusCode < 200 || $statusCode > 299) {
731731
throw new ApiException(
@@ -764,7 +764,7 @@ public function readWithHttpInfo($batch_read_input_simple_public_object_id, $arc
764764
$e->setResponseObject($data);
765765
throw $e;
766766
}
767-
767+
768768

769769
throw $e;
770770
}
@@ -1023,7 +1023,7 @@ public function updateWithHttpInfo($batch_input_simple_public_object_batch_input
10231023
);
10241024
}
10251025

1026-
1026+
10271027

10281028
if ($statusCode < 200 || $statusCode > 299) {
10291029
throw new ApiException(
@@ -1062,7 +1062,7 @@ public function updateWithHttpInfo($batch_input_simple_public_object_batch_input
10621062
$e->setResponseObject($data);
10631063
throw $e;
10641064
}
1065-
1065+
10661066

10671067
throw $e;
10681068
}
@@ -1308,7 +1308,7 @@ public function upsertWithHttpInfo($batch_input_simple_public_object_batch_input
13081308
);
13091309
}
13101310

1311-
1311+
13121312

13131313
if ($statusCode < 200 || $statusCode > 299) {
13141314
throw new ApiException(
@@ -1347,7 +1347,7 @@ public function upsertWithHttpInfo($batch_input_simple_public_object_batch_input
13471347
$e->setResponseObject($data);
13481348
throw $e;
13491349
}
1350-
1350+
13511351

13521352
throw $e;
13531353
}

codegen/Crm/Contacts/Api/BatchApi.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ public function archiveWithHttpInfo($batch_input_simple_public_object_id, string
205205
$e->setResponseObject($data);
206206
throw $e;
207207
}
208-
208+
209209

210210
throw $e;
211211
}
@@ -424,7 +424,7 @@ public function createWithHttpInfo($batch_input_simple_public_object_batch_input
424424

425425

426426
switch($statusCode) {
427-
case 200:
427+
case 201:
428428
return $this->handleResponseWithDataType(
429429
'\HubSpot\Client\Crm\Contacts\Model\BatchResponseSimplePublicObject',
430430
$request,
@@ -438,7 +438,7 @@ public function createWithHttpInfo($batch_input_simple_public_object_batch_input
438438
);
439439
}
440440

441-
441+
442442

443443
if ($statusCode < 200 || $statusCode > 299) {
444444
throw new ApiException(
@@ -477,7 +477,7 @@ public function createWithHttpInfo($batch_input_simple_public_object_batch_input
477477
$e->setResponseObject($data);
478478
throw $e;
479479
}
480-
480+
481481

482482
throw $e;
483483
}
@@ -725,7 +725,7 @@ public function readWithHttpInfo($batch_read_input_simple_public_object_id, $arc
725725
);
726726
}
727727

728-
728+
729729

730730
if ($statusCode < 200 || $statusCode > 299) {
731731
throw new ApiException(
@@ -764,7 +764,7 @@ public function readWithHttpInfo($batch_read_input_simple_public_object_id, $arc
764764
$e->setResponseObject($data);
765765
throw $e;
766766
}
767-
767+
768768

769769
throw $e;
770770
}
@@ -1023,7 +1023,7 @@ public function updateWithHttpInfo($batch_input_simple_public_object_batch_input
10231023
);
10241024
}
10251025

1026-
1026+
10271027

10281028
if ($statusCode < 200 || $statusCode > 299) {
10291029
throw new ApiException(
@@ -1062,7 +1062,7 @@ public function updateWithHttpInfo($batch_input_simple_public_object_batch_input
10621062
$e->setResponseObject($data);
10631063
throw $e;
10641064
}
1065-
1065+
10661066

10671067
throw $e;
10681068
}
@@ -1308,7 +1308,7 @@ public function upsertWithHttpInfo($batch_input_simple_public_object_batch_input
13081308
);
13091309
}
13101310

1311-
1311+
13121312

13131313
if ($statusCode < 200 || $statusCode > 299) {
13141314
throw new ApiException(
@@ -1347,7 +1347,7 @@ public function upsertWithHttpInfo($batch_input_simple_public_object_batch_input
13471347
$e->setResponseObject($data);
13481348
throw $e;
13491349
}
1350-
1350+
13511351

13521352
throw $e;
13531353
}

codegen/Crm/Deals/Api/BatchApi.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ public function archiveWithHttpInfo($batch_input_simple_public_object_id, string
205205
$e->setResponseObject($data);
206206
throw $e;
207207
}
208-
208+
209209

210210
throw $e;
211211
}
@@ -424,7 +424,7 @@ public function createWithHttpInfo($batch_input_simple_public_object_batch_input
424424

425425

426426
switch($statusCode) {
427-
case 200:
427+
case 201:
428428
return $this->handleResponseWithDataType(
429429
'\HubSpot\Client\Crm\Deals\Model\BatchResponseSimplePublicObject',
430430
$request,
@@ -438,7 +438,7 @@ public function createWithHttpInfo($batch_input_simple_public_object_batch_input
438438
);
439439
}
440440

441-
441+
442442

443443
if ($statusCode < 200 || $statusCode > 299) {
444444
throw new ApiException(
@@ -477,7 +477,7 @@ public function createWithHttpInfo($batch_input_simple_public_object_batch_input
477477
$e->setResponseObject($data);
478478
throw $e;
479479
}
480-
480+
481481

482482
throw $e;
483483
}
@@ -725,7 +725,7 @@ public function readWithHttpInfo($batch_read_input_simple_public_object_id, $arc
725725
);
726726
}
727727

728-
728+
729729

730730
if ($statusCode < 200 || $statusCode > 299) {
731731
throw new ApiException(
@@ -764,7 +764,7 @@ public function readWithHttpInfo($batch_read_input_simple_public_object_id, $arc
764764
$e->setResponseObject($data);
765765
throw $e;
766766
}
767-
767+
768768

769769
throw $e;
770770
}
@@ -1023,7 +1023,7 @@ public function updateWithHttpInfo($batch_input_simple_public_object_batch_input
10231023
);
10241024
}
10251025

1026-
1026+
10271027

10281028
if ($statusCode < 200 || $statusCode > 299) {
10291029
throw new ApiException(
@@ -1062,7 +1062,7 @@ public function updateWithHttpInfo($batch_input_simple_public_object_batch_input
10621062
$e->setResponseObject($data);
10631063
throw $e;
10641064
}
1065-
1065+
10661066

10671067
throw $e;
10681068
}
@@ -1308,7 +1308,7 @@ public function upsertWithHttpInfo($batch_input_simple_public_object_batch_input
13081308
);
13091309
}
13101310

1311-
1311+
13121312

13131313
if ($statusCode < 200 || $statusCode > 299) {
13141314
throw new ApiException(
@@ -1347,7 +1347,7 @@ public function upsertWithHttpInfo($batch_input_simple_public_object_batch_input
13471347
$e->setResponseObject($data);
13481348
throw $e;
13491349
}
1350-
1350+
13511351

13521352
throw $e;
13531353
}

0 commit comments

Comments
 (0)