smooch-api 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -1
  3. data/docs/App.md +1 -0
  4. data/docs/AppApi.md +56 -0
  5. data/docs/AppCreate.md +1 -0
  6. data/docs/AppSettings.md +8 -0
  7. data/docs/AppUpdate.md +9 -0
  8. data/lib/smooch-api.rb +3 -1
  9. data/lib/smooch-api/api/app_api.rb +62 -1
  10. data/lib/smooch-api/api/app_user_api.rb +1 -1
  11. data/lib/smooch-api/api/conversation_api.rb +1 -1
  12. data/lib/smooch-api/api/init_api.rb +1 -1
  13. data/lib/smooch-api/api/integration_api.rb +1 -1
  14. data/lib/smooch-api/api/menu_api.rb +1 -1
  15. data/lib/smooch-api/api/webhook_api.rb +1 -1
  16. data/lib/smooch-api/api_client.rb +1 -1
  17. data/lib/smooch-api/api_error.rb +1 -1
  18. data/lib/smooch-api/configuration.rb +1 -1
  19. data/lib/smooch-api/models/action.rb +1 -1
  20. data/lib/smooch-api/models/app.rb +14 -5
  21. data/lib/smooch-api/models/app_create.rb +14 -5
  22. data/lib/smooch-api/models/app_response.rb +1 -1
  23. data/lib/smooch-api/models/app_settings.rb +189 -0
  24. data/lib/smooch-api/models/app_update.rb +203 -0
  25. data/lib/smooch-api/models/app_user.rb +1 -1
  26. data/lib/smooch-api/models/app_user_link.rb +1 -1
  27. data/lib/smooch-api/models/app_user_pre_create.rb +1 -1
  28. data/lib/smooch-api/models/app_user_response.rb +1 -1
  29. data/lib/smooch-api/models/app_user_update.rb +1 -1
  30. data/lib/smooch-api/models/client.rb +1 -1
  31. data/lib/smooch-api/models/client_info.rb +1 -1
  32. data/lib/smooch-api/models/conversation.rb +1 -1
  33. data/lib/smooch-api/models/destination.rb +1 -1
  34. data/lib/smooch-api/models/device_init.rb +1 -1
  35. data/lib/smooch-api/models/device_response.rb +1 -1
  36. data/lib/smooch-api/models/device_update.rb +1 -1
  37. data/lib/smooch-api/models/display_settings.rb +1 -1
  38. data/lib/smooch-api/models/event.rb +1 -1
  39. data/lib/smooch-api/models/get_messages_response.rb +1 -1
  40. data/lib/smooch-api/models/init.rb +1 -1
  41. data/lib/smooch-api/models/init_response.rb +1 -1
  42. data/lib/smooch-api/models/integration.rb +1 -1
  43. data/lib/smooch-api/models/integration_create.rb +1 -1
  44. data/lib/smooch-api/models/integration_response.rb +1 -1
  45. data/lib/smooch-api/models/jwt_response.rb +1 -1
  46. data/lib/smooch-api/models/list_apps_response.rb +1 -1
  47. data/lib/smooch-api/models/list_integrations_response.rb +1 -1
  48. data/lib/smooch-api/models/list_secret_keys_response.rb +1 -1
  49. data/lib/smooch-api/models/list_webhooks_response.rb +1 -1
  50. data/lib/smooch-api/models/menu.rb +1 -1
  51. data/lib/smooch-api/models/menu_item.rb +1 -1
  52. data/lib/smooch-api/models/menu_response.rb +1 -1
  53. data/lib/smooch-api/models/message.rb +1 -1
  54. data/lib/smooch-api/models/message_item.rb +1 -1
  55. data/lib/smooch-api/models/message_post.rb +1 -1
  56. data/lib/smooch-api/models/message_response.rb +1 -1
  57. data/lib/smooch-api/models/post_messages_response.rb +1 -1
  58. data/lib/smooch-api/models/secret_key.rb +1 -1
  59. data/lib/smooch-api/models/secret_key_create.rb +1 -1
  60. data/lib/smooch-api/models/secret_key_response.rb +1 -1
  61. data/lib/smooch-api/models/track_event_response.rb +1 -1
  62. data/lib/smooch-api/models/typing_activity_trigger.rb +1 -1
  63. data/lib/smooch-api/models/webhook.rb +1 -1
  64. data/lib/smooch-api/models/webhook_create.rb +1 -1
  65. data/lib/smooch-api/models/webhook_response.rb +1 -1
  66. data/lib/smooch-api/models/webhook_update.rb +1 -1
  67. data/lib/smooch-api/version.rb +2 -2
  68. data/smooch-api.gemspec +1 -1
  69. data/spec/api_client_spec.rb +1 -1
  70. data/spec/configuration_spec.rb +1 -1
  71. data/spec/spec_helper.rb +1 -1
  72. metadata +6 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 05e5d6a5440db8ce57b931197715169fc4edfb7d
