Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.25.0
7.27.0
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -353,5 +353,5 @@ letstalk@bandwidth.com
This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: `1.0.0`
- Generator version: `7.25.0`
- Generator version: `7.27.0`
- Build package: `org.openapitools.codegen.languages.PhpNextgenClientCodegen`
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"ext-json": "*",
"ext-mbstring": "*",
"guzzlehttp/guzzle": "^7.4.5",
"guzzlehttp/psr7": "^2.0"
"guzzlehttp/psr7": "^2.0",
"psr/http-client": "^1.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.5",
Expand Down
24 changes: 16 additions & 8 deletions custom_templates/Configuration.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -191,14 +191,18 @@ class Configuration
/**
* Sets API key
*
* @param string $apiKeyIdentifier API key identifier (authentication scheme)
* @param string $key API key or token
* @param string $apiKeyIdentifier API key identifier (authentication scheme)
* @param string|null $key API key or token
*
* @return $this
*/
public function setApiKey(string $apiKeyIdentifier, string $key): static
public function setApiKey(string $apiKeyIdentifier, ?string $key): static
{
$this->apiKeys[$apiKeyIdentifier] = $key;
if ($key === null) {
unset($this->apiKeys[$apiKeyIdentifier]);
} else {
$this->apiKeys[$apiKeyIdentifier] = $key;
}
return $this;
}

Expand All @@ -217,14 +221,18 @@ class Configuration
/**
* Sets the prefix for API key (e.g. Bearer)
*
* @param string $apiKeyIdentifier API key identifier (authentication scheme)
* @param string $prefix API key prefix, e.g. Bearer
* @param string $apiKeyIdentifier API key identifier (authentication scheme)
* @param string|null $prefix API key prefix, e.g. Bearer
*
* @return $this
*/
public function setApiKeyPrefix(string $apiKeyIdentifier, string $prefix): static
public function setApiKeyPrefix(string $apiKeyIdentifier, ?string $prefix): static
{
$this->apiKeyPrefixes[$apiKeyIdentifier] = $prefix;
if ($prefix === null) {
unset($this->apiKeyPrefixes[$apiKeyIdentifier]);
} else {
$this->apiKeyPrefixes[$apiKeyIdentifier] = $prefix;
}
return $this;
}

Expand Down
7 changes: 5 additions & 2 deletions custom_templates/composer.mustache
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"name": "bandwidth/sdk",
{{#composerPackageName}}
"name": "{{.}}",
{{/composerPackageName}}
{{#artifactVersion}}
"version": "{{.}}",
{{/artifactVersion}}
Expand Down Expand Up @@ -28,7 +30,8 @@
"ext-json": "*",
"ext-mbstring": "*",
"guzzlehttp/guzzle": "^7.4.5",
"guzzlehttp/psr7": "^2.0"
"guzzlehttp/psr7": "^2.0",
"psr/http-client": "^1.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.5",
Expand Down
Loading