diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cf6d144..81f9661 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,9 +1,11 @@ name: ci on: - - pull_request - - push - - workflow_dispatch + pull_request: + push: + branches: + - master + workflow_dispatch: env: MAVEN_FLAGS: "-B --no-transfer-progress" @@ -34,8 +36,8 @@ jobs: - name: Start stack run: | cd docker - docker-compose -p it -f ${{ matrix.docker-compose-file }} up --no-start - docker start it_db_1 + docker compose -p it -f ${{ matrix.docker-compose-file }} up --no-start + docker start it-db-1 - name: Wait for MySQL if: ${{ matrix.docker-compose-file == 'docker-compose.ci.mysql.yml' }} run: | @@ -80,7 +82,7 @@ jobs: # Sometimes it gets stuck (if Kill Bill starts when the DB isn't ready?) timeout-minutes: 4 run: | - docker start it_killbill_1 + docker start it-killbill-1 count=0 until $(curl --connect-timeout 10 --max-time 30 --output /dev/null --silent --fail http://${KB_ADDRESS}:${KB_PORT}/1.0/healthcheck); do if [[ "$count" == "180" ]]; then @@ -114,10 +116,10 @@ jobs: echo "[DEBUG] docker ps -a" docker ps -a echo "[DEBUG] killbill env" - docker exec it_killbill_1 env || true + docker exec it-killbill-1 env || true echo "[DEBUG] db env" - docker exec it_db_1 env || true + docker exec it-db-1 env || true echo "[DEBUG] killbill logs" - docker logs -t --details it_killbill_1 || true + docker logs -t --details it-killbill-1 || true echo "[DEBUG] db logs" - docker logs -t --details it_db_1 || true + docker logs -t --details it-db-1 || true diff --git a/.swagger-codegen/VERSION b/.swagger-codegen/VERSION index 812aaaf..fe267f5 100644 --- a/.swagger-codegen/VERSION +++ b/.swagger-codegen/VERSION @@ -1 +1 @@ -3.0.22 \ No newline at end of file +3.0.79 \ No newline at end of file diff --git a/.swagger-config.json b/.swagger-config.json index 0ee8851..5380583 100644 --- a/.swagger-config.json +++ b/.swagger-config.json @@ -7,5 +7,8 @@ "gitRepoId" : "killbill-client", "variableNamingConvention": "camelCase", "srcBasePath": "lib", - "httpUserAgent": "Killbill-Client/0.24.0/php" + "httpUserAgent": "Killbill-Client/0.25.0/php", + "additionalProperties": { + "backslash": "\\" + } } diff --git a/README.md b/README.md index 5595487..e8c0fd2 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ PHP client library for [Kill Bill](http://killbill.io). | 0.3.x | 0.20.z | | 0.4.x | 0.22.z | | 0.5.x | 0.24.z | +| 0.6.x | 0.25.z | ## Requirements @@ -140,7 +141,7 @@ Feel free to ask questions on the [killbilling-users](https://groups.google.com/ This PHP package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: -- API version: 0.24.0 +- API version: 0.25.0 - Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen Download [swagger-codegen](https://github.com/swagger-api/swagger-codegen): @@ -363,6 +364,7 @@ Class | Method | HTTP request | Description *PluginInfoApi* | [**getPluginsInfo**](docs/Api/PluginInfoApi.md#getpluginsinfo) | **GET** /1.0/kb/pluginsInfo | Retrieve the list of registered plugins *SecurityApi* | [**addRoleDefinition**](docs/Api/SecurityApi.md#addroledefinition) | **POST** /1.0/kb/security/roles | Add a new role definition) *SecurityApi* | [**addUserRoles**](docs/Api/SecurityApi.md#adduserroles) | **POST** /1.0/kb/security/users | Add a new user with roles (to make api requests) +*SecurityApi* | [**getAvailableRoles**](docs/Api/SecurityApi.md#getavailableroles) | **GET** /1.0/kb/security/roles | List all active role definitions *SecurityApi* | [**getCurrentUserPermissions**](docs/Api/SecurityApi.md#getcurrentuserpermissions) | **GET** /1.0/kb/security/permissions | List user permissions *SecurityApi* | [**getCurrentUserSubject**](docs/Api/SecurityApi.md#getcurrentusersubject) | **GET** /1.0/kb/security/subject | Get user information *SecurityApi* | [**getRoleDefinition**](docs/Api/SecurityApi.md#getroledefinition) | **GET** /1.0/kb/security/roles/{role} | Get role definition @@ -374,7 +376,7 @@ Class | Method | HTTP request | Description *SubscriptionApi* | [**addSubscriptionBlockingState**](docs/Api/SubscriptionApi.md#addsubscriptionblockingstate) | **POST** /1.0/kb/subscriptions/{subscriptionId}/block | Block a subscription *SubscriptionApi* | [**cancelSubscriptionPlan**](docs/Api/SubscriptionApi.md#cancelsubscriptionplan) | **DELETE** /1.0/kb/subscriptions/{subscriptionId} | Cancel an entitlement plan *SubscriptionApi* | [**changeSubscriptionPlan**](docs/Api/SubscriptionApi.md#changesubscriptionplan) | **PUT** /1.0/kb/subscriptions/{subscriptionId} | Change entitlement plan -*SubscriptionApi* | [**createSubscription**](docs/Api/SubscriptionApi.md#createsubscription) | **POST** /1.0/kb/subscriptions | Create an subscription +*SubscriptionApi* | [**createSubscription**](docs/Api/SubscriptionApi.md#createsubscription) | **POST** /1.0/kb/subscriptions | Create a subscription *SubscriptionApi* | [**createSubscriptionCustomFields**](docs/Api/SubscriptionApi.md#createsubscriptioncustomfields) | **POST** /1.0/kb/subscriptions/{subscriptionId}/customFields | Add custom fields to subscription *SubscriptionApi* | [**createSubscriptionTags**](docs/Api/SubscriptionApi.md#createsubscriptiontags) | **POST** /1.0/kb/subscriptions/{subscriptionId}/tags | *SubscriptionApi* | [**createSubscriptionWithAddOns**](docs/Api/SubscriptionApi.md#createsubscriptionwithaddons) | **POST** /1.0/kb/subscriptions/createSubscriptionWithAddOns | Create an entitlement with addOn products diff --git a/docker/docker-compose.ci.mysql.yml b/docker/docker-compose.ci.mysql.yml index 50db2c8..e907abc 100644 --- a/docker/docker-compose.ci.mysql.yml +++ b/docker/docker-compose.ci.mysql.yml @@ -3,7 +3,7 @@ version: '3.8' services: killbill: network_mode: host - image: killbill/killbill:0.24.0 + image: xsalefter/killbill:0.25.4 environment: - KILLBILL_CATALOG_URI=SpyCarAdvanced.xml - KILLBILL_DAO_URL=jdbc:mysql://127.0.0.1:3306/killbill diff --git a/docs/Api/CreditApi.md b/docs/Api/CreditApi.md index dae4ef8..d5500ff 100644 --- a/docs/Api/CreditApi.md +++ b/docs/Api/CreditApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description [**getCredit**](CreditApi.md#getcredit) | **GET** /1.0/kb/credits/{creditId} | Retrieve a credit by id # **createCredits** -> \Killbill\Client\Swagger\Model\InvoiceItem[] createCredits($body, $xKillbillCreatedBy, $xKillbillReason, $xKillbillComment, $autoCommit, $pluginProperty) +> \Killbill\Client\Swagger\Model\InvoiceItem[] createCredits($body, $xKillbillCreatedBy, $xKillbillReason, $xKillbillComment, $requestedDate, $autoCommit, $pluginProperty) Create a credit @@ -38,11 +38,12 @@ $body = array(new \Killbill\Client\Swagger\Model\InvoiceItem()); // \Killbill\Cl $xKillbillCreatedBy = "xKillbillCreatedBy_example"; // string | $xKillbillReason = "xKillbillReason_example"; // string | $xKillbillComment = "xKillbillComment_example"; // string | +$requestedDate = new \DateTime("2013-10-20"); // \DateTime | $autoCommit = false; // bool | $pluginProperty = array("pluginProperty_example"); // string[] | try { - $result = $apiInstance->createCredits($body, $xKillbillCreatedBy, $xKillbillReason, $xKillbillComment, $autoCommit, $pluginProperty); + $result = $apiInstance->createCredits($body, $xKillbillCreatedBy, $xKillbillReason, $xKillbillComment, $requestedDate, $autoCommit, $pluginProperty); print_r($result); } catch (Exception $e) { echo 'Exception when calling CreditApi->createCredits: ', $e->getMessage(), PHP_EOL; @@ -58,6 +59,7 @@ Name | Type | Description | Notes **xKillbillCreatedBy** | **string**| | **xKillbillReason** | **string**| | [optional] **xKillbillComment** | **string**| | [optional] + **requestedDate** | **\DateTime**| | [optional] **autoCommit** | **bool**| | [optional] [default to false] **pluginProperty** | [**string[]**](../Model/string.md)| | [optional] diff --git a/docs/Api/PaymentGatewayApi.md b/docs/Api/PaymentGatewayApi.md index 08f2328..20d08b7 100644 --- a/docs/Api/PaymentGatewayApi.md +++ b/docs/Api/PaymentGatewayApi.md @@ -155,8 +155,6 @@ Name | Type | Description | Notes Process a gateway notification -The response is built by the appropriate plugin - ### Example ```php \Killbill\Client\Swagger\Model\RoleDefinition[] getAvailableRoles() + +List all active role definitions + +### Example +```php +setUsername('YOUR_USERNAME') + ->setPassword('YOUR_PASSWORD'); + + +$apiInstance = new Killbill\Client\Swagger\Api\SecurityApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); + +try { + $result = $apiInstance->getAvailableRoles(); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling SecurityApi->getAvailableRoles: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**\Killbill\Client\Swagger\Model\RoleDefinition[]**](../Model/RoleDefinition.md) + +### Authorization + +[basicAuth](../../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + # **getCurrentUserPermissions** > string[] getCurrentUserPermissions() diff --git a/docs/Api/SubscriptionApi.md b/docs/Api/SubscriptionApi.md index 9356b00..a7028a8 100644 --- a/docs/Api/SubscriptionApi.md +++ b/docs/Api/SubscriptionApi.md @@ -7,7 +7,7 @@ Method | HTTP request | Description [**addSubscriptionBlockingState**](SubscriptionApi.md#addsubscriptionblockingstate) | **POST** /1.0/kb/subscriptions/{subscriptionId}/block | Block a subscription [**cancelSubscriptionPlan**](SubscriptionApi.md#cancelsubscriptionplan) | **DELETE** /1.0/kb/subscriptions/{subscriptionId} | Cancel an entitlement plan [**changeSubscriptionPlan**](SubscriptionApi.md#changesubscriptionplan) | **PUT** /1.0/kb/subscriptions/{subscriptionId} | Change entitlement plan -[**createSubscription**](SubscriptionApi.md#createsubscription) | **POST** /1.0/kb/subscriptions | Create an subscription +[**createSubscription**](SubscriptionApi.md#createsubscription) | **POST** /1.0/kb/subscriptions | Create a subscription [**createSubscriptionCustomFields**](SubscriptionApi.md#createsubscriptioncustomfields) | **POST** /1.0/kb/subscriptions/{subscriptionId}/customFields | Add custom fields to subscription [**createSubscriptionTags**](SubscriptionApi.md#createsubscriptiontags) | **POST** /1.0/kb/subscriptions/{subscriptionId}/tags | [**createSubscriptionWithAddOns**](SubscriptionApi.md#createsubscriptionwithaddons) | **POST** /1.0/kb/subscriptions/createSubscriptionWithAddOns | Create an entitlement with addOn products @@ -254,7 +254,7 @@ void (empty response body) # **createSubscription** > \Killbill\Client\Swagger\Model\Subscription createSubscription($body, $xKillbillCreatedBy, $xKillbillReason, $xKillbillComment, $entitlementDate, $billingDate, $renameKeyIfExistsAndUnused, $migrated, $skipResponse, $callCompletion, $callTimeoutSec, $pluginProperty) -Create an subscription +Create a subscription ### Example ```php diff --git a/docs/Model/Entity.md b/docs/Model/Entity.md index 1cd5744..c18a01f 100644 --- a/docs/Model/Entity.md +++ b/docs/Model/Entity.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**id** | **string** | | [optional] **createdDate** | [**\DateTime**](\DateTime.md) | | [optional] **updatedDate** | [**\DateTime**](\DateTime.md) | | [optional] -**id** | **string** | | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/lib/Api/AccountApi.php b/lib/Api/AccountApi.php index 4c4a512..b04232f 100644 --- a/lib/Api/AccountApi.php +++ b/lib/Api/AccountApi.php @@ -14,10 +14,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Api/AdminApi.php b/lib/Api/AdminApi.php index 20fe4be..7cfaab9 100644 --- a/lib/Api/AdminApi.php +++ b/lib/Api/AdminApi.php @@ -14,10 +14,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Api/BundleApi.php b/lib/Api/BundleApi.php index 6e11712..3a539ac 100644 --- a/lib/Api/BundleApi.php +++ b/lib/Api/BundleApi.php @@ -14,10 +14,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Api/CatalogApi.php b/lib/Api/CatalogApi.php index 1ca7bce..93ca6c3 100644 --- a/lib/Api/CatalogApi.php +++ b/lib/Api/CatalogApi.php @@ -14,10 +14,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Api/CreditApi.php b/lib/Api/CreditApi.php index f869de2..36cf1f4 100644 --- a/lib/Api/CreditApi.php +++ b/lib/Api/CreditApi.php @@ -14,10 +14,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -96,6 +96,7 @@ public function getConfig() * @param string $xKillbillCreatedBy xKillbillCreatedBy (required) * @param string|null $xKillbillReason xKillbillReason (optional) * @param string|null $xKillbillComment xKillbillComment (optional) + * @param \DateTime|null $requestedDate requestedDate (optional) * @param bool|null $autoCommit autoCommit (optional, default to false) * @param string[]|null $pluginProperty pluginProperty (optional) * @@ -103,9 +104,9 @@ public function getConfig() * @throws \InvalidArgumentException * @return \Killbill\Client\Swagger\Model\InvoiceItem[] */ - public function createCredits($body, $xKillbillCreatedBy, $xKillbillReason = null, $xKillbillComment = null, $autoCommit = 'false', $pluginProperty = null) + public function createCredits($body, $xKillbillCreatedBy, $xKillbillReason = null, $xKillbillComment = null, $requestedDate = null, $autoCommit = 'false', $pluginProperty = null) { - list($response) = $this->createCreditsWithHttpInfo($body, $xKillbillCreatedBy, $xKillbillReason, $xKillbillComment, $autoCommit, $pluginProperty); + list($response) = $this->createCreditsWithHttpInfo($body, $xKillbillCreatedBy, $xKillbillReason, $xKillbillComment, $requestedDate, $autoCommit, $pluginProperty); return $response; } @@ -118,6 +119,7 @@ public function createCredits($body, $xKillbillCreatedBy, $xKillbillReason = nul * @param string $xKillbillCreatedBy (required) * @param string $xKillbillReason (optional) * @param string $xKillbillComment (optional) + * @param \DateTime $requestedDate (optional) * @param bool $autoCommit (optional, default to false) * @param string[] $pluginProperty (optional) * @@ -125,10 +127,10 @@ public function createCredits($body, $xKillbillCreatedBy, $xKillbillReason = nul * @throws \InvalidArgumentException * @return array of \Killbill\Client\Swagger\Model\InvoiceItem[], HTTP status code, HTTP response headers (array of strings) */ - public function createCreditsWithHttpInfo($body, $xKillbillCreatedBy, $xKillbillReason = null, $xKillbillComment = null, $autoCommit = 'false', $pluginProperty = null) + public function createCreditsWithHttpInfo($body, $xKillbillCreatedBy, $xKillbillReason = null, $xKillbillComment = null, $requestedDate = null, $autoCommit = 'false', $pluginProperty = null) { $returnType = '\Killbill\Client\Swagger\Model\InvoiceItem[]'; - $request = $this->createCreditsRequest($body, $xKillbillCreatedBy, $xKillbillReason, $xKillbillComment, $autoCommit, $pluginProperty); + $request = $this->createCreditsRequest($body, $xKillbillCreatedBy, $xKillbillReason, $xKillbillComment, $requestedDate, $autoCommit, $pluginProperty); try { $options = $this->createHttpClientOption(); @@ -168,15 +170,16 @@ public function createCreditsWithHttpInfo($body, $xKillbillCreatedBy, $xKillbill * @param string $xKillbillCreatedBy (required) * @param string $xKillbillReason (optional) * @param string $xKillbillComment (optional) + * @param \DateTime $requestedDate (optional) * @param bool $autoCommit (optional, default to false) * @param string[] $pluginProperty (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function createCreditsAsync($body, $xKillbillCreatedBy, $xKillbillReason = null, $xKillbillComment = null, $autoCommit = 'false', $pluginProperty = null) + public function createCreditsAsync($body, $xKillbillCreatedBy, $xKillbillReason = null, $xKillbillComment = null, $requestedDate = null, $autoCommit = 'false', $pluginProperty = null) { - return $this->createCreditsAsyncWithHttpInfo($body, $xKillbillCreatedBy, $xKillbillReason, $xKillbillComment, $autoCommit, $pluginProperty) + return $this->createCreditsAsyncWithHttpInfo($body, $xKillbillCreatedBy, $xKillbillReason, $xKillbillComment, $requestedDate, $autoCommit, $pluginProperty) ->then( function ($response) { return $response[0]; @@ -193,16 +196,17 @@ function ($response) { * @param string $xKillbillCreatedBy (required) * @param string $xKillbillReason (optional) * @param string $xKillbillComment (optional) + * @param \DateTime $requestedDate (optional) * @param bool $autoCommit (optional, default to false) * @param string[] $pluginProperty (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function createCreditsAsyncWithHttpInfo($body, $xKillbillCreatedBy, $xKillbillReason = null, $xKillbillComment = null, $autoCommit = 'false', $pluginProperty = null) + public function createCreditsAsyncWithHttpInfo($body, $xKillbillCreatedBy, $xKillbillReason = null, $xKillbillComment = null, $requestedDate = null, $autoCommit = 'false', $pluginProperty = null) { $returnType = '\Killbill\Client\Swagger\Model\InvoiceItem[]'; - $request = $this->createCreditsRequest($body, $xKillbillCreatedBy, $xKillbillReason, $xKillbillComment, $autoCommit, $pluginProperty); + $request = $this->createCreditsRequest($body, $xKillbillCreatedBy, $xKillbillReason, $xKillbillComment, $requestedDate, $autoCommit, $pluginProperty); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -234,13 +238,14 @@ function ($exception) { * @param string $xKillbillCreatedBy (required) * @param string $xKillbillReason (optional) * @param string $xKillbillComment (optional) + * @param \DateTime $requestedDate (optional) * @param bool $autoCommit (optional, default to false) * @param string[] $pluginProperty (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function createCreditsRequest($body, $xKillbillCreatedBy, $xKillbillReason = null, $xKillbillComment = null, $autoCommit = 'false', $pluginProperty = null) + protected function createCreditsRequest($body, $xKillbillCreatedBy, $xKillbillReason = null, $xKillbillComment = null, $requestedDate = null, $autoCommit = 'false', $pluginProperty = null) { // verify the required parameter 'body' is set if ($body === null || (is_array($body) && count($body) === 0)) { @@ -262,6 +267,10 @@ protected function createCreditsRequest($body, $xKillbillCreatedBy, $xKillbillRe $httpBody = ''; $multipart = false; + // query params + if ($requestedDate !== null) { + $queryParams['requestedDate'] = ObjectSerializer::toQueryValue($requestedDate); + } // query params if ($autoCommit !== null) { $queryParams['autoCommit'] = ObjectSerializer::toQueryValue($autoCommit); diff --git a/lib/Api/CustomFieldApi.php b/lib/Api/CustomFieldApi.php index 6f35be2..27cf80d 100644 --- a/lib/Api/CustomFieldApi.php +++ b/lib/Api/CustomFieldApi.php @@ -14,10 +14,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Api/ExportApi.php b/lib/Api/ExportApi.php index 198261b..528ac17 100644 --- a/lib/Api/ExportApi.php +++ b/lib/Api/ExportApi.php @@ -14,10 +14,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Api/InvoiceApi.php b/lib/Api/InvoiceApi.php index 6caf563..92e4a0b 100644 --- a/lib/Api/InvoiceApi.php +++ b/lib/Api/InvoiceApi.php @@ -14,10 +14,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Api/InvoiceItemApi.php b/lib/Api/InvoiceItemApi.php index 714b1bb..c48b7e3 100644 --- a/lib/Api/InvoiceItemApi.php +++ b/lib/Api/InvoiceItemApi.php @@ -14,10 +14,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Api/InvoicePaymentApi.php b/lib/Api/InvoicePaymentApi.php index 56c1cc9..7265acd 100644 --- a/lib/Api/InvoicePaymentApi.php +++ b/lib/Api/InvoicePaymentApi.php @@ -14,10 +14,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Api/NodesInfoApi.php b/lib/Api/NodesInfoApi.php index 8bce771..41f7aaa 100644 --- a/lib/Api/NodesInfoApi.php +++ b/lib/Api/NodesInfoApi.php @@ -14,10 +14,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Api/OverdueApi.php b/lib/Api/OverdueApi.php index 3c17484..46ce395 100644 --- a/lib/Api/OverdueApi.php +++ b/lib/Api/OverdueApi.php @@ -14,10 +14,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Api/PaymentApi.php b/lib/Api/PaymentApi.php index 078ff41..6ae67d5 100644 --- a/lib/Api/PaymentApi.php +++ b/lib/Api/PaymentApi.php @@ -14,10 +14,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Api/PaymentGatewayApi.php b/lib/Api/PaymentGatewayApi.php index 56f107c..e6dbdfe 100644 --- a/lib/Api/PaymentGatewayApi.php +++ b/lib/Api/PaymentGatewayApi.php @@ -14,10 +14,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Api/PaymentMethodApi.php b/lib/Api/PaymentMethodApi.php index 697dc00..165e79e 100644 --- a/lib/Api/PaymentMethodApi.php +++ b/lib/Api/PaymentMethodApi.php @@ -14,10 +14,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Api/PaymentTransactionApi.php b/lib/Api/PaymentTransactionApi.php index f37b9b7..4af3ef6 100644 --- a/lib/Api/PaymentTransactionApi.php +++ b/lib/Api/PaymentTransactionApi.php @@ -14,10 +14,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Api/PluginInfoApi.php b/lib/Api/PluginInfoApi.php index c825b5d..d7832fd 100644 --- a/lib/Api/PluginInfoApi.php +++ b/lib/Api/PluginInfoApi.php @@ -14,10 +14,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Api/SecurityApi.php b/lib/Api/SecurityApi.php index 536d7f4..bfc10fa 100644 --- a/lib/Api/SecurityApi.php +++ b/lib/Api/SecurityApi.php @@ -14,10 +14,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -597,6 +597,214 @@ protected function addUserRolesRequest($body, $xKillbillCreatedBy, $xKillbillRea ); } + /** + * Operation getAvailableRoles + * + * List all active role definitions + * + * + * @throws \Killbill\Client\Swagger\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Killbill\Client\Swagger\Model\RoleDefinition[] + */ + public function getAvailableRoles() + { + list($response) = $this->getAvailableRolesWithHttpInfo(); + return $response; + } + + /** + * Operation getAvailableRolesWithHttpInfo + * + * List all active role definitions + * + * + * @throws \Killbill\Client\Swagger\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Killbill\Client\Swagger\Model\RoleDefinition[], HTTP status code, HTTP response headers (array of strings) + */ + public function getAvailableRolesWithHttpInfo() + { + $returnType = '\Killbill\Client\Swagger\Model\RoleDefinition[]'; + $request = $this->getAvailableRolesRequest(); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + return $this->handleResponse($request, $response, $returnType); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Killbill\Client\Swagger\Model\RoleDefinition[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getAvailableRolesAsync + * + * List all active role definitions + * + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAvailableRolesAsync() + { + return $this->getAvailableRolesAsyncWithHttpInfo() + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getAvailableRolesAsyncWithHttpInfo + * + * List all active role definitions + * + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAvailableRolesAsyncWithHttpInfo() + { + $returnType = '\Killbill\Client\Swagger\Model\RoleDefinition[]'; + $request = $this->getAvailableRolesRequest(); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($request, $returnType) { + return $this->handleResponse($request, $response, $returnType); + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getAvailableRoles' + * + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getAvailableRolesRequest() + { + + $resourcePath = '/1.0/kb/security/roles'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\Utils::jsonEncode($httpBody); + } elseif (is_array($httpBody) && $headers['Content-Type'] === 'application/json') { + $httpBody = array_map(function($value) { + return ObjectSerializer::sanitizeForSerialization($value); + }, $_tempBody); + $httpBody = \GuzzleHttp\Utils::jsonEncode($httpBody); + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); + } + } + + // this endpoint requires HTTP basic authentication + if ($this->config->getUsername() !== null || $this->config->getPassword() !== null) { + $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword()); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\Query::build($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + /** * Operation getCurrentUserPermissions * diff --git a/lib/Api/SubscriptionApi.php b/lib/Api/SubscriptionApi.php index a50483a..cb30424 100644 --- a/lib/Api/SubscriptionApi.php +++ b/lib/Api/SubscriptionApi.php @@ -14,10 +14,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -1045,7 +1045,7 @@ protected function changeSubscriptionPlanRequest($body, $xKillbillCreatedBy, $su /** * Operation createSubscription * - * Create an subscription + * Create a subscription * * @param \Killbill\Client\Swagger\Model\Subscription $body body (required) * @param string $xKillbillCreatedBy xKillbillCreatedBy (required) @@ -1073,7 +1073,7 @@ public function createSubscription($body, $xKillbillCreatedBy, $xKillbillReason /** * Operation createSubscriptionWithHttpInfo * - * Create an subscription + * Create a subscription * * @param \Killbill\Client\Swagger\Model\Subscription $body (required) * @param string $xKillbillCreatedBy (required) @@ -1129,7 +1129,7 @@ public function createSubscriptionWithHttpInfo($body, $xKillbillCreatedBy, $xKil /** * Operation createSubscriptionAsync * - * Create an subscription + * Create a subscription * * @param \Killbill\Client\Swagger\Model\Subscription $body (required) * @param string $xKillbillCreatedBy (required) @@ -1160,7 +1160,7 @@ function ($response) { /** * Operation createSubscriptionAsyncWithHttpInfo * - * Create an subscription + * Create a subscription * * @param \Killbill\Client\Swagger\Model\Subscription $body (required) * @param string $xKillbillCreatedBy (required) diff --git a/lib/Api/TagApi.php b/lib/Api/TagApi.php index 651c948..820ce7a 100644 --- a/lib/Api/TagApi.php +++ b/lib/Api/TagApi.php @@ -14,10 +14,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Api/TagDefinitionApi.php b/lib/Api/TagDefinitionApi.php index 8db3d48..5a7d03d 100644 --- a/lib/Api/TagDefinitionApi.php +++ b/lib/Api/TagDefinitionApi.php @@ -14,10 +14,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Api/TenantApi.php b/lib/Api/TenantApi.php index 43fb464..520afdc 100644 --- a/lib/Api/TenantApi.php +++ b/lib/Api/TenantApi.php @@ -14,10 +14,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Api/UsageApi.php b/lib/Api/UsageApi.php index d9289bc..cf664ce 100644 --- a/lib/Api/UsageApi.php +++ b/lib/Api/UsageApi.php @@ -14,10 +14,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/ApiException.php b/lib/ApiException.php index f27cebf..0d299a7 100644 --- a/lib/ApiException.php +++ b/lib/ApiException.php @@ -14,10 +14,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Configuration.php b/lib/Configuration.php index f8a6367..ce6cb61 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -14,10 +14,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -87,7 +87,7 @@ class Configuration * * @var string */ - protected $userAgent = 'Killbill-Client/0.24.0/php'; + protected $userAgent = 'Killbill-Client/0.25.0/php'; /** * Debug switch (default set to false) @@ -406,7 +406,7 @@ public static function toDebugReport(): string $report = 'PHP SDK (Killbill\Client\Swagger) Debug Report:' . PHP_EOL; $report .= ' OS: ' . php_uname() . PHP_EOL; $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; - $report .= ' OpenAPI Spec Version: 0.24.0' . PHP_EOL; + $report .= ' OpenAPI Spec Version: 0.25.6-SNAPSHOT' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report; diff --git a/lib/HeaderSelector.php b/lib/HeaderSelector.php index 6f24499..201c4b9 100644 --- a/lib/HeaderSelector.php +++ b/lib/HeaderSelector.php @@ -14,10 +14,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/Account.php b/lib/Model/Account.php index fda370f..de8bfd4 100644 --- a/lib/Model/Account.php +++ b/lib/Model/Account.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/AccountEmail.php b/lib/Model/AccountEmail.php index 4b45775..860ff22 100644 --- a/lib/Model/AccountEmail.php +++ b/lib/Model/AccountEmail.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/AccountTimeline.php b/lib/Model/AccountTimeline.php index f66c03a..1f0de35 100644 --- a/lib/Model/AccountTimeline.php +++ b/lib/Model/AccountTimeline.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/AdminPayment.php b/lib/Model/AdminPayment.php index 65f0223..49a778a 100644 --- a/lib/Model/AdminPayment.php +++ b/lib/Model/AdminPayment.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/AuditLog.php b/lib/Model/AuditLog.php index f3843e3..568476f 100644 --- a/lib/Model/AuditLog.php +++ b/lib/Model/AuditLog.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/BlockPrice.php b/lib/Model/BlockPrice.php index 9c2c554..b9768f4 100644 --- a/lib/Model/BlockPrice.php +++ b/lib/Model/BlockPrice.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/BlockingState.php b/lib/Model/BlockingState.php index 61fcef4..6abdd41 100644 --- a/lib/Model/BlockingState.php +++ b/lib/Model/BlockingState.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/BulkSubscriptionsBundle.php b/lib/Model/BulkSubscriptionsBundle.php index aca8d72..387ae44 100644 --- a/lib/Model/BulkSubscriptionsBundle.php +++ b/lib/Model/BulkSubscriptionsBundle.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/Bundle.php b/lib/Model/Bundle.php index 5465c68..312d289 100644 --- a/lib/Model/Bundle.php +++ b/lib/Model/Bundle.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/BundleTimeline.php b/lib/Model/BundleTimeline.php index 9512cc5..0b078ca 100644 --- a/lib/Model/BundleTimeline.php +++ b/lib/Model/BundleTimeline.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/Catalog.php b/lib/Model/Catalog.php index 46f94e7..5bc87a4 100644 --- a/lib/Model/Catalog.php +++ b/lib/Model/Catalog.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/CatalogValidation.php b/lib/Model/CatalogValidation.php index c090711..fd3505f 100644 --- a/lib/Model/CatalogValidation.php +++ b/lib/Model/CatalogValidation.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/CatalogValidationError.php b/lib/Model/CatalogValidationError.php index 64b3e40..f9f746f 100644 --- a/lib/Model/CatalogValidationError.php +++ b/lib/Model/CatalogValidationError.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/ComboHostedPaymentPage.php b/lib/Model/ComboHostedPaymentPage.php index f46b426..d1a63fe 100644 --- a/lib/Model/ComboHostedPaymentPage.php +++ b/lib/Model/ComboHostedPaymentPage.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/ComboPaymentTransaction.php b/lib/Model/ComboPaymentTransaction.php index 996ec74..5fb3843 100644 --- a/lib/Model/ComboPaymentTransaction.php +++ b/lib/Model/ComboPaymentTransaction.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/CustomField.php b/lib/Model/CustomField.php index 2969921..1861187 100644 --- a/lib/Model/CustomField.php +++ b/lib/Model/CustomField.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/Duration.php b/lib/Model/Duration.php index 92d22d6..3d91a54 100644 --- a/lib/Model/Duration.php +++ b/lib/Model/Duration.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/Entity.php b/lib/Model/Entity.php index 274cd6b..dfbf7f8 100644 --- a/lib/Model/Entity.php +++ b/lib/Model/Entity.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -56,9 +56,9 @@ class Entity implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'createdDate' => '\DateTime', -'updatedDate' => '\DateTime', -'id' => 'string' ]; + 'id' => 'string', +'createdDate' => '\DateTime', +'updatedDate' => '\DateTime' ]; /** * Array of property to format mappings. Used for (de)serialization @@ -66,9 +66,9 @@ class Entity implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'createdDate' => 'date-time', -'updatedDate' => 'date-time', -'id' => 'uuid' ]; + 'id' => 'uuid', +'createdDate' => 'date-time', +'updatedDate' => 'date-time' ]; /** * Array of property to type mappings. Used for (de)serialization @@ -97,9 +97,9 @@ public static function swaggerFormats(): array * @var string[] */ protected static $attributeMap = [ - 'createdDate' => 'createdDate', -'updatedDate' => 'updatedDate', -'id' => 'id' ]; + 'id' => 'id', +'createdDate' => 'createdDate', +'updatedDate' => 'updatedDate' ]; /** * Array of attributes to setter functions (for deserialization of responses) @@ -107,9 +107,9 @@ public static function swaggerFormats(): array * @var string[] */ protected static $setters = [ - 'createdDate' => 'setCreatedDate', -'updatedDate' => 'setUpdatedDate', -'id' => 'setId' ]; + 'id' => 'setId', +'createdDate' => 'setCreatedDate', +'updatedDate' => 'setUpdatedDate' ]; /** * Array of attributes to getter functions (for serialization of requests) @@ -117,9 +117,9 @@ public static function swaggerFormats(): array * @var string[] */ protected static $getters = [ - 'createdDate' => 'getCreatedDate', -'updatedDate' => 'getUpdatedDate', -'id' => 'getId' ]; + 'id' => 'getId', +'createdDate' => 'getCreatedDate', +'updatedDate' => 'getUpdatedDate' ]; /** * Array of attributes where the key is the local name, @@ -179,9 +179,9 @@ public function getModelName(): string */ public function __construct(array $data = null) { + $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['createdDate'] = isset($data['createdDate']) ? $data['createdDate'] : null; $this->container['updatedDate'] = isset($data['updatedDate']) ? $data['updatedDate'] : null; - $this->container['id'] = isset($data['id']) ? $data['id'] : null; } /** @@ -209,73 +209,73 @@ public function valid(): bool /** - * Gets createdDate + * Gets id * - * @return \DateTime + * @return string */ - public function getCreatedDate() + public function getId() { - return $this->container['createdDate']; + return $this->container['id']; } /** - * Sets createdDate + * Sets id * - * @param \DateTime $createdDate createdDate + * @param string $id id * * @return $this */ - public function setCreatedDate($createdDate): Entity + public function setId($id): Entity { - $this->container['createdDate'] = $createdDate; + $this->container['id'] = $id; return $this; } /** - * Gets updatedDate + * Gets createdDate * * @return \DateTime */ - public function getUpdatedDate() + public function getCreatedDate() { - return $this->container['updatedDate']; + return $this->container['createdDate']; } /** - * Sets updatedDate + * Sets createdDate * - * @param \DateTime $updatedDate updatedDate + * @param \DateTime $createdDate createdDate * * @return $this */ - public function setUpdatedDate($updatedDate): Entity + public function setCreatedDate($createdDate): Entity { - $this->container['updatedDate'] = $updatedDate; + $this->container['createdDate'] = $createdDate; return $this; } /** - * Gets id + * Gets updatedDate * - * @return string + * @return \DateTime */ - public function getId() + public function getUpdatedDate() { - return $this->container['id']; + return $this->container['updatedDate']; } /** - * Sets id + * Sets updatedDate * - * @param string $id id + * @param \DateTime $updatedDate updatedDate * * @return $this */ - public function setId($id): Entity + public function setUpdatedDate($updatedDate): Entity { - $this->container['id'] = $id; + $this->container['updatedDate'] = $updatedDate; return $this; } diff --git a/lib/Model/EventSubscription.php b/lib/Model/EventSubscription.php index ff45c0a..824bc32 100644 --- a/lib/Model/EventSubscription.php +++ b/lib/Model/EventSubscription.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -242,6 +242,9 @@ public function getModelName(): string const EVENT_TYPE_RESUME_BILLING = 'RESUME_BILLING'; const EVENT_TYPE_PHASE = 'PHASE'; const EVENT_TYPE_CHANGE = 'CHANGE'; +const EVENT_TYPE_EXPIRED = 'EXPIRED'; +const EVENT_TYPE_BCD_UPDATE = 'BCD_UPDATE'; +const EVENT_TYPE_QUANTITY_UPDATE = 'QUANTITY_UPDATE'; const EVENT_TYPE_STOP_ENTITLEMENT = 'STOP_ENTITLEMENT'; const EVENT_TYPE_STOP_BILLING = 'STOP_BILLING'; const EVENT_TYPE_SERVICE_STATE_CHANGE = 'SERVICE_STATE_CHANGE'; @@ -288,6 +291,9 @@ public function getEventTypeAllowableValues(): array self::EVENT_TYPE_RESUME_BILLING, self::EVENT_TYPE_PHASE, self::EVENT_TYPE_CHANGE, +self::EVENT_TYPE_EXPIRED, +self::EVENT_TYPE_BCD_UPDATE, +self::EVENT_TYPE_QUANTITY_UPDATE, self::EVENT_TYPE_STOP_ENTITLEMENT, self::EVENT_TYPE_STOP_BILLING, self::EVENT_TYPE_SERVICE_STATE_CHANGE, ]; diff --git a/lib/Model/HostedPaymentPageFields.php b/lib/Model/HostedPaymentPageFields.php index 2471af7..abb9679 100644 --- a/lib/Model/HostedPaymentPageFields.php +++ b/lib/Model/HostedPaymentPageFields.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/HostedPaymentPageFormDescriptor.php b/lib/Model/HostedPaymentPageFormDescriptor.php index 370bab6..22f6253 100644 --- a/lib/Model/HostedPaymentPageFormDescriptor.php +++ b/lib/Model/HostedPaymentPageFormDescriptor.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/Invoice.php b/lib/Model/Invoice.php index 0517916..14ea644 100644 --- a/lib/Model/Invoice.php +++ b/lib/Model/Invoice.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InvoiceDryRun.php b/lib/Model/InvoiceDryRun.php index 7d02d6a..16f2aff 100644 --- a/lib/Model/InvoiceDryRun.php +++ b/lib/Model/InvoiceDryRun.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -223,6 +223,9 @@ public function getModelName(): string const DRY_RUN_ACTION_RESUME_BILLING = 'RESUME_BILLING'; const DRY_RUN_ACTION_PHASE = 'PHASE'; const DRY_RUN_ACTION_CHANGE = 'CHANGE'; +const DRY_RUN_ACTION_EXPIRED = 'EXPIRED'; +const DRY_RUN_ACTION_BCD_UPDATE = 'BCD_UPDATE'; +const DRY_RUN_ACTION_QUANTITY_UPDATE = 'QUANTITY_UPDATE'; const DRY_RUN_ACTION_STOP_ENTITLEMENT = 'STOP_ENTITLEMENT'; const DRY_RUN_ACTION_STOP_BILLING = 'STOP_BILLING'; const DRY_RUN_ACTION_SERVICE_STATE_CHANGE = 'SERVICE_STATE_CHANGE'; @@ -283,6 +286,9 @@ public function getDryRunActionAllowableValues(): array self::DRY_RUN_ACTION_RESUME_BILLING, self::DRY_RUN_ACTION_PHASE, self::DRY_RUN_ACTION_CHANGE, +self::DRY_RUN_ACTION_EXPIRED, +self::DRY_RUN_ACTION_BCD_UPDATE, +self::DRY_RUN_ACTION_QUANTITY_UPDATE, self::DRY_RUN_ACTION_STOP_ENTITLEMENT, self::DRY_RUN_ACTION_STOP_BILLING, self::DRY_RUN_ACTION_SERVICE_STATE_CHANGE, ]; diff --git a/lib/Model/InvoiceItem.php b/lib/Model/InvoiceItem.php index cc9b350..c30dd51 100644 --- a/lib/Model/InvoiceItem.php +++ b/lib/Model/InvoiceItem.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InvoicePayment.php b/lib/Model/InvoicePayment.php index f9a14c9..a966529 100644 --- a/lib/Model/InvoicePayment.php +++ b/lib/Model/InvoicePayment.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InvoicePaymentTransaction.php b/lib/Model/InvoicePaymentTransaction.php index 248b1e0..f8acb86 100644 --- a/lib/Model/InvoicePaymentTransaction.php +++ b/lib/Model/InvoicePaymentTransaction.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/Limit.php b/lib/Model/Limit.php index 5543121..c33c1e5 100644 --- a/lib/Model/Limit.php +++ b/lib/Model/Limit.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/ModelInterface.php b/lib/Model/ModelInterface.php index d1741e6..231e775 100644 --- a/lib/Model/ModelInterface.php +++ b/lib/Model/ModelInterface.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/NodeCommand.php b/lib/Model/NodeCommand.php index f3e6a20..fd10283 100644 --- a/lib/Model/NodeCommand.php +++ b/lib/Model/NodeCommand.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/NodeCommandProperty.php b/lib/Model/NodeCommandProperty.php index b5d84b0..d796661 100644 --- a/lib/Model/NodeCommandProperty.php +++ b/lib/Model/NodeCommandProperty.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/NodeInfo.php b/lib/Model/NodeInfo.php index 3e9e261..b90963e 100644 --- a/lib/Model/NodeInfo.php +++ b/lib/Model/NodeInfo.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/Overdue.php b/lib/Model/Overdue.php index 2f4244a..f248aa4 100644 --- a/lib/Model/Overdue.php +++ b/lib/Model/Overdue.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/OverdueCondition.php b/lib/Model/OverdueCondition.php index e9ec725..52bc326 100644 --- a/lib/Model/OverdueCondition.php +++ b/lib/Model/OverdueCondition.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/OverdueState.php b/lib/Model/OverdueState.php index 0d0e03c..15abe43 100644 --- a/lib/Model/OverdueState.php +++ b/lib/Model/OverdueState.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/OverdueStateConfig.php b/lib/Model/OverdueStateConfig.php index 8621736..6532b27 100644 --- a/lib/Model/OverdueStateConfig.php +++ b/lib/Model/OverdueStateConfig.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/Payment.php b/lib/Model/Payment.php index 0c6cf23..654dbe3 100644 --- a/lib/Model/Payment.php +++ b/lib/Model/Payment.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/PaymentAttempt.php b/lib/Model/PaymentAttempt.php index 983b5eb..d0e7539 100644 --- a/lib/Model/PaymentAttempt.php +++ b/lib/Model/PaymentAttempt.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/PaymentMethod.php b/lib/Model/PaymentMethod.php index 73c1c77..43ff2a3 100644 --- a/lib/Model/PaymentMethod.php +++ b/lib/Model/PaymentMethod.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/PaymentMethodPluginDetail.php b/lib/Model/PaymentMethodPluginDetail.php index 288ba4e..6e2c95a 100644 --- a/lib/Model/PaymentMethodPluginDetail.php +++ b/lib/Model/PaymentMethodPluginDetail.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/PaymentTransaction.php b/lib/Model/PaymentTransaction.php index 680eefc..fe9f4f3 100644 --- a/lib/Model/PaymentTransaction.php +++ b/lib/Model/PaymentTransaction.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/Phase.php b/lib/Model/Phase.php index 922fc20..6971b6c 100644 --- a/lib/Model/Phase.php +++ b/lib/Model/Phase.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/PhasePrice.php b/lib/Model/PhasePrice.php index 7ccb813..cdc9e92 100644 --- a/lib/Model/PhasePrice.php +++ b/lib/Model/PhasePrice.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/Plan.php b/lib/Model/Plan.php index 67cb6c6..6b9ef16 100644 --- a/lib/Model/Plan.php +++ b/lib/Model/Plan.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/PlanDetail.php b/lib/Model/PlanDetail.php index 35e5a3a..3a1cf84 100644 --- a/lib/Model/PlanDetail.php +++ b/lib/Model/PlanDetail.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/PluginInfo.php b/lib/Model/PluginInfo.php index 39185b4..94755b6 100644 --- a/lib/Model/PluginInfo.php +++ b/lib/Model/PluginInfo.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/PluginProperty.php b/lib/Model/PluginProperty.php index df04931..5d470b8 100644 --- a/lib/Model/PluginProperty.php +++ b/lib/Model/PluginProperty.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/PluginServiceInfo.php b/lib/Model/PluginServiceInfo.php index 43d3f63..5ebda24 100644 --- a/lib/Model/PluginServiceInfo.php +++ b/lib/Model/PluginServiceInfo.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/Price.php b/lib/Model/Price.php index e7119b9..e31511c 100644 --- a/lib/Model/Price.php +++ b/lib/Model/Price.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/PriceList.php b/lib/Model/PriceList.php index 6d6103a..246c6ff 100644 --- a/lib/Model/PriceList.php +++ b/lib/Model/PriceList.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/Product.php b/lib/Model/Product.php index 9ce7639..3f48c20 100644 --- a/lib/Model/Product.php +++ b/lib/Model/Product.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/RoleDefinition.php b/lib/Model/RoleDefinition.php index 99d1f75..c113f7b 100644 --- a/lib/Model/RoleDefinition.php +++ b/lib/Model/RoleDefinition.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/RolledUpUnit.php b/lib/Model/RolledUpUnit.php index f0c4f0b..c7f39f1 100644 --- a/lib/Model/RolledUpUnit.php +++ b/lib/Model/RolledUpUnit.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/RolledUpUsage.php b/lib/Model/RolledUpUsage.php index 75f7968..86ea32c 100644 --- a/lib/Model/RolledUpUsage.php +++ b/lib/Model/RolledUpUsage.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/Session.php b/lib/Model/Session.php index d9ac601..4c9a239 100644 --- a/lib/Model/Session.php +++ b/lib/Model/Session.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/SimplePlan.php b/lib/Model/SimplePlan.php index a96c7aa..d40228c 100644 --- a/lib/Model/SimplePlan.php +++ b/lib/Model/SimplePlan.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/Subject.php b/lib/Model/Subject.php index e8f9cc7..23a1e7a 100644 --- a/lib/Model/Subject.php +++ b/lib/Model/Subject.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/Subscription.php b/lib/Model/Subscription.php index 41fa6cf..821b369 100644 --- a/lib/Model/Subscription.php +++ b/lib/Model/Subscription.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/SubscriptionUsageRecord.php b/lib/Model/SubscriptionUsageRecord.php index c9a3635..e9a3e01 100644 --- a/lib/Model/SubscriptionUsageRecord.php +++ b/lib/Model/SubscriptionUsageRecord.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/Tag.php b/lib/Model/Tag.php index e1935ef..877bbcc 100644 --- a/lib/Model/Tag.php +++ b/lib/Model/Tag.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/TagDefinition.php b/lib/Model/TagDefinition.php index 96b0830..16e05f2 100644 --- a/lib/Model/TagDefinition.php +++ b/lib/Model/TagDefinition.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/Tenant.php b/lib/Model/Tenant.php index c3ba100..fee0c7c 100644 --- a/lib/Model/Tenant.php +++ b/lib/Model/Tenant.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/TenantKeyValue.php b/lib/Model/TenantKeyValue.php index c5eb008..41f21ae 100644 --- a/lib/Model/TenantKeyValue.php +++ b/lib/Model/TenantKeyValue.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/Tier.php b/lib/Model/Tier.php index 218b57a..73e5eca 100644 --- a/lib/Model/Tier.php +++ b/lib/Model/Tier.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/TierPrice.php b/lib/Model/TierPrice.php index 3c1400f..46cbcf3 100644 --- a/lib/Model/TierPrice.php +++ b/lib/Model/TierPrice.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/TieredBlock.php b/lib/Model/TieredBlock.php index 72ea862..2ea7d03 100644 --- a/lib/Model/TieredBlock.php +++ b/lib/Model/TieredBlock.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/Unit.php b/lib/Model/Unit.php index 222169b..a2e3834 100644 --- a/lib/Model/Unit.php +++ b/lib/Model/Unit.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/UnitUsageRecord.php b/lib/Model/UnitUsageRecord.php index c9c26d1..b09709b 100644 --- a/lib/Model/UnitUsageRecord.php +++ b/lib/Model/UnitUsageRecord.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/Usage.php b/lib/Model/Usage.php index ebc020f..f97725e 100644 --- a/lib/Model/Usage.php +++ b/lib/Model/Usage.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/UsagePrice.php b/lib/Model/UsagePrice.php index 48fd844..e7f2b89 100644 --- a/lib/Model/UsagePrice.php +++ b/lib/Model/UsagePrice.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/UsageRecord.php b/lib/Model/UsageRecord.php index c04138f..0a609f4 100644 --- a/lib/Model/UsageRecord.php +++ b/lib/Model/UsageRecord.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/UserRoles.php b/lib/Model/UserRoles.php index 05bbf9b..78581d6 100644 --- a/lib/Model/UserRoles.php +++ b/lib/Model/UserRoles.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/ObjectSerializer.php b/lib/ObjectSerializer.php index dd2ae27..f118a88 100644 --- a/lib/ObjectSerializer.php +++ b/lib/ObjectSerializer.php @@ -15,10 +15,10 @@ * * Kill Bill is an open-source billing and payments platform * - * OpenAPI spec version: 0.24.0 + * OpenAPI spec version: 0.25.6-SNAPSHOT * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.22 + * Swagger Codegen version: 3.0.79 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/templates/README.mustache b/templates/README.mustache index 1b7d8c9..29c88c1 100755 --- a/templates/README.mustache +++ b/templates/README.mustache @@ -79,7 +79,7 @@ $config = {{{invokerPackage}}}\Configuration::getDefaultConfiguration()->setApiK $config = {{{invokerPackage}}}\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');{{/isOAuth}}{{/authMethods}} {{/hasAuthMethods}} -$apiInstance = new {{concat apiPackage '\\' classname}}( +$apiInstance = new {{apiPackage}}{{backslash}}{{classname}}( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(){{#hasAuthMethods}}, diff --git a/templates/api_doc.mustache b/templates/api_doc.mustache index 390537b..0b8a852 100755 --- a/templates/api_doc.mustache +++ b/templates/api_doc.mustache @@ -1,4 +1,4 @@ -# {{concat invokerPackage '\\' classname}}{{#description}} +# {{invokerPackage}}{{backslash}}{{classname}}{{#description}} {{description}}{{/description}} All URIs are relative to *{{basePath}}* @@ -40,7 +40,7 @@ $config = {{{invokerPackage}}}\Configuration::getDefaultConfiguration()->setApiK $config = {{{invokerPackage}}}\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');{{/isOAuth}}{{/authMethods}} {{/hasAuthMethods}} -$apiInstance = new {{concat apiPackage '\\' classname}}( +$apiInstance = new {{apiPackage}}{{backslash}}{{classname}}( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(){{#hasAuthMethods}}, diff --git a/test/ServerInvoiceTest.php b/test/ServerInvoiceTest.php index bb68934..e4f9bfe 100644 --- a/test/ServerInvoiceTest.php +++ b/test/ServerInvoiceTest.php @@ -351,13 +351,12 @@ public function itShouldCreateInvoiceWhenSubscribedOnBasePlanAndConsumableAddon( $this->clock->addDays(35); - $this->clock->waitForExpectedClause(3, [$this, 'getAccountInvoicesNumber'], [$this->account->getAccountId()]); + $this->clock->waitForExpectedClause(2, [$this, 'getAccountInvoicesNumber'], [$this->account->getAccountId()]); $invoicesNextMonth = $this->client->getAccountApi()->getInvoicesForAccount($this->account->getAccountId(), $startDate = null, $endDate = null, $withMigrationInvoices = 'false', $unpaidInvoicesOnly = 'false', $includeVoidedInvoices = 'false', $includeInvoiceComponents = 'true'); - $this->assertCount(3, $invoicesNextMonth); + $this->assertCount(2, $invoicesNextMonth); $this->assertSame(0.0, $invoicesNextMonth[0]->getAmount()); - $this->assertSame(0.0, $invoicesNextMonth[1]->getAmount()); - $this->assertSame(500.0, $invoicesNextMonth[2]->getAmount()); + $this->assertSame(500.0, $invoicesNextMonth[1]->getAmount()); } /**