diff --git a/composer.json b/composer.json index 89ccb1f..f98961c 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "quantimodo/quantimodo-sdk-php", - "version": "5.10.32613", + "version": "5.10.111410", "description": "", "keywords": [ "swagger", diff --git a/docs/Api/UserApi.md b/docs/Api/UserApi.md index bd44c2f..2017246 100644 --- a/docs/Api/UserApi.md +++ b/docs/Api/UserApi.md @@ -7,6 +7,7 @@ Method | HTTP request | Description [**deleteUser**](UserApi.md#deleteUser) | **DELETE** /v3/user/delete | Delete user [**getUser**](UserApi.md#getUser) | **GET** /v3/user | Get user info [**getUserBlogs**](UserApi.md#getUserBlogs) | **GET** /v3/userBlogs | Get UserBlogs +[**getUsers**](UserApi.md#getUsers) | **GET** /v3/users | Get users who shared data [**postUserBlogs**](UserApi.md#postUserBlogs) | **POST** /v3/userBlogs | Post UserBlogs [**postUserSettings**](UserApi.md#postUserSettings) | **POST** /v3/userSettings | Post UserSettings @@ -226,6 +227,85 @@ Name | Type | Description | Notes [[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) +# **getUsers** +> \QuantiModo\Client\Model\UsersResponse getUsers($user_id, $created_at, $updated_at, $limit, $offset, $sort, $client_id, $app_version, $client_user_id, $platform, $log, $pwd) + +Get users who shared data + +Returns users who have granted access to their data + +### Example +```php +setApiKey('access_token', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = QuantiModo\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('access_token', 'Bearer'); +// Configure OAuth2 access token for authorization: quantimodo_oauth2 +$config = QuantiModo\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); + +$apiInstance = new QuantiModo\Client\Api\UserApi( + // 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 +); +$user_id = 8.14; // float | User's id +$created_at = "created_at_example"; // string | When the record was first created. Use UTC ISO 8601 YYYY-MM-DDThh:mm:ss datetime format. Time zone should be UTC and not local. +$updated_at = "updated_at_example"; // string | When the record was last updated. Use UTC ISO 8601 YYYY-MM-DDThh:mm:ss datetime format. Time zone should be UTC and not local. +$limit = 100; // int | The LIMIT is used to limit the number of results returned. So if youhave 1000 results, but only want to the first 10, you would set this to 10 and offset to 0. The maximum limit is 200 records. +$offset = 56; // int | OFFSET says to skip that many rows before beginning to return rows to the client. OFFSET 0 is the same as omitting the OFFSET clause.If both OFFSET and LIMIT appear, then OFFSET rows are skipped before starting to count the LIMIT rows that are returned. +$sort = "sort_example"; // string | Sort by one of the listed field names. If the field name is prefixed with `-`, it will sort in descending order. +$client_id = "client_id_example"; // string | Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do +$app_version = "app_version_example"; // string | Ex: 2.1.1.0 +$client_user_id = 56; // int | Ex: 74802 +$platform = "platform_example"; // string | Ex: chrome, android, ios, web +$log = "log_example"; // string | Username or email +$pwd = "pwd_example"; // string | User password + +try { + $result = $apiInstance->getUsers($user_id, $created_at, $updated_at, $limit, $offset, $sort, $client_id, $app_version, $client_user_id, $platform, $log, $pwd); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling UserApi->getUsers: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_id** | **float**| User's id | [optional] + **created_at** | **string**| When the record was first created. Use UTC ISO 8601 YYYY-MM-DDThh:mm:ss datetime format. Time zone should be UTC and not local. | [optional] + **updated_at** | **string**| When the record was last updated. Use UTC ISO 8601 YYYY-MM-DDThh:mm:ss datetime format. Time zone should be UTC and not local. | [optional] + **limit** | **int**| The LIMIT is used to limit the number of results returned. So if youhave 1000 results, but only want to the first 10, you would set this to 10 and offset to 0. The maximum limit is 200 records. | [optional] [default to 100] + **offset** | **int**| OFFSET says to skip that many rows before beginning to return rows to the client. OFFSET 0 is the same as omitting the OFFSET clause.If both OFFSET and LIMIT appear, then OFFSET rows are skipped before starting to count the LIMIT rows that are returned. | [optional] + **sort** | **string**| Sort by one of the listed field names. If the field name is prefixed with `-`, it will sort in descending order. | [optional] + **client_id** | **string**| Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do | [optional] + **app_version** | **string**| Ex: 2.1.1.0 | [optional] + **client_user_id** | **int**| Ex: 74802 | [optional] + **platform** | **string**| Ex: chrome, android, ios, web | [optional] + **log** | **string**| Username or email | [optional] + **pwd** | **string**| User password | [optional] + +### Return type + +[**\QuantiModo\Client\Model\UsersResponse**](../Model/UsersResponse.md) + +### Authorization + +[access_token](../../README.md#access_token), [quantimodo_oauth2](../../README.md#quantimodo_oauth2) + +### HTTP request headers + + - **Content-Type**: application/json + - **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) + # **postUserBlogs** > \QuantiModo\Client\Model\UserBlogsResponse[] postUserBlogs($sort, $limit, $offset, $updated_at, $user_id, $created_at, $id, $client_id, $platform) diff --git a/docs/Api/VariablesApi.md b/docs/Api/VariablesApi.md index f66a43e..fcee8f4 100644 --- a/docs/Api/VariablesApi.md +++ b/docs/Api/VariablesApi.md @@ -182,7 +182,7 @@ This endpoint does not need any parameter. [[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) # **getVariables** -> \QuantiModo\Client\Model\Variable[] getVariables($include_charts, $number_of_raw_measurements, $user_id, $variable_category_name, $name, $variable_name, $updated_at, $source_name, $earliest_measurement_time, $latest_measurement_time, $id, $last_source_name, $limit, $offset, $sort, $include_public, $manual_tracking, $client_id, $upc, $effect_or_cause, $public_effect_or_cause, $exact_match, $variable_category_id, $include_private, $search_phrase, $synonyms, $tagged_variable_id, $tag_variable_id, $join_variable_id, $parent_user_tag_variable_id, $child_user_tag_variable_id, $ingredient_user_tag_variable_id, $ingredient_of_user_tag_variable_id, $common_only, $user_only, $platform, $include_tags, $recalculate, $variable_id, $concise) +> \QuantiModo\Client\Model\Variable[] getVariables($include_charts, $number_of_raw_measurements, $user_id, $variable_category_name, $name, $variable_name, $updated_at, $source_name, $earliest_measurement_time, $latest_measurement_time, $id, $last_source_name, $limit, $offset, $sort, $include_public, $manual_tracking, $client_id, $upc, $effect_or_cause, $public_effect_or_cause, $exact_match, $variable_category_id, $include_private, $search_phrase, $synonyms, $tagged_variable_id, $tag_variable_id, $join_variable_id, $parent_user_tag_variable_id, $child_user_tag_variable_id, $ingredient_user_tag_variable_id, $ingredient_of_user_tag_variable_id, $common_only, $user_only, $platform, $include_tags, $recalculate, $variable_id, $concise, $refresh) Get variables along with related user-specific analysis settings and statistics @@ -246,9 +246,10 @@ $include_tags = true; // bool | Return parent, child, duplicate, and ingredient $recalculate = true; // bool | Recalculate instead of using cached analysis $variable_id = 56; // int | Ex: 13 $concise = true; // bool | Only return field required for variable auto-complete searches. The smaller size allows for storing more variable results locally reducing API requests. +$refresh = true; // bool | Regenerate charts instead of getting from the cache try { - $result = $apiInstance->getVariables($include_charts, $number_of_raw_measurements, $user_id, $variable_category_name, $name, $variable_name, $updated_at, $source_name, $earliest_measurement_time, $latest_measurement_time, $id, $last_source_name, $limit, $offset, $sort, $include_public, $manual_tracking, $client_id, $upc, $effect_or_cause, $public_effect_or_cause, $exact_match, $variable_category_id, $include_private, $search_phrase, $synonyms, $tagged_variable_id, $tag_variable_id, $join_variable_id, $parent_user_tag_variable_id, $child_user_tag_variable_id, $ingredient_user_tag_variable_id, $ingredient_of_user_tag_variable_id, $common_only, $user_only, $platform, $include_tags, $recalculate, $variable_id, $concise); + $result = $apiInstance->getVariables($include_charts, $number_of_raw_measurements, $user_id, $variable_category_name, $name, $variable_name, $updated_at, $source_name, $earliest_measurement_time, $latest_measurement_time, $id, $last_source_name, $limit, $offset, $sort, $include_public, $manual_tracking, $client_id, $upc, $effect_or_cause, $public_effect_or_cause, $exact_match, $variable_category_id, $include_private, $search_phrase, $synonyms, $tagged_variable_id, $tag_variable_id, $join_variable_id, $parent_user_tag_variable_id, $child_user_tag_variable_id, $ingredient_user_tag_variable_id, $ingredient_of_user_tag_variable_id, $common_only, $user_only, $platform, $include_tags, $recalculate, $variable_id, $concise, $refresh); print_r($result); } catch (Exception $e) { echo 'Exception when calling VariablesApi->getVariables: ', $e->getMessage(), PHP_EOL; @@ -300,6 +301,7 @@ Name | Type | Description | Notes **recalculate** | **bool**| Recalculate instead of using cached analysis | [optional] **variable_id** | **int**| Ex: 13 | [optional] **concise** | **bool**| Only return field required for variable auto-complete searches. The smaller size allows for storing more variable results locally reducing API requests. | [optional] + **refresh** | **bool**| Regenerate charts instead of getting from the cache | [optional] ### Return type diff --git a/docs/Model/ActivitiesResponse.md b/docs/Model/ActivitiesResponse.md index 9e8014a..75eedbb 100644 --- a/docs/Model/ActivitiesResponse.md +++ b/docs/Model/ActivitiesResponse.md @@ -10,6 +10,12 @@ Name | Type | Description | Notes **avatar** | **string** | Square icon png url | [optional] **ion_icon** | **string** | Ex: ion-ios-person | [optional] **html** | **string** | Embeddable list of study summaries with explanation at the top | [optional] +**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional] +**status** | **string** | ex. OK or ERROR | [optional] +**success** | **bool** | true or false | [optional] +**code** | **float** | Response code such as 200 | [optional] +**link** | **string** | A super neat url you might want to share with your users! | [optional] +**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [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/docs/Model/AppSettings.md b/docs/Model/AppSettings.md index 7247371..77dbef0 100644 --- a/docs/Model/AppSettings.md +++ b/docs/Model/AppSettings.md @@ -10,11 +10,11 @@ Name | Type | Description | Notes **app_status** | **object** | What do you expect? | [optional] **app_type** | **string** | What do you expect? | [optional] **build_enabled** | **string** | What do you expect? | [optional] -**client_id** | **string** | What do you expect? | -**client_secret** | **string** | What do you expect? | [optional] +**client_id** | **string** | Get yours at https:://builder.quantimo.do | +**client_secret** | **string** | Get yours at https:://builder.quantimo.do | [optional] **collaborators** | [**\QuantiModo\Client\Model\User[]**](User.md) | What do you expect? | [optional] **created_at** | **string** | What do you expect? | [optional] -**user_id** | **string** | What do you expect? | [optional] +**user_id** | **int** | User id of the owner of the application | [optional] **users** | [**\QuantiModo\Client\Model\User[]**](User.md) | What do you expect? | [optional] **redirect_uri** | **string** | What do you expect? | [optional] **company_name** | **string** | What do you expect? | [optional] diff --git a/docs/Model/AppSettingsResponse.md b/docs/Model/AppSettingsResponse.md index ebb9b2c..c30fd6b 100644 --- a/docs/Model/AppSettingsResponse.md +++ b/docs/Model/AppSettingsResponse.md @@ -6,6 +6,12 @@ Name | Type | Description | Notes **app_settings** | [**\QuantiModo\Client\Model\AppSettings**](AppSettings.md) | | [optional] **description** | **string** | Can be used as body of help info popup | **summary** | **string** | Can be used as title in help info popup | +**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional] +**status** | **string** | ex. OK or ERROR | [optional] +**success** | **bool** | true or false | [optional] +**code** | **float** | Response code such as 200 | [optional] +**link** | **string** | A super neat url you might want to share with your users! | [optional] +**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [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/docs/Model/CommonResponse.md b/docs/Model/CommonResponse.md index 0e876c9..6208976 100644 --- a/docs/Model/CommonResponse.md +++ b/docs/Model/CommonResponse.md @@ -5,6 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **description** | **string** | Can be used as body of help info popup | **summary** | **string** | Can be used as title in help info popup | +**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional] +**status** | **string** | ex. OK or ERROR | [optional] +**success** | **bool** | true or false | [optional] +**code** | **float** | Response code such as 200 | [optional] +**link** | **string** | A super neat url you might want to share with your users! | [optional] +**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [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/docs/Model/Error.md b/docs/Model/Error.md new file mode 100644 index 0000000..8402206 --- /dev/null +++ b/docs/Model/Error.md @@ -0,0 +1,10 @@ +# Error + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **string** | Error message | + +[[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/docs/Model/FeedResponse.md b/docs/Model/FeedResponse.md index 92aa058..ec43bea 100644 --- a/docs/Model/FeedResponse.md +++ b/docs/Model/FeedResponse.md @@ -6,6 +6,12 @@ Name | Type | Description | Notes **cards** | [**\QuantiModo\Client\Model\Card[]**](Card.md) | | **description** | **string** | Tracking reminder notifications, messages, and study result cards that can be displayed in user feed or stream | **summary** | **string** | Tracking reminder notifications, messages, and study results | +**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional] +**status** | **string** | ex. OK or ERROR | [optional] +**success** | **bool** | true or false | [optional] +**code** | **float** | Response code such as 200 | [optional] +**link** | **string** | A super neat url you might want to share with your users! | [optional] +**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [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/docs/Model/FriendsResponse.md b/docs/Model/FriendsResponse.md index 164cca4..a0ff819 100644 --- a/docs/Model/FriendsResponse.md +++ b/docs/Model/FriendsResponse.md @@ -10,6 +10,12 @@ Name | Type | Description | Notes **avatar** | **string** | Square icon png url | [optional] **ion_icon** | **string** | Ex: ion-ios-person | [optional] **html** | **string** | Embeddable list of study summaries with explanation at the top | [optional] +**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional] +**status** | **string** | ex. OK or ERROR | [optional] +**success** | **bool** | true or false | [optional] +**code** | **float** | Response code such as 200 | [optional] +**link** | **string** | A super neat url you might want to share with your users! | [optional] +**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [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/docs/Model/GetConnectorsResponse.md b/docs/Model/GetConnectorsResponse.md index 28a35e3..56ee244 100644 --- a/docs/Model/GetConnectorsResponse.md +++ b/docs/Model/GetConnectorsResponse.md @@ -6,6 +6,12 @@ Name | Type | Description | Notes **connectors** | [**\QuantiModo\Client\Model\DataSource[]**](DataSource.md) | | [optional] **description** | **string** | Can be used as body of help info popup | **summary** | **string** | Can be used as title in help info popup | +**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional] +**status** | **string** | ex. OK or ERROR | [optional] +**success** | **bool** | true or false | [optional] +**code** | **float** | Response code such as 200 | [optional] +**link** | **string** | A super neat url you might want to share with your users! | [optional] +**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [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/docs/Model/GetCorrelationsDataResponse.md b/docs/Model/GetCorrelationsDataResponse.md index 69aebe4..55fa346 100644 --- a/docs/Model/GetCorrelationsDataResponse.md +++ b/docs/Model/GetCorrelationsDataResponse.md @@ -7,6 +7,12 @@ Name | Type | Description | Notes **explanation** | [**\QuantiModo\Client\Model\Explanation**](Explanation.md) | | **description** | **string** | Can be used as body of help info popup | [optional] **summary** | **string** | Can be used as title in help info popup | [optional] +**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional] +**status** | **string** | ex. OK or ERROR | [optional] +**success** | **bool** | true or false | [optional] +**code** | **float** | Response code such as 200 | [optional] +**link** | **string** | A super neat url you might want to share with your users! | [optional] +**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [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/docs/Model/GetCorrelationsResponse.md b/docs/Model/GetCorrelationsResponse.md index 2a88c25..5b3e92a 100644 --- a/docs/Model/GetCorrelationsResponse.md +++ b/docs/Model/GetCorrelationsResponse.md @@ -7,6 +7,12 @@ Name | Type | Description | Notes **description** | **string** | Can be used as body of help info popup | **summary** | **string** | Can be used as title in help info popup | **avatar** | **string** | Square icon png url | [optional] +**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional] +**status** | **string** | ex. OK or ERROR | [optional] +**success** | **bool** | true or false | [optional] +**code** | **float** | Response code such as 200 | [optional] +**link** | **string** | A super neat url you might want to share with your users! | [optional] +**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [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/docs/Model/GetSharesResponse.md b/docs/Model/GetSharesResponse.md index 6d1aabc..9ab92f4 100644 --- a/docs/Model/GetSharesResponse.md +++ b/docs/Model/GetSharesResponse.md @@ -6,6 +6,12 @@ Name | Type | Description | Notes **authorized_clients** | [**\QuantiModo\Client\Model\AuthorizedClients**](AuthorizedClients.md) | | [optional] **description** | **string** | Can be used as body of help info popup | **summary** | **string** | Can be used as title in help info popup | +**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional] +**status** | **string** | ex. OK or ERROR | [optional] +**success** | **bool** | true or false | [optional] +**code** | **float** | Response code such as 200 | [optional] +**link** | **string** | A super neat url you might want to share with your users! | [optional] +**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [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/docs/Model/GetTrackingReminderNotificationsResponse.md b/docs/Model/GetTrackingReminderNotificationsResponse.md index e4df8e4..aca5c23 100644 --- a/docs/Model/GetTrackingReminderNotificationsResponse.md +++ b/docs/Model/GetTrackingReminderNotificationsResponse.md @@ -6,6 +6,12 @@ Name | Type | Description | Notes **data** | [**\QuantiModo\Client\Model\TrackingReminderNotification[]**](TrackingReminderNotification.md) | | [optional] **description** | **string** | Can be used as body of help info popup | **summary** | **string** | Can be used as title in help info popup | +**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional] +**status** | **string** | ex. OK or ERROR | [optional] +**success** | **bool** | true or false | [optional] +**code** | **float** | Response code such as 200 | [optional] +**link** | **string** | A super neat url you might want to share with your users! | [optional] +**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [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/docs/Model/GroupsMembersResponse.md b/docs/Model/GroupsMembersResponse.md index cde9405..aeeab6e 100644 --- a/docs/Model/GroupsMembersResponse.md +++ b/docs/Model/GroupsMembersResponse.md @@ -10,6 +10,12 @@ Name | Type | Description | Notes **avatar** | **string** | Square icon png url | [optional] **ion_icon** | **string** | Ex: ion-ios-person | [optional] **html** | **string** | Embeddable list of study summaries with explanation at the top | [optional] +**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional] +**status** | **string** | ex. OK or ERROR | [optional] +**success** | **bool** | true or false | [optional] +**code** | **float** | Response code such as 200 | [optional] +**link** | **string** | A super neat url you might want to share with your users! | [optional] +**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [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/docs/Model/GroupsResponse.md b/docs/Model/GroupsResponse.md index 4586013..dbe9d11 100644 --- a/docs/Model/GroupsResponse.md +++ b/docs/Model/GroupsResponse.md @@ -10,6 +10,12 @@ Name | Type | Description | Notes **avatar** | **string** | Square icon png url | [optional] **ion_icon** | **string** | Ex: ion-ios-person | [optional] **html** | **string** | Embeddable list of study summaries with explanation at the top | [optional] +**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional] +**status** | **string** | ex. OK or ERROR | [optional] +**success** | **bool** | true or false | [optional] +**code** | **float** | Response code such as 200 | [optional] +**link** | **string** | A super neat url you might want to share with your users! | [optional] +**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [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/docs/Model/JsonErrorResponse.md b/docs/Model/JsonErrorResponse.md index 3122951..1dc68ce 100644 --- a/docs/Model/JsonErrorResponse.md +++ b/docs/Model/JsonErrorResponse.md @@ -4,9 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **message** | **string** | Error message | [optional] -**status** | **string** | Status: \"ok\" or \"error\" | **description** | **string** | Can be used as body of help info popup | [optional] **summary** | **string** | Can be used as title in help info popup | [optional] +**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional] +**status** | **string** | ex. OK or ERROR | +**success** | **bool** | true or false | [optional] +**code** | **float** | Response code such as 200 | [optional] +**link** | **string** | A super neat url you might want to share with your users! | [optional] +**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [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/docs/Model/Measurement.md b/docs/Model/Measurement.md index 64fcf48..1695e73 100644 --- a/docs/Model/Measurement.md +++ b/docs/Model/Measurement.md @@ -42,12 +42,12 @@ Name | Type | Description | Notes **user_variable_unit_name** | **string** | Ex: Count | [optional] **user_variable_variable_category_id** | **int** | Ex: 13 | [optional] **user_variable_variable_category_name** | **string** | Ex: Treatments | [optional] -**valence** | **string** | Ex: negative | [optional] +**valence** | **string** | Valence indicates what type of buttons should be used when recording measurements for this variable. positive - Face buttons with the happiest face equating to a 5/5 rating where higher is better like Overall Mood. negative - Face buttons with happiest face equating to a 1/5 rating where lower is better like Headache Severity. numeric - Just 1 to 5 numeric buttons for neutral variables. | [optional] **value** | **double** | Converted measurement value in requested unit | **variable_category_id** | **int** | Ex: 13 | [optional] **variable_category_image_url** | **string** | Ex: https://maxcdn.icons8.com/Color/PNG/96/Healthcare/pill-96.png | [optional] **variable_category_name** | **string** | Ex: Emotions, Treatments, Symptoms... | [optional] -**variable_description** | **string** | Ex: negative | [optional] +**variable_description** | **string** | Valence indicates what type of buttons should be used when recording measurements for this variable. positive - Face buttons with the happiest face equating to a 5/5 rating where higher is better like Overall Mood. negative - Face buttons with happiest face equating to a 1/5 rating where lower is better like Headache Severity. numeric - Just 1 to 5 numeric buttons for neutral variables. | [optional] **variable_id** | **int** | Ex: 5956846 | [optional] **variable_name** | **string** | Name of the variable for which we are creating the measurement records | **display_name** | **string** | Ex: Trader Joe's Bedtime Tea | [optional] diff --git a/docs/Model/MessagesMessagesResponse.md b/docs/Model/MessagesMessagesResponse.md index 9ec76bd..523e455 100644 --- a/docs/Model/MessagesMessagesResponse.md +++ b/docs/Model/MessagesMessagesResponse.md @@ -10,6 +10,12 @@ Name | Type | Description | Notes **avatar** | **string** | Square icon png url | [optional] **ion_icon** | **string** | Ex: ion-ios-person | [optional] **html** | **string** | Embeddable list of study summaries with explanation at the top | [optional] +**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional] +**status** | **string** | ex. OK or ERROR | [optional] +**success** | **bool** | true or false | [optional] +**code** | **float** | Response code such as 200 | [optional] +**link** | **string** | A super neat url you might want to share with your users! | [optional] +**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [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/docs/Model/MessagesNoticesResponse.md b/docs/Model/MessagesNoticesResponse.md index 96e4415..0153891 100644 --- a/docs/Model/MessagesNoticesResponse.md +++ b/docs/Model/MessagesNoticesResponse.md @@ -10,6 +10,14 @@ Name | Type | Description | Notes **avatar** | **string** | Square icon png url | [optional] **ion_icon** | **string** | Ex: ion-ios-person | [optional] **html** | **string** | Embeddable list of study summaries with explanation at the top | [optional] +**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional] +**error** | **string** | Error message | [optional] +**error_message** | **string** | Error message | [optional] +**status** | **string** | ex. OK or ERROR | [optional] +**success** | **bool** | true or false | [optional] +**code** | **float** | Response code such as 200 | [optional] +**link** | **string** | A super neat url you might want to share with your users! | [optional] +**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [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/docs/Model/MessagesRecipientsResponse.md b/docs/Model/MessagesRecipientsResponse.md index 3f8dcf0..9a5fed5 100644 --- a/docs/Model/MessagesRecipientsResponse.md +++ b/docs/Model/MessagesRecipientsResponse.md @@ -10,6 +10,12 @@ Name | Type | Description | Notes **avatar** | **string** | Square icon png url | [optional] **ion_icon** | **string** | Ex: ion-ios-person | [optional] **html** | **string** | Embeddable list of study summaries with explanation at the top | [optional] +**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional] +**status** | **string** | ex. OK or ERROR | [optional] +**success** | **bool** | true or false | [optional] +**code** | **float** | Response code such as 200 | [optional] +**link** | **string** | A super neat url you might want to share with your users! | [optional] +**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [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/docs/Model/NotificationsResponse.md b/docs/Model/NotificationsResponse.md index 1195fb2..9d29e56 100644 --- a/docs/Model/NotificationsResponse.md +++ b/docs/Model/NotificationsResponse.md @@ -10,6 +10,12 @@ Name | Type | Description | Notes **avatar** | **string** | Square icon png url | [optional] **ion_icon** | **string** | Ex: ion-ios-person | [optional] **html** | **string** | Embeddable list of study summaries with explanation at the top | [optional] +**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional] +**status** | **string** | ex. OK or ERROR | [optional] +**success** | **bool** | true or false | [optional] +**code** | **float** | Response code such as 200 | [optional] +**link** | **string** | A super neat url you might want to share with your users! | [optional] +**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [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/docs/Model/PostMeasurementsDataResponse.md b/docs/Model/PostMeasurementsDataResponse.md index 77d2ed2..df82950 100644 --- a/docs/Model/PostMeasurementsDataResponse.md +++ b/docs/Model/PostMeasurementsDataResponse.md @@ -6,6 +6,12 @@ Name | Type | Description | Notes **user_variables** | [**\QuantiModo\Client\Model\Variable[]**](Variable.md) | | [optional] **description** | **string** | Can be used as body of help info popup | [optional] **summary** | **string** | Can be used as title in help info popup | [optional] +**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional] +**status** | **string** | ex. OK or ERROR | [optional] +**success** | **bool** | true or false | [optional] +**code** | **float** | Response code such as 200 | [optional] +**link** | **string** | A super neat url you might want to share with your users! | [optional] +**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [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/docs/Model/PostMeasurementsResponse.md b/docs/Model/PostMeasurementsResponse.md index afc92ab..73843a6 100644 --- a/docs/Model/PostMeasurementsResponse.md +++ b/docs/Model/PostMeasurementsResponse.md @@ -5,10 +5,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**\QuantiModo\Client\Model\PostMeasurementsDataResponse**](PostMeasurementsDataResponse.md) | | [optional] **message** | **string** | Message | [optional] -**status** | **int** | Status code | -**success** | **bool** | | **description** | **string** | Can be used as body of help info popup | [optional] **summary** | **string** | Can be used as title in help info popup | [optional] +**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional] +**status** | **string** | ex. OK or ERROR | +**success** | **bool** | true or false | +**code** | **float** | Response code such as 200 | [optional] +**link** | **string** | A super neat url you might want to share with your users! | [optional] +**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [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/docs/Model/PostStudyCreateResponse.md b/docs/Model/PostStudyCreateResponse.md index d59a45a..2165697 100644 --- a/docs/Model/PostStudyCreateResponse.md +++ b/docs/Model/PostStudyCreateResponse.md @@ -4,10 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **study** | [**\QuantiModo\Client\Model\Study**](Study.md) | | [optional] -**status** | **string** | Ex: ok | [optional] -**success** | **bool** | Ex: true | [optional] **description** | **string** | Can be used as body of help info popup | [optional] **summary** | **string** | Can be used as title in help info popup | [optional] +**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional] +**status** | **string** | ex. OK or ERROR | [optional] +**success** | **bool** | true or false | [optional] +**code** | **float** | Response code such as 200 | [optional] +**link** | **string** | A super neat url you might want to share with your users! | [optional] +**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [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/docs/Model/PostStudyPublishResponse.md b/docs/Model/PostStudyPublishResponse.md index 8c884e8..9ed5292 100644 --- a/docs/Model/PostStudyPublishResponse.md +++ b/docs/Model/PostStudyPublishResponse.md @@ -3,10 +3,14 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **string** | Ex: ok | [optional] -**success** | **bool** | Ex: true | [optional] **description** | **string** | Can be used as body of help info popup | [optional] **summary** | **string** | Can be used as title in help info popup | [optional] +**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional] +**status** | **string** | ex. OK or ERROR | [optional] +**success** | **bool** | true or false | [optional] +**code** | **float** | Response code such as 200 | [optional] +**link** | **string** | A super neat url you might want to share with your users! | [optional] +**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [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/docs/Model/PostTrackingRemindersDataResponse.md b/docs/Model/PostTrackingRemindersDataResponse.md index 9d6b835..c91f31b 100644 --- a/docs/Model/PostTrackingRemindersDataResponse.md +++ b/docs/Model/PostTrackingRemindersDataResponse.md @@ -8,6 +8,12 @@ Name | Type | Description | Notes **user_variables** | [**\QuantiModo\Client\Model\Variable[]**](Variable.md) | | [optional] **description** | **string** | Can be used as body of help info popup | [optional] **summary** | **string** | Can be used as title in help info popup | [optional] +**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional] +**status** | **string** | ex. OK or ERROR | [optional] +**success** | **bool** | true or false | [optional] +**code** | **float** | Response code such as 200 | [optional] +**link** | **string** | A super neat url you might want to share with your users! | [optional] +**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [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/docs/Model/PostTrackingRemindersResponse.md b/docs/Model/PostTrackingRemindersResponse.md index 8738cd6..0fa2d74 100644 --- a/docs/Model/PostTrackingRemindersResponse.md +++ b/docs/Model/PostTrackingRemindersResponse.md @@ -5,10 +5,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**\QuantiModo\Client\Model\PostTrackingRemindersDataResponse**](PostTrackingRemindersDataResponse.md) | | [optional] **message** | **string** | Message | [optional] -**status** | **int** | Status code | -**success** | **bool** | | **description** | **string** | Can be used as body of help info popup | [optional] **summary** | **string** | Can be used as title in help info popup | [optional] +**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional] +**status** | **string** | ex. OK or ERROR | +**success** | **bool** | true or false | +**code** | **float** | Response code such as 200 | [optional] +**link** | **string** | A super neat url you might want to share with your users! | [optional] +**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [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/docs/Model/PostUserSettingsDataResponse.md b/docs/Model/PostUserSettingsDataResponse.md index fc90c13..9dfd064 100644 --- a/docs/Model/PostUserSettingsDataResponse.md +++ b/docs/Model/PostUserSettingsDataResponse.md @@ -6,6 +6,12 @@ Name | Type | Description | Notes **purchase_id** | **int** | Ex: 1 | [optional] **description** | **string** | Can be used as body of help info popup | [optional] **summary** | **string** | Can be used as title in help info popup | [optional] +**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional] +**status** | **string** | ex. OK or ERROR | [optional] +**success** | **bool** | true or false | [optional] +**code** | **float** | Response code such as 200 | [optional] +**link** | **string** | A super neat url you might want to share with your users! | [optional] +**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [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/docs/Model/PostUserSettingsResponse.md b/docs/Model/PostUserSettingsResponse.md index e98addd..f3daa35 100644 --- a/docs/Model/PostUserSettingsResponse.md +++ b/docs/Model/PostUserSettingsResponse.md @@ -5,10 +5,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**\QuantiModo\Client\Model\PostUserSettingsDataResponse**](PostUserSettingsDataResponse.md) | | [optional] **message** | **string** | Message | [optional] -**status** | **int** | Status code | -**success** | **bool** | | **description** | **string** | Can be used as body of help info popup | [optional] **summary** | **string** | Can be used as title in help info popup | [optional] +**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional] +**status** | **string** | ex. OK or ERROR | +**success** | **bool** | true or false | +**code** | **float** | Response code such as 200 | [optional] +**link** | **string** | A super neat url you might want to share with your users! | [optional] +**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [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/docs/Model/Study.md b/docs/Model/Study.md index ec767fa..f426dfd 100644 --- a/docs/Model/Study.md +++ b/docs/Model/Study.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **type** | **string** | Ex: population, cohort, or individual | -**user_id** | **string** | The user id of the principal investigator or subject if an individual studies | [optional] +**user_id** | **int** | The user id of the principal investigator or subject if an individual studies | [optional] **id** | **string** | ID of the cohort study which is necessary to allow participants to join | [optional] **cause_variable** | [**\QuantiModo\Client\Model\Variable**](Variable.md) | | [optional] **cause_variable_name** | **string** | Ex: Sleep Quality | [optional] diff --git a/docs/Model/StudyJoinResponse.md b/docs/Model/StudyJoinResponse.md index 2ae3bac..7542678 100644 --- a/docs/Model/StudyJoinResponse.md +++ b/docs/Model/StudyJoinResponse.md @@ -6,10 +6,14 @@ Name | Type | Description | Notes **study** | [**\QuantiModo\Client\Model\Study**](Study.md) | | [optional] **tracking_reminders** | [**\QuantiModo\Client\Model\TrackingReminder[]**](TrackingReminder.md) | | [optional] **tracking_reminder_notifications** | [**\QuantiModo\Client\Model\TrackingReminderNotification[]**](TrackingReminderNotification.md) | | [optional] -**status** | **string** | Ex: ok | [optional] -**success** | **bool** | Ex: true | [optional] **description** | **string** | Can be used as body of help info popup | [optional] **summary** | **string** | Can be used as title in help info popup | [optional] +**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional] +**status** | **string** | ex. OK or ERROR | [optional] +**success** | **bool** | true or false | [optional] +**code** | **float** | Response code such as 200 | [optional] +**link** | **string** | A super neat url you might want to share with your users! | [optional] +**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [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/docs/Model/TrackingReminder.md b/docs/Model/TrackingReminder.md index b81992c..3552384 100644 --- a/docs/Model/TrackingReminder.md +++ b/docs/Model/TrackingReminder.md @@ -83,13 +83,13 @@ Name | Type | Description | Notes **user_variable_unit_name** | **string** | Ex: 1 to 5 Rating | [optional] **user_variable_variable_category_id** | **int** | Ex: 10 | [optional] **user_variable_variable_category_name** | **string** | Ex: Symptoms | [optional] -**valence** | **string** | Ex: negative | [optional] +**valence** | **string** | Valence indicates what type of buttons should be used when recording measurements for this variable. positive - Face buttons with the happiest face equating to a 5/5 rating where higher is better like Overall Mood. negative - Face buttons with happiest face equating to a 1/5 rating where lower is better like Headache Severity. numeric - Just 1 to 5 numeric buttons for neutral variables. | [optional] **value_and_frequency_text_description** | **string** | Ex: Rate daily | [optional] **value_and_frequency_text_description_with_time** | **string** | Ex: Rate daily at 09:45 PM | [optional] **variable_category_id** | **int** | Ex: 10 | [optional] **variable_category_image_url** | **string** | Ex: https://maxcdn.icons8.com/Color/PNG/96/Messaging/sad-96.png | [optional] **variable_category_name** | **string** | Ex: Emotions, Treatments, Symptoms... | -**variable_description** | **string** | Ex: negative | [optional] +**variable_description** | **string** | Valence indicates what type of buttons should be used when recording measurements for this variable. positive - Face buttons with the happiest face equating to a 5/5 rating where higher is better like Overall Mood. negative - Face buttons with happiest face equating to a 1/5 rating where lower is better like Headache Severity. numeric - Just 1 to 5 numeric buttons for neutral variables. | [optional] **variable_id** | **int** | Id for the variable to be tracked | [optional] **variable_name** | **string** | Name of the variable to be used when sending measurements | diff --git a/docs/Model/TrackingReminderNotification.md b/docs/Model/TrackingReminderNotification.md index ce21ae2..b6c315d 100644 --- a/docs/Model/TrackingReminderNotification.md +++ b/docs/Model/TrackingReminderNotification.md @@ -26,7 +26,7 @@ Name | Type | Description | Notes **unit_id** | **int** | Ex: 10 | [optional] **unit_name** | **string** | Ex: 1 to 5 Rating | [optional] **default_value** | **float** | Default value to use for the measurement when tracking | [optional] -**description** | **string** | Ex: positive | [optional] +**description** | **string** | Valence indicates what type of buttons should be used when recording measurements for this variable. positive - Face buttons with the happiest face equating to a 5/5 rating where higher is better like Overall Mood. negative - Face buttons with happiest face equating to a 1/5 rating where lower is better like Headache Severity. numeric - Just 1 to 5 numeric buttons for neutral variables. | [optional] **email** | **bool** | True if the reminders should be delivered via email | [optional] **filling_value** | **int** | Ex: 0 | **icon_icon** | **string** | Ex: ion-sad-outline | [optional] @@ -79,7 +79,7 @@ Name | Type | Description | Notes **user_variable_unit_name** | **string** | Ex: 1 to 5 Rating | [optional] **user_variable_variable_category_id** | **int** | Ex: 1 | [optional] **user_variable_variable_category_name** | **string** | Ex: Emotions | [optional] -**valence** | **string** | Ex: positive | [optional] +**valence** | **string** | Valence indicates what type of buttons should be used when recording measurements for this variable. positive - Face buttons with the happiest face equating to a 5/5 rating where higher is better like Overall Mood. negative - Face buttons with happiest face equating to a 1/5 rating where lower is better like Headache Severity. numeric - Just 1 to 5 numeric buttons for neutral variables. | [optional] **variable_category_id** | **int** | Ex: 1 | [optional] **variable_category_image_url** | **string** | Ex: https://maxcdn.icons8.com/Color/PNG/96/Cinema/theatre_mask-96.png | [optional] **variable_category_name** | **string** | Ex: Emotions, Treatments, Symptoms... | [optional] diff --git a/docs/Model/User.md b/docs/Model/User.md index 10202da..34f2ea7 100644 --- a/docs/Model/User.md +++ b/docs/Model/User.md @@ -26,6 +26,7 @@ Name | Type | Description | Notes **has_chrome_extension** | **bool** | Ex: false | [optional] **has_ios_app** | **bool** | Ex: false | [optional] **id** | **int** | User id | +**last_active** | **string** | Ex: Date the user last logged in | [optional] **last_four** | **string** | Ex: 2009 | [optional] **last_name** | **string** | Ex: Sinn | [optional] **last_sms_tracking_reminder_notification_id** | **string** | Ex: 1 | [optional] @@ -34,8 +35,10 @@ Name | Type | Description | Notes **password** | **string** | Ex: PASSWORD | [optional] **phone_number** | **string** | Ex: 618-391-0002 | [optional] **phone_verification_code** | **string** | Ex: 1234 | [optional] +**primary_outcome_variable_id** | **int** | A good primary outcome variable is something that you want to improve and that changes inexplicably. For instance, if you have anxiety, back pain or arthritis which is worse on some days than others, these would be good candidates for primary outcome variables. Recording their severity and potential factors will help you identify hidden factors exacerbating or improving them. | [optional] +**primary_outcome_variable_name** | **string** | A good primary outcome variable is something that you want to improve and that changes inexplicably. For instance, if you have anxiety, back pain or arthritis which is worse on some days than others, these would be good candidates for primary outcome variables. Recording their severity and potential factors will help you identify hidden factors exacerbating or improving them. | [optional] **push_notifications_enabled** | **bool** | Ex: 1 | [optional] -**refresh_token** | **string** | Ex: 6e99b113d85586de1f92468433f2df1e666647cb | [optional] +**refresh_token** | **string** | See https://oauth.net/2/grant-types/refresh-token/ | [optional] **roles** | **string** | Ex: [\"admin\"] | [optional] **send_predictor_emails** | **bool** | Ex: 1 | [optional] **send_reminder_notification_emails** | **bool** | Ex: 1 | [optional] diff --git a/docs/Model/UserBlogsResponse.md b/docs/Model/UserBlogsResponse.md index 9217fee..e2c96b7 100644 --- a/docs/Model/UserBlogsResponse.md +++ b/docs/Model/UserBlogsResponse.md @@ -10,6 +10,12 @@ Name | Type | Description | Notes **avatar** | **string** | Square icon png url | [optional] **ion_icon** | **string** | Ex: ion-ios-person | [optional] **html** | **string** | Embeddable list of study summaries with explanation at the top | [optional] +**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional] +**status** | **string** | ex. OK or ERROR | [optional] +**success** | **bool** | true or false | [optional] +**code** | **float** | Response code such as 200 | [optional] +**link** | **string** | A super neat url you might want to share with your users! | [optional] +**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [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/docs/Model/UsersResponse.md b/docs/Model/UsersResponse.md new file mode 100644 index 0000000..37f3f4d --- /dev/null +++ b/docs/Model/UsersResponse.md @@ -0,0 +1,22 @@ +# UsersResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**users** | [**\QuantiModo\Client\Model\User[]**](User.md) | | +**description** | **string** | Users who granted access to their data | [optional] +**summary** | **string** | Users who granted access to their data | [optional] +**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional] +**status** | **string** | ex. OK or ERROR | [optional] +**success** | **bool** | true or false | [optional] +**code** | **float** | Response code such as 200 | [optional] +**image** | [**\QuantiModo\Client\Model\Image**](Image.md) | | [optional] +**avatar** | **string** | Square icon png url | [optional] +**ion_icon** | **string** | Ex: ion-ios-person | [optional] +**html** | **string** | Users who granted access to their data | [optional] +**link** | **string** | A super neat url you might want to share with your users! | [optional] +**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [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/docs/Model/Variable.md b/docs/Model/Variable.md index ae2893c..1cff86b 100644 --- a/docs/Model/Variable.md +++ b/docs/Model/Variable.md @@ -148,7 +148,7 @@ Name | Type | Description | Notes **user_variable_unit_name** | **string** | Ex: Count | [optional] **variable_category** | [**\QuantiModo\Client\Model\VariableCategory**](VariableCategory.md) | | [optional] **joined_variables** | [**\QuantiModo\Client\Model\Variable[]**](Variable.md) | Array of Variables that are joined with this Variable | [optional] -**valence** | **string** | Ex: positive | [optional] +**valence** | **string** | Valence indicates what type of buttons should be used when recording measurements for this variable. positive - Face buttons with the happiest face equating to a 5/5 rating where higher is better like Overall Mood. negative - Face buttons with happiest face equating to a 1/5 rating where lower is better like Headache Severity. numeric - Just 1 to 5 numeric buttons for neutral variables. | [optional] **variable_category_id** | **int** | Ex: 6 | [optional] **variable_category_name** | **string** | User-Defined Variable Setting: Variable category like Emotions, Sleep, Physical Activities, Treatments, Symptoms, etc. | [optional] **variable_id** | **int** | Ex: 96380 | diff --git a/docs/Model/XprofileDataResponse.md b/docs/Model/XprofileDataResponse.md index 2d40e8f..db07360 100644 --- a/docs/Model/XprofileDataResponse.md +++ b/docs/Model/XprofileDataResponse.md @@ -10,6 +10,12 @@ Name | Type | Description | Notes **avatar** | **string** | Square icon png url | [optional] **ion_icon** | **string** | Ex: ion-ios-person | [optional] **html** | **string** | Embeddable list of study summaries with explanation at the top | [optional] +**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional] +**status** | **string** | ex. OK or ERROR | [optional] +**success** | **bool** | true or false | [optional] +**code** | **float** | Response code such as 200 | [optional] +**link** | **string** | A super neat url you might want to share with your users! | [optional] +**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [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/docs/Model/XprofileFieldsResponse.md b/docs/Model/XprofileFieldsResponse.md index a7bf2db..590cdc2 100644 --- a/docs/Model/XprofileFieldsResponse.md +++ b/docs/Model/XprofileFieldsResponse.md @@ -10,6 +10,12 @@ Name | Type | Description | Notes **avatar** | **string** | Square icon png url | [optional] **ion_icon** | **string** | Ex: ion-ios-person | [optional] **html** | **string** | Embeddable list of study summaries with explanation at the top | [optional] +**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional] +**status** | **string** | ex. OK or ERROR | [optional] +**success** | **bool** | true or false | [optional] +**code** | **float** | Response code such as 200 | [optional] +**link** | **string** | A super neat url you might want to share with your users! | [optional] +**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [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/docs/Model/XprofileGroupsResponse.md b/docs/Model/XprofileGroupsResponse.md index a571ccf..90adca1 100644 --- a/docs/Model/XprofileGroupsResponse.md +++ b/docs/Model/XprofileGroupsResponse.md @@ -10,6 +10,12 @@ Name | Type | Description | Notes **avatar** | **string** | Square icon png url | [optional] **ion_icon** | **string** | Ex: ion-ios-person | [optional] **html** | **string** | Embeddable list of study summaries with explanation at the top | [optional] +**errors** | [**\QuantiModo\Client\Model\Error[]**](Error.md) | Array of error objects with message property | [optional] +**status** | **string** | ex. OK or ERROR | [optional] +**success** | **bool** | true or false | [optional] +**code** | **float** | Response code such as 200 | [optional] +**link** | **string** | A super neat url you might want to share with your users! | [optional] +**card** | [**\QuantiModo\Client\Model\Card**](Card.md) | A super neat card with buttons and HTML that you can use in your app! | [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/ActivitiesApi.php b/lib/Api/ActivitiesApi.php index fd8b05f..37edfd9 100644 --- a/lib/Api/ActivitiesApi.php +++ b/lib/Api/ActivitiesApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -369,9 +369,16 @@ protected function getActivitiesRequest($sort = null, $limit = '100', $offset = 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -706,9 +713,16 @@ protected function postActivitiesRequest($sort = null, $limit = '100', $offset = 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { diff --git a/lib/Api/AnalyticsApi.php b/lib/Api/AnalyticsApi.php index 0bafa8a..59e0adb 100644 --- a/lib/Api/AnalyticsApi.php +++ b/lib/Api/AnalyticsApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -338,9 +338,16 @@ protected function getCorrelationExplanationsRequest($cause_variable_name = null 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -738,9 +745,16 @@ protected function getCorrelationsRequest($cause_variable_name = null, $effect_v 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { diff --git a/lib/Api/AppSettingsApi.php b/lib/Api/AppSettingsApi.php index 27d5256..ed27884 100644 --- a/lib/Api/AppSettingsApi.php +++ b/lib/Api/AppSettingsApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -319,9 +319,16 @@ protected function getAppSettingsRequest($client_id = null, $client_secret = nul 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { diff --git a/lib/Api/AuthenticationApi.php b/lib/Api/AuthenticationApi.php index a9a6c3a..ccc8f24 100644 --- a/lib/Api/AuthenticationApi.php +++ b/lib/Api/AuthenticationApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -352,9 +352,16 @@ protected function getAccessTokenRequest($grant_type, $code, $response_type, $sc 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -642,9 +649,16 @@ protected function getOauthAuthorizationCodeRequest($response_type, $scope, $cli 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -857,9 +871,16 @@ protected function postGoogleIdTokenRequest() 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { diff --git a/lib/Api/ConnectorsApi.php b/lib/Api/ConnectorsApi.php index 12e650f..f3deba5 100644 --- a/lib/Api/ConnectorsApi.php +++ b/lib/Api/ConnectorsApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -275,9 +275,16 @@ protected function connectConnectorRequest($connector_name, $user_id = null) 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -509,9 +516,16 @@ protected function disconnectConnectorRequest($connector_name) 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -779,9 +793,16 @@ protected function getConnectorsRequest($client_id = null, $platform = null) 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -1012,9 +1033,16 @@ protected function getIntegrationJsRequest($client_id = null, $platform = null) 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -1227,9 +1255,16 @@ protected function getMobileConnectPageRequest($user_id = null) 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -1461,9 +1496,16 @@ protected function updateConnectorRequest($connector_name, $user_id = null) 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { diff --git a/lib/Api/FeedApi.php b/lib/Api/FeedApi.php index f9e3782..18674d8 100644 --- a/lib/Api/FeedApi.php +++ b/lib/Api/FeedApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -360,9 +360,16 @@ protected function getFeedRequest($sort = null, $user_id = null, $created_at = n 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -653,9 +660,16 @@ protected function postFeedRequest($body, $user_id = null, $client_id = null, $p 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { diff --git a/lib/Api/FriendsApi.php b/lib/Api/FriendsApi.php index 41c5da1..3c1e050 100644 --- a/lib/Api/FriendsApi.php +++ b/lib/Api/FriendsApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -369,9 +369,16 @@ protected function getFriendsRequest($sort = null, $limit = '100', $offset = nul 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -706,9 +713,16 @@ protected function postFriendsRequest($sort = null, $limit = '100', $offset = nu 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { diff --git a/lib/Api/GroupsApi.php b/lib/Api/GroupsApi.php index cd90cf7..9c7cf51 100644 --- a/lib/Api/GroupsApi.php +++ b/lib/Api/GroupsApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -369,9 +369,16 @@ protected function getGroupsRequest($sort = null, $limit = '100', $offset = null 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -706,9 +713,16 @@ protected function getGroupsMembersRequest($sort = null, $limit = '100', $offset 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -1043,9 +1057,16 @@ protected function postGroupsRequest($sort = null, $limit = '100', $offset = nul 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -1380,9 +1401,16 @@ protected function postGroupsMembersRequest($sort = null, $limit = '100', $offse 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { diff --git a/lib/Api/MeasurementsApi.php b/lib/Api/MeasurementsApi.php index 756915e..e4e93c8 100644 --- a/lib/Api/MeasurementsApi.php +++ b/lib/Api/MeasurementsApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -298,9 +298,16 @@ protected function deleteMeasurementRequest($body) 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -752,9 +759,16 @@ protected function getMeasurementsRequest($variable_name = null, $sort = null, $ 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -1152,9 +1166,16 @@ protected function getPairsRequest($cause_variable_name = null, $effect_variable 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -1413,9 +1434,16 @@ protected function measurementExportRequestRequest($user_id = null) 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -1688,9 +1716,16 @@ protected function postMeasurementsRequest($body, $user_id = null) 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -1954,9 +1989,16 @@ protected function updateMeasurementRequest($body) 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { diff --git a/lib/Api/MessagesApi.php b/lib/Api/MessagesApi.php index 346641d..68721c3 100644 --- a/lib/Api/MessagesApi.php +++ b/lib/Api/MessagesApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -369,9 +369,16 @@ protected function getMessagesMessagesRequest($sort = null, $limit = '100', $off 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -706,9 +713,16 @@ protected function getMessagesNoticesRequest($sort = null, $limit = '100', $offs 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -1043,9 +1057,16 @@ protected function getMessagesRecipientsRequest($sort = null, $limit = '100', $o 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -1380,9 +1401,16 @@ protected function postMessagesMessagesRequest($sort = null, $limit = '100', $of 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -1717,9 +1745,16 @@ protected function postMessagesNoticesRequest($sort = null, $limit = '100', $off 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -2054,9 +2089,16 @@ protected function postMessagesRecipientsRequest($sort = null, $limit = '100', $ 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { diff --git a/lib/Api/NotificationsApi.php b/lib/Api/NotificationsApi.php index ddf8ece..ece4878 100644 --- a/lib/Api/NotificationsApi.php +++ b/lib/Api/NotificationsApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -247,9 +247,16 @@ protected function getNotificationPreferencesRequest() 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -575,9 +582,16 @@ protected function getNotificationsRequest($sort = null, $limit = '100', $offset 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -804,9 +818,16 @@ protected function postDeviceTokenRequest($body) 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -1132,9 +1153,16 @@ protected function postNotificationsRequest($sort = null, $limit = '100', $offse 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { diff --git a/lib/Api/RemindersApi.php b/lib/Api/RemindersApi.php index 6ea3599..9073924 100644 --- a/lib/Api/RemindersApi.php +++ b/lib/Api/RemindersApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -307,9 +307,16 @@ protected function deleteTrackingReminderRequest($body, $user_id = null) 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -671,9 +678,16 @@ protected function getTrackingReminderNotificationsRequest($sort = null, $user_i 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -1017,9 +1031,16 @@ protected function getTrackingRemindersRequest($user_id = null, $variable_catego 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -1310,9 +1331,16 @@ protected function postTrackingReminderNotificationsRequest($body, $user_id = nu 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -1576,9 +1604,16 @@ protected function postTrackingRemindersRequest($body) 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { diff --git a/lib/Api/SharesApi.php b/lib/Api/SharesApi.php index f5914bb..d575c45 100644 --- a/lib/Api/SharesApi.php +++ b/lib/Api/SharesApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -317,9 +317,16 @@ protected function deleteShareRequest($client_id_to_revoke, $reason = null, $pla 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -641,9 +648,16 @@ protected function getSharesRequest($user_id = null, $created_at = null, $update 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -925,9 +939,16 @@ protected function inviteShareRequest($body, $platform = null, $client_id = null 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { diff --git a/lib/Api/StudiesApi.php b/lib/Api/StudiesApi.php index 30087b9..ffbf575 100644 --- a/lib/Api/StudiesApi.php +++ b/lib/Api/StudiesApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -316,9 +316,16 @@ protected function createStudyRequest($body, $client_id = null, $platform = null 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -591,9 +598,16 @@ protected function deleteVoteRequest($body, $user_id = null) 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -959,9 +973,16 @@ protected function getOpenStudiesRequest($cause_variable_name = null, $effect_va 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -1439,9 +1460,16 @@ protected function getStudiesRequest($cause_variable_name = null, $effect_variab 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -1812,9 +1840,16 @@ protected function getStudiesCreatedRequest($cause_variable_name = null, $effect 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -2203,9 +2238,16 @@ protected function getStudiesJoinedRequest($cause_variable_name = null, $effect_ 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -2571,9 +2613,16 @@ protected function getStudyRequest($cause_variable_name = null, $effect_variable 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -2913,9 +2962,16 @@ protected function joinStudyRequest($study_id = null, $cause_variable_name = nul 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -3188,9 +3244,16 @@ protected function postVoteRequest($body, $user_id = null) 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -3548,9 +3611,16 @@ protected function publishStudyRequest($cause_variable_name = null, $effect_vari 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { diff --git a/lib/Api/UnitsApi.php b/lib/Api/UnitsApi.php index a34d8c2..51163f0 100644 --- a/lib/Api/UnitsApi.php +++ b/lib/Api/UnitsApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -284,9 +284,16 @@ protected function getUnitCategoriesRequest() 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -536,9 +543,16 @@ protected function getUnitsRequest() 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { diff --git a/lib/Api/UserApi.php b/lib/Api/UserApi.php index d79141e..2d569f6 100644 --- a/lib/Api/UserApi.php +++ b/lib/Api/UserApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -317,9 +317,16 @@ protected function deleteUserRequest($reason, $client_id = null, $platform = nul 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -690,9 +697,16 @@ protected function getUserRequest($user_id = null, $created_at = null, $updated_ 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -1027,9 +1041,387 @@ protected function getUserBlogsRequest($sort = null, $limit = '100', $offset = n 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($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\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('access_token'); + if ($apiKey !== null) { + $queryParams['access_token'] = $apiKey; + } + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getUsers + * + * Get users who shared data + * + * @param float $user_id User's id (optional) + * @param string $created_at When the record was first created. Use UTC ISO 8601 YYYY-MM-DDThh:mm:ss datetime format. Time zone should be UTC and not local. (optional) + * @param string $updated_at When the record was last updated. Use UTC ISO 8601 YYYY-MM-DDThh:mm:ss datetime format. Time zone should be UTC and not local. (optional) + * @param int $limit The LIMIT is used to limit the number of results returned. So if youhave 1000 results, but only want to the first 10, you would set this to 10 and offset to 0. The maximum limit is 200 records. (optional, default to 100) + * @param int $offset OFFSET says to skip that many rows before beginning to return rows to the client. OFFSET 0 is the same as omitting the OFFSET clause.If both OFFSET and LIMIT appear, then OFFSET rows are skipped before starting to count the LIMIT rows that are returned. (optional) + * @param string $sort Sort by one of the listed field names. If the field name is prefixed with `-`, it will sort in descending order. (optional) + * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) + * @param string $app_version Ex: 2.1.1.0 (optional) + * @param int $client_user_id Ex: 74802 (optional) + * @param string $platform Ex: chrome, android, ios, web (optional) + * @param string $log Username or email (optional) + * @param string $pwd User password (optional) + * + * @throws \QuantiModo\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \QuantiModo\Client\Model\UsersResponse + */ + public function getUsers($user_id = null, $created_at = null, $updated_at = null, $limit = '100', $offset = null, $sort = null, $client_id = null, $app_version = null, $client_user_id = null, $platform = null, $log = null, $pwd = null) + { + list($response) = $this->getUsersWithHttpInfo($user_id, $created_at, $updated_at, $limit, $offset, $sort, $client_id, $app_version, $client_user_id, $platform, $log, $pwd); + return $response; + } + + /** + * Operation getUsersWithHttpInfo + * + * Get users who shared data + * + * @param float $user_id User's id (optional) + * @param string $created_at When the record was first created. Use UTC ISO 8601 YYYY-MM-DDThh:mm:ss datetime format. Time zone should be UTC and not local. (optional) + * @param string $updated_at When the record was last updated. Use UTC ISO 8601 YYYY-MM-DDThh:mm:ss datetime format. Time zone should be UTC and not local. (optional) + * @param int $limit The LIMIT is used to limit the number of results returned. So if youhave 1000 results, but only want to the first 10, you would set this to 10 and offset to 0. The maximum limit is 200 records. (optional, default to 100) + * @param int $offset OFFSET says to skip that many rows before beginning to return rows to the client. OFFSET 0 is the same as omitting the OFFSET clause.If both OFFSET and LIMIT appear, then OFFSET rows are skipped before starting to count the LIMIT rows that are returned. (optional) + * @param string $sort Sort by one of the listed field names. If the field name is prefixed with `-`, it will sort in descending order. (optional) + * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) + * @param string $app_version Ex: 2.1.1.0 (optional) + * @param int $client_user_id Ex: 74802 (optional) + * @param string $platform Ex: chrome, android, ios, web (optional) + * @param string $log Username or email (optional) + * @param string $pwd User password (optional) + * + * @throws \QuantiModo\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \QuantiModo\Client\Model\UsersResponse, HTTP status code, HTTP response headers (array of strings) + */ + public function getUsersWithHttpInfo($user_id = null, $created_at = null, $updated_at = null, $limit = '100', $offset = null, $sort = null, $client_id = null, $app_version = null, $client_user_id = null, $platform = null, $log = null, $pwd = null) + { + $returnType = '\QuantiModo\Client\Model\UsersResponse'; + $request = $this->getUsersRequest($user_id, $created_at, $updated_at, $limit, $offset, $sort, $client_id, $app_version, $client_user_id, $platform, $log, $pwd); + + 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 + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantiModo\Client\Model\UsersResponse', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getUsersAsync + * + * Get users who shared data + * + * @param float $user_id User's id (optional) + * @param string $created_at When the record was first created. Use UTC ISO 8601 YYYY-MM-DDThh:mm:ss datetime format. Time zone should be UTC and not local. (optional) + * @param string $updated_at When the record was last updated. Use UTC ISO 8601 YYYY-MM-DDThh:mm:ss datetime format. Time zone should be UTC and not local. (optional) + * @param int $limit The LIMIT is used to limit the number of results returned. So if youhave 1000 results, but only want to the first 10, you would set this to 10 and offset to 0. The maximum limit is 200 records. (optional, default to 100) + * @param int $offset OFFSET says to skip that many rows before beginning to return rows to the client. OFFSET 0 is the same as omitting the OFFSET clause.If both OFFSET and LIMIT appear, then OFFSET rows are skipped before starting to count the LIMIT rows that are returned. (optional) + * @param string $sort Sort by one of the listed field names. If the field name is prefixed with `-`, it will sort in descending order. (optional) + * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) + * @param string $app_version Ex: 2.1.1.0 (optional) + * @param int $client_user_id Ex: 74802 (optional) + * @param string $platform Ex: chrome, android, ios, web (optional) + * @param string $log Username or email (optional) + * @param string $pwd User password (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUsersAsync($user_id = null, $created_at = null, $updated_at = null, $limit = '100', $offset = null, $sort = null, $client_id = null, $app_version = null, $client_user_id = null, $platform = null, $log = null, $pwd = null) + { + return $this->getUsersAsyncWithHttpInfo($user_id, $created_at, $updated_at, $limit, $offset, $sort, $client_id, $app_version, $client_user_id, $platform, $log, $pwd) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getUsersAsyncWithHttpInfo + * + * Get users who shared data + * + * @param float $user_id User's id (optional) + * @param string $created_at When the record was first created. Use UTC ISO 8601 YYYY-MM-DDThh:mm:ss datetime format. Time zone should be UTC and not local. (optional) + * @param string $updated_at When the record was last updated. Use UTC ISO 8601 YYYY-MM-DDThh:mm:ss datetime format. Time zone should be UTC and not local. (optional) + * @param int $limit The LIMIT is used to limit the number of results returned. So if youhave 1000 results, but only want to the first 10, you would set this to 10 and offset to 0. The maximum limit is 200 records. (optional, default to 100) + * @param int $offset OFFSET says to skip that many rows before beginning to return rows to the client. OFFSET 0 is the same as omitting the OFFSET clause.If both OFFSET and LIMIT appear, then OFFSET rows are skipped before starting to count the LIMIT rows that are returned. (optional) + * @param string $sort Sort by one of the listed field names. If the field name is prefixed with `-`, it will sort in descending order. (optional) + * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) + * @param string $app_version Ex: 2.1.1.0 (optional) + * @param int $client_user_id Ex: 74802 (optional) + * @param string $platform Ex: chrome, android, ios, web (optional) + * @param string $log Username or email (optional) + * @param string $pwd User password (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUsersAsyncWithHttpInfo($user_id = null, $created_at = null, $updated_at = null, $limit = '100', $offset = null, $sort = null, $client_id = null, $app_version = null, $client_user_id = null, $platform = null, $log = null, $pwd = null) + { + $returnType = '\QuantiModo\Client\Model\UsersResponse'; + $request = $this->getUsersRequest($user_id, $created_at, $updated_at, $limit, $offset, $sort, $client_id, $app_version, $client_user_id, $platform, $log, $pwd); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + 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 'getUsers' + * + * @param float $user_id User's id (optional) + * @param string $created_at When the record was first created. Use UTC ISO 8601 YYYY-MM-DDThh:mm:ss datetime format. Time zone should be UTC and not local. (optional) + * @param string $updated_at When the record was last updated. Use UTC ISO 8601 YYYY-MM-DDThh:mm:ss datetime format. Time zone should be UTC and not local. (optional) + * @param int $limit The LIMIT is used to limit the number of results returned. So if youhave 1000 results, but only want to the first 10, you would set this to 10 and offset to 0. The maximum limit is 200 records. (optional, default to 100) + * @param int $offset OFFSET says to skip that many rows before beginning to return rows to the client. OFFSET 0 is the same as omitting the OFFSET clause.If both OFFSET and LIMIT appear, then OFFSET rows are skipped before starting to count the LIMIT rows that are returned. (optional) + * @param string $sort Sort by one of the listed field names. If the field name is prefixed with `-`, it will sort in descending order. (optional) + * @param string $client_id Your QuantiModo client id can be obtained by creating an app at https://builder.quantimo.do (optional) + * @param string $app_version Ex: 2.1.1.0 (optional) + * @param int $client_user_id Ex: 74802 (optional) + * @param string $platform Ex: chrome, android, ios, web (optional) + * @param string $log Username or email (optional) + * @param string $pwd User password (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getUsersRequest($user_id = null, $created_at = null, $updated_at = null, $limit = '100', $offset = null, $sort = null, $client_id = null, $app_version = null, $client_user_id = null, $platform = null, $log = null, $pwd = null) + { + if ($offset !== null && $offset < 0) { + throw new \InvalidArgumentException('invalid value for "$offset" when calling UserApi.getUsers, must be bigger than or equal to 0.'); + } + + + $resourcePath = '/v3/users'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($user_id !== null) { + $queryParams['userId'] = ObjectSerializer::toQueryValue($user_id); + } + // query params + if ($created_at !== null) { + $queryParams['createdAt'] = ObjectSerializer::toQueryValue($created_at); + } + // query params + if ($updated_at !== null) { + $queryParams['updatedAt'] = ObjectSerializer::toQueryValue($updated_at); + } + // query params + if ($limit !== null) { + $queryParams['limit'] = ObjectSerializer::toQueryValue($limit); + } + // query params + if ($offset !== null) { + $queryParams['offset'] = ObjectSerializer::toQueryValue($offset); + } + // query params + if ($sort !== null) { + $queryParams['sort'] = ObjectSerializer::toQueryValue($sort); + } + // query params + if ($client_id !== null) { + $queryParams['clientId'] = ObjectSerializer::toQueryValue($client_id); + } + // query params + if ($app_version !== null) { + $queryParams['appVersion'] = ObjectSerializer::toQueryValue($app_version); + } + // query params + if ($client_user_id !== null) { + $queryParams['clientUserId'] = ObjectSerializer::toQueryValue($client_user_id); + } + // query params + if ($platform !== null) { + $queryParams['platform'] = ObjectSerializer::toQueryValue($platform); + } + // query params + if ($log !== null) { + $queryParams['log'] = ObjectSerializer::toQueryValue($log); + } + // query params + if ($pwd !== null) { + $queryParams['pwd'] = ObjectSerializer::toQueryValue($pwd); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/json'] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -1364,9 +1756,16 @@ protected function postUserBlogsRequest($sort = null, $limit = '100', $offset = 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -1648,9 +2047,16 @@ protected function postUserSettingsRequest($body, $client_id = null, $platform = 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { diff --git a/lib/Api/VariablesApi.php b/lib/Api/VariablesApi.php index a66269d..a5ef8d4 100644 --- a/lib/Api/VariablesApi.php +++ b/lib/Api/VariablesApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -302,9 +302,16 @@ protected function deleteUserTagRequest($tagged_variable_id = null, $tag_variabl 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -531,9 +538,16 @@ protected function deleteUserVariableRequest($variable_id) 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -783,9 +797,16 @@ protected function getVariableCategoriesRequest() 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -883,14 +904,15 @@ protected function getVariableCategoriesRequest() * @param bool $recalculate Recalculate instead of using cached analysis (optional) * @param int $variable_id Ex: 13 (optional) * @param bool $concise Only return field required for variable auto-complete searches. The smaller size allows for storing more variable results locally reducing API requests. (optional) + * @param bool $refresh Regenerate charts instead of getting from the cache (optional) * * @throws \QuantiModo\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \QuantiModo\Client\Model\Variable[] */ - public function getVariables($include_charts = null, $number_of_raw_measurements = null, $user_id = null, $variable_category_name = null, $name = null, $variable_name = null, $updated_at = null, $source_name = null, $earliest_measurement_time = null, $latest_measurement_time = null, $id = null, $last_source_name = null, $limit = '100', $offset = null, $sort = null, $include_public = null, $manual_tracking = null, $client_id = null, $upc = null, $effect_or_cause = null, $public_effect_or_cause = null, $exact_match = null, $variable_category_id = null, $include_private = null, $search_phrase = null, $synonyms = null, $tagged_variable_id = null, $tag_variable_id = null, $join_variable_id = null, $parent_user_tag_variable_id = null, $child_user_tag_variable_id = null, $ingredient_user_tag_variable_id = null, $ingredient_of_user_tag_variable_id = null, $common_only = null, $user_only = null, $platform = null, $include_tags = null, $recalculate = null, $variable_id = null, $concise = null) + public function getVariables($include_charts = null, $number_of_raw_measurements = null, $user_id = null, $variable_category_name = null, $name = null, $variable_name = null, $updated_at = null, $source_name = null, $earliest_measurement_time = null, $latest_measurement_time = null, $id = null, $last_source_name = null, $limit = '100', $offset = null, $sort = null, $include_public = null, $manual_tracking = null, $client_id = null, $upc = null, $effect_or_cause = null, $public_effect_or_cause = null, $exact_match = null, $variable_category_id = null, $include_private = null, $search_phrase = null, $synonyms = null, $tagged_variable_id = null, $tag_variable_id = null, $join_variable_id = null, $parent_user_tag_variable_id = null, $child_user_tag_variable_id = null, $ingredient_user_tag_variable_id = null, $ingredient_of_user_tag_variable_id = null, $common_only = null, $user_only = null, $platform = null, $include_tags = null, $recalculate = null, $variable_id = null, $concise = null, $refresh = null) { - list($response) = $this->getVariablesWithHttpInfo($include_charts, $number_of_raw_measurements, $user_id, $variable_category_name, $name, $variable_name, $updated_at, $source_name, $earliest_measurement_time, $latest_measurement_time, $id, $last_source_name, $limit, $offset, $sort, $include_public, $manual_tracking, $client_id, $upc, $effect_or_cause, $public_effect_or_cause, $exact_match, $variable_category_id, $include_private, $search_phrase, $synonyms, $tagged_variable_id, $tag_variable_id, $join_variable_id, $parent_user_tag_variable_id, $child_user_tag_variable_id, $ingredient_user_tag_variable_id, $ingredient_of_user_tag_variable_id, $common_only, $user_only, $platform, $include_tags, $recalculate, $variable_id, $concise); + list($response) = $this->getVariablesWithHttpInfo($include_charts, $number_of_raw_measurements, $user_id, $variable_category_name, $name, $variable_name, $updated_at, $source_name, $earliest_measurement_time, $latest_measurement_time, $id, $last_source_name, $limit, $offset, $sort, $include_public, $manual_tracking, $client_id, $upc, $effect_or_cause, $public_effect_or_cause, $exact_match, $variable_category_id, $include_private, $search_phrase, $synonyms, $tagged_variable_id, $tag_variable_id, $join_variable_id, $parent_user_tag_variable_id, $child_user_tag_variable_id, $ingredient_user_tag_variable_id, $ingredient_of_user_tag_variable_id, $common_only, $user_only, $platform, $include_tags, $recalculate, $variable_id, $concise, $refresh); return $response; } @@ -939,15 +961,16 @@ public function getVariables($include_charts = null, $number_of_raw_measurements * @param bool $recalculate Recalculate instead of using cached analysis (optional) * @param int $variable_id Ex: 13 (optional) * @param bool $concise Only return field required for variable auto-complete searches. The smaller size allows for storing more variable results locally reducing API requests. (optional) + * @param bool $refresh Regenerate charts instead of getting from the cache (optional) * * @throws \QuantiModo\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \QuantiModo\Client\Model\Variable[], HTTP status code, HTTP response headers (array of strings) */ - public function getVariablesWithHttpInfo($include_charts = null, $number_of_raw_measurements = null, $user_id = null, $variable_category_name = null, $name = null, $variable_name = null, $updated_at = null, $source_name = null, $earliest_measurement_time = null, $latest_measurement_time = null, $id = null, $last_source_name = null, $limit = '100', $offset = null, $sort = null, $include_public = null, $manual_tracking = null, $client_id = null, $upc = null, $effect_or_cause = null, $public_effect_or_cause = null, $exact_match = null, $variable_category_id = null, $include_private = null, $search_phrase = null, $synonyms = null, $tagged_variable_id = null, $tag_variable_id = null, $join_variable_id = null, $parent_user_tag_variable_id = null, $child_user_tag_variable_id = null, $ingredient_user_tag_variable_id = null, $ingredient_of_user_tag_variable_id = null, $common_only = null, $user_only = null, $platform = null, $include_tags = null, $recalculate = null, $variable_id = null, $concise = null) + public function getVariablesWithHttpInfo($include_charts = null, $number_of_raw_measurements = null, $user_id = null, $variable_category_name = null, $name = null, $variable_name = null, $updated_at = null, $source_name = null, $earliest_measurement_time = null, $latest_measurement_time = null, $id = null, $last_source_name = null, $limit = '100', $offset = null, $sort = null, $include_public = null, $manual_tracking = null, $client_id = null, $upc = null, $effect_or_cause = null, $public_effect_or_cause = null, $exact_match = null, $variable_category_id = null, $include_private = null, $search_phrase = null, $synonyms = null, $tagged_variable_id = null, $tag_variable_id = null, $join_variable_id = null, $parent_user_tag_variable_id = null, $child_user_tag_variable_id = null, $ingredient_user_tag_variable_id = null, $ingredient_of_user_tag_variable_id = null, $common_only = null, $user_only = null, $platform = null, $include_tags = null, $recalculate = null, $variable_id = null, $concise = null, $refresh = null) { $returnType = '\QuantiModo\Client\Model\Variable[]'; - $request = $this->getVariablesRequest($include_charts, $number_of_raw_measurements, $user_id, $variable_category_name, $name, $variable_name, $updated_at, $source_name, $earliest_measurement_time, $latest_measurement_time, $id, $last_source_name, $limit, $offset, $sort, $include_public, $manual_tracking, $client_id, $upc, $effect_or_cause, $public_effect_or_cause, $exact_match, $variable_category_id, $include_private, $search_phrase, $synonyms, $tagged_variable_id, $tag_variable_id, $join_variable_id, $parent_user_tag_variable_id, $child_user_tag_variable_id, $ingredient_user_tag_variable_id, $ingredient_of_user_tag_variable_id, $common_only, $user_only, $platform, $include_tags, $recalculate, $variable_id, $concise); + $request = $this->getVariablesRequest($include_charts, $number_of_raw_measurements, $user_id, $variable_category_name, $name, $variable_name, $updated_at, $source_name, $earliest_measurement_time, $latest_measurement_time, $id, $last_source_name, $limit, $offset, $sort, $include_public, $manual_tracking, $client_id, $upc, $effect_or_cause, $public_effect_or_cause, $exact_match, $variable_category_id, $include_private, $search_phrase, $synonyms, $tagged_variable_id, $tag_variable_id, $join_variable_id, $parent_user_tag_variable_id, $child_user_tag_variable_id, $ingredient_user_tag_variable_id, $ingredient_of_user_tag_variable_id, $common_only, $user_only, $platform, $include_tags, $recalculate, $variable_id, $concise, $refresh); try { $options = $this->createHttpClientOption(); @@ -1053,13 +1076,14 @@ public function getVariablesWithHttpInfo($include_charts = null, $number_of_raw_ * @param bool $recalculate Recalculate instead of using cached analysis (optional) * @param int $variable_id Ex: 13 (optional) * @param bool $concise Only return field required for variable auto-complete searches. The smaller size allows for storing more variable results locally reducing API requests. (optional) + * @param bool $refresh Regenerate charts instead of getting from the cache (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getVariablesAsync($include_charts = null, $number_of_raw_measurements = null, $user_id = null, $variable_category_name = null, $name = null, $variable_name = null, $updated_at = null, $source_name = null, $earliest_measurement_time = null, $latest_measurement_time = null, $id = null, $last_source_name = null, $limit = '100', $offset = null, $sort = null, $include_public = null, $manual_tracking = null, $client_id = null, $upc = null, $effect_or_cause = null, $public_effect_or_cause = null, $exact_match = null, $variable_category_id = null, $include_private = null, $search_phrase = null, $synonyms = null, $tagged_variable_id = null, $tag_variable_id = null, $join_variable_id = null, $parent_user_tag_variable_id = null, $child_user_tag_variable_id = null, $ingredient_user_tag_variable_id = null, $ingredient_of_user_tag_variable_id = null, $common_only = null, $user_only = null, $platform = null, $include_tags = null, $recalculate = null, $variable_id = null, $concise = null) + public function getVariablesAsync($include_charts = null, $number_of_raw_measurements = null, $user_id = null, $variable_category_name = null, $name = null, $variable_name = null, $updated_at = null, $source_name = null, $earliest_measurement_time = null, $latest_measurement_time = null, $id = null, $last_source_name = null, $limit = '100', $offset = null, $sort = null, $include_public = null, $manual_tracking = null, $client_id = null, $upc = null, $effect_or_cause = null, $public_effect_or_cause = null, $exact_match = null, $variable_category_id = null, $include_private = null, $search_phrase = null, $synonyms = null, $tagged_variable_id = null, $tag_variable_id = null, $join_variable_id = null, $parent_user_tag_variable_id = null, $child_user_tag_variable_id = null, $ingredient_user_tag_variable_id = null, $ingredient_of_user_tag_variable_id = null, $common_only = null, $user_only = null, $platform = null, $include_tags = null, $recalculate = null, $variable_id = null, $concise = null, $refresh = null) { - return $this->getVariablesAsyncWithHttpInfo($include_charts, $number_of_raw_measurements, $user_id, $variable_category_name, $name, $variable_name, $updated_at, $source_name, $earliest_measurement_time, $latest_measurement_time, $id, $last_source_name, $limit, $offset, $sort, $include_public, $manual_tracking, $client_id, $upc, $effect_or_cause, $public_effect_or_cause, $exact_match, $variable_category_id, $include_private, $search_phrase, $synonyms, $tagged_variable_id, $tag_variable_id, $join_variable_id, $parent_user_tag_variable_id, $child_user_tag_variable_id, $ingredient_user_tag_variable_id, $ingredient_of_user_tag_variable_id, $common_only, $user_only, $platform, $include_tags, $recalculate, $variable_id, $concise) + return $this->getVariablesAsyncWithHttpInfo($include_charts, $number_of_raw_measurements, $user_id, $variable_category_name, $name, $variable_name, $updated_at, $source_name, $earliest_measurement_time, $latest_measurement_time, $id, $last_source_name, $limit, $offset, $sort, $include_public, $manual_tracking, $client_id, $upc, $effect_or_cause, $public_effect_or_cause, $exact_match, $variable_category_id, $include_private, $search_phrase, $synonyms, $tagged_variable_id, $tag_variable_id, $join_variable_id, $parent_user_tag_variable_id, $child_user_tag_variable_id, $ingredient_user_tag_variable_id, $ingredient_of_user_tag_variable_id, $common_only, $user_only, $platform, $include_tags, $recalculate, $variable_id, $concise, $refresh) ->then( function ($response) { return $response[0]; @@ -1112,14 +1136,15 @@ function ($response) { * @param bool $recalculate Recalculate instead of using cached analysis (optional) * @param int $variable_id Ex: 13 (optional) * @param bool $concise Only return field required for variable auto-complete searches. The smaller size allows for storing more variable results locally reducing API requests. (optional) + * @param bool $refresh Regenerate charts instead of getting from the cache (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getVariablesAsyncWithHttpInfo($include_charts = null, $number_of_raw_measurements = null, $user_id = null, $variable_category_name = null, $name = null, $variable_name = null, $updated_at = null, $source_name = null, $earliest_measurement_time = null, $latest_measurement_time = null, $id = null, $last_source_name = null, $limit = '100', $offset = null, $sort = null, $include_public = null, $manual_tracking = null, $client_id = null, $upc = null, $effect_or_cause = null, $public_effect_or_cause = null, $exact_match = null, $variable_category_id = null, $include_private = null, $search_phrase = null, $synonyms = null, $tagged_variable_id = null, $tag_variable_id = null, $join_variable_id = null, $parent_user_tag_variable_id = null, $child_user_tag_variable_id = null, $ingredient_user_tag_variable_id = null, $ingredient_of_user_tag_variable_id = null, $common_only = null, $user_only = null, $platform = null, $include_tags = null, $recalculate = null, $variable_id = null, $concise = null) + public function getVariablesAsyncWithHttpInfo($include_charts = null, $number_of_raw_measurements = null, $user_id = null, $variable_category_name = null, $name = null, $variable_name = null, $updated_at = null, $source_name = null, $earliest_measurement_time = null, $latest_measurement_time = null, $id = null, $last_source_name = null, $limit = '100', $offset = null, $sort = null, $include_public = null, $manual_tracking = null, $client_id = null, $upc = null, $effect_or_cause = null, $public_effect_or_cause = null, $exact_match = null, $variable_category_id = null, $include_private = null, $search_phrase = null, $synonyms = null, $tagged_variable_id = null, $tag_variable_id = null, $join_variable_id = null, $parent_user_tag_variable_id = null, $child_user_tag_variable_id = null, $ingredient_user_tag_variable_id = null, $ingredient_of_user_tag_variable_id = null, $common_only = null, $user_only = null, $platform = null, $include_tags = null, $recalculate = null, $variable_id = null, $concise = null, $refresh = null) { $returnType = '\QuantiModo\Client\Model\Variable[]'; - $request = $this->getVariablesRequest($include_charts, $number_of_raw_measurements, $user_id, $variable_category_name, $name, $variable_name, $updated_at, $source_name, $earliest_measurement_time, $latest_measurement_time, $id, $last_source_name, $limit, $offset, $sort, $include_public, $manual_tracking, $client_id, $upc, $effect_or_cause, $public_effect_or_cause, $exact_match, $variable_category_id, $include_private, $search_phrase, $synonyms, $tagged_variable_id, $tag_variable_id, $join_variable_id, $parent_user_tag_variable_id, $child_user_tag_variable_id, $ingredient_user_tag_variable_id, $ingredient_of_user_tag_variable_id, $common_only, $user_only, $platform, $include_tags, $recalculate, $variable_id, $concise); + $request = $this->getVariablesRequest($include_charts, $number_of_raw_measurements, $user_id, $variable_category_name, $name, $variable_name, $updated_at, $source_name, $earliest_measurement_time, $latest_measurement_time, $id, $last_source_name, $limit, $offset, $sort, $include_public, $manual_tracking, $client_id, $upc, $effect_or_cause, $public_effect_or_cause, $exact_match, $variable_category_id, $include_private, $search_phrase, $synonyms, $tagged_variable_id, $tag_variable_id, $join_variable_id, $parent_user_tag_variable_id, $child_user_tag_variable_id, $ingredient_user_tag_variable_id, $ingredient_of_user_tag_variable_id, $common_only, $user_only, $platform, $include_tags, $recalculate, $variable_id, $concise, $refresh); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1201,11 +1226,12 @@ function ($exception) { * @param bool $recalculate Recalculate instead of using cached analysis (optional) * @param int $variable_id Ex: 13 (optional) * @param bool $concise Only return field required for variable auto-complete searches. The smaller size allows for storing more variable results locally reducing API requests. (optional) + * @param bool $refresh Regenerate charts instead of getting from the cache (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function getVariablesRequest($include_charts = null, $number_of_raw_measurements = null, $user_id = null, $variable_category_name = null, $name = null, $variable_name = null, $updated_at = null, $source_name = null, $earliest_measurement_time = null, $latest_measurement_time = null, $id = null, $last_source_name = null, $limit = '100', $offset = null, $sort = null, $include_public = null, $manual_tracking = null, $client_id = null, $upc = null, $effect_or_cause = null, $public_effect_or_cause = null, $exact_match = null, $variable_category_id = null, $include_private = null, $search_phrase = null, $synonyms = null, $tagged_variable_id = null, $tag_variable_id = null, $join_variable_id = null, $parent_user_tag_variable_id = null, $child_user_tag_variable_id = null, $ingredient_user_tag_variable_id = null, $ingredient_of_user_tag_variable_id = null, $common_only = null, $user_only = null, $platform = null, $include_tags = null, $recalculate = null, $variable_id = null, $concise = null) + protected function getVariablesRequest($include_charts = null, $number_of_raw_measurements = null, $user_id = null, $variable_category_name = null, $name = null, $variable_name = null, $updated_at = null, $source_name = null, $earliest_measurement_time = null, $latest_measurement_time = null, $id = null, $last_source_name = null, $limit = '100', $offset = null, $sort = null, $include_public = null, $manual_tracking = null, $client_id = null, $upc = null, $effect_or_cause = null, $public_effect_or_cause = null, $exact_match = null, $variable_category_id = null, $include_private = null, $search_phrase = null, $synonyms = null, $tagged_variable_id = null, $tag_variable_id = null, $join_variable_id = null, $parent_user_tag_variable_id = null, $child_user_tag_variable_id = null, $ingredient_user_tag_variable_id = null, $ingredient_of_user_tag_variable_id = null, $common_only = null, $user_only = null, $platform = null, $include_tags = null, $recalculate = null, $variable_id = null, $concise = null, $refresh = null) { if ($offset !== null && $offset < 0) { throw new \InvalidArgumentException('invalid value for "$offset" when calling VariablesApi.getVariables, must be bigger than or equal to 0.'); @@ -1379,6 +1405,10 @@ protected function getVariablesRequest($include_charts = null, $number_of_raw_me if ($concise !== null) { $queryParams['concise'] = ObjectSerializer::toQueryValue($concise); } + // query params + if ($refresh !== null) { + $queryParams['refresh'] = ObjectSerializer::toQueryValue($refresh); + } // body params @@ -1399,9 +1429,16 @@ protected function getVariablesRequest($include_charts = null, $number_of_raw_me 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -1674,9 +1711,16 @@ protected function postUserTagsRequest($body, $user_id = null) 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -2030,9 +2074,16 @@ protected function postUserVariablesRequest($user_variables, $include_private = 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -2259,9 +2310,16 @@ protected function resetUserVariableSettingsRequest($variable_id) 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { diff --git a/lib/Api/XprofileApi.php b/lib/Api/XprofileApi.php index 31afd2f..ac218e2 100644 --- a/lib/Api/XprofileApi.php +++ b/lib/Api/XprofileApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -369,9 +369,16 @@ protected function getXprofileDataRequest($sort = null, $limit = '100', $offset 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -706,9 +713,16 @@ protected function getXprofileFieldsRequest($sort = null, $limit = '100', $offse 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -1043,9 +1057,16 @@ protected function getXprofileGroupsRequest($sort = null, $limit = '100', $offse 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -1380,9 +1401,16 @@ protected function postXprofileDataRequest($sort = null, $limit = '100', $offset 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -1717,9 +1745,16 @@ protected function postXprofileFieldsRequest($sort = null, $limit = '100', $offs 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { @@ -2054,9 +2089,16 @@ protected function postXprofileGroupsRequest($sort = null, $limit = '100', $offs 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\json_encode($httpBody); + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } } } elseif (count($formParams) > 0) { if ($multipart) { diff --git a/lib/ApiException.php b/lib/ApiException.php index 407c939..5d9290d 100644 --- a/lib/ApiException.php +++ b/lib/ApiException.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Configuration.php b/lib/Configuration.php index 74e2572..4d8a5f4 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/HeaderSelector.php b/lib/HeaderSelector.php index 87cf6bd..3f09cde 100644 --- a/lib/HeaderSelector.php +++ b/lib/HeaderSelector.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/ActivitiesResponse.php b/lib/Model/ActivitiesResponse.php index 784400e..a3e3d31 100644 --- a/lib/Model/ActivitiesResponse.php +++ b/lib/Model/ActivitiesResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -63,7 +63,13 @@ class ActivitiesResponse implements ModelInterface, ArrayAccess 'image' => '\QuantiModo\Client\Model\Image', 'avatar' => 'string', 'ion_icon' => 'string', - 'html' => 'string' + 'html' => 'string', + 'errors' => '\QuantiModo\Client\Model\Error[]', + 'status' => 'string', + 'success' => 'bool', + 'code' => 'float', + 'link' => 'string', + 'card' => '\QuantiModo\Client\Model\Card' ]; /** @@ -78,7 +84,13 @@ class ActivitiesResponse implements ModelInterface, ArrayAccess 'image' => null, 'avatar' => null, 'ion_icon' => null, - 'html' => null + 'html' => null, + 'errors' => null, + 'status' => null, + 'success' => null, + 'code' => null, + 'link' => null, + 'card' => null ]; /** @@ -114,7 +126,13 @@ public static function swaggerFormats() 'image' => 'image', 'avatar' => 'avatar', 'ion_icon' => 'ionIcon', - 'html' => 'html' + 'html' => 'html', + 'errors' => 'errors', + 'status' => 'status', + 'success' => 'success', + 'code' => 'code', + 'link' => 'link', + 'card' => 'card' ]; /** @@ -129,7 +147,13 @@ public static function swaggerFormats() 'image' => 'setImage', 'avatar' => 'setAvatar', 'ion_icon' => 'setIonIcon', - 'html' => 'setHtml' + 'html' => 'setHtml', + 'errors' => 'setErrors', + 'status' => 'setStatus', + 'success' => 'setSuccess', + 'code' => 'setCode', + 'link' => 'setLink', + 'card' => 'setCard' ]; /** @@ -144,7 +168,13 @@ public static function swaggerFormats() 'image' => 'getImage', 'avatar' => 'getAvatar', 'ion_icon' => 'getIonIcon', - 'html' => 'getHtml' + 'html' => 'getHtml', + 'errors' => 'getErrors', + 'status' => 'getStatus', + 'success' => 'getSuccess', + 'code' => 'getCode', + 'link' => 'getLink', + 'card' => 'getCard' ]; /** @@ -214,6 +244,12 @@ public function __construct(array $data = null) $this->container['avatar'] = isset($data['avatar']) ? $data['avatar'] : null; $this->container['ion_icon'] = isset($data['ion_icon']) ? $data['ion_icon'] : null; $this->container['html'] = isset($data['html']) ? $data['html'] : null; + $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['link'] = isset($data['link']) ? $data['link'] : null; + $this->container['card'] = isset($data['card']) ? $data['card'] : null; } /** @@ -410,6 +446,150 @@ public function setHtml($html) return $this; } + + /** + * Gets errors + * + * @return \QuantiModo\Client\Model\Error[] + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \QuantiModo\Client\Model\Error[] $errors Array of error objects with message property + * + * @return $this + */ + public function setErrors($errors) + { + $this->container['errors'] = $errors; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status ex. OK or ERROR + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success true or false + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets code + * + * @return float + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param float $code Response code such as 200 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets link + * + * @return string + */ + public function getLink() + { + return $this->container['link']; + } + + /** + * Sets link + * + * @param string $link A super neat url you might want to share with your users! + * + * @return $this + */ + public function setLink($link) + { + $this->container['link'] = $link; + + return $this; + } + + /** + * Gets card + * + * @return \QuantiModo\Client\Model\Card + */ + public function getCard() + { + return $this->container['card']; + } + + /** + * Sets card + * + * @param \QuantiModo\Client\Model\Card $card A super neat card with buttons and HTML that you can use in your app! + * + * @return $this + */ + public function setCard($card) + { + $this->container['card'] = $card; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/Activity.php b/lib/Model/Activity.php index 82cf5f3..6920809 100644 --- a/lib/Model/Activity.php +++ b/lib/Model/Activity.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/AppSettings.php b/lib/Model/AppSettings.php index 8c39698..77cea3b 100644 --- a/lib/Model/AppSettings.php +++ b/lib/Model/AppSettings.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -68,7 +68,7 @@ class AppSettings implements ModelInterface, ArrayAccess 'client_secret' => 'string', 'collaborators' => '\QuantiModo\Client\Model\User[]', 'created_at' => 'string', - 'user_id' => 'string', + 'user_id' => 'int', 'users' => '\QuantiModo\Client\Model\User[]', 'redirect_uri' => 'string', 'company_name' => 'string', @@ -96,7 +96,7 @@ class AppSettings implements ModelInterface, ArrayAccess 'client_secret' => null, 'collaborators' => null, 'created_at' => null, - 'user_id' => null, + 'user_id' => 'int32', 'users' => null, 'redirect_uri' => null, 'company_name' => null, @@ -502,7 +502,7 @@ public function getClientId() /** * Sets client_id * - * @param string $client_id What do you expect? + * @param string $client_id Get yours at https:://builder.quantimo.do * * @return $this */ @@ -526,7 +526,7 @@ public function getClientSecret() /** * Sets client_secret * - * @param string $client_secret What do you expect? + * @param string $client_secret Get yours at https:://builder.quantimo.do * * @return $this */ @@ -588,7 +588,7 @@ public function setCreatedAt($created_at) /** * Gets user_id * - * @return string + * @return int */ public function getUserId() { @@ -598,7 +598,7 @@ public function getUserId() /** * Sets user_id * - * @param string $user_id What do you expect? + * @param int $user_id User id of the owner of the application * * @return $this */ diff --git a/lib/Model/AppSettingsResponse.php b/lib/Model/AppSettingsResponse.php index 0b724d7..c725f88 100644 --- a/lib/Model/AppSettingsResponse.php +++ b/lib/Model/AppSettingsResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -59,7 +59,13 @@ class AppSettingsResponse implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'app_settings' => '\QuantiModo\Client\Model\AppSettings', 'description' => 'string', - 'summary' => 'string' + 'summary' => 'string', + 'errors' => '\QuantiModo\Client\Model\Error[]', + 'status' => 'string', + 'success' => 'bool', + 'code' => 'float', + 'link' => 'string', + 'card' => '\QuantiModo\Client\Model\Card' ]; /** @@ -70,7 +76,13 @@ class AppSettingsResponse implements ModelInterface, ArrayAccess protected static $swaggerFormats = [ 'app_settings' => null, 'description' => null, - 'summary' => null + 'summary' => null, + 'errors' => null, + 'status' => null, + 'success' => null, + 'code' => null, + 'link' => null, + 'card' => null ]; /** @@ -102,7 +114,13 @@ public static function swaggerFormats() protected static $attributeMap = [ 'app_settings' => 'appSettings', 'description' => 'description', - 'summary' => 'summary' + 'summary' => 'summary', + 'errors' => 'errors', + 'status' => 'status', + 'success' => 'success', + 'code' => 'code', + 'link' => 'link', + 'card' => 'card' ]; /** @@ -113,7 +131,13 @@ public static function swaggerFormats() protected static $setters = [ 'app_settings' => 'setAppSettings', 'description' => 'setDescription', - 'summary' => 'setSummary' + 'summary' => 'setSummary', + 'errors' => 'setErrors', + 'status' => 'setStatus', + 'success' => 'setSuccess', + 'code' => 'setCode', + 'link' => 'setLink', + 'card' => 'setCard' ]; /** @@ -124,7 +148,13 @@ public static function swaggerFormats() protected static $getters = [ 'app_settings' => 'getAppSettings', 'description' => 'getDescription', - 'summary' => 'getSummary' + 'summary' => 'getSummary', + 'errors' => 'getErrors', + 'status' => 'getStatus', + 'success' => 'getSuccess', + 'code' => 'getCode', + 'link' => 'getLink', + 'card' => 'getCard' ]; /** @@ -190,6 +220,12 @@ public function __construct(array $data = null) $this->container['app_settings'] = isset($data['app_settings']) ? $data['app_settings'] : null; $this->container['description'] = isset($data['description']) ? $data['description'] : null; $this->container['summary'] = isset($data['summary']) ? $data['summary'] : null; + $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['link'] = isset($data['link']) ? $data['link'] : null; + $this->container['card'] = isset($data['card']) ? $data['card'] : null; } /** @@ -293,6 +329,150 @@ public function setSummary($summary) return $this; } + + /** + * Gets errors + * + * @return \QuantiModo\Client\Model\Error[] + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \QuantiModo\Client\Model\Error[] $errors Array of error objects with message property + * + * @return $this + */ + public function setErrors($errors) + { + $this->container['errors'] = $errors; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status ex. OK or ERROR + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success true or false + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets code + * + * @return float + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param float $code Response code such as 200 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets link + * + * @return string + */ + public function getLink() + { + return $this->container['link']; + } + + /** + * Sets link + * + * @param string $link A super neat url you might want to share with your users! + * + * @return $this + */ + public function setLink($link) + { + $this->container['link'] = $link; + + return $this; + } + + /** + * Gets card + * + * @return \QuantiModo\Client\Model\Card + */ + public function getCard() + { + return $this->container['card']; + } + + /** + * Sets card + * + * @param \QuantiModo\Client\Model\Card $card A super neat card with buttons and HTML that you can use in your app! + * + * @return $this + */ + public function setCard($card) + { + $this->container['card'] = $card; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/AuthorizedClients.php b/lib/Model/AuthorizedClients.php index 3ed871b..d35b62e 100644 --- a/lib/Model/AuthorizedClients.php +++ b/lib/Model/AuthorizedClients.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/Button.php b/lib/Model/Button.php index 68ffbca..d308e56 100644 --- a/lib/Model/Button.php +++ b/lib/Model/Button.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/Card.php b/lib/Model/Card.php index 5670689..b25ba96 100644 --- a/lib/Model/Card.php +++ b/lib/Model/Card.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/Chart.php b/lib/Model/Chart.php index 5779397..e9d5e97 100644 --- a/lib/Model/Chart.php +++ b/lib/Model/Chart.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/CommonResponse.php b/lib/Model/CommonResponse.php index 34723ca..7a19ee8 100644 --- a/lib/Model/CommonResponse.php +++ b/lib/Model/CommonResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -58,7 +58,13 @@ class CommonResponse implements ModelInterface, ArrayAccess */ protected static $swaggerTypes = [ 'description' => 'string', - 'summary' => 'string' + 'summary' => 'string', + 'errors' => '\QuantiModo\Client\Model\Error[]', + 'status' => 'string', + 'success' => 'bool', + 'code' => 'float', + 'link' => 'string', + 'card' => '\QuantiModo\Client\Model\Card' ]; /** @@ -68,7 +74,13 @@ class CommonResponse implements ModelInterface, ArrayAccess */ protected static $swaggerFormats = [ 'description' => null, - 'summary' => null + 'summary' => null, + 'errors' => null, + 'status' => null, + 'success' => null, + 'code' => null, + 'link' => null, + 'card' => null ]; /** @@ -99,7 +111,13 @@ public static function swaggerFormats() */ protected static $attributeMap = [ 'description' => 'description', - 'summary' => 'summary' + 'summary' => 'summary', + 'errors' => 'errors', + 'status' => 'status', + 'success' => 'success', + 'code' => 'code', + 'link' => 'link', + 'card' => 'card' ]; /** @@ -109,7 +127,13 @@ public static function swaggerFormats() */ protected static $setters = [ 'description' => 'setDescription', - 'summary' => 'setSummary' + 'summary' => 'setSummary', + 'errors' => 'setErrors', + 'status' => 'setStatus', + 'success' => 'setSuccess', + 'code' => 'setCode', + 'link' => 'setLink', + 'card' => 'setCard' ]; /** @@ -119,7 +143,13 @@ public static function swaggerFormats() */ protected static $getters = [ 'description' => 'getDescription', - 'summary' => 'getSummary' + 'summary' => 'getSummary', + 'errors' => 'getErrors', + 'status' => 'getStatus', + 'success' => 'getSuccess', + 'code' => 'getCode', + 'link' => 'getLink', + 'card' => 'getCard' ]; /** @@ -184,6 +214,12 @@ public function __construct(array $data = null) { $this->container['description'] = isset($data['description']) ? $data['description'] : null; $this->container['summary'] = isset($data['summary']) ? $data['summary'] : null; + $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['link'] = isset($data['link']) ? $data['link'] : null; + $this->container['card'] = isset($data['card']) ? $data['card'] : null; } /** @@ -263,6 +299,150 @@ public function setSummary($summary) return $this; } + + /** + * Gets errors + * + * @return \QuantiModo\Client\Model\Error[] + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \QuantiModo\Client\Model\Error[] $errors Array of error objects with message property + * + * @return $this + */ + public function setErrors($errors) + { + $this->container['errors'] = $errors; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status ex. OK or ERROR + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success true or false + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets code + * + * @return float + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param float $code Response code such as 200 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets link + * + * @return string + */ + public function getLink() + { + return $this->container['link']; + } + + /** + * Sets link + * + * @param string $link A super neat url you might want to share with your users! + * + * @return $this + */ + public function setLink($link) + { + $this->container['link'] = $link; + + return $this; + } + + /** + * Gets card + * + * @return \QuantiModo\Client\Model\Card + */ + public function getCard() + { + return $this->container['card']; + } + + /** + * Sets card + * + * @param \QuantiModo\Client\Model\Card $card A super neat card with buttons and HTML that you can use in your app! + * + * @return $this + */ + public function setCard($card) + { + $this->container['card'] = $card; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/ConnectInstructions.php b/lib/Model/ConnectInstructions.php index 157de57..5eb9ffb 100644 --- a/lib/Model/ConnectInstructions.php +++ b/lib/Model/ConnectInstructions.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/ConversionStep.php b/lib/Model/ConversionStep.php index bd09aa8..4f2e1c0 100644 --- a/lib/Model/ConversionStep.php +++ b/lib/Model/ConversionStep.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/Correlation.php b/lib/Model/Correlation.php index deb75ad..02470cd 100644 --- a/lib/Model/Correlation.php +++ b/lib/Model/Correlation.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/DataSource.php b/lib/Model/DataSource.php index 2646721..a43418e 100644 --- a/lib/Model/DataSource.php +++ b/lib/Model/DataSource.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/DeviceToken.php b/lib/Model/DeviceToken.php index 2b15248..029592c 100644 --- a/lib/Model/DeviceToken.php +++ b/lib/Model/DeviceToken.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/Error.php b/lib/Model/Error.php new file mode 100644 index 0000000..0e16d43 --- /dev/null +++ b/lib/Model/Error.php @@ -0,0 +1,304 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'message' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'message' => 'message' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'message' => 'setMessage' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'message' => 'getMessage' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['message'] === null) { + $invalidProperties[] = "'message' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message Error message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/Explanation.php b/lib/Model/Explanation.php index 9486508..e0859e8 100644 --- a/lib/Model/Explanation.php +++ b/lib/Model/Explanation.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/ExplanationStartTracking.php b/lib/Model/ExplanationStartTracking.php index cf4dbc0..d4a8318 100644 --- a/lib/Model/ExplanationStartTracking.php +++ b/lib/Model/ExplanationStartTracking.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/FeedResponse.php b/lib/Model/FeedResponse.php index 31d97f3..86a5a9c 100644 --- a/lib/Model/FeedResponse.php +++ b/lib/Model/FeedResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -59,7 +59,13 @@ class FeedResponse implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'cards' => '\QuantiModo\Client\Model\Card[]', 'description' => 'string', - 'summary' => 'string' + 'summary' => 'string', + 'errors' => '\QuantiModo\Client\Model\Error[]', + 'status' => 'string', + 'success' => 'bool', + 'code' => 'float', + 'link' => 'string', + 'card' => '\QuantiModo\Client\Model\Card' ]; /** @@ -70,7 +76,13 @@ class FeedResponse implements ModelInterface, ArrayAccess protected static $swaggerFormats = [ 'cards' => null, 'description' => null, - 'summary' => null + 'summary' => null, + 'errors' => null, + 'status' => null, + 'success' => null, + 'code' => null, + 'link' => null, + 'card' => null ]; /** @@ -102,7 +114,13 @@ public static function swaggerFormats() protected static $attributeMap = [ 'cards' => 'cards', 'description' => 'description', - 'summary' => 'summary' + 'summary' => 'summary', + 'errors' => 'errors', + 'status' => 'status', + 'success' => 'success', + 'code' => 'code', + 'link' => 'link', + 'card' => 'card' ]; /** @@ -113,7 +131,13 @@ public static function swaggerFormats() protected static $setters = [ 'cards' => 'setCards', 'description' => 'setDescription', - 'summary' => 'setSummary' + 'summary' => 'setSummary', + 'errors' => 'setErrors', + 'status' => 'setStatus', + 'success' => 'setSuccess', + 'code' => 'setCode', + 'link' => 'setLink', + 'card' => 'setCard' ]; /** @@ -124,7 +148,13 @@ public static function swaggerFormats() protected static $getters = [ 'cards' => 'getCards', 'description' => 'getDescription', - 'summary' => 'getSummary' + 'summary' => 'getSummary', + 'errors' => 'getErrors', + 'status' => 'getStatus', + 'success' => 'getSuccess', + 'code' => 'getCode', + 'link' => 'getLink', + 'card' => 'getCard' ]; /** @@ -190,6 +220,12 @@ public function __construct(array $data = null) $this->container['cards'] = isset($data['cards']) ? $data['cards'] : null; $this->container['description'] = isset($data['description']) ? $data['description'] : null; $this->container['summary'] = isset($data['summary']) ? $data['summary'] : null; + $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['link'] = isset($data['link']) ? $data['link'] : null; + $this->container['card'] = isset($data['card']) ? $data['card'] : null; } /** @@ -296,6 +332,150 @@ public function setSummary($summary) return $this; } + + /** + * Gets errors + * + * @return \QuantiModo\Client\Model\Error[] + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \QuantiModo\Client\Model\Error[] $errors Array of error objects with message property + * + * @return $this + */ + public function setErrors($errors) + { + $this->container['errors'] = $errors; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status ex. OK or ERROR + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success true or false + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets code + * + * @return float + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param float $code Response code such as 200 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets link + * + * @return string + */ + public function getLink() + { + return $this->container['link']; + } + + /** + * Sets link + * + * @param string $link A super neat url you might want to share with your users! + * + * @return $this + */ + public function setLink($link) + { + $this->container['link'] = $link; + + return $this; + } + + /** + * Gets card + * + * @return \QuantiModo\Client\Model\Card + */ + public function getCard() + { + return $this->container['card']; + } + + /** + * Sets card + * + * @param \QuantiModo\Client\Model\Card $card A super neat card with buttons and HTML that you can use in your app! + * + * @return $this + */ + public function setCard($card) + { + $this->container['card'] = $card; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/Friend.php b/lib/Model/Friend.php index 8d4be4f..9a00335 100644 --- a/lib/Model/Friend.php +++ b/lib/Model/Friend.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/FriendsResponse.php b/lib/Model/FriendsResponse.php index 7de3f9f..1dc9f7d 100644 --- a/lib/Model/FriendsResponse.php +++ b/lib/Model/FriendsResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -63,7 +63,13 @@ class FriendsResponse implements ModelInterface, ArrayAccess 'image' => '\QuantiModo\Client\Model\Image', 'avatar' => 'string', 'ion_icon' => 'string', - 'html' => 'string' + 'html' => 'string', + 'errors' => '\QuantiModo\Client\Model\Error[]', + 'status' => 'string', + 'success' => 'bool', + 'code' => 'float', + 'link' => 'string', + 'card' => '\QuantiModo\Client\Model\Card' ]; /** @@ -78,7 +84,13 @@ class FriendsResponse implements ModelInterface, ArrayAccess 'image' => null, 'avatar' => null, 'ion_icon' => null, - 'html' => null + 'html' => null, + 'errors' => null, + 'status' => null, + 'success' => null, + 'code' => null, + 'link' => null, + 'card' => null ]; /** @@ -114,7 +126,13 @@ public static function swaggerFormats() 'image' => 'image', 'avatar' => 'avatar', 'ion_icon' => 'ionIcon', - 'html' => 'html' + 'html' => 'html', + 'errors' => 'errors', + 'status' => 'status', + 'success' => 'success', + 'code' => 'code', + 'link' => 'link', + 'card' => 'card' ]; /** @@ -129,7 +147,13 @@ public static function swaggerFormats() 'image' => 'setImage', 'avatar' => 'setAvatar', 'ion_icon' => 'setIonIcon', - 'html' => 'setHtml' + 'html' => 'setHtml', + 'errors' => 'setErrors', + 'status' => 'setStatus', + 'success' => 'setSuccess', + 'code' => 'setCode', + 'link' => 'setLink', + 'card' => 'setCard' ]; /** @@ -144,7 +168,13 @@ public static function swaggerFormats() 'image' => 'getImage', 'avatar' => 'getAvatar', 'ion_icon' => 'getIonIcon', - 'html' => 'getHtml' + 'html' => 'getHtml', + 'errors' => 'getErrors', + 'status' => 'getStatus', + 'success' => 'getSuccess', + 'code' => 'getCode', + 'link' => 'getLink', + 'card' => 'getCard' ]; /** @@ -214,6 +244,12 @@ public function __construct(array $data = null) $this->container['avatar'] = isset($data['avatar']) ? $data['avatar'] : null; $this->container['ion_icon'] = isset($data['ion_icon']) ? $data['ion_icon'] : null; $this->container['html'] = isset($data['html']) ? $data['html'] : null; + $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['link'] = isset($data['link']) ? $data['link'] : null; + $this->container['card'] = isset($data['card']) ? $data['card'] : null; } /** @@ -410,6 +446,150 @@ public function setHtml($html) return $this; } + + /** + * Gets errors + * + * @return \QuantiModo\Client\Model\Error[] + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \QuantiModo\Client\Model\Error[] $errors Array of error objects with message property + * + * @return $this + */ + public function setErrors($errors) + { + $this->container['errors'] = $errors; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status ex. OK or ERROR + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success true or false + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets code + * + * @return float + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param float $code Response code such as 200 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets link + * + * @return string + */ + public function getLink() + { + return $this->container['link']; + } + + /** + * Sets link + * + * @param string $link A super neat url you might want to share with your users! + * + * @return $this + */ + public function setLink($link) + { + $this->container['link'] = $link; + + return $this; + } + + /** + * Gets card + * + * @return \QuantiModo\Client\Model\Card + */ + public function getCard() + { + return $this->container['card']; + } + + /** + * Sets card + * + * @param \QuantiModo\Client\Model\Card $card A super neat card with buttons and HTML that you can use in your app! + * + * @return $this + */ + public function setCard($card) + { + $this->container['card'] = $card; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/GetConnectorsResponse.php b/lib/Model/GetConnectorsResponse.php index a3f8739..28bca1d 100644 --- a/lib/Model/GetConnectorsResponse.php +++ b/lib/Model/GetConnectorsResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -59,7 +59,13 @@ class GetConnectorsResponse implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'connectors' => '\QuantiModo\Client\Model\DataSource[]', 'description' => 'string', - 'summary' => 'string' + 'summary' => 'string', + 'errors' => '\QuantiModo\Client\Model\Error[]', + 'status' => 'string', + 'success' => 'bool', + 'code' => 'float', + 'link' => 'string', + 'card' => '\QuantiModo\Client\Model\Card' ]; /** @@ -70,7 +76,13 @@ class GetConnectorsResponse implements ModelInterface, ArrayAccess protected static $swaggerFormats = [ 'connectors' => null, 'description' => null, - 'summary' => null + 'summary' => null, + 'errors' => null, + 'status' => null, + 'success' => null, + 'code' => null, + 'link' => null, + 'card' => null ]; /** @@ -102,7 +114,13 @@ public static function swaggerFormats() protected static $attributeMap = [ 'connectors' => 'connectors', 'description' => 'description', - 'summary' => 'summary' + 'summary' => 'summary', + 'errors' => 'errors', + 'status' => 'status', + 'success' => 'success', + 'code' => 'code', + 'link' => 'link', + 'card' => 'card' ]; /** @@ -113,7 +131,13 @@ public static function swaggerFormats() protected static $setters = [ 'connectors' => 'setConnectors', 'description' => 'setDescription', - 'summary' => 'setSummary' + 'summary' => 'setSummary', + 'errors' => 'setErrors', + 'status' => 'setStatus', + 'success' => 'setSuccess', + 'code' => 'setCode', + 'link' => 'setLink', + 'card' => 'setCard' ]; /** @@ -124,7 +148,13 @@ public static function swaggerFormats() protected static $getters = [ 'connectors' => 'getConnectors', 'description' => 'getDescription', - 'summary' => 'getSummary' + 'summary' => 'getSummary', + 'errors' => 'getErrors', + 'status' => 'getStatus', + 'success' => 'getSuccess', + 'code' => 'getCode', + 'link' => 'getLink', + 'card' => 'getCard' ]; /** @@ -190,6 +220,12 @@ public function __construct(array $data = null) $this->container['connectors'] = isset($data['connectors']) ? $data['connectors'] : null; $this->container['description'] = isset($data['description']) ? $data['description'] : null; $this->container['summary'] = isset($data['summary']) ? $data['summary'] : null; + $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['link'] = isset($data['link']) ? $data['link'] : null; + $this->container['card'] = isset($data['card']) ? $data['card'] : null; } /** @@ -293,6 +329,150 @@ public function setSummary($summary) return $this; } + + /** + * Gets errors + * + * @return \QuantiModo\Client\Model\Error[] + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \QuantiModo\Client\Model\Error[] $errors Array of error objects with message property + * + * @return $this + */ + public function setErrors($errors) + { + $this->container['errors'] = $errors; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status ex. OK or ERROR + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success true or false + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets code + * + * @return float + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param float $code Response code such as 200 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets link + * + * @return string + */ + public function getLink() + { + return $this->container['link']; + } + + /** + * Sets link + * + * @param string $link A super neat url you might want to share with your users! + * + * @return $this + */ + public function setLink($link) + { + $this->container['link'] = $link; + + return $this; + } + + /** + * Gets card + * + * @return \QuantiModo\Client\Model\Card + */ + public function getCard() + { + return $this->container['card']; + } + + /** + * Sets card + * + * @param \QuantiModo\Client\Model\Card $card A super neat card with buttons and HTML that you can use in your app! + * + * @return $this + */ + public function setCard($card) + { + $this->container['card'] = $card; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/GetCorrelationsDataResponse.php b/lib/Model/GetCorrelationsDataResponse.php index c9428f9..63e3f5d 100644 --- a/lib/Model/GetCorrelationsDataResponse.php +++ b/lib/Model/GetCorrelationsDataResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -60,7 +60,13 @@ class GetCorrelationsDataResponse implements ModelInterface, ArrayAccess 'correlations' => '\QuantiModo\Client\Model\Correlation[]', 'explanation' => '\QuantiModo\Client\Model\Explanation', 'description' => 'string', - 'summary' => 'string' + 'summary' => 'string', + 'errors' => '\QuantiModo\Client\Model\Error[]', + 'status' => 'string', + 'success' => 'bool', + 'code' => 'float', + 'link' => 'string', + 'card' => '\QuantiModo\Client\Model\Card' ]; /** @@ -72,7 +78,13 @@ class GetCorrelationsDataResponse implements ModelInterface, ArrayAccess 'correlations' => null, 'explanation' => null, 'description' => null, - 'summary' => null + 'summary' => null, + 'errors' => null, + 'status' => null, + 'success' => null, + 'code' => null, + 'link' => null, + 'card' => null ]; /** @@ -105,7 +117,13 @@ public static function swaggerFormats() 'correlations' => 'correlations', 'explanation' => 'explanation', 'description' => 'description', - 'summary' => 'summary' + 'summary' => 'summary', + 'errors' => 'errors', + 'status' => 'status', + 'success' => 'success', + 'code' => 'code', + 'link' => 'link', + 'card' => 'card' ]; /** @@ -117,7 +135,13 @@ public static function swaggerFormats() 'correlations' => 'setCorrelations', 'explanation' => 'setExplanation', 'description' => 'setDescription', - 'summary' => 'setSummary' + 'summary' => 'setSummary', + 'errors' => 'setErrors', + 'status' => 'setStatus', + 'success' => 'setSuccess', + 'code' => 'setCode', + 'link' => 'setLink', + 'card' => 'setCard' ]; /** @@ -129,7 +153,13 @@ public static function swaggerFormats() 'correlations' => 'getCorrelations', 'explanation' => 'getExplanation', 'description' => 'getDescription', - 'summary' => 'getSummary' + 'summary' => 'getSummary', + 'errors' => 'getErrors', + 'status' => 'getStatus', + 'success' => 'getSuccess', + 'code' => 'getCode', + 'link' => 'getLink', + 'card' => 'getCard' ]; /** @@ -196,6 +226,12 @@ public function __construct(array $data = null) $this->container['explanation'] = isset($data['explanation']) ? $data['explanation'] : null; $this->container['description'] = isset($data['description']) ? $data['description'] : null; $this->container['summary'] = isset($data['summary']) ? $data['summary'] : null; + $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['link'] = isset($data['link']) ? $data['link'] : null; + $this->container['card'] = isset($data['card']) ? $data['card'] : null; } /** @@ -323,6 +359,150 @@ public function setSummary($summary) return $this; } + + /** + * Gets errors + * + * @return \QuantiModo\Client\Model\Error[] + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \QuantiModo\Client\Model\Error[] $errors Array of error objects with message property + * + * @return $this + */ + public function setErrors($errors) + { + $this->container['errors'] = $errors; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status ex. OK or ERROR + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success true or false + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets code + * + * @return float + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param float $code Response code such as 200 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets link + * + * @return string + */ + public function getLink() + { + return $this->container['link']; + } + + /** + * Sets link + * + * @param string $link A super neat url you might want to share with your users! + * + * @return $this + */ + public function setLink($link) + { + $this->container['link'] = $link; + + return $this; + } + + /** + * Gets card + * + * @return \QuantiModo\Client\Model\Card + */ + public function getCard() + { + return $this->container['card']; + } + + /** + * Sets card + * + * @param \QuantiModo\Client\Model\Card $card A super neat card with buttons and HTML that you can use in your app! + * + * @return $this + */ + public function setCard($card) + { + $this->container['card'] = $card; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/GetCorrelationsResponse.php b/lib/Model/GetCorrelationsResponse.php index cec2d59..c82ac42 100644 --- a/lib/Model/GetCorrelationsResponse.php +++ b/lib/Model/GetCorrelationsResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -60,7 +60,13 @@ class GetCorrelationsResponse implements ModelInterface, ArrayAccess 'data' => '\QuantiModo\Client\Model\GetCorrelationsDataResponse', 'description' => 'string', 'summary' => 'string', - 'avatar' => 'string' + 'avatar' => 'string', + 'errors' => '\QuantiModo\Client\Model\Error[]', + 'status' => 'string', + 'success' => 'bool', + 'code' => 'float', + 'link' => 'string', + 'card' => '\QuantiModo\Client\Model\Card' ]; /** @@ -72,7 +78,13 @@ class GetCorrelationsResponse implements ModelInterface, ArrayAccess 'data' => null, 'description' => null, 'summary' => null, - 'avatar' => null + 'avatar' => null, + 'errors' => null, + 'status' => null, + 'success' => null, + 'code' => null, + 'link' => null, + 'card' => null ]; /** @@ -105,7 +117,13 @@ public static function swaggerFormats() 'data' => 'data', 'description' => 'description', 'summary' => 'summary', - 'avatar' => 'avatar' + 'avatar' => 'avatar', + 'errors' => 'errors', + 'status' => 'status', + 'success' => 'success', + 'code' => 'code', + 'link' => 'link', + 'card' => 'card' ]; /** @@ -117,7 +135,13 @@ public static function swaggerFormats() 'data' => 'setData', 'description' => 'setDescription', 'summary' => 'setSummary', - 'avatar' => 'setAvatar' + 'avatar' => 'setAvatar', + 'errors' => 'setErrors', + 'status' => 'setStatus', + 'success' => 'setSuccess', + 'code' => 'setCode', + 'link' => 'setLink', + 'card' => 'setCard' ]; /** @@ -129,7 +153,13 @@ public static function swaggerFormats() 'data' => 'getData', 'description' => 'getDescription', 'summary' => 'getSummary', - 'avatar' => 'getAvatar' + 'avatar' => 'getAvatar', + 'errors' => 'getErrors', + 'status' => 'getStatus', + 'success' => 'getSuccess', + 'code' => 'getCode', + 'link' => 'getLink', + 'card' => 'getCard' ]; /** @@ -196,6 +226,12 @@ public function __construct(array $data = null) $this->container['description'] = isset($data['description']) ? $data['description'] : null; $this->container['summary'] = isset($data['summary']) ? $data['summary'] : null; $this->container['avatar'] = isset($data['avatar']) ? $data['avatar'] : null; + $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['link'] = isset($data['link']) ? $data['link'] : null; + $this->container['card'] = isset($data['card']) ? $data['card'] : null; } /** @@ -323,6 +359,150 @@ public function setAvatar($avatar) return $this; } + + /** + * Gets errors + * + * @return \QuantiModo\Client\Model\Error[] + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \QuantiModo\Client\Model\Error[] $errors Array of error objects with message property + * + * @return $this + */ + public function setErrors($errors) + { + $this->container['errors'] = $errors; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status ex. OK or ERROR + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success true or false + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets code + * + * @return float + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param float $code Response code such as 200 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets link + * + * @return string + */ + public function getLink() + { + return $this->container['link']; + } + + /** + * Sets link + * + * @param string $link A super neat url you might want to share with your users! + * + * @return $this + */ + public function setLink($link) + { + $this->container['link'] = $link; + + return $this; + } + + /** + * Gets card + * + * @return \QuantiModo\Client\Model\Card + */ + public function getCard() + { + return $this->container['card']; + } + + /** + * Sets card + * + * @param \QuantiModo\Client\Model\Card $card A super neat card with buttons and HTML that you can use in your app! + * + * @return $this + */ + public function setCard($card) + { + $this->container['card'] = $card; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/GetSharesResponse.php b/lib/Model/GetSharesResponse.php index fe2efd3..f021ad6 100644 --- a/lib/Model/GetSharesResponse.php +++ b/lib/Model/GetSharesResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -59,7 +59,13 @@ class GetSharesResponse implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'authorized_clients' => '\QuantiModo\Client\Model\AuthorizedClients', 'description' => 'string', - 'summary' => 'string' + 'summary' => 'string', + 'errors' => '\QuantiModo\Client\Model\Error[]', + 'status' => 'string', + 'success' => 'bool', + 'code' => 'float', + 'link' => 'string', + 'card' => '\QuantiModo\Client\Model\Card' ]; /** @@ -70,7 +76,13 @@ class GetSharesResponse implements ModelInterface, ArrayAccess protected static $swaggerFormats = [ 'authorized_clients' => null, 'description' => null, - 'summary' => null + 'summary' => null, + 'errors' => null, + 'status' => null, + 'success' => null, + 'code' => null, + 'link' => null, + 'card' => null ]; /** @@ -102,7 +114,13 @@ public static function swaggerFormats() protected static $attributeMap = [ 'authorized_clients' => 'authorizedClients', 'description' => 'description', - 'summary' => 'summary' + 'summary' => 'summary', + 'errors' => 'errors', + 'status' => 'status', + 'success' => 'success', + 'code' => 'code', + 'link' => 'link', + 'card' => 'card' ]; /** @@ -113,7 +131,13 @@ public static function swaggerFormats() protected static $setters = [ 'authorized_clients' => 'setAuthorizedClients', 'description' => 'setDescription', - 'summary' => 'setSummary' + 'summary' => 'setSummary', + 'errors' => 'setErrors', + 'status' => 'setStatus', + 'success' => 'setSuccess', + 'code' => 'setCode', + 'link' => 'setLink', + 'card' => 'setCard' ]; /** @@ -124,7 +148,13 @@ public static function swaggerFormats() protected static $getters = [ 'authorized_clients' => 'getAuthorizedClients', 'description' => 'getDescription', - 'summary' => 'getSummary' + 'summary' => 'getSummary', + 'errors' => 'getErrors', + 'status' => 'getStatus', + 'success' => 'getSuccess', + 'code' => 'getCode', + 'link' => 'getLink', + 'card' => 'getCard' ]; /** @@ -190,6 +220,12 @@ public function __construct(array $data = null) $this->container['authorized_clients'] = isset($data['authorized_clients']) ? $data['authorized_clients'] : null; $this->container['description'] = isset($data['description']) ? $data['description'] : null; $this->container['summary'] = isset($data['summary']) ? $data['summary'] : null; + $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['link'] = isset($data['link']) ? $data['link'] : null; + $this->container['card'] = isset($data['card']) ? $data['card'] : null; } /** @@ -293,6 +329,150 @@ public function setSummary($summary) return $this; } + + /** + * Gets errors + * + * @return \QuantiModo\Client\Model\Error[] + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \QuantiModo\Client\Model\Error[] $errors Array of error objects with message property + * + * @return $this + */ + public function setErrors($errors) + { + $this->container['errors'] = $errors; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status ex. OK or ERROR + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success true or false + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets code + * + * @return float + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param float $code Response code such as 200 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets link + * + * @return string + */ + public function getLink() + { + return $this->container['link']; + } + + /** + * Sets link + * + * @param string $link A super neat url you might want to share with your users! + * + * @return $this + */ + public function setLink($link) + { + $this->container['link'] = $link; + + return $this; + } + + /** + * Gets card + * + * @return \QuantiModo\Client\Model\Card + */ + public function getCard() + { + return $this->container['card']; + } + + /** + * Sets card + * + * @param \QuantiModo\Client\Model\Card $card A super neat card with buttons and HTML that you can use in your app! + * + * @return $this + */ + public function setCard($card) + { + $this->container['card'] = $card; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/GetStudiesResponse.php b/lib/Model/GetStudiesResponse.php index 9bb2a96..356c096 100644 --- a/lib/Model/GetStudiesResponse.php +++ b/lib/Model/GetStudiesResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/GetTrackingReminderNotificationsResponse.php b/lib/Model/GetTrackingReminderNotificationsResponse.php index 8d7f54f..c220c02 100644 --- a/lib/Model/GetTrackingReminderNotificationsResponse.php +++ b/lib/Model/GetTrackingReminderNotificationsResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -59,7 +59,13 @@ class GetTrackingReminderNotificationsResponse implements ModelInterface, ArrayA protected static $swaggerTypes = [ 'data' => '\QuantiModo\Client\Model\TrackingReminderNotification[]', 'description' => 'string', - 'summary' => 'string' + 'summary' => 'string', + 'errors' => '\QuantiModo\Client\Model\Error[]', + 'status' => 'string', + 'success' => 'bool', + 'code' => 'float', + 'link' => 'string', + 'card' => '\QuantiModo\Client\Model\Card' ]; /** @@ -70,7 +76,13 @@ class GetTrackingReminderNotificationsResponse implements ModelInterface, ArrayA protected static $swaggerFormats = [ 'data' => null, 'description' => null, - 'summary' => null + 'summary' => null, + 'errors' => null, + 'status' => null, + 'success' => null, + 'code' => null, + 'link' => null, + 'card' => null ]; /** @@ -102,7 +114,13 @@ public static function swaggerFormats() protected static $attributeMap = [ 'data' => 'data', 'description' => 'description', - 'summary' => 'summary' + 'summary' => 'summary', + 'errors' => 'errors', + 'status' => 'status', + 'success' => 'success', + 'code' => 'code', + 'link' => 'link', + 'card' => 'card' ]; /** @@ -113,7 +131,13 @@ public static function swaggerFormats() protected static $setters = [ 'data' => 'setData', 'description' => 'setDescription', - 'summary' => 'setSummary' + 'summary' => 'setSummary', + 'errors' => 'setErrors', + 'status' => 'setStatus', + 'success' => 'setSuccess', + 'code' => 'setCode', + 'link' => 'setLink', + 'card' => 'setCard' ]; /** @@ -124,7 +148,13 @@ public static function swaggerFormats() protected static $getters = [ 'data' => 'getData', 'description' => 'getDescription', - 'summary' => 'getSummary' + 'summary' => 'getSummary', + 'errors' => 'getErrors', + 'status' => 'getStatus', + 'success' => 'getSuccess', + 'code' => 'getCode', + 'link' => 'getLink', + 'card' => 'getCard' ]; /** @@ -190,6 +220,12 @@ public function __construct(array $data = null) $this->container['data'] = isset($data['data']) ? $data['data'] : null; $this->container['description'] = isset($data['description']) ? $data['description'] : null; $this->container['summary'] = isset($data['summary']) ? $data['summary'] : null; + $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['link'] = isset($data['link']) ? $data['link'] : null; + $this->container['card'] = isset($data['card']) ? $data['card'] : null; } /** @@ -293,6 +329,150 @@ public function setSummary($summary) return $this; } + + /** + * Gets errors + * + * @return \QuantiModo\Client\Model\Error[] + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \QuantiModo\Client\Model\Error[] $errors Array of error objects with message property + * + * @return $this + */ + public function setErrors($errors) + { + $this->container['errors'] = $errors; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status ex. OK or ERROR + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success true or false + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets code + * + * @return float + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param float $code Response code such as 200 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets link + * + * @return string + */ + public function getLink() + { + return $this->container['link']; + } + + /** + * Sets link + * + * @param string $link A super neat url you might want to share with your users! + * + * @return $this + */ + public function setLink($link) + { + $this->container['link'] = $link; + + return $this; + } + + /** + * Gets card + * + * @return \QuantiModo\Client\Model\Card + */ + public function getCard() + { + return $this->container['card']; + } + + /** + * Sets card + * + * @param \QuantiModo\Client\Model\Card $card A super neat card with buttons and HTML that you can use in your app! + * + * @return $this + */ + public function setCard($card) + { + $this->container['card'] = $card; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/Group.php b/lib/Model/Group.php index 9723ef3..6a111d9 100644 --- a/lib/Model/Group.php +++ b/lib/Model/Group.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/GroupsMember.php b/lib/Model/GroupsMember.php index 56cd92d..accf0b6 100644 --- a/lib/Model/GroupsMember.php +++ b/lib/Model/GroupsMember.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/GroupsMembersResponse.php b/lib/Model/GroupsMembersResponse.php index b43aa8f..69fe07b 100644 --- a/lib/Model/GroupsMembersResponse.php +++ b/lib/Model/GroupsMembersResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -63,7 +63,13 @@ class GroupsMembersResponse implements ModelInterface, ArrayAccess 'image' => '\QuantiModo\Client\Model\Image', 'avatar' => 'string', 'ion_icon' => 'string', - 'html' => 'string' + 'html' => 'string', + 'errors' => '\QuantiModo\Client\Model\Error[]', + 'status' => 'string', + 'success' => 'bool', + 'code' => 'float', + 'link' => 'string', + 'card' => '\QuantiModo\Client\Model\Card' ]; /** @@ -78,7 +84,13 @@ class GroupsMembersResponse implements ModelInterface, ArrayAccess 'image' => null, 'avatar' => null, 'ion_icon' => null, - 'html' => null + 'html' => null, + 'errors' => null, + 'status' => null, + 'success' => null, + 'code' => null, + 'link' => null, + 'card' => null ]; /** @@ -114,7 +126,13 @@ public static function swaggerFormats() 'image' => 'image', 'avatar' => 'avatar', 'ion_icon' => 'ionIcon', - 'html' => 'html' + 'html' => 'html', + 'errors' => 'errors', + 'status' => 'status', + 'success' => 'success', + 'code' => 'code', + 'link' => 'link', + 'card' => 'card' ]; /** @@ -129,7 +147,13 @@ public static function swaggerFormats() 'image' => 'setImage', 'avatar' => 'setAvatar', 'ion_icon' => 'setIonIcon', - 'html' => 'setHtml' + 'html' => 'setHtml', + 'errors' => 'setErrors', + 'status' => 'setStatus', + 'success' => 'setSuccess', + 'code' => 'setCode', + 'link' => 'setLink', + 'card' => 'setCard' ]; /** @@ -144,7 +168,13 @@ public static function swaggerFormats() 'image' => 'getImage', 'avatar' => 'getAvatar', 'ion_icon' => 'getIonIcon', - 'html' => 'getHtml' + 'html' => 'getHtml', + 'errors' => 'getErrors', + 'status' => 'getStatus', + 'success' => 'getSuccess', + 'code' => 'getCode', + 'link' => 'getLink', + 'card' => 'getCard' ]; /** @@ -214,6 +244,12 @@ public function __construct(array $data = null) $this->container['avatar'] = isset($data['avatar']) ? $data['avatar'] : null; $this->container['ion_icon'] = isset($data['ion_icon']) ? $data['ion_icon'] : null; $this->container['html'] = isset($data['html']) ? $data['html'] : null; + $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['link'] = isset($data['link']) ? $data['link'] : null; + $this->container['card'] = isset($data['card']) ? $data['card'] : null; } /** @@ -410,6 +446,150 @@ public function setHtml($html) return $this; } + + /** + * Gets errors + * + * @return \QuantiModo\Client\Model\Error[] + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \QuantiModo\Client\Model\Error[] $errors Array of error objects with message property + * + * @return $this + */ + public function setErrors($errors) + { + $this->container['errors'] = $errors; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status ex. OK or ERROR + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success true or false + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets code + * + * @return float + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param float $code Response code such as 200 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets link + * + * @return string + */ + public function getLink() + { + return $this->container['link']; + } + + /** + * Sets link + * + * @param string $link A super neat url you might want to share with your users! + * + * @return $this + */ + public function setLink($link) + { + $this->container['link'] = $link; + + return $this; + } + + /** + * Gets card + * + * @return \QuantiModo\Client\Model\Card + */ + public function getCard() + { + return $this->container['card']; + } + + /** + * Sets card + * + * @param \QuantiModo\Client\Model\Card $card A super neat card with buttons and HTML that you can use in your app! + * + * @return $this + */ + public function setCard($card) + { + $this->container['card'] = $card; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/GroupsResponse.php b/lib/Model/GroupsResponse.php index 75bcb41..7a12779 100644 --- a/lib/Model/GroupsResponse.php +++ b/lib/Model/GroupsResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -63,7 +63,13 @@ class GroupsResponse implements ModelInterface, ArrayAccess 'image' => '\QuantiModo\Client\Model\Image', 'avatar' => 'string', 'ion_icon' => 'string', - 'html' => 'string' + 'html' => 'string', + 'errors' => '\QuantiModo\Client\Model\Error[]', + 'status' => 'string', + 'success' => 'bool', + 'code' => 'float', + 'link' => 'string', + 'card' => '\QuantiModo\Client\Model\Card' ]; /** @@ -78,7 +84,13 @@ class GroupsResponse implements ModelInterface, ArrayAccess 'image' => null, 'avatar' => null, 'ion_icon' => null, - 'html' => null + 'html' => null, + 'errors' => null, + 'status' => null, + 'success' => null, + 'code' => null, + 'link' => null, + 'card' => null ]; /** @@ -114,7 +126,13 @@ public static function swaggerFormats() 'image' => 'image', 'avatar' => 'avatar', 'ion_icon' => 'ionIcon', - 'html' => 'html' + 'html' => 'html', + 'errors' => 'errors', + 'status' => 'status', + 'success' => 'success', + 'code' => 'code', + 'link' => 'link', + 'card' => 'card' ]; /** @@ -129,7 +147,13 @@ public static function swaggerFormats() 'image' => 'setImage', 'avatar' => 'setAvatar', 'ion_icon' => 'setIonIcon', - 'html' => 'setHtml' + 'html' => 'setHtml', + 'errors' => 'setErrors', + 'status' => 'setStatus', + 'success' => 'setSuccess', + 'code' => 'setCode', + 'link' => 'setLink', + 'card' => 'setCard' ]; /** @@ -144,7 +168,13 @@ public static function swaggerFormats() 'image' => 'getImage', 'avatar' => 'getAvatar', 'ion_icon' => 'getIonIcon', - 'html' => 'getHtml' + 'html' => 'getHtml', + 'errors' => 'getErrors', + 'status' => 'getStatus', + 'success' => 'getSuccess', + 'code' => 'getCode', + 'link' => 'getLink', + 'card' => 'getCard' ]; /** @@ -214,6 +244,12 @@ public function __construct(array $data = null) $this->container['avatar'] = isset($data['avatar']) ? $data['avatar'] : null; $this->container['ion_icon'] = isset($data['ion_icon']) ? $data['ion_icon'] : null; $this->container['html'] = isset($data['html']) ? $data['html'] : null; + $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['link'] = isset($data['link']) ? $data['link'] : null; + $this->container['card'] = isset($data['card']) ? $data['card'] : null; } /** @@ -410,6 +446,150 @@ public function setHtml($html) return $this; } + + /** + * Gets errors + * + * @return \QuantiModo\Client\Model\Error[] + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \QuantiModo\Client\Model\Error[] $errors Array of error objects with message property + * + * @return $this + */ + public function setErrors($errors) + { + $this->container['errors'] = $errors; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status ex. OK or ERROR + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success true or false + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets code + * + * @return float + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param float $code Response code such as 200 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets link + * + * @return string + */ + public function getLink() + { + return $this->container['link']; + } + + /** + * Sets link + * + * @param string $link A super neat url you might want to share with your users! + * + * @return $this + */ + public function setLink($link) + { + $this->container['link'] = $link; + + return $this; + } + + /** + * Gets card + * + * @return \QuantiModo\Client\Model\Card + */ + public function getCard() + { + return $this->container['card']; + } + + /** + * Sets card + * + * @param \QuantiModo\Client\Model\Card $card A super neat card with buttons and HTML that you can use in your app! + * + * @return $this + */ + public function setCard($card) + { + $this->container['card'] = $card; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/Image.php b/lib/Model/Image.php index 1c57836..31cbcf3 100644 --- a/lib/Model/Image.php +++ b/lib/Model/Image.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/InputField.php b/lib/Model/InputField.php index c9e26ca..0372f81 100644 --- a/lib/Model/InputField.php +++ b/lib/Model/InputField.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/JsonErrorResponse.php b/lib/Model/JsonErrorResponse.php index 559d4ca..96984d9 100644 --- a/lib/Model/JsonErrorResponse.php +++ b/lib/Model/JsonErrorResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -58,9 +58,14 @@ class JsonErrorResponse implements ModelInterface, ArrayAccess */ protected static $swaggerTypes = [ 'message' => 'string', - 'status' => 'string', 'description' => 'string', - 'summary' => 'string' + 'summary' => 'string', + 'errors' => '\QuantiModo\Client\Model\Error[]', + 'status' => 'string', + 'success' => 'bool', + 'code' => 'float', + 'link' => 'string', + 'card' => '\QuantiModo\Client\Model\Card' ]; /** @@ -70,9 +75,14 @@ class JsonErrorResponse implements ModelInterface, ArrayAccess */ protected static $swaggerFormats = [ 'message' => null, - 'status' => null, 'description' => null, - 'summary' => null + 'summary' => null, + 'errors' => null, + 'status' => null, + 'success' => null, + 'code' => null, + 'link' => null, + 'card' => null ]; /** @@ -103,9 +113,14 @@ public static function swaggerFormats() */ protected static $attributeMap = [ 'message' => 'message', - 'status' => 'status', 'description' => 'description', - 'summary' => 'summary' + 'summary' => 'summary', + 'errors' => 'errors', + 'status' => 'status', + 'success' => 'success', + 'code' => 'code', + 'link' => 'link', + 'card' => 'card' ]; /** @@ -115,9 +130,14 @@ public static function swaggerFormats() */ protected static $setters = [ 'message' => 'setMessage', - 'status' => 'setStatus', 'description' => 'setDescription', - 'summary' => 'setSummary' + 'summary' => 'setSummary', + 'errors' => 'setErrors', + 'status' => 'setStatus', + 'success' => 'setSuccess', + 'code' => 'setCode', + 'link' => 'setLink', + 'card' => 'setCard' ]; /** @@ -127,9 +147,14 @@ public static function swaggerFormats() */ protected static $getters = [ 'message' => 'getMessage', - 'status' => 'getStatus', 'description' => 'getDescription', - 'summary' => 'getSummary' + 'summary' => 'getSummary', + 'errors' => 'getErrors', + 'status' => 'getStatus', + 'success' => 'getSuccess', + 'code' => 'getCode', + 'link' => 'getLink', + 'card' => 'getCard' ]; /** @@ -193,9 +218,14 @@ public function getModelName() public function __construct(array $data = null) { $this->container['message'] = isset($data['message']) ? $data['message'] : null; - $this->container['status'] = isset($data['status']) ? $data['status'] : null; $this->container['description'] = isset($data['description']) ? $data['description'] : null; $this->container['summary'] = isset($data['summary']) ? $data['summary'] : null; + $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['link'] = isset($data['link']) ? $data['link'] : null; + $this->container['card'] = isset($data['card']) ? $data['card'] : null; } /** @@ -249,6 +279,78 @@ public function setMessage($message) return $this; } + /** + * Gets description + * + * @return string + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string $description Can be used as body of help info popup + * + * @return $this + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets summary + * + * @return string + */ + public function getSummary() + { + return $this->container['summary']; + } + + /** + * Sets summary + * + * @param string $summary Can be used as title in help info popup + * + * @return $this + */ + public function setSummary($summary) + { + $this->container['summary'] = $summary; + + return $this; + } + + /** + * Gets errors + * + * @return \QuantiModo\Client\Model\Error[] + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \QuantiModo\Client\Model\Error[] $errors Array of error objects with message property + * + * @return $this + */ + public function setErrors($errors) + { + $this->container['errors'] = $errors; + + return $this; + } + /** * Gets status * @@ -262,7 +364,7 @@ public function getStatus() /** * Sets status * - * @param string $status Status: \"ok\" or \"error\" + * @param string $status ex. OK or ERROR * * @return $this */ @@ -274,49 +376,97 @@ public function setStatus($status) } /** - * Gets description + * Gets success * - * @return string + * @return bool */ - public function getDescription() + public function getSuccess() { - return $this->container['description']; + return $this->container['success']; } /** - * Sets description + * Sets success * - * @param string $description Can be used as body of help info popup + * @param bool $success true or false * * @return $this */ - public function setDescription($description) + public function setSuccess($success) { - $this->container['description'] = $description; + $this->container['success'] = $success; return $this; } /** - * Gets summary + * Gets code + * + * @return float + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param float $code Response code such as 200 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets link * * @return string */ - public function getSummary() + public function getLink() { - return $this->container['summary']; + return $this->container['link']; } /** - * Sets summary + * Sets link * - * @param string $summary Can be used as title in help info popup + * @param string $link A super neat url you might want to share with your users! * * @return $this */ - public function setSummary($summary) + public function setLink($link) { - $this->container['summary'] = $summary; + $this->container['link'] = $link; + + return $this; + } + + /** + * Gets card + * + * @return \QuantiModo\Client\Model\Card + */ + public function getCard() + { + return $this->container['card']; + } + + /** + * Sets card + * + * @param \QuantiModo\Client\Model\Card $card A super neat card with buttons and HTML that you can use in your app! + * + * @return $this + */ + public function setCard($card) + { + $this->container['card'] = $card; return $this; } diff --git a/lib/Model/Measurement.php b/lib/Model/Measurement.php index 584dca3..c465cd7 100644 --- a/lib/Model/Measurement.php +++ b/lib/Model/Measurement.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -1515,7 +1515,7 @@ public function getValence() /** * Sets valence * - * @param string $valence Ex: negative + * @param string $valence Valence indicates what type of buttons should be used when recording measurements for this variable. positive - Face buttons with the happiest face equating to a 5/5 rating where higher is better like Overall Mood. negative - Face buttons with happiest face equating to a 1/5 rating where lower is better like Headache Severity. numeric - Just 1 to 5 numeric buttons for neutral variables. * * @return $this */ @@ -1644,7 +1644,7 @@ public function getVariableDescription() /** * Sets variable_description * - * @param string $variable_description Ex: negative + * @param string $variable_description Valence indicates what type of buttons should be used when recording measurements for this variable. positive - Face buttons with the happiest face equating to a 5/5 rating where higher is better like Overall Mood. negative - Face buttons with happiest face equating to a 1/5 rating where lower is better like Headache Severity. numeric - Just 1 to 5 numeric buttons for neutral variables. * * @return $this */ diff --git a/lib/Model/MeasurementDelete.php b/lib/Model/MeasurementDelete.php index ebff400..2ce9b6d 100644 --- a/lib/Model/MeasurementDelete.php +++ b/lib/Model/MeasurementDelete.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/MeasurementItem.php b/lib/Model/MeasurementItem.php index d8488e5..dd68d27 100644 --- a/lib/Model/MeasurementItem.php +++ b/lib/Model/MeasurementItem.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/MeasurementSet.php b/lib/Model/MeasurementSet.php index 7d20a3e..9611d3b 100644 --- a/lib/Model/MeasurementSet.php +++ b/lib/Model/MeasurementSet.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/MeasurementUpdate.php b/lib/Model/MeasurementUpdate.php index 71494d6..89a625e 100644 --- a/lib/Model/MeasurementUpdate.php +++ b/lib/Model/MeasurementUpdate.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/MessagesMessage.php b/lib/Model/MessagesMessage.php index af8168f..e0a3019 100644 --- a/lib/Model/MessagesMessage.php +++ b/lib/Model/MessagesMessage.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/MessagesMessagesResponse.php b/lib/Model/MessagesMessagesResponse.php index 6028407..b7d3f0b 100644 --- a/lib/Model/MessagesMessagesResponse.php +++ b/lib/Model/MessagesMessagesResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -63,7 +63,13 @@ class MessagesMessagesResponse implements ModelInterface, ArrayAccess 'image' => '\QuantiModo\Client\Model\Image', 'avatar' => 'string', 'ion_icon' => 'string', - 'html' => 'string' + 'html' => 'string', + 'errors' => '\QuantiModo\Client\Model\Error[]', + 'status' => 'string', + 'success' => 'bool', + 'code' => 'float', + 'link' => 'string', + 'card' => '\QuantiModo\Client\Model\Card' ]; /** @@ -78,7 +84,13 @@ class MessagesMessagesResponse implements ModelInterface, ArrayAccess 'image' => null, 'avatar' => null, 'ion_icon' => null, - 'html' => null + 'html' => null, + 'errors' => null, + 'status' => null, + 'success' => null, + 'code' => null, + 'link' => null, + 'card' => null ]; /** @@ -114,7 +126,13 @@ public static function swaggerFormats() 'image' => 'image', 'avatar' => 'avatar', 'ion_icon' => 'ionIcon', - 'html' => 'html' + 'html' => 'html', + 'errors' => 'errors', + 'status' => 'status', + 'success' => 'success', + 'code' => 'code', + 'link' => 'link', + 'card' => 'card' ]; /** @@ -129,7 +147,13 @@ public static function swaggerFormats() 'image' => 'setImage', 'avatar' => 'setAvatar', 'ion_icon' => 'setIonIcon', - 'html' => 'setHtml' + 'html' => 'setHtml', + 'errors' => 'setErrors', + 'status' => 'setStatus', + 'success' => 'setSuccess', + 'code' => 'setCode', + 'link' => 'setLink', + 'card' => 'setCard' ]; /** @@ -144,7 +168,13 @@ public static function swaggerFormats() 'image' => 'getImage', 'avatar' => 'getAvatar', 'ion_icon' => 'getIonIcon', - 'html' => 'getHtml' + 'html' => 'getHtml', + 'errors' => 'getErrors', + 'status' => 'getStatus', + 'success' => 'getSuccess', + 'code' => 'getCode', + 'link' => 'getLink', + 'card' => 'getCard' ]; /** @@ -214,6 +244,12 @@ public function __construct(array $data = null) $this->container['avatar'] = isset($data['avatar']) ? $data['avatar'] : null; $this->container['ion_icon'] = isset($data['ion_icon']) ? $data['ion_icon'] : null; $this->container['html'] = isset($data['html']) ? $data['html'] : null; + $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['link'] = isset($data['link']) ? $data['link'] : null; + $this->container['card'] = isset($data['card']) ? $data['card'] : null; } /** @@ -410,6 +446,150 @@ public function setHtml($html) return $this; } + + /** + * Gets errors + * + * @return \QuantiModo\Client\Model\Error[] + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \QuantiModo\Client\Model\Error[] $errors Array of error objects with message property + * + * @return $this + */ + public function setErrors($errors) + { + $this->container['errors'] = $errors; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status ex. OK or ERROR + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success true or false + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets code + * + * @return float + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param float $code Response code such as 200 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets link + * + * @return string + */ + public function getLink() + { + return $this->container['link']; + } + + /** + * Sets link + * + * @param string $link A super neat url you might want to share with your users! + * + * @return $this + */ + public function setLink($link) + { + $this->container['link'] = $link; + + return $this; + } + + /** + * Gets card + * + * @return \QuantiModo\Client\Model\Card + */ + public function getCard() + { + return $this->container['card']; + } + + /** + * Sets card + * + * @param \QuantiModo\Client\Model\Card $card A super neat card with buttons and HTML that you can use in your app! + * + * @return $this + */ + public function setCard($card) + { + $this->container['card'] = $card; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/MessagesNotice.php b/lib/Model/MessagesNotice.php index 6bfb839..465d7d4 100644 --- a/lib/Model/MessagesNotice.php +++ b/lib/Model/MessagesNotice.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/MessagesNoticesResponse.php b/lib/Model/MessagesNoticesResponse.php index e4e4ff7..fab1df4 100644 --- a/lib/Model/MessagesNoticesResponse.php +++ b/lib/Model/MessagesNoticesResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -63,7 +63,15 @@ class MessagesNoticesResponse implements ModelInterface, ArrayAccess 'image' => '\QuantiModo\Client\Model\Image', 'avatar' => 'string', 'ion_icon' => 'string', - 'html' => 'string' + 'html' => 'string', + 'errors' => '\QuantiModo\Client\Model\Error[]', + 'error' => 'string', + 'error_message' => 'string', + 'status' => 'string', + 'success' => 'bool', + 'code' => 'float', + 'link' => 'string', + 'card' => '\QuantiModo\Client\Model\Card' ]; /** @@ -78,7 +86,15 @@ class MessagesNoticesResponse implements ModelInterface, ArrayAccess 'image' => null, 'avatar' => null, 'ion_icon' => null, - 'html' => null + 'html' => null, + 'errors' => null, + 'error' => null, + 'error_message' => null, + 'status' => null, + 'success' => null, + 'code' => null, + 'link' => null, + 'card' => null ]; /** @@ -114,7 +130,15 @@ public static function swaggerFormats() 'image' => 'image', 'avatar' => 'avatar', 'ion_icon' => 'ionIcon', - 'html' => 'html' + 'html' => 'html', + 'errors' => 'errors', + 'error' => 'error', + 'error_message' => 'errorMessage', + 'status' => 'status', + 'success' => 'success', + 'code' => 'code', + 'link' => 'link', + 'card' => 'card' ]; /** @@ -129,7 +153,15 @@ public static function swaggerFormats() 'image' => 'setImage', 'avatar' => 'setAvatar', 'ion_icon' => 'setIonIcon', - 'html' => 'setHtml' + 'html' => 'setHtml', + 'errors' => 'setErrors', + 'error' => 'setError', + 'error_message' => 'setErrorMessage', + 'status' => 'setStatus', + 'success' => 'setSuccess', + 'code' => 'setCode', + 'link' => 'setLink', + 'card' => 'setCard' ]; /** @@ -144,7 +176,15 @@ public static function swaggerFormats() 'image' => 'getImage', 'avatar' => 'getAvatar', 'ion_icon' => 'getIonIcon', - 'html' => 'getHtml' + 'html' => 'getHtml', + 'errors' => 'getErrors', + 'error' => 'getError', + 'error_message' => 'getErrorMessage', + 'status' => 'getStatus', + 'success' => 'getSuccess', + 'code' => 'getCode', + 'link' => 'getLink', + 'card' => 'getCard' ]; /** @@ -214,6 +254,14 @@ public function __construct(array $data = null) $this->container['avatar'] = isset($data['avatar']) ? $data['avatar'] : null; $this->container['ion_icon'] = isset($data['ion_icon']) ? $data['ion_icon'] : null; $this->container['html'] = isset($data['html']) ? $data['html'] : null; + $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + $this->container['error_message'] = isset($data['error_message']) ? $data['error_message'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['link'] = isset($data['link']) ? $data['link'] : null; + $this->container['card'] = isset($data['card']) ? $data['card'] : null; } /** @@ -410,6 +458,198 @@ public function setHtml($html) return $this; } + + /** + * Gets errors + * + * @return \QuantiModo\Client\Model\Error[] + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \QuantiModo\Client\Model\Error[] $errors Array of error objects with message property + * + * @return $this + */ + public function setErrors($errors) + { + $this->container['errors'] = $errors; + + return $this; + } + + /** + * Gets error + * + * @return string + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string $error Error message + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + + /** + * Gets error_message + * + * @return string + */ + public function getErrorMessage() + { + return $this->container['error_message']; + } + + /** + * Sets error_message + * + * @param string $error_message Error message + * + * @return $this + */ + public function setErrorMessage($error_message) + { + $this->container['error_message'] = $error_message; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status ex. OK or ERROR + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success true or false + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets code + * + * @return float + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param float $code Response code such as 200 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets link + * + * @return string + */ + public function getLink() + { + return $this->container['link']; + } + + /** + * Sets link + * + * @param string $link A super neat url you might want to share with your users! + * + * @return $this + */ + public function setLink($link) + { + $this->container['link'] = $link; + + return $this; + } + + /** + * Gets card + * + * @return \QuantiModo\Client\Model\Card + */ + public function getCard() + { + return $this->container['card']; + } + + /** + * Sets card + * + * @param \QuantiModo\Client\Model\Card $card A super neat card with buttons and HTML that you can use in your app! + * + * @return $this + */ + public function setCard($card) + { + $this->container['card'] = $card; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/MessagesRecipient.php b/lib/Model/MessagesRecipient.php index f382363..8d71a8e 100644 --- a/lib/Model/MessagesRecipient.php +++ b/lib/Model/MessagesRecipient.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/MessagesRecipientsResponse.php b/lib/Model/MessagesRecipientsResponse.php index a7e4202..dea2fdb 100644 --- a/lib/Model/MessagesRecipientsResponse.php +++ b/lib/Model/MessagesRecipientsResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -63,7 +63,13 @@ class MessagesRecipientsResponse implements ModelInterface, ArrayAccess 'image' => '\QuantiModo\Client\Model\Image', 'avatar' => 'string', 'ion_icon' => 'string', - 'html' => 'string' + 'html' => 'string', + 'errors' => '\QuantiModo\Client\Model\Error[]', + 'status' => 'string', + 'success' => 'bool', + 'code' => 'float', + 'link' => 'string', + 'card' => '\QuantiModo\Client\Model\Card' ]; /** @@ -78,7 +84,13 @@ class MessagesRecipientsResponse implements ModelInterface, ArrayAccess 'image' => null, 'avatar' => null, 'ion_icon' => null, - 'html' => null + 'html' => null, + 'errors' => null, + 'status' => null, + 'success' => null, + 'code' => null, + 'link' => null, + 'card' => null ]; /** @@ -114,7 +126,13 @@ public static function swaggerFormats() 'image' => 'image', 'avatar' => 'avatar', 'ion_icon' => 'ionIcon', - 'html' => 'html' + 'html' => 'html', + 'errors' => 'errors', + 'status' => 'status', + 'success' => 'success', + 'code' => 'code', + 'link' => 'link', + 'card' => 'card' ]; /** @@ -129,7 +147,13 @@ public static function swaggerFormats() 'image' => 'setImage', 'avatar' => 'setAvatar', 'ion_icon' => 'setIonIcon', - 'html' => 'setHtml' + 'html' => 'setHtml', + 'errors' => 'setErrors', + 'status' => 'setStatus', + 'success' => 'setSuccess', + 'code' => 'setCode', + 'link' => 'setLink', + 'card' => 'setCard' ]; /** @@ -144,7 +168,13 @@ public static function swaggerFormats() 'image' => 'getImage', 'avatar' => 'getAvatar', 'ion_icon' => 'getIonIcon', - 'html' => 'getHtml' + 'html' => 'getHtml', + 'errors' => 'getErrors', + 'status' => 'getStatus', + 'success' => 'getSuccess', + 'code' => 'getCode', + 'link' => 'getLink', + 'card' => 'getCard' ]; /** @@ -214,6 +244,12 @@ public function __construct(array $data = null) $this->container['avatar'] = isset($data['avatar']) ? $data['avatar'] : null; $this->container['ion_icon'] = isset($data['ion_icon']) ? $data['ion_icon'] : null; $this->container['html'] = isset($data['html']) ? $data['html'] : null; + $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['link'] = isset($data['link']) ? $data['link'] : null; + $this->container['card'] = isset($data['card']) ? $data['card'] : null; } /** @@ -410,6 +446,150 @@ public function setHtml($html) return $this; } + + /** + * Gets errors + * + * @return \QuantiModo\Client\Model\Error[] + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \QuantiModo\Client\Model\Error[] $errors Array of error objects with message property + * + * @return $this + */ + public function setErrors($errors) + { + $this->container['errors'] = $errors; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status ex. OK or ERROR + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success true or false + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets code + * + * @return float + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param float $code Response code such as 200 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets link + * + * @return string + */ + public function getLink() + { + return $this->container['link']; + } + + /** + * Sets link + * + * @param string $link A super neat url you might want to share with your users! + * + * @return $this + */ + public function setLink($link) + { + $this->container['link'] = $link; + + return $this; + } + + /** + * Gets card + * + * @return \QuantiModo\Client\Model\Card + */ + public function getCard() + { + return $this->container['card']; + } + + /** + * Sets card + * + * @param \QuantiModo\Client\Model\Card $card A super neat card with buttons and HTML that you can use in your app! + * + * @return $this + */ + public function setCard($card) + { + $this->container['card'] = $card; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/ModelInterface.php b/lib/Model/ModelInterface.php index 17e2368..c25ab1e 100644 --- a/lib/Model/ModelInterface.php +++ b/lib/Model/ModelInterface.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/Notification.php b/lib/Model/Notification.php index d122aec..04ed337 100644 --- a/lib/Model/Notification.php +++ b/lib/Model/Notification.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/NotificationsResponse.php b/lib/Model/NotificationsResponse.php index ddd3b2c..cc66e30 100644 --- a/lib/Model/NotificationsResponse.php +++ b/lib/Model/NotificationsResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -63,7 +63,13 @@ class NotificationsResponse implements ModelInterface, ArrayAccess 'image' => '\QuantiModo\Client\Model\Image', 'avatar' => 'string', 'ion_icon' => 'string', - 'html' => 'string' + 'html' => 'string', + 'errors' => '\QuantiModo\Client\Model\Error[]', + 'status' => 'string', + 'success' => 'bool', + 'code' => 'float', + 'link' => 'string', + 'card' => '\QuantiModo\Client\Model\Card' ]; /** @@ -78,7 +84,13 @@ class NotificationsResponse implements ModelInterface, ArrayAccess 'image' => null, 'avatar' => null, 'ion_icon' => null, - 'html' => null + 'html' => null, + 'errors' => null, + 'status' => null, + 'success' => null, + 'code' => null, + 'link' => null, + 'card' => null ]; /** @@ -114,7 +126,13 @@ public static function swaggerFormats() 'image' => 'image', 'avatar' => 'avatar', 'ion_icon' => 'ionIcon', - 'html' => 'html' + 'html' => 'html', + 'errors' => 'errors', + 'status' => 'status', + 'success' => 'success', + 'code' => 'code', + 'link' => 'link', + 'card' => 'card' ]; /** @@ -129,7 +147,13 @@ public static function swaggerFormats() 'image' => 'setImage', 'avatar' => 'setAvatar', 'ion_icon' => 'setIonIcon', - 'html' => 'setHtml' + 'html' => 'setHtml', + 'errors' => 'setErrors', + 'status' => 'setStatus', + 'success' => 'setSuccess', + 'code' => 'setCode', + 'link' => 'setLink', + 'card' => 'setCard' ]; /** @@ -144,7 +168,13 @@ public static function swaggerFormats() 'image' => 'getImage', 'avatar' => 'getAvatar', 'ion_icon' => 'getIonIcon', - 'html' => 'getHtml' + 'html' => 'getHtml', + 'errors' => 'getErrors', + 'status' => 'getStatus', + 'success' => 'getSuccess', + 'code' => 'getCode', + 'link' => 'getLink', + 'card' => 'getCard' ]; /** @@ -214,6 +244,12 @@ public function __construct(array $data = null) $this->container['avatar'] = isset($data['avatar']) ? $data['avatar'] : null; $this->container['ion_icon'] = isset($data['ion_icon']) ? $data['ion_icon'] : null; $this->container['html'] = isset($data['html']) ? $data['html'] : null; + $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['link'] = isset($data['link']) ? $data['link'] : null; + $this->container['card'] = isset($data['card']) ? $data['card'] : null; } /** @@ -410,6 +446,150 @@ public function setHtml($html) return $this; } + + /** + * Gets errors + * + * @return \QuantiModo\Client\Model\Error[] + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \QuantiModo\Client\Model\Error[] $errors Array of error objects with message property + * + * @return $this + */ + public function setErrors($errors) + { + $this->container['errors'] = $errors; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status ex. OK or ERROR + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success true or false + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets code + * + * @return float + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param float $code Response code such as 200 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets link + * + * @return string + */ + public function getLink() + { + return $this->container['link']; + } + + /** + * Sets link + * + * @param string $link A super neat url you might want to share with your users! + * + * @return $this + */ + public function setLink($link) + { + $this->container['link'] = $link; + + return $this; + } + + /** + * Gets card + * + * @return \QuantiModo\Client\Model\Card + */ + public function getCard() + { + return $this->container['card']; + } + + /** + * Sets card + * + * @param \QuantiModo\Client\Model\Card $card A super neat card with buttons and HTML that you can use in your app! + * + * @return $this + */ + public function setCard($card) + { + $this->container['card'] = $card; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/Pair.php b/lib/Model/Pair.php index 1f262bc..ba250e2 100644 --- a/lib/Model/Pair.php +++ b/lib/Model/Pair.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/ParticipantInstruction.php b/lib/Model/ParticipantInstruction.php index d7c442f..2bc83aa 100644 --- a/lib/Model/ParticipantInstruction.php +++ b/lib/Model/ParticipantInstruction.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/PostMeasurementsDataResponse.php b/lib/Model/PostMeasurementsDataResponse.php index afa002c..d71aff0 100644 --- a/lib/Model/PostMeasurementsDataResponse.php +++ b/lib/Model/PostMeasurementsDataResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -59,7 +59,13 @@ class PostMeasurementsDataResponse implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'user_variables' => '\QuantiModo\Client\Model\Variable[]', 'description' => 'string', - 'summary' => 'string' + 'summary' => 'string', + 'errors' => '\QuantiModo\Client\Model\Error[]', + 'status' => 'string', + 'success' => 'bool', + 'code' => 'float', + 'link' => 'string', + 'card' => '\QuantiModo\Client\Model\Card' ]; /** @@ -70,7 +76,13 @@ class PostMeasurementsDataResponse implements ModelInterface, ArrayAccess protected static $swaggerFormats = [ 'user_variables' => null, 'description' => null, - 'summary' => null + 'summary' => null, + 'errors' => null, + 'status' => null, + 'success' => null, + 'code' => null, + 'link' => null, + 'card' => null ]; /** @@ -102,7 +114,13 @@ public static function swaggerFormats() protected static $attributeMap = [ 'user_variables' => 'userVariables', 'description' => 'description', - 'summary' => 'summary' + 'summary' => 'summary', + 'errors' => 'errors', + 'status' => 'status', + 'success' => 'success', + 'code' => 'code', + 'link' => 'link', + 'card' => 'card' ]; /** @@ -113,7 +131,13 @@ public static function swaggerFormats() protected static $setters = [ 'user_variables' => 'setUserVariables', 'description' => 'setDescription', - 'summary' => 'setSummary' + 'summary' => 'setSummary', + 'errors' => 'setErrors', + 'status' => 'setStatus', + 'success' => 'setSuccess', + 'code' => 'setCode', + 'link' => 'setLink', + 'card' => 'setCard' ]; /** @@ -124,7 +148,13 @@ public static function swaggerFormats() protected static $getters = [ 'user_variables' => 'getUserVariables', 'description' => 'getDescription', - 'summary' => 'getSummary' + 'summary' => 'getSummary', + 'errors' => 'getErrors', + 'status' => 'getStatus', + 'success' => 'getSuccess', + 'code' => 'getCode', + 'link' => 'getLink', + 'card' => 'getCard' ]; /** @@ -190,6 +220,12 @@ public function __construct(array $data = null) $this->container['user_variables'] = isset($data['user_variables']) ? $data['user_variables'] : null; $this->container['description'] = isset($data['description']) ? $data['description'] : null; $this->container['summary'] = isset($data['summary']) ? $data['summary'] : null; + $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['link'] = isset($data['link']) ? $data['link'] : null; + $this->container['card'] = isset($data['card']) ? $data['card'] : null; } /** @@ -287,6 +323,150 @@ public function setSummary($summary) return $this; } + + /** + * Gets errors + * + * @return \QuantiModo\Client\Model\Error[] + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \QuantiModo\Client\Model\Error[] $errors Array of error objects with message property + * + * @return $this + */ + public function setErrors($errors) + { + $this->container['errors'] = $errors; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status ex. OK or ERROR + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success true or false + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets code + * + * @return float + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param float $code Response code such as 200 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets link + * + * @return string + */ + public function getLink() + { + return $this->container['link']; + } + + /** + * Sets link + * + * @param string $link A super neat url you might want to share with your users! + * + * @return $this + */ + public function setLink($link) + { + $this->container['link'] = $link; + + return $this; + } + + /** + * Gets card + * + * @return \QuantiModo\Client\Model\Card + */ + public function getCard() + { + return $this->container['card']; + } + + /** + * Sets card + * + * @param \QuantiModo\Client\Model\Card $card A super neat card with buttons and HTML that you can use in your app! + * + * @return $this + */ + public function setCard($card) + { + $this->container['card'] = $card; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/PostMeasurementsResponse.php b/lib/Model/PostMeasurementsResponse.php index de867cc..26902a4 100644 --- a/lib/Model/PostMeasurementsResponse.php +++ b/lib/Model/PostMeasurementsResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -59,10 +59,14 @@ class PostMeasurementsResponse implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'data' => '\QuantiModo\Client\Model\PostMeasurementsDataResponse', 'message' => 'string', - 'status' => 'int', - 'success' => 'bool', 'description' => 'string', - 'summary' => 'string' + 'summary' => 'string', + 'errors' => '\QuantiModo\Client\Model\Error[]', + 'status' => 'string', + 'success' => 'bool', + 'code' => 'float', + 'link' => 'string', + 'card' => '\QuantiModo\Client\Model\Card' ]; /** @@ -73,10 +77,14 @@ class PostMeasurementsResponse implements ModelInterface, ArrayAccess protected static $swaggerFormats = [ 'data' => null, 'message' => null, + 'description' => null, + 'summary' => null, + 'errors' => null, 'status' => null, 'success' => null, - 'description' => null, - 'summary' => null + 'code' => null, + 'link' => null, + 'card' => null ]; /** @@ -108,10 +116,14 @@ public static function swaggerFormats() protected static $attributeMap = [ 'data' => 'data', 'message' => 'message', + 'description' => 'description', + 'summary' => 'summary', + 'errors' => 'errors', 'status' => 'status', 'success' => 'success', - 'description' => 'description', - 'summary' => 'summary' + 'code' => 'code', + 'link' => 'link', + 'card' => 'card' ]; /** @@ -122,10 +134,14 @@ public static function swaggerFormats() protected static $setters = [ 'data' => 'setData', 'message' => 'setMessage', + 'description' => 'setDescription', + 'summary' => 'setSummary', + 'errors' => 'setErrors', 'status' => 'setStatus', 'success' => 'setSuccess', - 'description' => 'setDescription', - 'summary' => 'setSummary' + 'code' => 'setCode', + 'link' => 'setLink', + 'card' => 'setCard' ]; /** @@ -136,10 +152,14 @@ public static function swaggerFormats() protected static $getters = [ 'data' => 'getData', 'message' => 'getMessage', + 'description' => 'getDescription', + 'summary' => 'getSummary', + 'errors' => 'getErrors', 'status' => 'getStatus', 'success' => 'getSuccess', - 'description' => 'getDescription', - 'summary' => 'getSummary' + 'code' => 'getCode', + 'link' => 'getLink', + 'card' => 'getCard' ]; /** @@ -204,10 +224,14 @@ public function __construct(array $data = null) { $this->container['data'] = isset($data['data']) ? $data['data'] : null; $this->container['message'] = isset($data['message']) ? $data['message'] : null; - $this->container['status'] = isset($data['status']) ? $data['status'] : null; - $this->container['success'] = isset($data['success']) ? $data['success'] : null; $this->container['description'] = isset($data['description']) ? $data['description'] : null; $this->container['summary'] = isset($data['summary']) ? $data['summary'] : null; + $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['link'] = isset($data['link']) ? $data['link'] : null; + $this->container['card'] = isset($data['card']) ? $data['card'] : null; } /** @@ -288,10 +312,82 @@ public function setMessage($message) return $this; } + /** + * Gets description + * + * @return string + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string $description Can be used as body of help info popup + * + * @return $this + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets summary + * + * @return string + */ + public function getSummary() + { + return $this->container['summary']; + } + + /** + * Sets summary + * + * @param string $summary Can be used as title in help info popup + * + * @return $this + */ + public function setSummary($summary) + { + $this->container['summary'] = $summary; + + return $this; + } + + /** + * Gets errors + * + * @return \QuantiModo\Client\Model\Error[] + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \QuantiModo\Client\Model\Error[] $errors Array of error objects with message property + * + * @return $this + */ + public function setErrors($errors) + { + $this->container['errors'] = $errors; + + return $this; + } + /** * Gets status * - * @return int + * @return string */ public function getStatus() { @@ -301,7 +397,7 @@ public function getStatus() /** * Sets status * - * @param int $status Status code + * @param string $status ex. OK or ERROR * * @return $this */ @@ -325,7 +421,7 @@ public function getSuccess() /** * Sets success * - * @param bool $success success + * @param bool $success true or false * * @return $this */ @@ -337,49 +433,73 @@ public function setSuccess($success) } /** - * Gets description + * Gets code * - * @return string + * @return float */ - public function getDescription() + public function getCode() { - return $this->container['description']; + return $this->container['code']; } /** - * Sets description + * Sets code * - * @param string $description Can be used as body of help info popup + * @param float $code Response code such as 200 * * @return $this */ - public function setDescription($description) + public function setCode($code) { - $this->container['description'] = $description; + $this->container['code'] = $code; return $this; } /** - * Gets summary + * Gets link * * @return string */ - public function getSummary() + public function getLink() { - return $this->container['summary']; + return $this->container['link']; } /** - * Sets summary + * Sets link * - * @param string $summary Can be used as title in help info popup + * @param string $link A super neat url you might want to share with your users! * * @return $this */ - public function setSummary($summary) + public function setLink($link) { - $this->container['summary'] = $summary; + $this->container['link'] = $link; + + return $this; + } + + /** + * Gets card + * + * @return \QuantiModo\Client\Model\Card + */ + public function getCard() + { + return $this->container['card']; + } + + /** + * Sets card + * + * @param \QuantiModo\Client\Model\Card $card A super neat card with buttons and HTML that you can use in your app! + * + * @return $this + */ + public function setCard($card) + { + $this->container['card'] = $card; return $this; } diff --git a/lib/Model/PostStudyCreateResponse.php b/lib/Model/PostStudyCreateResponse.php index 7f5fb68..fd77471 100644 --- a/lib/Model/PostStudyCreateResponse.php +++ b/lib/Model/PostStudyCreateResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -58,10 +58,14 @@ class PostStudyCreateResponse implements ModelInterface, ArrayAccess */ protected static $swaggerTypes = [ 'study' => '\QuantiModo\Client\Model\Study', + 'description' => 'string', + 'summary' => 'string', + 'errors' => '\QuantiModo\Client\Model\Error[]', 'status' => 'string', 'success' => 'bool', - 'description' => 'string', - 'summary' => 'string' + 'code' => 'float', + 'link' => 'string', + 'card' => '\QuantiModo\Client\Model\Card' ]; /** @@ -71,10 +75,14 @@ class PostStudyCreateResponse implements ModelInterface, ArrayAccess */ protected static $swaggerFormats = [ 'study' => null, + 'description' => null, + 'summary' => null, + 'errors' => null, 'status' => null, 'success' => null, - 'description' => null, - 'summary' => null + 'code' => null, + 'link' => null, + 'card' => null ]; /** @@ -105,10 +113,14 @@ public static function swaggerFormats() */ protected static $attributeMap = [ 'study' => 'study', + 'description' => 'description', + 'summary' => 'summary', + 'errors' => 'errors', 'status' => 'status', 'success' => 'success', - 'description' => 'description', - 'summary' => 'summary' + 'code' => 'code', + 'link' => 'link', + 'card' => 'card' ]; /** @@ -118,10 +130,14 @@ public static function swaggerFormats() */ protected static $setters = [ 'study' => 'setStudy', + 'description' => 'setDescription', + 'summary' => 'setSummary', + 'errors' => 'setErrors', 'status' => 'setStatus', 'success' => 'setSuccess', - 'description' => 'setDescription', - 'summary' => 'setSummary' + 'code' => 'setCode', + 'link' => 'setLink', + 'card' => 'setCard' ]; /** @@ -131,10 +147,14 @@ public static function swaggerFormats() */ protected static $getters = [ 'study' => 'getStudy', + 'description' => 'getDescription', + 'summary' => 'getSummary', + 'errors' => 'getErrors', 'status' => 'getStatus', 'success' => 'getSuccess', - 'description' => 'getDescription', - 'summary' => 'getSummary' + 'code' => 'getCode', + 'link' => 'getLink', + 'card' => 'getCard' ]; /** @@ -198,10 +218,14 @@ public function getModelName() public function __construct(array $data = null) { $this->container['study'] = isset($data['study']) ? $data['study'] : null; - $this->container['status'] = isset($data['status']) ? $data['status'] : null; - $this->container['success'] = isset($data['success']) ? $data['success'] : null; $this->container['description'] = isset($data['description']) ? $data['description'] : null; $this->container['summary'] = isset($data['summary']) ? $data['summary'] : null; + $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['link'] = isset($data['link']) ? $data['link'] : null; + $this->container['card'] = isset($data['card']) ? $data['card'] : null; } /** @@ -252,6 +276,78 @@ public function setStudy($study) return $this; } + /** + * Gets description + * + * @return string + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string $description Can be used as body of help info popup + * + * @return $this + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets summary + * + * @return string + */ + public function getSummary() + { + return $this->container['summary']; + } + + /** + * Sets summary + * + * @param string $summary Can be used as title in help info popup + * + * @return $this + */ + public function setSummary($summary) + { + $this->container['summary'] = $summary; + + return $this; + } + + /** + * Gets errors + * + * @return \QuantiModo\Client\Model\Error[] + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \QuantiModo\Client\Model\Error[] $errors Array of error objects with message property + * + * @return $this + */ + public function setErrors($errors) + { + $this->container['errors'] = $errors; + + return $this; + } + /** * Gets status * @@ -265,7 +361,7 @@ public function getStatus() /** * Sets status * - * @param string $status Ex: ok + * @param string $status ex. OK or ERROR * * @return $this */ @@ -289,7 +385,7 @@ public function getSuccess() /** * Sets success * - * @param bool $success Ex: true + * @param bool $success true or false * * @return $this */ @@ -301,49 +397,73 @@ public function setSuccess($success) } /** - * Gets description + * Gets code * - * @return string + * @return float */ - public function getDescription() + public function getCode() { - return $this->container['description']; + return $this->container['code']; } /** - * Sets description + * Sets code * - * @param string $description Can be used as body of help info popup + * @param float $code Response code such as 200 * * @return $this */ - public function setDescription($description) + public function setCode($code) { - $this->container['description'] = $description; + $this->container['code'] = $code; return $this; } /** - * Gets summary + * Gets link * * @return string */ - public function getSummary() + public function getLink() { - return $this->container['summary']; + return $this->container['link']; } /** - * Sets summary + * Sets link * - * @param string $summary Can be used as title in help info popup + * @param string $link A super neat url you might want to share with your users! * * @return $this */ - public function setSummary($summary) + public function setLink($link) { - $this->container['summary'] = $summary; + $this->container['link'] = $link; + + return $this; + } + + /** + * Gets card + * + * @return \QuantiModo\Client\Model\Card + */ + public function getCard() + { + return $this->container['card']; + } + + /** + * Sets card + * + * @param \QuantiModo\Client\Model\Card $card A super neat card with buttons and HTML that you can use in your app! + * + * @return $this + */ + public function setCard($card) + { + $this->container['card'] = $card; return $this; } diff --git a/lib/Model/PostStudyPublishResponse.php b/lib/Model/PostStudyPublishResponse.php index ab8035f..5b0ed7b 100644 --- a/lib/Model/PostStudyPublishResponse.php +++ b/lib/Model/PostStudyPublishResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -57,10 +57,14 @@ class PostStudyPublishResponse implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerTypes = [ + 'description' => 'string', + 'summary' => 'string', + 'errors' => '\QuantiModo\Client\Model\Error[]', 'status' => 'string', 'success' => 'bool', - 'description' => 'string', - 'summary' => 'string' + 'code' => 'float', + 'link' => 'string', + 'card' => '\QuantiModo\Client\Model\Card' ]; /** @@ -69,10 +73,14 @@ class PostStudyPublishResponse implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerFormats = [ + 'description' => null, + 'summary' => null, + 'errors' => null, 'status' => null, 'success' => null, - 'description' => null, - 'summary' => null + 'code' => null, + 'link' => null, + 'card' => null ]; /** @@ -102,10 +110,14 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ + 'description' => 'description', + 'summary' => 'summary', + 'errors' => 'errors', 'status' => 'status', 'success' => 'success', - 'description' => 'description', - 'summary' => 'summary' + 'code' => 'code', + 'link' => 'link', + 'card' => 'card' ]; /** @@ -114,10 +126,14 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ + 'description' => 'setDescription', + 'summary' => 'setSummary', + 'errors' => 'setErrors', 'status' => 'setStatus', 'success' => 'setSuccess', - 'description' => 'setDescription', - 'summary' => 'setSummary' + 'code' => 'setCode', + 'link' => 'setLink', + 'card' => 'setCard' ]; /** @@ -126,10 +142,14 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ + 'description' => 'getDescription', + 'summary' => 'getSummary', + 'errors' => 'getErrors', 'status' => 'getStatus', 'success' => 'getSuccess', - 'description' => 'getDescription', - 'summary' => 'getSummary' + 'code' => 'getCode', + 'link' => 'getLink', + 'card' => 'getCard' ]; /** @@ -192,10 +212,14 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['status'] = isset($data['status']) ? $data['status'] : null; - $this->container['success'] = isset($data['success']) ? $data['success'] : null; $this->container['description'] = isset($data['description']) ? $data['description'] : null; $this->container['summary'] = isset($data['summary']) ? $data['summary'] : null; + $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['link'] = isset($data['link']) ? $data['link'] : null; + $this->container['card'] = isset($data['card']) ? $data['card'] : null; } /** @@ -222,6 +246,78 @@ public function valid() } + /** + * Gets description + * + * @return string + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string $description Can be used as body of help info popup + * + * @return $this + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets summary + * + * @return string + */ + public function getSummary() + { + return $this->container['summary']; + } + + /** + * Sets summary + * + * @param string $summary Can be used as title in help info popup + * + * @return $this + */ + public function setSummary($summary) + { + $this->container['summary'] = $summary; + + return $this; + } + + /** + * Gets errors + * + * @return \QuantiModo\Client\Model\Error[] + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \QuantiModo\Client\Model\Error[] $errors Array of error objects with message property + * + * @return $this + */ + public function setErrors($errors) + { + $this->container['errors'] = $errors; + + return $this; + } + /** * Gets status * @@ -235,7 +331,7 @@ public function getStatus() /** * Sets status * - * @param string $status Ex: ok + * @param string $status ex. OK or ERROR * * @return $this */ @@ -259,7 +355,7 @@ public function getSuccess() /** * Sets success * - * @param bool $success Ex: true + * @param bool $success true or false * * @return $this */ @@ -271,49 +367,73 @@ public function setSuccess($success) } /** - * Gets description + * Gets code * - * @return string + * @return float */ - public function getDescription() + public function getCode() { - return $this->container['description']; + return $this->container['code']; } /** - * Sets description + * Sets code * - * @param string $description Can be used as body of help info popup + * @param float $code Response code such as 200 * * @return $this */ - public function setDescription($description) + public function setCode($code) { - $this->container['description'] = $description; + $this->container['code'] = $code; return $this; } /** - * Gets summary + * Gets link * * @return string */ - public function getSummary() + public function getLink() { - return $this->container['summary']; + return $this->container['link']; } /** - * Sets summary + * Sets link * - * @param string $summary Can be used as title in help info popup + * @param string $link A super neat url you might want to share with your users! * * @return $this */ - public function setSummary($summary) + public function setLink($link) { - $this->container['summary'] = $summary; + $this->container['link'] = $link; + + return $this; + } + + /** + * Gets card + * + * @return \QuantiModo\Client\Model\Card + */ + public function getCard() + { + return $this->container['card']; + } + + /** + * Sets card + * + * @param \QuantiModo\Client\Model\Card $card A super neat card with buttons and HTML that you can use in your app! + * + * @return $this + */ + public function setCard($card) + { + $this->container['card'] = $card; return $this; } diff --git a/lib/Model/PostTrackingRemindersDataResponse.php b/lib/Model/PostTrackingRemindersDataResponse.php index 69c974d..d9e9ff6 100644 --- a/lib/Model/PostTrackingRemindersDataResponse.php +++ b/lib/Model/PostTrackingRemindersDataResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -61,7 +61,13 @@ class PostTrackingRemindersDataResponse implements ModelInterface, ArrayAccess 'tracking_reminders' => '\QuantiModo\Client\Model\TrackingReminder[]', 'user_variables' => '\QuantiModo\Client\Model\Variable[]', 'description' => 'string', - 'summary' => 'string' + 'summary' => 'string', + 'errors' => '\QuantiModo\Client\Model\Error[]', + 'status' => 'string', + 'success' => 'bool', + 'code' => 'float', + 'link' => 'string', + 'card' => '\QuantiModo\Client\Model\Card' ]; /** @@ -74,7 +80,13 @@ class PostTrackingRemindersDataResponse implements ModelInterface, ArrayAccess 'tracking_reminders' => null, 'user_variables' => null, 'description' => null, - 'summary' => null + 'summary' => null, + 'errors' => null, + 'status' => null, + 'success' => null, + 'code' => null, + 'link' => null, + 'card' => null ]; /** @@ -108,7 +120,13 @@ public static function swaggerFormats() 'tracking_reminders' => 'trackingReminders', 'user_variables' => 'userVariables', 'description' => 'description', - 'summary' => 'summary' + 'summary' => 'summary', + 'errors' => 'errors', + 'status' => 'status', + 'success' => 'success', + 'code' => 'code', + 'link' => 'link', + 'card' => 'card' ]; /** @@ -121,7 +139,13 @@ public static function swaggerFormats() 'tracking_reminders' => 'setTrackingReminders', 'user_variables' => 'setUserVariables', 'description' => 'setDescription', - 'summary' => 'setSummary' + 'summary' => 'setSummary', + 'errors' => 'setErrors', + 'status' => 'setStatus', + 'success' => 'setSuccess', + 'code' => 'setCode', + 'link' => 'setLink', + 'card' => 'setCard' ]; /** @@ -134,7 +158,13 @@ public static function swaggerFormats() 'tracking_reminders' => 'getTrackingReminders', 'user_variables' => 'getUserVariables', 'description' => 'getDescription', - 'summary' => 'getSummary' + 'summary' => 'getSummary', + 'errors' => 'getErrors', + 'status' => 'getStatus', + 'success' => 'getSuccess', + 'code' => 'getCode', + 'link' => 'getLink', + 'card' => 'getCard' ]; /** @@ -202,6 +232,12 @@ public function __construct(array $data = null) $this->container['user_variables'] = isset($data['user_variables']) ? $data['user_variables'] : null; $this->container['description'] = isset($data['description']) ? $data['description'] : null; $this->container['summary'] = isset($data['summary']) ? $data['summary'] : null; + $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['link'] = isset($data['link']) ? $data['link'] : null; + $this->container['card'] = isset($data['card']) ? $data['card'] : null; } /** @@ -347,6 +383,150 @@ public function setSummary($summary) return $this; } + + /** + * Gets errors + * + * @return \QuantiModo\Client\Model\Error[] + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \QuantiModo\Client\Model\Error[] $errors Array of error objects with message property + * + * @return $this + */ + public function setErrors($errors) + { + $this->container['errors'] = $errors; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status ex. OK or ERROR + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success true or false + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets code + * + * @return float + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param float $code Response code such as 200 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets link + * + * @return string + */ + public function getLink() + { + return $this->container['link']; + } + + /** + * Sets link + * + * @param string $link A super neat url you might want to share with your users! + * + * @return $this + */ + public function setLink($link) + { + $this->container['link'] = $link; + + return $this; + } + + /** + * Gets card + * + * @return \QuantiModo\Client\Model\Card + */ + public function getCard() + { + return $this->container['card']; + } + + /** + * Sets card + * + * @param \QuantiModo\Client\Model\Card $card A super neat card with buttons and HTML that you can use in your app! + * + * @return $this + */ + public function setCard($card) + { + $this->container['card'] = $card; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/PostTrackingRemindersResponse.php b/lib/Model/PostTrackingRemindersResponse.php index 25aee21..3508197 100644 --- a/lib/Model/PostTrackingRemindersResponse.php +++ b/lib/Model/PostTrackingRemindersResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -59,10 +59,14 @@ class PostTrackingRemindersResponse implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'data' => '\QuantiModo\Client\Model\PostTrackingRemindersDataResponse', 'message' => 'string', - 'status' => 'int', - 'success' => 'bool', 'description' => 'string', - 'summary' => 'string' + 'summary' => 'string', + 'errors' => '\QuantiModo\Client\Model\Error[]', + 'status' => 'string', + 'success' => 'bool', + 'code' => 'float', + 'link' => 'string', + 'card' => '\QuantiModo\Client\Model\Card' ]; /** @@ -73,10 +77,14 @@ class PostTrackingRemindersResponse implements ModelInterface, ArrayAccess protected static $swaggerFormats = [ 'data' => null, 'message' => null, + 'description' => null, + 'summary' => null, + 'errors' => null, 'status' => null, 'success' => null, - 'description' => null, - 'summary' => null + 'code' => null, + 'link' => null, + 'card' => null ]; /** @@ -108,10 +116,14 @@ public static function swaggerFormats() protected static $attributeMap = [ 'data' => 'data', 'message' => 'message', + 'description' => 'description', + 'summary' => 'summary', + 'errors' => 'errors', 'status' => 'status', 'success' => 'success', - 'description' => 'description', - 'summary' => 'summary' + 'code' => 'code', + 'link' => 'link', + 'card' => 'card' ]; /** @@ -122,10 +134,14 @@ public static function swaggerFormats() protected static $setters = [ 'data' => 'setData', 'message' => 'setMessage', + 'description' => 'setDescription', + 'summary' => 'setSummary', + 'errors' => 'setErrors', 'status' => 'setStatus', 'success' => 'setSuccess', - 'description' => 'setDescription', - 'summary' => 'setSummary' + 'code' => 'setCode', + 'link' => 'setLink', + 'card' => 'setCard' ]; /** @@ -136,10 +152,14 @@ public static function swaggerFormats() protected static $getters = [ 'data' => 'getData', 'message' => 'getMessage', + 'description' => 'getDescription', + 'summary' => 'getSummary', + 'errors' => 'getErrors', 'status' => 'getStatus', 'success' => 'getSuccess', - 'description' => 'getDescription', - 'summary' => 'getSummary' + 'code' => 'getCode', + 'link' => 'getLink', + 'card' => 'getCard' ]; /** @@ -204,10 +224,14 @@ public function __construct(array $data = null) { $this->container['data'] = isset($data['data']) ? $data['data'] : null; $this->container['message'] = isset($data['message']) ? $data['message'] : null; - $this->container['status'] = isset($data['status']) ? $data['status'] : null; - $this->container['success'] = isset($data['success']) ? $data['success'] : null; $this->container['description'] = isset($data['description']) ? $data['description'] : null; $this->container['summary'] = isset($data['summary']) ? $data['summary'] : null; + $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['link'] = isset($data['link']) ? $data['link'] : null; + $this->container['card'] = isset($data['card']) ? $data['card'] : null; } /** @@ -288,10 +312,82 @@ public function setMessage($message) return $this; } + /** + * Gets description + * + * @return string + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string $description Can be used as body of help info popup + * + * @return $this + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets summary + * + * @return string + */ + public function getSummary() + { + return $this->container['summary']; + } + + /** + * Sets summary + * + * @param string $summary Can be used as title in help info popup + * + * @return $this + */ + public function setSummary($summary) + { + $this->container['summary'] = $summary; + + return $this; + } + + /** + * Gets errors + * + * @return \QuantiModo\Client\Model\Error[] + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \QuantiModo\Client\Model\Error[] $errors Array of error objects with message property + * + * @return $this + */ + public function setErrors($errors) + { + $this->container['errors'] = $errors; + + return $this; + } + /** * Gets status * - * @return int + * @return string */ public function getStatus() { @@ -301,7 +397,7 @@ public function getStatus() /** * Sets status * - * @param int $status Status code + * @param string $status ex. OK or ERROR * * @return $this */ @@ -325,7 +421,7 @@ public function getSuccess() /** * Sets success * - * @param bool $success success + * @param bool $success true or false * * @return $this */ @@ -337,49 +433,73 @@ public function setSuccess($success) } /** - * Gets description + * Gets code * - * @return string + * @return float */ - public function getDescription() + public function getCode() { - return $this->container['description']; + return $this->container['code']; } /** - * Sets description + * Sets code * - * @param string $description Can be used as body of help info popup + * @param float $code Response code such as 200 * * @return $this */ - public function setDescription($description) + public function setCode($code) { - $this->container['description'] = $description; + $this->container['code'] = $code; return $this; } /** - * Gets summary + * Gets link * * @return string */ - public function getSummary() + public function getLink() { - return $this->container['summary']; + return $this->container['link']; } /** - * Sets summary + * Sets link * - * @param string $summary Can be used as title in help info popup + * @param string $link A super neat url you might want to share with your users! * * @return $this */ - public function setSummary($summary) + public function setLink($link) { - $this->container['summary'] = $summary; + $this->container['link'] = $link; + + return $this; + } + + /** + * Gets card + * + * @return \QuantiModo\Client\Model\Card + */ + public function getCard() + { + return $this->container['card']; + } + + /** + * Sets card + * + * @param \QuantiModo\Client\Model\Card $card A super neat card with buttons and HTML that you can use in your app! + * + * @return $this + */ + public function setCard($card) + { + $this->container['card'] = $card; return $this; } diff --git a/lib/Model/PostUserSettingsDataResponse.php b/lib/Model/PostUserSettingsDataResponse.php index 98b9f70..6ed7ea7 100644 --- a/lib/Model/PostUserSettingsDataResponse.php +++ b/lib/Model/PostUserSettingsDataResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -59,7 +59,13 @@ class PostUserSettingsDataResponse implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'purchase_id' => 'int', 'description' => 'string', - 'summary' => 'string' + 'summary' => 'string', + 'errors' => '\QuantiModo\Client\Model\Error[]', + 'status' => 'string', + 'success' => 'bool', + 'code' => 'float', + 'link' => 'string', + 'card' => '\QuantiModo\Client\Model\Card' ]; /** @@ -70,7 +76,13 @@ class PostUserSettingsDataResponse implements ModelInterface, ArrayAccess protected static $swaggerFormats = [ 'purchase_id' => null, 'description' => null, - 'summary' => null + 'summary' => null, + 'errors' => null, + 'status' => null, + 'success' => null, + 'code' => null, + 'link' => null, + 'card' => null ]; /** @@ -102,7 +114,13 @@ public static function swaggerFormats() protected static $attributeMap = [ 'purchase_id' => 'purchaseId', 'description' => 'description', - 'summary' => 'summary' + 'summary' => 'summary', + 'errors' => 'errors', + 'status' => 'status', + 'success' => 'success', + 'code' => 'code', + 'link' => 'link', + 'card' => 'card' ]; /** @@ -113,7 +131,13 @@ public static function swaggerFormats() protected static $setters = [ 'purchase_id' => 'setPurchaseId', 'description' => 'setDescription', - 'summary' => 'setSummary' + 'summary' => 'setSummary', + 'errors' => 'setErrors', + 'status' => 'setStatus', + 'success' => 'setSuccess', + 'code' => 'setCode', + 'link' => 'setLink', + 'card' => 'setCard' ]; /** @@ -124,7 +148,13 @@ public static function swaggerFormats() protected static $getters = [ 'purchase_id' => 'getPurchaseId', 'description' => 'getDescription', - 'summary' => 'getSummary' + 'summary' => 'getSummary', + 'errors' => 'getErrors', + 'status' => 'getStatus', + 'success' => 'getSuccess', + 'code' => 'getCode', + 'link' => 'getLink', + 'card' => 'getCard' ]; /** @@ -190,6 +220,12 @@ public function __construct(array $data = null) $this->container['purchase_id'] = isset($data['purchase_id']) ? $data['purchase_id'] : null; $this->container['description'] = isset($data['description']) ? $data['description'] : null; $this->container['summary'] = isset($data['summary']) ? $data['summary'] : null; + $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['link'] = isset($data['link']) ? $data['link'] : null; + $this->container['card'] = isset($data['card']) ? $data['card'] : null; } /** @@ -287,6 +323,150 @@ public function setSummary($summary) return $this; } + + /** + * Gets errors + * + * @return \QuantiModo\Client\Model\Error[] + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \QuantiModo\Client\Model\Error[] $errors Array of error objects with message property + * + * @return $this + */ + public function setErrors($errors) + { + $this->container['errors'] = $errors; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status ex. OK or ERROR + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success true or false + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets code + * + * @return float + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param float $code Response code such as 200 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets link + * + * @return string + */ + public function getLink() + { + return $this->container['link']; + } + + /** + * Sets link + * + * @param string $link A super neat url you might want to share with your users! + * + * @return $this + */ + public function setLink($link) + { + $this->container['link'] = $link; + + return $this; + } + + /** + * Gets card + * + * @return \QuantiModo\Client\Model\Card + */ + public function getCard() + { + return $this->container['card']; + } + + /** + * Sets card + * + * @param \QuantiModo\Client\Model\Card $card A super neat card with buttons and HTML that you can use in your app! + * + * @return $this + */ + public function setCard($card) + { + $this->container['card'] = $card; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/PostUserSettingsResponse.php b/lib/Model/PostUserSettingsResponse.php index 802dd08..40dd5f1 100644 --- a/lib/Model/PostUserSettingsResponse.php +++ b/lib/Model/PostUserSettingsResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -59,10 +59,14 @@ class PostUserSettingsResponse implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'data' => '\QuantiModo\Client\Model\PostUserSettingsDataResponse', 'message' => 'string', - 'status' => 'int', - 'success' => 'bool', 'description' => 'string', - 'summary' => 'string' + 'summary' => 'string', + 'errors' => '\QuantiModo\Client\Model\Error[]', + 'status' => 'string', + 'success' => 'bool', + 'code' => 'float', + 'link' => 'string', + 'card' => '\QuantiModo\Client\Model\Card' ]; /** @@ -73,10 +77,14 @@ class PostUserSettingsResponse implements ModelInterface, ArrayAccess protected static $swaggerFormats = [ 'data' => null, 'message' => null, + 'description' => null, + 'summary' => null, + 'errors' => null, 'status' => null, 'success' => null, - 'description' => null, - 'summary' => null + 'code' => null, + 'link' => null, + 'card' => null ]; /** @@ -108,10 +116,14 @@ public static function swaggerFormats() protected static $attributeMap = [ 'data' => 'data', 'message' => 'message', + 'description' => 'description', + 'summary' => 'summary', + 'errors' => 'errors', 'status' => 'status', 'success' => 'success', - 'description' => 'description', - 'summary' => 'summary' + 'code' => 'code', + 'link' => 'link', + 'card' => 'card' ]; /** @@ -122,10 +134,14 @@ public static function swaggerFormats() protected static $setters = [ 'data' => 'setData', 'message' => 'setMessage', + 'description' => 'setDescription', + 'summary' => 'setSummary', + 'errors' => 'setErrors', 'status' => 'setStatus', 'success' => 'setSuccess', - 'description' => 'setDescription', - 'summary' => 'setSummary' + 'code' => 'setCode', + 'link' => 'setLink', + 'card' => 'setCard' ]; /** @@ -136,10 +152,14 @@ public static function swaggerFormats() protected static $getters = [ 'data' => 'getData', 'message' => 'getMessage', + 'description' => 'getDescription', + 'summary' => 'getSummary', + 'errors' => 'getErrors', 'status' => 'getStatus', 'success' => 'getSuccess', - 'description' => 'getDescription', - 'summary' => 'getSummary' + 'code' => 'getCode', + 'link' => 'getLink', + 'card' => 'getCard' ]; /** @@ -204,10 +224,14 @@ public function __construct(array $data = null) { $this->container['data'] = isset($data['data']) ? $data['data'] : null; $this->container['message'] = isset($data['message']) ? $data['message'] : null; - $this->container['status'] = isset($data['status']) ? $data['status'] : null; - $this->container['success'] = isset($data['success']) ? $data['success'] : null; $this->container['description'] = isset($data['description']) ? $data['description'] : null; $this->container['summary'] = isset($data['summary']) ? $data['summary'] : null; + $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['link'] = isset($data['link']) ? $data['link'] : null; + $this->container['card'] = isset($data['card']) ? $data['card'] : null; } /** @@ -288,10 +312,82 @@ public function setMessage($message) return $this; } + /** + * Gets description + * + * @return string + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string $description Can be used as body of help info popup + * + * @return $this + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets summary + * + * @return string + */ + public function getSummary() + { + return $this->container['summary']; + } + + /** + * Sets summary + * + * @param string $summary Can be used as title in help info popup + * + * @return $this + */ + public function setSummary($summary) + { + $this->container['summary'] = $summary; + + return $this; + } + + /** + * Gets errors + * + * @return \QuantiModo\Client\Model\Error[] + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \QuantiModo\Client\Model\Error[] $errors Array of error objects with message property + * + * @return $this + */ + public function setErrors($errors) + { + $this->container['errors'] = $errors; + + return $this; + } + /** * Gets status * - * @return int + * @return string */ public function getStatus() { @@ -301,7 +397,7 @@ public function getStatus() /** * Sets status * - * @param int $status Status code + * @param string $status ex. OK or ERROR * * @return $this */ @@ -325,7 +421,7 @@ public function getSuccess() /** * Sets success * - * @param bool $success success + * @param bool $success true or false * * @return $this */ @@ -337,49 +433,73 @@ public function setSuccess($success) } /** - * Gets description + * Gets code * - * @return string + * @return float */ - public function getDescription() + public function getCode() { - return $this->container['description']; + return $this->container['code']; } /** - * Sets description + * Sets code * - * @param string $description Can be used as body of help info popup + * @param float $code Response code such as 200 * * @return $this */ - public function setDescription($description) + public function setCode($code) { - $this->container['description'] = $description; + $this->container['code'] = $code; return $this; } /** - * Gets summary + * Gets link * * @return string */ - public function getSummary() + public function getLink() { - return $this->container['summary']; + return $this->container['link']; } /** - * Sets summary + * Sets link * - * @param string $summary Can be used as title in help info popup + * @param string $link A super neat url you might want to share with your users! * * @return $this */ - public function setSummary($summary) + public function setLink($link) { - $this->container['summary'] = $summary; + $this->container['link'] = $link; + + return $this; + } + + /** + * Gets card + * + * @return \QuantiModo\Client\Model\Card + */ + public function getCard() + { + return $this->container['card']; + } + + /** + * Sets card + * + * @param \QuantiModo\Client\Model\Card $card A super neat card with buttons and HTML that you can use in your app! + * + * @return $this + */ + public function setCard($card) + { + $this->container['card'] = $card; return $this; } diff --git a/lib/Model/ShareInvitationBody.php b/lib/Model/ShareInvitationBody.php index aac0740..ebfafeb 100644 --- a/lib/Model/ShareInvitationBody.php +++ b/lib/Model/ShareInvitationBody.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/Study.php b/lib/Model/Study.php index d844d19..36db64d 100644 --- a/lib/Model/Study.php +++ b/lib/Model/Study.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -59,7 +59,7 @@ class Study implements ModelInterface, ArrayAccess */ protected static $swaggerTypes = [ 'type' => 'string', - 'user_id' => 'string', + 'user_id' => 'int', 'id' => 'string', 'cause_variable' => '\QuantiModo\Client\Model\Variable', 'cause_variable_name' => 'string', @@ -85,7 +85,7 @@ class Study implements ModelInterface, ArrayAccess */ protected static $swaggerFormats = [ 'type' => null, - 'user_id' => null, + 'user_id' => 'int32', 'id' => null, 'cause_variable' => null, 'cause_variable_name' => null, @@ -337,7 +337,7 @@ public function setType($type) /** * Gets user_id * - * @return string + * @return int */ public function getUserId() { @@ -347,7 +347,7 @@ public function getUserId() /** * Sets user_id * - * @param string $user_id The user id of the principal investigator or subject if an individual studies + * @param int $user_id The user id of the principal investigator or subject if an individual studies * * @return $this */ diff --git a/lib/Model/StudyCharts.php b/lib/Model/StudyCharts.php index 0f7977c..7e62fcc 100644 --- a/lib/Model/StudyCharts.php +++ b/lib/Model/StudyCharts.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/StudyCreationBody.php b/lib/Model/StudyCreationBody.php index b2e18e7..53832a5 100644 --- a/lib/Model/StudyCreationBody.php +++ b/lib/Model/StudyCreationBody.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/StudyHtml.php b/lib/Model/StudyHtml.php index b5c37a2..5d6095c 100644 --- a/lib/Model/StudyHtml.php +++ b/lib/Model/StudyHtml.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/StudyImages.php b/lib/Model/StudyImages.php index db35fbb..48548ce 100644 --- a/lib/Model/StudyImages.php +++ b/lib/Model/StudyImages.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/StudyJoinResponse.php b/lib/Model/StudyJoinResponse.php index 9231110..184e4b7 100644 --- a/lib/Model/StudyJoinResponse.php +++ b/lib/Model/StudyJoinResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -60,10 +60,14 @@ class StudyJoinResponse implements ModelInterface, ArrayAccess 'study' => '\QuantiModo\Client\Model\Study', 'tracking_reminders' => '\QuantiModo\Client\Model\TrackingReminder[]', 'tracking_reminder_notifications' => '\QuantiModo\Client\Model\TrackingReminderNotification[]', + 'description' => 'string', + 'summary' => 'string', + 'errors' => '\QuantiModo\Client\Model\Error[]', 'status' => 'string', 'success' => 'bool', - 'description' => 'string', - 'summary' => 'string' + 'code' => 'float', + 'link' => 'string', + 'card' => '\QuantiModo\Client\Model\Card' ]; /** @@ -75,10 +79,14 @@ class StudyJoinResponse implements ModelInterface, ArrayAccess 'study' => null, 'tracking_reminders' => null, 'tracking_reminder_notifications' => null, + 'description' => null, + 'summary' => null, + 'errors' => null, 'status' => null, 'success' => null, - 'description' => null, - 'summary' => null + 'code' => null, + 'link' => null, + 'card' => null ]; /** @@ -111,10 +119,14 @@ public static function swaggerFormats() 'study' => 'study', 'tracking_reminders' => 'trackingReminders', 'tracking_reminder_notifications' => 'trackingReminderNotifications', + 'description' => 'description', + 'summary' => 'summary', + 'errors' => 'errors', 'status' => 'status', 'success' => 'success', - 'description' => 'description', - 'summary' => 'summary' + 'code' => 'code', + 'link' => 'link', + 'card' => 'card' ]; /** @@ -126,10 +138,14 @@ public static function swaggerFormats() 'study' => 'setStudy', 'tracking_reminders' => 'setTrackingReminders', 'tracking_reminder_notifications' => 'setTrackingReminderNotifications', + 'description' => 'setDescription', + 'summary' => 'setSummary', + 'errors' => 'setErrors', 'status' => 'setStatus', 'success' => 'setSuccess', - 'description' => 'setDescription', - 'summary' => 'setSummary' + 'code' => 'setCode', + 'link' => 'setLink', + 'card' => 'setCard' ]; /** @@ -141,10 +157,14 @@ public static function swaggerFormats() 'study' => 'getStudy', 'tracking_reminders' => 'getTrackingReminders', 'tracking_reminder_notifications' => 'getTrackingReminderNotifications', + 'description' => 'getDescription', + 'summary' => 'getSummary', + 'errors' => 'getErrors', 'status' => 'getStatus', 'success' => 'getSuccess', - 'description' => 'getDescription', - 'summary' => 'getSummary' + 'code' => 'getCode', + 'link' => 'getLink', + 'card' => 'getCard' ]; /** @@ -210,10 +230,14 @@ public function __construct(array $data = null) $this->container['study'] = isset($data['study']) ? $data['study'] : null; $this->container['tracking_reminders'] = isset($data['tracking_reminders']) ? $data['tracking_reminders'] : null; $this->container['tracking_reminder_notifications'] = isset($data['tracking_reminder_notifications']) ? $data['tracking_reminder_notifications'] : null; - $this->container['status'] = isset($data['status']) ? $data['status'] : null; - $this->container['success'] = isset($data['success']) ? $data['success'] : null; $this->container['description'] = isset($data['description']) ? $data['description'] : null; $this->container['summary'] = isset($data['summary']) ? $data['summary'] : null; + $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['link'] = isset($data['link']) ? $data['link'] : null; + $this->container['card'] = isset($data['card']) ? $data['card'] : null; } /** @@ -312,6 +336,78 @@ public function setTrackingReminderNotifications($tracking_reminder_notification return $this; } + /** + * Gets description + * + * @return string + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string $description Can be used as body of help info popup + * + * @return $this + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets summary + * + * @return string + */ + public function getSummary() + { + return $this->container['summary']; + } + + /** + * Sets summary + * + * @param string $summary Can be used as title in help info popup + * + * @return $this + */ + public function setSummary($summary) + { + $this->container['summary'] = $summary; + + return $this; + } + + /** + * Gets errors + * + * @return \QuantiModo\Client\Model\Error[] + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \QuantiModo\Client\Model\Error[] $errors Array of error objects with message property + * + * @return $this + */ + public function setErrors($errors) + { + $this->container['errors'] = $errors; + + return $this; + } + /** * Gets status * @@ -325,7 +421,7 @@ public function getStatus() /** * Sets status * - * @param string $status Ex: ok + * @param string $status ex. OK or ERROR * * @return $this */ @@ -349,7 +445,7 @@ public function getSuccess() /** * Sets success * - * @param bool $success Ex: true + * @param bool $success true or false * * @return $this */ @@ -361,49 +457,73 @@ public function setSuccess($success) } /** - * Gets description + * Gets code * - * @return string + * @return float */ - public function getDescription() + public function getCode() { - return $this->container['description']; + return $this->container['code']; } /** - * Sets description + * Sets code * - * @param string $description Can be used as body of help info popup + * @param float $code Response code such as 200 * * @return $this */ - public function setDescription($description) + public function setCode($code) { - $this->container['description'] = $description; + $this->container['code'] = $code; return $this; } /** - * Gets summary + * Gets link * * @return string */ - public function getSummary() + public function getLink() { - return $this->container['summary']; + return $this->container['link']; } /** - * Sets summary + * Sets link * - * @param string $summary Can be used as title in help info popup + * @param string $link A super neat url you might want to share with your users! * * @return $this */ - public function setSummary($summary) + public function setLink($link) { - $this->container['summary'] = $summary; + $this->container['link'] = $link; + + return $this; + } + + /** + * Gets card + * + * @return \QuantiModo\Client\Model\Card + */ + public function getCard() + { + return $this->container['card']; + } + + /** + * Sets card + * + * @param \QuantiModo\Client\Model\Card $card A super neat card with buttons and HTML that you can use in your app! + * + * @return $this + */ + public function setCard($card) + { + $this->container['card'] = $card; return $this; } diff --git a/lib/Model/StudyLinks.php b/lib/Model/StudyLinks.php index c02e7c6..9e2f1aa 100644 --- a/lib/Model/StudyLinks.php +++ b/lib/Model/StudyLinks.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/StudySharing.php b/lib/Model/StudySharing.php index 6c1e65a..48e5dd3 100644 --- a/lib/Model/StudySharing.php +++ b/lib/Model/StudySharing.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/StudyText.php b/lib/Model/StudyText.php index 97d7e92..8b402b6 100644 --- a/lib/Model/StudyText.php +++ b/lib/Model/StudyText.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/StudyVotes.php b/lib/Model/StudyVotes.php index 8d37900..0eea69e 100644 --- a/lib/Model/StudyVotes.php +++ b/lib/Model/StudyVotes.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/TrackingReminder.php b/lib/Model/TrackingReminder.php index 15a37aa..86da754 100644 --- a/lib/Model/TrackingReminder.php +++ b/lib/Model/TrackingReminder.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -2774,7 +2774,7 @@ public function getValence() /** * Sets valence * - * @param string $valence Ex: negative + * @param string $valence Valence indicates what type of buttons should be used when recording measurements for this variable. positive - Face buttons with the happiest face equating to a 5/5 rating where higher is better like Overall Mood. negative - Face buttons with happiest face equating to a 1/5 rating where lower is better like Headache Severity. numeric - Just 1 to 5 numeric buttons for neutral variables. * * @return $this */ @@ -2927,7 +2927,7 @@ public function getVariableDescription() /** * Sets variable_description * - * @param string $variable_description Ex: negative + * @param string $variable_description Valence indicates what type of buttons should be used when recording measurements for this variable. positive - Face buttons with the happiest face equating to a 5/5 rating where higher is better like Overall Mood. negative - Face buttons with happiest face equating to a 1/5 rating where lower is better like Headache Severity. numeric - Just 1 to 5 numeric buttons for neutral variables. * * @return $this */ diff --git a/lib/Model/TrackingReminderDelete.php b/lib/Model/TrackingReminderDelete.php index ffed4cb..6dfcf77 100644 --- a/lib/Model/TrackingReminderDelete.php +++ b/lib/Model/TrackingReminderDelete.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/TrackingReminderNotification.php b/lib/Model/TrackingReminderNotification.php index 28d5b21..5d436b9 100644 --- a/lib/Model/TrackingReminderNotification.php +++ b/lib/Model/TrackingReminderNotification.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -1373,7 +1373,7 @@ public function getDescription() /** * Sets description * - * @param string $description Ex: positive + * @param string $description Valence indicates what type of buttons should be used when recording measurements for this variable. positive - Face buttons with the happiest face equating to a 5/5 rating where higher is better like Overall Mood. negative - Face buttons with happiest face equating to a 1/5 rating where lower is better like Headache Severity. numeric - Just 1 to 5 numeric buttons for neutral variables. * * @return $this */ @@ -2645,7 +2645,7 @@ public function getValence() /** * Sets valence * - * @param string $valence Ex: positive + * @param string $valence Valence indicates what type of buttons should be used when recording measurements for this variable. positive - Face buttons with the happiest face equating to a 5/5 rating where higher is better like Overall Mood. negative - Face buttons with happiest face equating to a 1/5 rating where lower is better like Headache Severity. numeric - Just 1 to 5 numeric buttons for neutral variables. * * @return $this */ diff --git a/lib/Model/TrackingReminderNotificationAction.php b/lib/Model/TrackingReminderNotificationAction.php index 8b5a6cb..063073d 100644 --- a/lib/Model/TrackingReminderNotificationAction.php +++ b/lib/Model/TrackingReminderNotificationAction.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/TrackingReminderNotificationPost.php b/lib/Model/TrackingReminderNotificationPost.php index dec45e2..374abaa 100644 --- a/lib/Model/TrackingReminderNotificationPost.php +++ b/lib/Model/TrackingReminderNotificationPost.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/TrackingReminderNotificationTrackAllAction.php b/lib/Model/TrackingReminderNotificationTrackAllAction.php index 912b634..c1c56b3 100644 --- a/lib/Model/TrackingReminderNotificationTrackAllAction.php +++ b/lib/Model/TrackingReminderNotificationTrackAllAction.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/Unit.php b/lib/Model/Unit.php index cd8b849..92ed16f 100644 --- a/lib/Model/Unit.php +++ b/lib/Model/Unit.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/UnitCategory.php b/lib/Model/UnitCategory.php index 24add5d..b520c4a 100644 --- a/lib/Model/UnitCategory.php +++ b/lib/Model/UnitCategory.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/User.php b/lib/Model/User.php index ae942c4..b1db974 100644 --- a/lib/Model/User.php +++ b/lib/Model/User.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -80,6 +80,7 @@ class User implements ModelInterface, ArrayAccess 'has_chrome_extension' => 'bool', 'has_ios_app' => 'bool', 'id' => 'int', + 'last_active' => 'string', 'last_four' => 'string', 'last_name' => 'string', 'last_sms_tracking_reminder_notification_id' => 'string', @@ -88,6 +89,8 @@ class User implements ModelInterface, ArrayAccess 'password' => 'string', 'phone_number' => 'string', 'phone_verification_code' => 'string', + 'primary_outcome_variable_id' => 'int', + 'primary_outcome_variable_name' => 'string', 'push_notifications_enabled' => 'bool', 'refresh_token' => 'string', 'roles' => 'string', @@ -137,6 +140,7 @@ class User implements ModelInterface, ArrayAccess 'has_chrome_extension' => null, 'has_ios_app' => null, 'id' => null, + 'last_active' => null, 'last_four' => null, 'last_name' => null, 'last_sms_tracking_reminder_notification_id' => null, @@ -145,6 +149,8 @@ class User implements ModelInterface, ArrayAccess 'password' => null, 'phone_number' => null, 'phone_verification_code' => null, + 'primary_outcome_variable_id' => null, + 'primary_outcome_variable_name' => null, 'push_notifications_enabled' => null, 'refresh_token' => null, 'roles' => null, @@ -215,6 +221,7 @@ public static function swaggerFormats() 'has_chrome_extension' => 'hasChromeExtension', 'has_ios_app' => 'hasIosApp', 'id' => 'id', + 'last_active' => 'lastActive', 'last_four' => 'lastFour', 'last_name' => 'lastName', 'last_sms_tracking_reminder_notification_id' => 'lastSmsTrackingReminderNotificationId', @@ -223,6 +230,8 @@ public static function swaggerFormats() 'password' => 'password', 'phone_number' => 'phoneNumber', 'phone_verification_code' => 'phoneVerificationCode', + 'primary_outcome_variable_id' => 'primaryOutcomeVariableId', + 'primary_outcome_variable_name' => 'primaryOutcomeVariableName', 'push_notifications_enabled' => 'pushNotificationsEnabled', 'refresh_token' => 'refreshToken', 'roles' => 'roles', @@ -272,6 +281,7 @@ public static function swaggerFormats() 'has_chrome_extension' => 'setHasChromeExtension', 'has_ios_app' => 'setHasIosApp', 'id' => 'setId', + 'last_active' => 'setLastActive', 'last_four' => 'setLastFour', 'last_name' => 'setLastName', 'last_sms_tracking_reminder_notification_id' => 'setLastSmsTrackingReminderNotificationId', @@ -280,6 +290,8 @@ public static function swaggerFormats() 'password' => 'setPassword', 'phone_number' => 'setPhoneNumber', 'phone_verification_code' => 'setPhoneVerificationCode', + 'primary_outcome_variable_id' => 'setPrimaryOutcomeVariableId', + 'primary_outcome_variable_name' => 'setPrimaryOutcomeVariableName', 'push_notifications_enabled' => 'setPushNotificationsEnabled', 'refresh_token' => 'setRefreshToken', 'roles' => 'setRoles', @@ -329,6 +341,7 @@ public static function swaggerFormats() 'has_chrome_extension' => 'getHasChromeExtension', 'has_ios_app' => 'getHasIosApp', 'id' => 'getId', + 'last_active' => 'getLastActive', 'last_four' => 'getLastFour', 'last_name' => 'getLastName', 'last_sms_tracking_reminder_notification_id' => 'getLastSmsTrackingReminderNotificationId', @@ -337,6 +350,8 @@ public static function swaggerFormats() 'password' => 'getPassword', 'phone_number' => 'getPhoneNumber', 'phone_verification_code' => 'getPhoneVerificationCode', + 'primary_outcome_variable_id' => 'getPrimaryOutcomeVariableId', + 'primary_outcome_variable_name' => 'getPrimaryOutcomeVariableName', 'push_notifications_enabled' => 'getPushNotificationsEnabled', 'refresh_token' => 'getRefreshToken', 'roles' => 'getRoles', @@ -440,6 +455,7 @@ public function __construct(array $data = null) $this->container['has_chrome_extension'] = isset($data['has_chrome_extension']) ? $data['has_chrome_extension'] : null; $this->container['has_ios_app'] = isset($data['has_ios_app']) ? $data['has_ios_app'] : null; $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['last_active'] = isset($data['last_active']) ? $data['last_active'] : null; $this->container['last_four'] = isset($data['last_four']) ? $data['last_four'] : null; $this->container['last_name'] = isset($data['last_name']) ? $data['last_name'] : null; $this->container['last_sms_tracking_reminder_notification_id'] = isset($data['last_sms_tracking_reminder_notification_id']) ? $data['last_sms_tracking_reminder_notification_id'] : null; @@ -448,6 +464,8 @@ public function __construct(array $data = null) $this->container['password'] = isset($data['password']) ? $data['password'] : null; $this->container['phone_number'] = isset($data['phone_number']) ? $data['phone_number'] : null; $this->container['phone_verification_code'] = isset($data['phone_verification_code']) ? $data['phone_verification_code'] : null; + $this->container['primary_outcome_variable_id'] = isset($data['primary_outcome_variable_id']) ? $data['primary_outcome_variable_id'] : null; + $this->container['primary_outcome_variable_name'] = isset($data['primary_outcome_variable_name']) ? $data['primary_outcome_variable_name'] : null; $this->container['push_notifications_enabled'] = isset($data['push_notifications_enabled']) ? $data['push_notifications_enabled'] : null; $this->container['refresh_token'] = isset($data['refresh_token']) ? $data['refresh_token'] : null; $this->container['roles'] = isset($data['roles']) ? $data['roles'] : null; @@ -1062,6 +1080,30 @@ public function setId($id) return $this; } + /** + * Gets last_active + * + * @return string + */ + public function getLastActive() + { + return $this->container['last_active']; + } + + /** + * Sets last_active + * + * @param string $last_active Ex: Date the user last logged in + * + * @return $this + */ + public function setLastActive($last_active) + { + $this->container['last_active'] = $last_active; + + return $this; + } + /** * Gets last_four * @@ -1254,6 +1296,54 @@ public function setPhoneVerificationCode($phone_verification_code) return $this; } + /** + * Gets primary_outcome_variable_id + * + * @return int + */ + public function getPrimaryOutcomeVariableId() + { + return $this->container['primary_outcome_variable_id']; + } + + /** + * Sets primary_outcome_variable_id + * + * @param int $primary_outcome_variable_id A good primary outcome variable is something that you want to improve and that changes inexplicably. For instance, if you have anxiety, back pain or arthritis which is worse on some days than others, these would be good candidates for primary outcome variables. Recording their severity and potential factors will help you identify hidden factors exacerbating or improving them. + * + * @return $this + */ + public function setPrimaryOutcomeVariableId($primary_outcome_variable_id) + { + $this->container['primary_outcome_variable_id'] = $primary_outcome_variable_id; + + return $this; + } + + /** + * Gets primary_outcome_variable_name + * + * @return string + */ + public function getPrimaryOutcomeVariableName() + { + return $this->container['primary_outcome_variable_name']; + } + + /** + * Sets primary_outcome_variable_name + * + * @param string $primary_outcome_variable_name A good primary outcome variable is something that you want to improve and that changes inexplicably. For instance, if you have anxiety, back pain or arthritis which is worse on some days than others, these would be good candidates for primary outcome variables. Recording their severity and potential factors will help you identify hidden factors exacerbating or improving them. + * + * @return $this + */ + public function setPrimaryOutcomeVariableName($primary_outcome_variable_name) + { + $this->container['primary_outcome_variable_name'] = $primary_outcome_variable_name; + + return $this; + } + /** * Gets push_notifications_enabled * @@ -1291,7 +1381,7 @@ public function getRefreshToken() /** * Sets refresh_token * - * @param string $refresh_token Ex: 6e99b113d85586de1f92468433f2df1e666647cb + * @param string $refresh_token See https://oauth.net/2/grant-types/refresh-token/ * * @return $this */ diff --git a/lib/Model/UserBlog.php b/lib/Model/UserBlog.php index da8eda7..e8872af 100644 --- a/lib/Model/UserBlog.php +++ b/lib/Model/UserBlog.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/UserBlogsResponse.php b/lib/Model/UserBlogsResponse.php index fe3c837..45107c1 100644 --- a/lib/Model/UserBlogsResponse.php +++ b/lib/Model/UserBlogsResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -63,7 +63,13 @@ class UserBlogsResponse implements ModelInterface, ArrayAccess 'image' => '\QuantiModo\Client\Model\Image', 'avatar' => 'string', 'ion_icon' => 'string', - 'html' => 'string' + 'html' => 'string', + 'errors' => '\QuantiModo\Client\Model\Error[]', + 'status' => 'string', + 'success' => 'bool', + 'code' => 'float', + 'link' => 'string', + 'card' => '\QuantiModo\Client\Model\Card' ]; /** @@ -78,7 +84,13 @@ class UserBlogsResponse implements ModelInterface, ArrayAccess 'image' => null, 'avatar' => null, 'ion_icon' => null, - 'html' => null + 'html' => null, + 'errors' => null, + 'status' => null, + 'success' => null, + 'code' => null, + 'link' => null, + 'card' => null ]; /** @@ -114,7 +126,13 @@ public static function swaggerFormats() 'image' => 'image', 'avatar' => 'avatar', 'ion_icon' => 'ionIcon', - 'html' => 'html' + 'html' => 'html', + 'errors' => 'errors', + 'status' => 'status', + 'success' => 'success', + 'code' => 'code', + 'link' => 'link', + 'card' => 'card' ]; /** @@ -129,7 +147,13 @@ public static function swaggerFormats() 'image' => 'setImage', 'avatar' => 'setAvatar', 'ion_icon' => 'setIonIcon', - 'html' => 'setHtml' + 'html' => 'setHtml', + 'errors' => 'setErrors', + 'status' => 'setStatus', + 'success' => 'setSuccess', + 'code' => 'setCode', + 'link' => 'setLink', + 'card' => 'setCard' ]; /** @@ -144,7 +168,13 @@ public static function swaggerFormats() 'image' => 'getImage', 'avatar' => 'getAvatar', 'ion_icon' => 'getIonIcon', - 'html' => 'getHtml' + 'html' => 'getHtml', + 'errors' => 'getErrors', + 'status' => 'getStatus', + 'success' => 'getSuccess', + 'code' => 'getCode', + 'link' => 'getLink', + 'card' => 'getCard' ]; /** @@ -214,6 +244,12 @@ public function __construct(array $data = null) $this->container['avatar'] = isset($data['avatar']) ? $data['avatar'] : null; $this->container['ion_icon'] = isset($data['ion_icon']) ? $data['ion_icon'] : null; $this->container['html'] = isset($data['html']) ? $data['html'] : null; + $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['link'] = isset($data['link']) ? $data['link'] : null; + $this->container['card'] = isset($data['card']) ? $data['card'] : null; } /** @@ -410,6 +446,150 @@ public function setHtml($html) return $this; } + + /** + * Gets errors + * + * @return \QuantiModo\Client\Model\Error[] + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \QuantiModo\Client\Model\Error[] $errors Array of error objects with message property + * + * @return $this + */ + public function setErrors($errors) + { + $this->container['errors'] = $errors; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status ex. OK or ERROR + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success true or false + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets code + * + * @return float + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param float $code Response code such as 200 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets link + * + * @return string + */ + public function getLink() + { + return $this->container['link']; + } + + /** + * Sets link + * + * @param string $link A super neat url you might want to share with your users! + * + * @return $this + */ + public function setLink($link) + { + $this->container['link'] = $link; + + return $this; + } + + /** + * Gets card + * + * @return \QuantiModo\Client\Model\Card + */ + public function getCard() + { + return $this->container['card']; + } + + /** + * Sets card + * + * @param \QuantiModo\Client\Model\Card $card A super neat card with buttons and HTML that you can use in your app! + * + * @return $this + */ + public function setCard($card) + { + $this->container['card'] = $card; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/UserTag.php b/lib/Model/UserTag.php index bc0ba66..d51b874 100644 --- a/lib/Model/UserTag.php +++ b/lib/Model/UserTag.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/UserVariableDelete.php b/lib/Model/UserVariableDelete.php index a1fa030..1bc2376 100644 --- a/lib/Model/UserVariableDelete.php +++ b/lib/Model/UserVariableDelete.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/UsersResponse.php b/lib/Model/UsersResponse.php new file mode 100644 index 0000000..6cc71e9 --- /dev/null +++ b/lib/Model/UsersResponse.php @@ -0,0 +1,664 @@ + '\QuantiModo\Client\Model\User[]', + 'description' => 'string', + 'summary' => 'string', + 'errors' => '\QuantiModo\Client\Model\Error[]', + 'status' => 'string', + 'success' => 'bool', + 'code' => 'float', + 'image' => '\QuantiModo\Client\Model\Image', + 'avatar' => 'string', + 'ion_icon' => 'string', + 'html' => 'string', + 'link' => 'string', + 'card' => '\QuantiModo\Client\Model\Card' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'users' => null, + 'description' => null, + 'summary' => null, + 'errors' => null, + 'status' => null, + 'success' => null, + 'code' => null, + 'image' => null, + 'avatar' => null, + 'ion_icon' => null, + 'html' => null, + 'link' => null, + 'card' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'users' => 'users', + 'description' => 'description', + 'summary' => 'summary', + 'errors' => 'errors', + 'status' => 'status', + 'success' => 'success', + 'code' => 'code', + 'image' => 'image', + 'avatar' => 'avatar', + 'ion_icon' => 'ionIcon', + 'html' => 'html', + 'link' => 'link', + 'card' => 'card' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'users' => 'setUsers', + 'description' => 'setDescription', + 'summary' => 'setSummary', + 'errors' => 'setErrors', + 'status' => 'setStatus', + 'success' => 'setSuccess', + 'code' => 'setCode', + 'image' => 'setImage', + 'avatar' => 'setAvatar', + 'ion_icon' => 'setIonIcon', + 'html' => 'setHtml', + 'link' => 'setLink', + 'card' => 'setCard' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'users' => 'getUsers', + 'description' => 'getDescription', + 'summary' => 'getSummary', + 'errors' => 'getErrors', + 'status' => 'getStatus', + 'success' => 'getSuccess', + 'code' => 'getCode', + 'image' => 'getImage', + 'avatar' => 'getAvatar', + 'ion_icon' => 'getIonIcon', + 'html' => 'getHtml', + 'link' => 'getLink', + 'card' => 'getCard' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['users'] = isset($data['users']) ? $data['users'] : null; + $this->container['description'] = isset($data['description']) ? $data['description'] : null; + $this->container['summary'] = isset($data['summary']) ? $data['summary'] : null; + $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['image'] = isset($data['image']) ? $data['image'] : null; + $this->container['avatar'] = isset($data['avatar']) ? $data['avatar'] : null; + $this->container['ion_icon'] = isset($data['ion_icon']) ? $data['ion_icon'] : null; + $this->container['html'] = isset($data['html']) ? $data['html'] : null; + $this->container['link'] = isset($data['link']) ? $data['link'] : null; + $this->container['card'] = isset($data['card']) ? $data['card'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['users'] === null) { + $invalidProperties[] = "'users' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets users + * + * @return \QuantiModo\Client\Model\User[] + */ + public function getUsers() + { + return $this->container['users']; + } + + /** + * Sets users + * + * @param \QuantiModo\Client\Model\User[] $users users + * + * @return $this + */ + public function setUsers($users) + { + $this->container['users'] = $users; + + return $this; + } + + /** + * Gets description + * + * @return string + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string $description Users who granted access to their data + * + * @return $this + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets summary + * + * @return string + */ + public function getSummary() + { + return $this->container['summary']; + } + + /** + * Sets summary + * + * @param string $summary Users who granted access to their data + * + * @return $this + */ + public function setSummary($summary) + { + $this->container['summary'] = $summary; + + return $this; + } + + /** + * Gets errors + * + * @return \QuantiModo\Client\Model\Error[] + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \QuantiModo\Client\Model\Error[] $errors Array of error objects with message property + * + * @return $this + */ + public function setErrors($errors) + { + $this->container['errors'] = $errors; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status ex. OK or ERROR + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success true or false + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets code + * + * @return float + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param float $code Response code such as 200 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets image + * + * @return \QuantiModo\Client\Model\Image + */ + public function getImage() + { + return $this->container['image']; + } + + /** + * Sets image + * + * @param \QuantiModo\Client\Model\Image $image image + * + * @return $this + */ + public function setImage($image) + { + $this->container['image'] = $image; + + return $this; + } + + /** + * Gets avatar + * + * @return string + */ + public function getAvatar() + { + return $this->container['avatar']; + } + + /** + * Sets avatar + * + * @param string $avatar Square icon png url + * + * @return $this + */ + public function setAvatar($avatar) + { + $this->container['avatar'] = $avatar; + + return $this; + } + + /** + * Gets ion_icon + * + * @return string + */ + public function getIonIcon() + { + return $this->container['ion_icon']; + } + + /** + * Sets ion_icon + * + * @param string $ion_icon Ex: ion-ios-person + * + * @return $this + */ + public function setIonIcon($ion_icon) + { + $this->container['ion_icon'] = $ion_icon; + + return $this; + } + + /** + * Gets html + * + * @return string + */ + public function getHtml() + { + return $this->container['html']; + } + + /** + * Sets html + * + * @param string $html Users who granted access to their data + * + * @return $this + */ + public function setHtml($html) + { + $this->container['html'] = $html; + + return $this; + } + + /** + * Gets link + * + * @return string + */ + public function getLink() + { + return $this->container['link']; + } + + /** + * Sets link + * + * @param string $link A super neat url you might want to share with your users! + * + * @return $this + */ + public function setLink($link) + { + $this->container['link'] = $link; + + return $this; + } + + /** + * Gets card + * + * @return \QuantiModo\Client\Model\Card + */ + public function getCard() + { + return $this->container['card']; + } + + /** + * Sets card + * + * @param \QuantiModo\Client\Model\Card $card A super neat card with buttons and HTML that you can use in your app! + * + * @return $this + */ + public function setCard($card) + { + $this->container['card'] = $card; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/Variable.php b/lib/Model/Variable.php index 0739770..227aeb8 100644 --- a/lib/Model/Variable.php +++ b/lib/Model/Variable.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -4746,7 +4746,7 @@ public function getValence() /** * Sets valence * - * @param string $valence Ex: positive + * @param string $valence Valence indicates what type of buttons should be used when recording measurements for this variable. positive - Face buttons with the happiest face equating to a 5/5 rating where higher is better like Overall Mood. negative - Face buttons with happiest face equating to a 1/5 rating where lower is better like Headache Severity. numeric - Just 1 to 5 numeric buttons for neutral variables. * * @return $this */ diff --git a/lib/Model/VariableCategory.php b/lib/Model/VariableCategory.php index 93b7fa4..ce86e4f 100644 --- a/lib/Model/VariableCategory.php +++ b/lib/Model/VariableCategory.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/VariableCharts.php b/lib/Model/VariableCharts.php index 70dfab6..d27a464 100644 --- a/lib/Model/VariableCharts.php +++ b/lib/Model/VariableCharts.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/Vote.php b/lib/Model/Vote.php index 87d9b25..c57d5e7 100644 --- a/lib/Model/Vote.php +++ b/lib/Model/Vote.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/VoteDelete.php b/lib/Model/VoteDelete.php index cf92e1e..836f69e 100644 --- a/lib/Model/VoteDelete.php +++ b/lib/Model/VoteDelete.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/XprofileDataResponse.php b/lib/Model/XprofileDataResponse.php index ea9d942..0fb8f3c 100644 --- a/lib/Model/XprofileDataResponse.php +++ b/lib/Model/XprofileDataResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -63,7 +63,13 @@ class XprofileDataResponse implements ModelInterface, ArrayAccess 'image' => '\QuantiModo\Client\Model\Image', 'avatar' => 'string', 'ion_icon' => 'string', - 'html' => 'string' + 'html' => 'string', + 'errors' => '\QuantiModo\Client\Model\Error[]', + 'status' => 'string', + 'success' => 'bool', + 'code' => 'float', + 'link' => 'string', + 'card' => '\QuantiModo\Client\Model\Card' ]; /** @@ -78,7 +84,13 @@ class XprofileDataResponse implements ModelInterface, ArrayAccess 'image' => null, 'avatar' => null, 'ion_icon' => null, - 'html' => null + 'html' => null, + 'errors' => null, + 'status' => null, + 'success' => null, + 'code' => null, + 'link' => null, + 'card' => null ]; /** @@ -114,7 +126,13 @@ public static function swaggerFormats() 'image' => 'image', 'avatar' => 'avatar', 'ion_icon' => 'ionIcon', - 'html' => 'html' + 'html' => 'html', + 'errors' => 'errors', + 'status' => 'status', + 'success' => 'success', + 'code' => 'code', + 'link' => 'link', + 'card' => 'card' ]; /** @@ -129,7 +147,13 @@ public static function swaggerFormats() 'image' => 'setImage', 'avatar' => 'setAvatar', 'ion_icon' => 'setIonIcon', - 'html' => 'setHtml' + 'html' => 'setHtml', + 'errors' => 'setErrors', + 'status' => 'setStatus', + 'success' => 'setSuccess', + 'code' => 'setCode', + 'link' => 'setLink', + 'card' => 'setCard' ]; /** @@ -144,7 +168,13 @@ public static function swaggerFormats() 'image' => 'getImage', 'avatar' => 'getAvatar', 'ion_icon' => 'getIonIcon', - 'html' => 'getHtml' + 'html' => 'getHtml', + 'errors' => 'getErrors', + 'status' => 'getStatus', + 'success' => 'getSuccess', + 'code' => 'getCode', + 'link' => 'getLink', + 'card' => 'getCard' ]; /** @@ -214,6 +244,12 @@ public function __construct(array $data = null) $this->container['avatar'] = isset($data['avatar']) ? $data['avatar'] : null; $this->container['ion_icon'] = isset($data['ion_icon']) ? $data['ion_icon'] : null; $this->container['html'] = isset($data['html']) ? $data['html'] : null; + $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['link'] = isset($data['link']) ? $data['link'] : null; + $this->container['card'] = isset($data['card']) ? $data['card'] : null; } /** @@ -410,6 +446,150 @@ public function setHtml($html) return $this; } + + /** + * Gets errors + * + * @return \QuantiModo\Client\Model\Error[] + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \QuantiModo\Client\Model\Error[] $errors Array of error objects with message property + * + * @return $this + */ + public function setErrors($errors) + { + $this->container['errors'] = $errors; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status ex. OK or ERROR + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success true or false + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets code + * + * @return float + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param float $code Response code such as 200 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets link + * + * @return string + */ + public function getLink() + { + return $this->container['link']; + } + + /** + * Sets link + * + * @param string $link A super neat url you might want to share with your users! + * + * @return $this + */ + public function setLink($link) + { + $this->container['link'] = $link; + + return $this; + } + + /** + * Gets card + * + * @return \QuantiModo\Client\Model\Card + */ + public function getCard() + { + return $this->container['card']; + } + + /** + * Sets card + * + * @param \QuantiModo\Client\Model\Card $card A super neat card with buttons and HTML that you can use in your app! + * + * @return $this + */ + public function setCard($card) + { + $this->container['card'] = $card; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/XprofileDatum.php b/lib/Model/XprofileDatum.php index 1ea783f..9e967ca 100644 --- a/lib/Model/XprofileDatum.php +++ b/lib/Model/XprofileDatum.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/XprofileField.php b/lib/Model/XprofileField.php index 6bd3a2b..6531224 100644 --- a/lib/Model/XprofileField.php +++ b/lib/Model/XprofileField.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/XprofileFieldsResponse.php b/lib/Model/XprofileFieldsResponse.php index 8a272b8..a10598a 100644 --- a/lib/Model/XprofileFieldsResponse.php +++ b/lib/Model/XprofileFieldsResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -63,7 +63,13 @@ class XprofileFieldsResponse implements ModelInterface, ArrayAccess 'image' => '\QuantiModo\Client\Model\Image', 'avatar' => 'string', 'ion_icon' => 'string', - 'html' => 'string' + 'html' => 'string', + 'errors' => '\QuantiModo\Client\Model\Error[]', + 'status' => 'string', + 'success' => 'bool', + 'code' => 'float', + 'link' => 'string', + 'card' => '\QuantiModo\Client\Model\Card' ]; /** @@ -78,7 +84,13 @@ class XprofileFieldsResponse implements ModelInterface, ArrayAccess 'image' => null, 'avatar' => null, 'ion_icon' => null, - 'html' => null + 'html' => null, + 'errors' => null, + 'status' => null, + 'success' => null, + 'code' => null, + 'link' => null, + 'card' => null ]; /** @@ -114,7 +126,13 @@ public static function swaggerFormats() 'image' => 'image', 'avatar' => 'avatar', 'ion_icon' => 'ionIcon', - 'html' => 'html' + 'html' => 'html', + 'errors' => 'errors', + 'status' => 'status', + 'success' => 'success', + 'code' => 'code', + 'link' => 'link', + 'card' => 'card' ]; /** @@ -129,7 +147,13 @@ public static function swaggerFormats() 'image' => 'setImage', 'avatar' => 'setAvatar', 'ion_icon' => 'setIonIcon', - 'html' => 'setHtml' + 'html' => 'setHtml', + 'errors' => 'setErrors', + 'status' => 'setStatus', + 'success' => 'setSuccess', + 'code' => 'setCode', + 'link' => 'setLink', + 'card' => 'setCard' ]; /** @@ -144,7 +168,13 @@ public static function swaggerFormats() 'image' => 'getImage', 'avatar' => 'getAvatar', 'ion_icon' => 'getIonIcon', - 'html' => 'getHtml' + 'html' => 'getHtml', + 'errors' => 'getErrors', + 'status' => 'getStatus', + 'success' => 'getSuccess', + 'code' => 'getCode', + 'link' => 'getLink', + 'card' => 'getCard' ]; /** @@ -214,6 +244,12 @@ public function __construct(array $data = null) $this->container['avatar'] = isset($data['avatar']) ? $data['avatar'] : null; $this->container['ion_icon'] = isset($data['ion_icon']) ? $data['ion_icon'] : null; $this->container['html'] = isset($data['html']) ? $data['html'] : null; + $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['link'] = isset($data['link']) ? $data['link'] : null; + $this->container['card'] = isset($data['card']) ? $data['card'] : null; } /** @@ -410,6 +446,150 @@ public function setHtml($html) return $this; } + + /** + * Gets errors + * + * @return \QuantiModo\Client\Model\Error[] + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \QuantiModo\Client\Model\Error[] $errors Array of error objects with message property + * + * @return $this + */ + public function setErrors($errors) + { + $this->container['errors'] = $errors; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status ex. OK or ERROR + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success true or false + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets code + * + * @return float + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param float $code Response code such as 200 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets link + * + * @return string + */ + public function getLink() + { + return $this->container['link']; + } + + /** + * Sets link + * + * @param string $link A super neat url you might want to share with your users! + * + * @return $this + */ + public function setLink($link) + { + $this->container['link'] = $link; + + return $this; + } + + /** + * Gets card + * + * @return \QuantiModo\Client\Model\Card + */ + public function getCard() + { + return $this->container['card']; + } + + /** + * Sets card + * + * @param \QuantiModo\Client\Model\Card $card A super neat card with buttons and HTML that you can use in your app! + * + * @return $this + */ + public function setCard($card) + { + $this->container['card'] = $card; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/XprofileGroup.php b/lib/Model/XprofileGroup.php index 6494b21..e246281 100644 --- a/lib/Model/XprofileGroup.php +++ b/lib/Model/XprofileGroup.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/lib/Model/XprofileGroupsResponse.php b/lib/Model/XprofileGroupsResponse.php index fb440c5..11381d5 100644 --- a/lib/Model/XprofileGroupsResponse.php +++ b/lib/Model/XprofileGroupsResponse.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -63,7 +63,13 @@ class XprofileGroupsResponse implements ModelInterface, ArrayAccess 'image' => '\QuantiModo\Client\Model\Image', 'avatar' => 'string', 'ion_icon' => 'string', - 'html' => 'string' + 'html' => 'string', + 'errors' => '\QuantiModo\Client\Model\Error[]', + 'status' => 'string', + 'success' => 'bool', + 'code' => 'float', + 'link' => 'string', + 'card' => '\QuantiModo\Client\Model\Card' ]; /** @@ -78,7 +84,13 @@ class XprofileGroupsResponse implements ModelInterface, ArrayAccess 'image' => null, 'avatar' => null, 'ion_icon' => null, - 'html' => null + 'html' => null, + 'errors' => null, + 'status' => null, + 'success' => null, + 'code' => null, + 'link' => null, + 'card' => null ]; /** @@ -114,7 +126,13 @@ public static function swaggerFormats() 'image' => 'image', 'avatar' => 'avatar', 'ion_icon' => 'ionIcon', - 'html' => 'html' + 'html' => 'html', + 'errors' => 'errors', + 'status' => 'status', + 'success' => 'success', + 'code' => 'code', + 'link' => 'link', + 'card' => 'card' ]; /** @@ -129,7 +147,13 @@ public static function swaggerFormats() 'image' => 'setImage', 'avatar' => 'setAvatar', 'ion_icon' => 'setIonIcon', - 'html' => 'setHtml' + 'html' => 'setHtml', + 'errors' => 'setErrors', + 'status' => 'setStatus', + 'success' => 'setSuccess', + 'code' => 'setCode', + 'link' => 'setLink', + 'card' => 'setCard' ]; /** @@ -144,7 +168,13 @@ public static function swaggerFormats() 'image' => 'getImage', 'avatar' => 'getAvatar', 'ion_icon' => 'getIonIcon', - 'html' => 'getHtml' + 'html' => 'getHtml', + 'errors' => 'getErrors', + 'status' => 'getStatus', + 'success' => 'getSuccess', + 'code' => 'getCode', + 'link' => 'getLink', + 'card' => 'getCard' ]; /** @@ -214,6 +244,12 @@ public function __construct(array $data = null) $this->container['avatar'] = isset($data['avatar']) ? $data['avatar'] : null; $this->container['ion_icon'] = isset($data['ion_icon']) ? $data['ion_icon'] : null; $this->container['html'] = isset($data['html']) ? $data['html'] : null; + $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['link'] = isset($data['link']) ? $data['link'] : null; + $this->container['card'] = isset($data['card']) ? $data['card'] : null; } /** @@ -410,6 +446,150 @@ public function setHtml($html) return $this; } + + /** + * Gets errors + * + * @return \QuantiModo\Client\Model\Error[] + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \QuantiModo\Client\Model\Error[] $errors Array of error objects with message property + * + * @return $this + */ + public function setErrors($errors) + { + $this->container['errors'] = $errors; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status ex. OK or ERROR + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success true or false + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets code + * + * @return float + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param float $code Response code such as 200 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets link + * + * @return string + */ + public function getLink() + { + return $this->container['link']; + } + + /** + * Sets link + * + * @param string $link A super neat url you might want to share with your users! + * + * @return $this + */ + public function setLink($link) + { + $this->container['link'] = $link; + + return $this; + } + + /** + * Gets card + * + * @return \QuantiModo\Client\Model\Card + */ + public function getCard() + { + return $this->container['card']; + } + + /** + * Sets card + * + * @param \QuantiModo\Client\Model\Card $card A super neat card with buttons and HTML that you can use in your app! + * + * @return $this + */ + public function setCard($card) + { + $this->container['card'] = $card; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/ObjectSerializer.php b/lib/ObjectSerializer.php index 9aadcb4..194d131 100644 --- a/lib/ObjectSerializer.php +++ b/lib/ObjectSerializer.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -59,6 +59,11 @@ public static function sanitizeForSerialization($data, $type = null, $format = n $data[$property] = self::sanitizeForSerialization($value); } return $data; + } elseif ($data instanceof \stdClass) { + foreach ($data as $property => $value) { + $data->$property = self::sanitizeForSerialization($value); + } + return $data; } elseif (is_object($data)) { $values = []; $formats = $data::swaggerFormats(); diff --git a/test/Api/ActivitiesApiTest.php b/test/Api/ActivitiesApiTest.php index fe1aa96..32be5b6 100644 --- a/test/Api/ActivitiesApiTest.php +++ b/test/Api/ActivitiesApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/test/Api/AnalyticsApiTest.php b/test/Api/AnalyticsApiTest.php index 583d48d..6a094bb 100644 --- a/test/Api/AnalyticsApiTest.php +++ b/test/Api/AnalyticsApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/test/Api/AppSettingsApiTest.php b/test/Api/AppSettingsApiTest.php index 9296445..5dcab9c 100644 --- a/test/Api/AppSettingsApiTest.php +++ b/test/Api/AppSettingsApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/test/Api/AuthenticationApiTest.php b/test/Api/AuthenticationApiTest.php index 0be7c7b..09c7279 100644 --- a/test/Api/AuthenticationApiTest.php +++ b/test/Api/AuthenticationApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/test/Api/ConnectorsApiTest.php b/test/Api/ConnectorsApiTest.php index c7bffe9..1977d44 100644 --- a/test/Api/ConnectorsApiTest.php +++ b/test/Api/ConnectorsApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/test/Api/FeedApiTest.php b/test/Api/FeedApiTest.php index 28af196..248957b 100644 --- a/test/Api/FeedApiTest.php +++ b/test/Api/FeedApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/test/Api/FriendsApiTest.php b/test/Api/FriendsApiTest.php index c16886d..31afd63 100644 --- a/test/Api/FriendsApiTest.php +++ b/test/Api/FriendsApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/test/Api/GroupsApiTest.php b/test/Api/GroupsApiTest.php index b1af546..07ccbd6 100644 --- a/test/Api/GroupsApiTest.php +++ b/test/Api/GroupsApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/test/Api/MeasurementsApiTest.php b/test/Api/MeasurementsApiTest.php index 0c37cc5..6fba31a 100644 --- a/test/Api/MeasurementsApiTest.php +++ b/test/Api/MeasurementsApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/test/Api/MessagesApiTest.php b/test/Api/MessagesApiTest.php index f188af2..899df95 100644 --- a/test/Api/MessagesApiTest.php +++ b/test/Api/MessagesApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/test/Api/NotificationsApiTest.php b/test/Api/NotificationsApiTest.php index 57ee167..a6a3326 100644 --- a/test/Api/NotificationsApiTest.php +++ b/test/Api/NotificationsApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/test/Api/RemindersApiTest.php b/test/Api/RemindersApiTest.php index eb4b210..8fdd374 100644 --- a/test/Api/RemindersApiTest.php +++ b/test/Api/RemindersApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/test/Api/SharesApiTest.php b/test/Api/SharesApiTest.php index bcf4574..3bb180a 100644 --- a/test/Api/SharesApiTest.php +++ b/test/Api/SharesApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/test/Api/StudiesApiTest.php b/test/Api/StudiesApiTest.php index da9b6df..08307e6 100644 --- a/test/Api/StudiesApiTest.php +++ b/test/Api/StudiesApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/test/Api/UnitsApiTest.php b/test/Api/UnitsApiTest.php index 55f5d96..96b7bd3 100644 --- a/test/Api/UnitsApiTest.php +++ b/test/Api/UnitsApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/test/Api/UserApiTest.php b/test/Api/UserApiTest.php index 29505d5..85c359d 100644 --- a/test/Api/UserApiTest.php +++ b/test/Api/UserApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -101,6 +101,16 @@ public function testGetUserBlogs() { } + /** + * Test case for getUsers + * + * Get users who shared data. + * + */ + public function testGetUsers() + { + } + /** * Test case for postUserBlogs * diff --git a/test/Api/VariablesApiTest.php b/test/Api/VariablesApiTest.php index 85ff301..9db0c68 100644 --- a/test/Api/VariablesApiTest.php +++ b/test/Api/VariablesApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/test/Api/XprofileApiTest.php b/test/Api/XprofileApiTest.php index 1392468..f1cb973 100644 --- a/test/Api/XprofileApiTest.php +++ b/test/Api/XprofileApiTest.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/test/Model/ActivitiesResponseTest.php b/test/Model/ActivitiesResponseTest.php index 7fcd3cb..3c76297 100644 --- a/test/Model/ActivitiesResponseTest.php +++ b/test/Model/ActivitiesResponseTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -124,4 +124,46 @@ public function testPropertyIonIcon() public function testPropertyHtml() { } + + /** + * Test attribute "errors" + */ + public function testPropertyErrors() + { + } + + /** + * Test attribute "status" + */ + public function testPropertyStatus() + { + } + + /** + * Test attribute "success" + */ + public function testPropertySuccess() + { + } + + /** + * Test attribute "code" + */ + public function testPropertyCode() + { + } + + /** + * Test attribute "link" + */ + public function testPropertyLink() + { + } + + /** + * Test attribute "card" + */ + public function testPropertyCard() + { + } } diff --git a/test/Model/ActivityTest.php b/test/Model/ActivityTest.php index c2d4586..4094cd0 100644 --- a/test/Model/ActivityTest.php +++ b/test/Model/ActivityTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/test/Model/AppSettingsResponseTest.php b/test/Model/AppSettingsResponseTest.php index f9ffafe..b6e7ed5 100644 --- a/test/Model/AppSettingsResponseTest.php +++ b/test/Model/AppSettingsResponseTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -96,4 +96,46 @@ public function testPropertyDescription() public function testPropertySummary() { } + + /** + * Test attribute "errors" + */ + public function testPropertyErrors() + { + } + + /** + * Test attribute "status" + */ + public function testPropertyStatus() + { + } + + /** + * Test attribute "success" + */ + public function testPropertySuccess() + { + } + + /** + * Test attribute "code" + */ + public function testPropertyCode() + { + } + + /** + * Test attribute "link" + */ + public function testPropertyLink() + { + } + + /** + * Test attribute "card" + */ + public function testPropertyCard() + { + } } diff --git a/test/Model/AppSettingsTest.php b/test/Model/AppSettingsTest.php index 927984f..dcbfd15 100644 --- a/test/Model/AppSettingsTest.php +++ b/test/Model/AppSettingsTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/test/Model/AuthorizedClientsTest.php b/test/Model/AuthorizedClientsTest.php index a6fcd76..ef91ab5 100644 --- a/test/Model/AuthorizedClientsTest.php +++ b/test/Model/AuthorizedClientsTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/test/Model/ButtonTest.php b/test/Model/ButtonTest.php index 5efb97b..cbfa683 100644 --- a/test/Model/ButtonTest.php +++ b/test/Model/ButtonTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/test/Model/CardTest.php b/test/Model/CardTest.php index a46a420..8ab9be9 100644 --- a/test/Model/CardTest.php +++ b/test/Model/CardTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/test/Model/ChartTest.php b/test/Model/ChartTest.php index 13fe4ac..385b9be 100644 --- a/test/Model/ChartTest.php +++ b/test/Model/ChartTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/test/Model/CommonResponseTest.php b/test/Model/CommonResponseTest.php index 9b27406..691f6f5 100644 --- a/test/Model/CommonResponseTest.php +++ b/test/Model/CommonResponseTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** @@ -89,4 +89,46 @@ public function testPropertyDescription() public function testPropertySummary() { } + + /** + * Test attribute "errors" + */ + public function testPropertyErrors() + { + } + + /** + * Test attribute "status" + */ + public function testPropertyStatus() + { + } + + /** + * Test attribute "success" + */ + public function testPropertySuccess() + { + } + + /** + * Test attribute "code" + */ + public function testPropertyCode() + { + } + + /** + * Test attribute "link" + */ + public function testPropertyLink() + { + } + + /** + * Test attribute "card" + */ + public function testPropertyCard() + { + } } diff --git a/test/Model/ConnectInstructionsTest.php b/test/Model/ConnectInstructionsTest.php index a4213ac..4c80557 100644 --- a/test/Model/ConnectInstructionsTest.php +++ b/test/Model/ConnectInstructionsTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/test/Model/ConversionStepTest.php b/test/Model/ConversionStepTest.php index bfd8ae1..23fd4ef 100644 --- a/test/Model/ConversionStepTest.php +++ b/test/Model/ConversionStepTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/test/Model/CorrelationTest.php b/test/Model/CorrelationTest.php index d88244a..7919165 100644 --- a/test/Model/CorrelationTest.php +++ b/test/Model/CorrelationTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/test/Model/DataSourceTest.php b/test/Model/DataSourceTest.php index 5a97513..d2c8ca4 100644 --- a/test/Model/DataSourceTest.php +++ b/test/Model/DataSourceTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/test/Model/DeviceTokenTest.php b/test/Model/DeviceTokenTest.php index 1729759..9fcba07 100644 --- a/test/Model/DeviceTokenTest.php +++ b/test/Model/DeviceTokenTest.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 5.8.112511 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.4 + * Swagger Codegen version: 2.4.9 */ /** diff --git a/test/Model/ErrorTest.php b/test/Model/ErrorTest.php new file mode 100644 index 0000000..f822de2 --- /dev/null +++ b/test/Model/ErrorTest.php @@ -0,0 +1,85 @@ +