4
- data.tar.gz: 2bcae2052b881bea6b028337f7aec9aac7dd0221
3
+ metadata.gz: cbc6519935c85fa63982cda656b45cd3caec708c
4
+ data.tar.gz: ec72878c467142b8ace5ab5b9f0b88bf9b2c7d44
5
5
  SHA512:
6
- metadata.gz: f946c36ffc82d556c9b2390c683e2e71f4f08a5c386a7ca4b32ad3df35d2bb6b47fbf0d9752122f8d5f8fbe307a69581085dc2d582d3ce0f8e646d2be6752d99
7
- data.tar.gz: 0371b77ece795b3df0e4bb8ad83ea39664bc6d10664ed6cbc4b2a4b6a9848b38949ec60ac3fce2f1e00cfd68f9b24a591cebdd797e7b632cd4082ecfc34933bb
6
+ metadata.gz: 1f65a813f1bd8277ce08beef16e0097856c2963124c889d993dbc73a99618c9798fcf6dc309ab1bb3b64266f4f0800549bde572089a5414a8e9e47edbe1419b1
7
+ data.tar.gz: 34cf9ab375a81ddc3570bfb77bcb1c1cc23260b4f8ef19f91eb704e74f04e134946fd94f36f04459e06c9d177a3b2a2fe2e81ecd3d3dac0a80b1bdf6537db7ed
data/README.md CHANGED
@@ -16,7 +16,7 @@ gem install smooch-api
16
16
 
17
17
  Add this to the Gemfile:
18
18
 
19
- gem 'smooch-api', '~> 1.2.0'
19
+ gem 'smooch-api', '~> 1.3.0'
20
20
 
21
21
  ## Getting Started
22
22
 
