Skip to content

Commit 0001a74

Browse files
committed
Travis update: Mar 2025 (Build 826)
[skip ci]
1 parent f9bebd6 commit 0001a74

74 files changed

Lines changed: 486 additions & 504 deletions

File tree

Some content is hidden

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

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.6.0
1+
7.11.0

lib/Api/BlacklistApi.php

Lines changed: 19 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* The version of the OpenAPI document: 2.0.0
1818
* Contact: messente@messente.com
1919
* Generated by: https://openapi-generator.tech
20-
* Generator version: 7.6.0
20+
* Generator version: 7.11.0
2121
*/
2222

2323
/**
@@ -93,13 +93,13 @@ class BlacklistApi
9393
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
9494
*/
9595
public function __construct(
96-
ClientInterface $client = null,
97-
Configuration $config = null,
98-
HeaderSelector $selector = null,
99-
$hostIndex = 0
96+
?ClientInterface $client = null,
97+
?Configuration $config = null,
98+
?HeaderSelector $selector = null,
99+
int $hostIndex = 0
100100
) {
101101
$this->client = $client ?: new Client();
102-
$this->config = $config ?: new Configuration();
102+
$this->config = $config ?: Configuration::getDefaultConfiguration();
103103
$this->headerSelector = $selector ?: new HeaderSelector();
104104
$this->hostIndex = $hostIndex;
105105
}
@@ -187,18 +187,6 @@ public function addToBlacklistWithHttpInfo($numberToBlacklist, string $contentTy
187187

188188
$statusCode = $response->getStatusCode();
189189

190-
if ($statusCode < 200 || $statusCode > 299) {
191-
throw new ApiException(
192-
sprintf(
193-
'[%d] Error connecting to the API (%s)',
194-
$statusCode,
195-
(string) $request->getUri()
196-
),
197-
$statusCode,
198-
$response->getHeaders(),
199-
(string) $response->getBody()
200-
);
201-
}
202190

203191
return [null, $statusCode, $response->getHeaders()];
204192

@@ -451,18 +439,6 @@ public function deleteFromBlacklistWithHttpInfo($phone, string $contentType = se
451439

452440
$statusCode = $response->getStatusCode();
453441

454-
if ($statusCode < 200 || $statusCode > 299) {
455-
throw new ApiException(
456-
sprintf(
457-
'[%d] Error connecting to the API (%s)',
458-
$statusCode,
459-
(string) $request->getUri()
460-
),
461-
$statusCode,
462-
$response->getHeaders(),
463-
(string) $response->getBody()
464-
);
465-
}
466442

467443
return [null, $statusCode, $response->getHeaders()];
468444

@@ -715,18 +691,6 @@ public function fetchBlacklistWithHttpInfo(string $contentType = self::contentTy
715691

716692
$statusCode = $response->getStatusCode();
717693

718-
if ($statusCode < 200 || $statusCode > 299) {
719-
throw new ApiException(
720-
sprintf(
721-
'[%d] Error connecting to the API (%s)',
722-
$statusCode,
723-
(string) $request->getUri()
724-
),
725-
$statusCode,
726-
$response->getHeaders(),
727-
(string) $response->getBody()
728-
);
729-
}
730694

731695
switch($statusCode) {
732696
case 200:
@@ -812,6 +776,19 @@ public function fetchBlacklistWithHttpInfo(string $contentType = self::contentTy
812776
];
813777
}
814778

779+
if ($statusCode < 200 || $statusCode > 299) {
780+
throw new ApiException(
781+
sprintf(
782+
'[%d] Error connecting to the API (%s)',
783+
$statusCode,
784+
(string) $request->getUri()
785+
),
786+
$statusCode,
787+
$response->getHeaders(),
788+
(string) $response->getBody()
789+
);
790+
}
791+
815792
$returnType = '\Messente\Api\Model\FetchBlacklistSuccess';
816793
if ($returnType === '\SplFileObject') {
817794
$content = $response->getBody(); //stream goes to serializer
@@ -1077,18 +1054,6 @@ public function isBlacklistedWithHttpInfo($phone, string $contentType = self::co
10771054

10781055
$statusCode = $response->getStatusCode();
10791056

1080-
if ($statusCode < 200 || $statusCode > 299) {
1081-
throw new ApiException(
1082-
sprintf(
1083-
'[%d] Error connecting to the API (%s)',
1084-
$statusCode,
1085-
(string) $request->getUri()
1086-
),
1087-
$statusCode,
1088-
$response->getHeaders(),
1089-
(string) $response->getBody()
1090-
);
1091-
}
10921057

10931058
return [null, $statusCode, $response->getHeaders()];
10941059

lib/Api/BulkMessagingApi.php

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* The version of the OpenAPI document: 2.0.0
1818
* Contact: messente@messente.com
1919
* Generated by: https://openapi-generator.tech
20-
* Generator version: 7.6.0
20+
* Generator version: 7.11.0
2121
*/
2222

2323
/**
@@ -84,13 +84,13 @@ class BulkMessagingApi
8484
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
8585
*/
8686
public function __construct(
87-
ClientInterface $client = null,
88-
Configuration $config = null,
89-
HeaderSelector $selector = null,
90-
$hostIndex = 0
87+
?ClientInterface $client = null,
88+
?Configuration $config = null,
89+
?HeaderSelector $selector = null,
90+
int $hostIndex = 0
9191
) {
9292
$this->client = $client ?: new Client();
93-
$this->config = $config ?: new Configuration();
93+
$this->config = $config ?: Configuration::getDefaultConfiguration();
9494
$this->headerSelector = $selector ?: new HeaderSelector();
9595
$this->hostIndex = $hostIndex;
9696
}
@@ -179,18 +179,6 @@ public function sendBulkOmnimessageWithHttpInfo($bulkOmnimessage, string $conten
179179

180180
$statusCode = $response->getStatusCode();
181181

182-
if ($statusCode < 200 || $statusCode > 299) {
183-
throw new ApiException(
184-
sprintf(
185-
'[%d] Error connecting to the API (%s)',
186-
$statusCode,
187-
(string) $request->getUri()
188-
),
189-
$statusCode,
190-
$response->getHeaders(),
191-
(string) $response->getBody()
192-
);
193-
}
194182

195183
switch($statusCode) {
196184
case 201:
@@ -276,6 +264,19 @@ public function sendBulkOmnimessageWithHttpInfo($bulkOmnimessage, string $conten
276264
];
277265
}
278266

267+
if ($statusCode < 200 || $statusCode > 299) {
268+
throw new ApiException(
269+
sprintf(
270+
'[%d] Error connecting to the API (%s)',
271+
$statusCode,
272+
(string) $request->getUri()
273+
),
274+
$statusCode,
275+
$response->getHeaders(),
276+
(string) $response->getBody()
277+
);
278+
}
279+
279280
$returnType = '\Messente\Api\Model\BulkOmniMessageCreateSuccessResponse';
280281
if ($returnType === '\SplFileObject') {
281282
$content = $response->getBody(); //stream goes to serializer

0 commit comments

Comments
 (0)