@@ -87,6 +87,7 @@ Class | Method | HTTP request | Description
87
87
  *SmoochApi::AppApi* | [**get_secret_key**](docs/AppApi.md#get_secret_key) | **GET** /apps/{appId}/keys/{keyId} |
88
88
  *SmoochApi::AppApi* | [**list_apps**](docs/AppApi.md#list_apps) | **GET** /apps |
89
89
  *SmoochApi::AppApi* | [**list_secret_keys**](docs/AppApi.md#list_secret_keys) | **GET** /apps/{appId}/keys |
90
+ *SmoochApi::AppApi* | [**update_app**](docs/AppApi.md#update_app) | **PUT** /apps/{appId} |
90
91
  *SmoochApi::AppUserApi* | [**app_user_device_update**](docs/AppUserApi.md#app_user_device_update) | **PUT** /appusers/{userId}/devices/{deviceId} |
91
92
  *SmoochApi::AppUserApi* | [**delete_app_user_profile**](docs/AppUserApi.md#delete_app_user_profile) | **DELETE** /appusers/{userId}/profile |
92
93
  *SmoochApi::AppUserApi* | [**get_app_user**](docs/AppUserApi.md#get_app_user) | **GET** /appusers/{userId} |
@@ -127,6 +128,8 @@ Class | Method | HTTP request | Description
127
128
  - [SmoochApi::App](docs/App.md)
128
129
  - [SmoochApi::AppCreate](docs/AppCreate.md)
129
130
  - [SmoochApi::AppResponse](docs/AppResponse.md)
131
+ - [SmoochApi::AppSettings](docs/AppSettings.md)
132
+ - [SmoochApi::AppUpdate](docs/AppUpdate.md)
130
133
  - [SmoochApi::AppUser](docs/AppUser.md)
131
134
  - [SmoochApi::AppUserLink](docs/AppUserLink.md)
132
135
  - [SmoochApi::AppUserPreCreate](docs/AppUserPreCreate.md)
data/docs/App.md CHANGED
@@ -6,5 +6,6 @@ Name | Type | Description | Notes
6
6
  **_id** | **String** | The app's ID. |
7
7
  **app_token** | **String** | The appToken, used to initialize the Web, iOS and Android clients and to make calls to the app user facing API. |
8
8
  **name** | **String** | The app's name. |
9
+ **settings** | [**AppSettings**](AppSettings.md) | | [optional]
9
10
 
10
11
 
data/docs/AppApi.md CHANGED
@@ -13,6 +13,7 @@ Method | HTTP request | Description
13
13
  [**get_secret_key**](AppApi.md#get_secret_key) | **GET** /apps/{appId}/keys/{keyId} |
14
14
  [**list_apps**](AppApi.md#list_apps) | **GET** /apps |
15
15
  [**list_secret_keys**](AppApi.md#list_secret_keys) | **GET** /apps/{appId}/keys |
16
+ [**update_app**](AppApi.md#update_app) | **PUT** /apps/{appId} |
16
17
 
17
18
 
18
19
  # **create_app**
@@ -496,3 +497,58 @@ Name | Type | Description | Notes
496
497
 
497
498
 
498
499
 
500
+ # **update_app**
501
+ > AppResponse update_app(app_id, app_update_body)
502
+
503
+
504
+
505
+ Update the specified app.
506
+
507
+ ### Example
508
+ ```ruby
509
+ # load the gem
510
+ require 'smooch-api'
511
+ # setup authorization
512
+ SmoochApi.configure do |config|
513
+ # Configure API key authorization: jwt
514
+ config.api_key['Authorization'] = 'YOUR JWT'
515
+ config.api_key_prefix['Authorization'] = 'Bearer'
516
+ end
517
+
518
+ api_instance = SmoochApi::AppApi.new
519
+
520
+ app_id = "app_id_example" # String | Identifies the app.
521
+
522
+ app_update_body = SmoochApi::AppUpdate.new # AppUpdate | Body for an updateApp request.
523
+
524
+
525
+ begin
526
+ result = api_instance.update_app(app_id, app_update_body)
527
+ p result
528
+ rescue SmoochApi::ApiError => e
529
+ puts "Exception when calling AppApi->update_app: #{e}"
530
+ end
531
+ ```
532
+
533
+ ### Parameters
534
+
535
+ Name | Type | Description | Notes
536
+ ------------- | ------------- | ------------- | -------------
537
+ **app_id** | **String**| Identifies the app. |
538
+ **app_update_body** | [**AppUpdate**](AppUpdate.md)| Body for an updateApp request. |
539
+
540
+ ### Return type
541
+
542
+ [**AppResponse**](AppResponse.md)
543
+
544
+ ### Authorization
545
+
546
+ [jwt](../README.md#jwt)
547
+
548
+ ### HTTP request headers
549
+
550
+ - **Content-Type**: application/json
551
+ - **Accept**: application/json
552
+
553
+
554
+
data/docs/AppCreate.md CHANGED
@@ -4,5 +4,6 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **name** | **String** | The app's name. |
7
+ **settings** | [**AppSettings**](AppSettings.md) | | [optional]
7
8
 
8
9
 
@@ -0,0 +1,8 @@
1
+ # SmoochApi::AppSettings
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **mask_credit_card_numbers** | **BOOLEAN** | Flag specifying whether credit card numbers will be automatically masked if sent through Smooch. | [optional]
7
+
8
+
data/docs/AppUpdate.md ADDED
@@ -0,0 +1,9 @@
1
+ # SmoochApi::AppUpdate
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | The app's name. |
7
+ **settings** | [**AppSettings**](AppSettings.md) | | [optional]
8
+
9
+
data/lib/smooch-api.rb CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
5
5
 
6
- OpenAPI spec version: 1.2
6
+ OpenAPI spec version: 1.3
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3-SNAPSHOT
@@ -21,6 +21,8 @@ require 'smooch-api/models/action'
21
21
  require 'smooch-api/models/app'
22
22
  require 'smooch-api/models/app_create'
23
23
  require 'smooch-api/models/app_response'
24
+ require 'smooch-api/models/app_settings'
25
+ require 'smooch-api/models/app_update'
24
26
  require 'smooch-api/models/app_user'
25
27
  require 'smooch-api/models/app_user_link'
26
28
  require 'smooch-api/models/app_user_pre_create'
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
5
5
 
6
- OpenAPI spec version: 1.2
6
+ OpenAPI spec version: 1.3
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3-SNAPSHOT
@@ -536,5 +536,66 @@ module SmoochApi
536
536
  end
537
537
  return data, status_code, headers
538
538
  end
539
+
540
+ #
541
+ # Update the specified app.
542
+ # @param app_id Identifies the app.
543
+ # @param app_update_body Body for an updateApp request.
544
+ # @param [Hash] opts the optional parameters
545
+ # @return [AppResponse]
546
+ def update_app(app_id, app_update_body, opts = {})
547
+ data, _status_code, _headers = update_app_with_http_info(app_id, app_update_body, opts)
548
+ return data
549
+ end
550
+
551
+ #
552
+ # Update the specified app.
553
+ # @param app_id Identifies the app.
554
+ # @param app_update_body Body for an updateApp request.
555
+ # @param [Hash] opts the optional parameters
556
+ # @return [Array<(AppResponse, Fixnum, Hash)>] AppResponse data, response status code and response headers
557
+ def update_app_with_http_info(app_id, app_update_body, opts = {})
558
+ if @api_client.config.debugging
559
+ @api_client.config.logger.debug "Calling API: AppApi.update_app ..."
560
+ end
561
+ # verify the required parameter 'app_id' is set
562
+ if @api_client.config.client_side_validation && app_id.nil?
563
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling AppApi.update_app"
564
+ end
565
+ # verify the required parameter 'app_update_body' is set
566
+ if @api_client.config.client_side_validation && app_update_body.nil?
567
+ fail ArgumentError, "Missing the required parameter 'app_update_body' when calling AppApi.update_app"
568
+ end
569
+ # resource path
570
+ local_var_path = "/apps/{appId}".sub('{' + 'appId' + '}', app_id.to_s)
571
+
572
+ # query parameters
573
+ query_params = {}
574
+
575
+ # header parameters
576
+ header_params = {}
577
+ # HTTP header 'Accept' (if needed)
578
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
579
+ # HTTP header 'Content-Type'
580
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
581
+
582
+ # form parameters
583
+ form_params = {}
584
+
585
+ # http body (model)
586
+ post_body = @api_client.object_to_http_body(app_update_body)
587
+ auth_names = ['jwt']
588
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
589
+ :header_params => header_params,
590
+ :query_params => query_params,
591
+ :form_params => form_params,
592
+ :body => post_body,
593
+ :auth_names => auth_names,
594
+ :return_type => 'AppResponse')
595
+ if @api_client.config.debugging
596
+ @api_client.config.logger.debug "API called: AppApi#update_app\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
597
+ end
598
+ return data, status_code, headers
599
+ end
539
600
  end
540
601
  end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
5
5
 
6
- OpenAPI spec version: 1.2
6
+ OpenAPI spec version: 1.3
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
5
5
 
6
- OpenAPI spec version: 1.2
6
+ OpenAPI spec version: 1.3
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
5
5
 
6
- OpenAPI spec version: 1.2
6
+ OpenAPI spec version: 1.3
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
5
5
 
6
- OpenAPI spec version: 1.2
6
+ OpenAPI spec version: 1.3
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
5
5
 
6
- OpenAPI spec version: 1.2
6
+ OpenAPI spec version: 1.3
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
5
5
 
6
- OpenAPI spec version: 1.2
6
+ OpenAPI spec version: 1.3
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
5
5
 
6
- OpenAPI spec version: 1.2
6
+ OpenAPI spec version: 1.3
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
5
5
 
6
- OpenAPI spec version: 1.2
6
+ OpenAPI spec version: 1.3
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
5
5
 
6
- OpenAPI spec version: 1.2
6
+ OpenAPI spec version: 1.3
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
5
5
 
6
- OpenAPI spec version: 1.2
6
+ OpenAPI spec version: 1.3
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
5
5
 
6
- OpenAPI spec version: 1.2
6
+ OpenAPI spec version: 1.3
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3-SNAPSHOT
@@ -24,13 +24,16 @@ module SmoochApi
24
24
  # The app's name.
25
25
  attr_accessor :name
26
26
 
27
+ attr_accessor :settings
28
+
27
29
 
28
30
  # Attribute mapping from ruby-style variable name to JSON key.
29
31
  def self.attribute_map
30
32
  {
31
33
  :'_id' => :'_id',
32
34
  :'app_token' => :'appToken',
33
- :'name' => :'name'
35
+ :'name' => :'name',
36
+ :'settings' => :'settings'
34
37
  }
35
38
  end
36
39
 
@@ -39,7 +42,8 @@ module SmoochApi
39
42
  {
40
43
  :'_id' => :'String',
41
44
  :'app_token' => :'String',
42
- :'name' => :'String'
45
+ :'name' => :'String',
46
+ :'settings' => :'AppSettings'
43
47
  }
44
48
  end
45
49
 
@@ -63,6 +67,10 @@ module SmoochApi
63
67
  self.name = attributes[:'name']
64
68
  end
65
69
 
70
+ if attributes.has_key?(:'settings')
71
+ self.settings = attributes[:'settings']
72
+ end
73
+
66
74
  end
67
75
 
68
76
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -100,7 +108,8 @@ module SmoochApi
100
108
  self.class == o.class &&
101
109
  _id == o._id &&
102
110
  app_token == o.app_token &&
103
- name == o.name
111
+ name == o.name &&
112
+ settings == o.settings
104
113
  end
105
114
 
106
115
  # @see the `==` method
@@ -112,7 +121,7 @@ module SmoochApi
112
121
  # Calculates hash code according to all attributes.
113
122
  # @return [Fixnum] Hash code
114
123
  def hash
115
- [_id, app_token, name].hash
124
+ [_id, app_token, name, settings].hash
116
125
  end
117
126
 
118
127
  # Builds the object from hash
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
5
5
 
6
- OpenAPI spec version: 1.2
6
+ OpenAPI spec version: 1.3
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3-SNAPSHOT
@@ -18,18 +18,22 @@ module SmoochApi
18
18
  # The app's name.
19
19
  attr_accessor :name
20
20
 
21
+ attr_accessor :settings
22
+
21
23
 
22
24
  # Attribute mapping from ruby-style variable name to JSON key.
23
25
  def self.attribute_map
24
26
  {
25
- :'name' => :'name'
27
+ :'name' => :'name',
28
+ :'settings' => :'settings'
26
29
  }
27
30
  end
28
31
 
29
32
  # Attribute type mapping.
30
33
  def self.swagger_types
31
34
  {
32
- :'name' => :'String'
35
+ :'name' => :'String',
36
+ :'settings' => :'AppSettings'
33
37
  }
34
38
  end
35
39
 
@@ -45,6 +49,10 @@ module SmoochApi
45
49
  self.name = attributes[:'name']
46
50
  end
47
51
 
52
+ if attributes.has_key?(:'settings')
53
+ self.settings = attributes[:'settings']
54
+ end
55
+
48
56
  end
49
57
 
50
58
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -70,7 +78,8 @@ module SmoochApi
70
78
  def ==(o)
71
79
  return true if self.equal?(o)
72
80
  self.class == o.class &&
73
- name == o.name
81
+ name == o.name &&
82
+ settings == o.settings
74
83
  end
75
84
 
76
85
  # @see the `==` method
@@ -82,7 +91,7 @@ module SmoochApi
82
91
  # Calculates hash code according to all attributes.
83
92
  # @return [Fixnum] Hash code
84
93
  def hash
85
- [name].hash
94
+ [name, settings].hash
86
95
  end
87
96
 
88
97
  # Builds the object from hash