smooch-api 4.1.0 → 4.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (137) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -3
  3. data/docs/Action.md +2 -2
  4. data/docs/App.md +2 -2
  5. data/docs/AppApi.md +48 -48
  6. data/docs/AppSettings.md +2 -2
  7. data/docs/AppUser.md +6 -6
  8. data/docs/AppUserApi.md +78 -78
  9. data/docs/AppUserBusinessSystemsResponse.md +1 -1
  10. data/docs/AppUserLink.md +2 -2
  11. data/docs/AppUserPreCreate.md +3 -3
  12. data/docs/AppUserResponse.md +1 -1
  13. data/docs/AppUserUpdate.md +2 -2
  14. data/docs/AttachmentRemove.md +1 -1
  15. data/docs/AttachmentResponse.md +2 -2
  16. data/docs/AttachmentsApi.md +16 -16
  17. data/docs/AuthCodeResponse.md +1 -1
  18. data/docs/BusinessSystemItem.md +4 -4
  19. data/docs/ChannelEntityItem.md +3 -3
  20. data/docs/Client.md +4 -4
  21. data/docs/ClientInfo.md +8 -8
  22. data/docs/Conversation.md +2 -2
  23. data/docs/ConversationApi.md +42 -42
  24. data/docs/Destination.md +2 -2
  25. data/docs/DisplaySettings.md +1 -1
  26. data/docs/GetMessagesResponse.md +1 -1
  27. data/docs/Integration.md +44 -44
  28. data/docs/IntegrationApi.md +66 -66
  29. data/docs/IntegrationCreate.md +36 -36
  30. data/docs/IntegrationProfileUpdate.md +1 -1
  31. data/docs/IntegrationUpdate.md +16 -16
  32. data/docs/LinkRequestResponse.md +1 -1
  33. data/docs/LinkRequestResponseLinkRequests.md +1 -1
  34. data/docs/ListAppsResponse.md +1 -1
  35. data/docs/ListServiceAccountsResponse.md +2 -2
  36. data/docs/ListTemplatesResponse.md +1 -1
  37. data/docs/MenuApi.md +14 -14
  38. data/docs/Message.md +6 -6
  39. data/docs/MessageItem.md +2 -2
  40. data/docs/MessageOverride.md +8 -0
  41. data/docs/MessageOverrideWhatsapp.md +8 -0
  42. data/docs/MessagePost.md +4 -3
  43. data/docs/MessageResponse.md +1 -1
  44. data/docs/SecretKey.md +1 -1
  45. data/docs/ServiceAccount.md +1 -1
  46. data/docs/ServiceAccountApi.md +46 -46
  47. data/docs/ServiceAccountResponse.md +1 -1
  48. data/docs/Template.md +1 -1
  49. data/docs/TemplateApi.md +30 -30
  50. data/docs/TypingActivityTrigger.md +1 -1
  51. data/docs/Webhook.md +1 -1
  52. data/docs/WebhookApi.md +30 -30
  53. data/lib/smooch-api.rb +3 -1
  54. data/lib/smooch-api/api/app_api.rb +112 -112
  55. data/lib/smooch-api/api/app_user_api.rb +190 -190
  56. data/lib/smooch-api/api/attachments_api.rb +34 -34
  57. data/lib/smooch-api/api/conversation_api.rb +102 -102
  58. data/lib/smooch-api/api/integration_api.rb +161 -161
  59. data/lib/smooch-api/api/menu_api.rb +34 -34
  60. data/lib/smooch-api/api/service_account_api.rb +109 -109
  61. data/lib/smooch-api/api/template_api.rb +73 -73
  62. data/lib/smooch-api/api/webhook_api.rb +73 -73
  63. data/lib/smooch-api/api_client.rb +1 -1
  64. data/lib/smooch-api/api_error.rb +1 -1
  65. data/lib/smooch-api/configuration.rb +1 -1
  66. data/lib/smooch-api/models/action.rb +12 -12
  67. data/lib/smooch-api/models/app.rb +18 -18
  68. data/lib/smooch-api/models/app_create.rb +1 -1
  69. data/lib/smooch-api/models/app_response.rb +1 -1
  70. data/lib/smooch-api/models/app_settings.rb +12 -12
  71. data/lib/smooch-api/models/app_update.rb +1 -1
  72. data/lib/smooch-api/models/app_user.rb +38 -38
  73. data/lib/smooch-api/models/app_user_business_systems_response.rb +10 -10
  74. data/lib/smooch-api/models/app_user_channels_response.rb +1 -1
  75. data/lib/smooch-api/models/app_user_link.rb +12 -12
  76. data/lib/smooch-api/models/app_user_pre_create.rb +20 -20
  77. data/lib/smooch-api/models/app_user_response.rb +10 -10
  78. data/lib/smooch-api/models/app_user_update.rb +12 -12
  79. data/lib/smooch-api/models/attachment_remove.rb +10 -10
  80. data/lib/smooch-api/models/attachment_response.rb +18 -18
  81. data/lib/smooch-api/models/auth_code_response.rb +10 -10
  82. data/lib/smooch-api/models/business_system_item.rb +22 -22
  83. data/lib/smooch-api/models/channel_entity_item.rb +17 -17
  84. data/lib/smooch-api/models/client.rb +22 -22
  85. data/lib/smooch-api/models/client_info.rb +42 -42
  86. data/lib/smooch-api/models/confirmation.rb +1 -1
  87. data/lib/smooch-api/models/conversation.rb +18 -18
  88. data/lib/smooch-api/models/destination.rb +18 -18
  89. data/lib/smooch-api/models/display_settings.rb +7 -7
  90. data/lib/smooch-api/models/get_messages_response.rb +7 -7
  91. data/lib/smooch-api/models/integration.rb +225 -225
  92. data/lib/smooch-api/models/integration_create.rb +182 -182
  93. data/lib/smooch-api/models/integration_profile_update.rb +7 -7
  94. data/lib/smooch-api/models/integration_response.rb +1 -1
  95. data/lib/smooch-api/models/integration_update.rb +82 -82
  96. data/lib/smooch-api/models/jwt_response.rb +1 -1
  97. data/lib/smooch-api/models/link_request_response.rb +7 -7
  98. data/lib/smooch-api/models/link_request_response_link_requests.rb +10 -10
  99. data/lib/smooch-api/models/list_apps_response.rb +7 -7
  100. data/lib/smooch-api/models/list_integrations_response.rb +1 -1
  101. data/lib/smooch-api/models/list_secret_keys_response.rb +1 -1
  102. data/lib/smooch-api/models/list_service_accounts_response.rb +12 -12
  103. data/lib/smooch-api/models/list_templates_response.rb +7 -7
  104. data/lib/smooch-api/models/list_webhooks_response.rb +1 -1
  105. data/lib/smooch-api/models/menu.rb +1 -1
  106. data/lib/smooch-api/models/menu_item.rb +1 -1
  107. data/lib/smooch-api/models/menu_response.rb +1 -1
  108. data/lib/smooch-api/models/message.rb +41 -41
  109. data/lib/smooch-api/models/message_item.rb +12 -12
  110. data/lib/smooch-api/models/message_override.rb +188 -0
  111. data/lib/smooch-api/models/message_override_whatsapp.rb +189 -0
  112. data/lib/smooch-api/models/message_post.rb +30 -20
  113. data/lib/smooch-api/models/message_response.rb +7 -7
  114. data/lib/smooch-api/models/secret_key.rb +10 -10
  115. data/lib/smooch-api/models/secret_key_create.rb +1 -1
  116. data/lib/smooch-api/models/secret_key_response.rb +1 -1
  117. data/lib/smooch-api/models/service_account.rb +10 -10
  118. data/lib/smooch-api/models/service_account_create.rb +1 -1
  119. data/lib/smooch-api/models/service_account_response.rb +7 -7
  120. data/lib/smooch-api/models/service_account_update.rb +1 -1
  121. data/lib/smooch-api/models/source.rb +1 -1
  122. data/lib/smooch-api/models/sub_menu_item.rb +1 -1
  123. data/lib/smooch-api/models/template.rb +10 -10
  124. data/lib/smooch-api/models/template_create.rb +1 -1
  125. data/lib/smooch-api/models/template_response.rb +1 -1
  126. data/lib/smooch-api/models/template_update.rb +1 -1
  127. data/lib/smooch-api/models/typing_activity_trigger.rb +7 -7
  128. data/lib/smooch-api/models/webhook.rb +10 -10
  129. data/lib/smooch-api/models/webhook_create.rb +1 -1
  130. data/lib/smooch-api/models/webhook_response.rb +1 -1
  131. data/lib/smooch-api/models/webhook_update.rb +1 -1
  132. data/lib/smooch-api/version.rb +2 -2
  133. data/smooch-api.gemspec +1 -1
  134. data/spec/api_client_spec.rb +1 -1
  135. data/spec/configuration_spec.rb +1 -1
  136. data/spec/spec_helper.rb +1 -1
  137. metadata +6 -2
@@ -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: 4.1
6
+ OpenAPI spec version: 4.2
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3-SNAPSHOT
@@ -16,20 +16,20 @@ module SmoochApi
16
16
 
17
17
  class AttachmentRemove
18
18
  # The mediaUrl for the message. Required for image/file messages.
19
- attr_accessor :media_url
19
+ attr_accessor :mediaUrl
20
20
 
21
21
 
22
22
  # Attribute mapping from ruby-style variable name to JSON key.
23
23
  def self.attribute_map
24
24
  {
25
- :'media_url' => :'mediaUrl'
25
+ :'mediaUrl' => :'mediaUrl'
26
26
  }
27
27
  end
28
28
 
29
29
  # Attribute type mapping.
30
30
  def self.swagger_types
31
31
  {
32
- :'media_url' => :'String'
32
+ :'mediaUrl' => :'String'
33
33
  }
34
34
  end
35
35
 
@@ -42,7 +42,7 @@ module SmoochApi
42
42
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
43
43
 
44
44
  if attributes.has_key?(:'mediaUrl')
45
- self.media_url = attributes[:'mediaUrl']
45
+ self.mediaUrl = attributes[:'mediaUrl']
46
46
  end
47
47
 
48
48
  end
@@ -51,8 +51,8 @@ module SmoochApi
51
51
  # @return Array for valid properies with the reasons
52
52
  def list_invalid_properties
53
53
  invalid_properties = Array.new
54
- if @media_url.nil?
55
- invalid_properties.push("invalid value for 'media_url', media_url cannot be nil.")
54
+ if @mediaUrl.nil?
55
+ invalid_properties.push("invalid value for 'mediaUrl', mediaUrl cannot be nil.")
56
56
  end
57
57
 
58
58
  return invalid_properties
@@ -61,7 +61,7 @@ module SmoochApi
61
61
  # Check to see if the all the properties in the model are valid
62
62
  # @return true if the model is valid
63
63
  def valid?
64
- return false if @media_url.nil?
64
+ return false if @mediaUrl.nil?
65
65
  return true
66
66
  end
67
67
 
@@ -70,7 +70,7 @@ module SmoochApi
70
70
  def ==(o)
71
71
  return true if self.equal?(o)
72
72
  self.class == o.class &&
73
- media_url == o.media_url
73
+ mediaUrl == o.mediaUrl
74
74
  end
75
75
 
76
76
  # @see the `==` method
@@ -82,7 +82,7 @@ module SmoochApi
82
82
  # Calculates hash code according to all attributes.
83
83
  # @return [Fixnum] Hash code
84
84
  def hash
85
- [media_url].hash
85
+ [mediaUrl].hash
86
86
  end
87
87
 
88
88
  # 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: 4.1
6
+ OpenAPI spec version: 4.2
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3-SNAPSHOT
@@ -16,25 +16,25 @@ module SmoochApi
16
16
 
17
17
  class AttachmentResponse
18
18
  # The mediaUrl for the message. Required for image/file messages.
19
- attr_accessor :media_url
19
+ attr_accessor :mediaUrl
20
20
 
21
21
  # The mediaType for the message. Required for image/file messages.
22
- attr_accessor :media_type
22
+ attr_accessor :mediaType
23
23
 
24
24
 
25
25
  # Attribute mapping from ruby-style variable name to JSON key.
26
26
  def self.attribute_map
27
27
  {
28
- :'media_url' => :'mediaUrl',
29
- :'media_type' => :'mediaType'
28
+ :'mediaUrl' => :'mediaUrl',
29
+ :'mediaType' => :'mediaType'
30
30
  }
31
31
  end
32
32
 
33
33
  # Attribute type mapping.
34
34
  def self.swagger_types
35
35
  {
36
- :'media_url' => :'String',
37
- :'media_type' => :'String'
36
+ :'mediaUrl' => :'String',
37
+ :'mediaType' => :'String'
38
38
  }
39
39
  end
40
40
 
@@ -47,11 +47,11 @@ module SmoochApi
47
47
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
48
48
 
49
49
  if attributes.has_key?(:'mediaUrl')
50
- self.media_url = attributes[:'mediaUrl']
50
+ self.mediaUrl = attributes[:'mediaUrl']
51
51
  end
52
52
 
53
53
  if attributes.has_key?(:'mediaType')
54
- self.media_type = attributes[:'mediaType']
54
+ self.mediaType = attributes[:'mediaType']
55
55
  end
56
56
 
57
57
  end
@@ -60,12 +60,12 @@ module SmoochApi
60
60
  # @return Array for valid properies with the reasons
61
61
  def list_invalid_properties
62
62
  invalid_properties = Array.new
63
- if @media_url.nil?
64
- invalid_properties.push("invalid value for 'media_url', media_url cannot be nil.")
63
+ if @mediaUrl.nil?
64
+ invalid_properties.push("invalid value for 'mediaUrl', mediaUrl cannot be nil.")
65
65
  end
66
66
 
67
- if @media_type.nil?
68
- invalid_properties.push("invalid value for 'media_type', media_type cannot be nil.")
67
+ if @mediaType.nil?
68
+ invalid_properties.push("invalid value for 'mediaType', mediaType cannot be nil.")
69
69
  end
70
70
 
71
71
  return invalid_properties
@@ -74,8 +74,8 @@ module SmoochApi
74
74
  # Check to see if the all the properties in the model are valid
75
75
  # @return true if the model is valid
76
76
  def valid?
77
- return false if @media_url.nil?
78
- return false if @media_type.nil?
77
+ return false if @mediaUrl.nil?
78
+ return false if @mediaType.nil?
79
79
  return true
80
80
  end
81
81
 
@@ -84,8 +84,8 @@ module SmoochApi
84
84
  def ==(o)
85
85
  return true if self.equal?(o)
86
86
  self.class == o.class &&
87
- media_url == o.media_url &&
88
- media_type == o.media_type
87
+ mediaUrl == o.mediaUrl &&
88
+ mediaType == o.mediaType
89
89
  end
90
90
 
91
91
  # @see the `==` method
@@ -97,7 +97,7 @@ module SmoochApi
97
97
  # Calculates hash code according to all attributes.
98
98
  # @return [Fixnum] Hash code
99
99
  def hash
100
- [media_url, media_type].hash
100
+ [mediaUrl, mediaType].hash
101
101
  end
102
102
 
103
103
  # 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: 4.1
6
+ OpenAPI spec version: 4.2
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3-SNAPSHOT
@@ -16,20 +16,20 @@ module SmoochApi
16
16
 
17
17
  class AuthCodeResponse
18
18
  # The auth code
19
- attr_accessor :auth_code
19
+ attr_accessor :authCode
20
20
 
21
21
 
22
22
  # Attribute mapping from ruby-style variable name to JSON key.
23
23
  def self.attribute_map
24
24
  {
25
- :'auth_code' => :'authCode'
25
+ :'authCode' => :'authCode'
26
26
  }
27
27
  end
28
28
 
29
29
  # Attribute type mapping.
30
30
  def self.swagger_types
31
31
  {
32
- :'auth_code' => :'String'
32
+ :'authCode' => :'String'
33
33
  }
34
34
  end
35
35
 
@@ -42,7 +42,7 @@ module SmoochApi
42
42
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
43
43
 
44
44
  if attributes.has_key?(:'authCode')
45
- self.auth_code = attributes[:'authCode']
45
+ self.authCode = attributes[:'authCode']
46
46
  end
47
47
 
48
48
  end
@@ -51,8 +51,8 @@ module SmoochApi
51
51
  # @return Array for valid properies with the reasons
52
52
  def list_invalid_properties
53
53
  invalid_properties = Array.new
54
- if @auth_code.nil?
55
- invalid_properties.push("invalid value for 'auth_code', auth_code cannot be nil.")
54
+ if @authCode.nil?
55
+ invalid_properties.push("invalid value for 'authCode', authCode cannot be nil.")
56
56
  end
57
57
 
58
58
  return invalid_properties
@@ -61,7 +61,7 @@ module SmoochApi
61
61
  # Check to see if the all the properties in the model are valid
62
62
  # @return true if the model is valid
63
63
  def valid?
64
- return false if @auth_code.nil?
64
+ return false if @authCode.nil?
65
65
  return true
66
66
  end
67
67
 
@@ -70,7 +70,7 @@ module SmoochApi
70
70
  def ==(o)
71
71
  return true if self.equal?(o)
72
72
  self.class == o.class &&
73
- auth_code == o.auth_code
73
+ authCode == o.authCode
74
74
  end
75
75
 
76
76
  # @see the `==` method
@@ -82,7 +82,7 @@ module SmoochApi
82
82
  # Calculates hash code according to all attributes.
83
83
  # @return [Fixnum] Hash code
84
84
  def hash
85
- [auth_code].hash
85
+ [authCode].hash
86
86
  end
87
87
 
88
88
  # 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: 4.1
6
+ OpenAPI spec version: 4.2
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3-SNAPSHOT
@@ -19,26 +19,26 @@ module SmoochApi
19
19
  attr_accessor :type
20
20
 
21
21
  # The channel id for a *slack* integration
22
- attr_accessor :channel_id
22
+ attr_accessor :channelId
23
23
 
24
24
  # The ticket id for a *zendesk* integration
25
- attr_accessor :ticket_id
25
+ attr_accessor :ticketId
26
26
 
27
27
  # The room id for a *hipchat* integration
28
- attr_accessor :room_id
28
+ attr_accessor :roomId
29
29
 
30
30
  # The conversation id for a *helpscout* integration
31
- attr_accessor :conversation_id
31
+ attr_accessor :conversationId
32
32
 
33
33
 
34
34
  # Attribute mapping from ruby-style variable name to JSON key.
35
35
  def self.attribute_map
36
36
  {
37
37
  :'type' => :'type',
38
- :'channel_id' => :'channelId',
39
- :'ticket_id' => :'ticketId',
40
- :'room_id' => :'roomId',
41
- :'conversation_id' => :'conversationId'
38
+ :'channelId' => :'channelId',
39
+ :'ticketId' => :'ticketId',
40
+ :'roomId' => :'roomId',
41
+ :'conversationId' => :'conversationId'
42
42
  }
43
43
  end
44
44
 
@@ -46,10 +46,10 @@ module SmoochApi
46
46
  def self.swagger_types
47
47
  {
48
48
  :'type' => :'String',
49
- :'channel_id' => :'String',
50
- :'ticket_id' => :'String',
51
- :'room_id' => :'Integer',
52
- :'conversation_id' => :'String'
49
+ :'channelId' => :'String',
50
+ :'ticketId' => :'String',
51
+ :'roomId' => :'Integer',
52
+ :'conversationId' => :'String'
53
53
  }
54
54
  end
55
55
 
@@ -66,19 +66,19 @@ module SmoochApi
66
66
  end
67
67
 
68
68
  if attributes.has_key?(:'channelId')
69
- self.channel_id = attributes[:'channelId']
69
+ self.channelId = attributes[:'channelId']
70
70
  end
71
71
 
72
72
  if attributes.has_key?(:'ticketId')
73
- self.ticket_id = attributes[:'ticketId']
73
+ self.ticketId = attributes[:'ticketId']
74
74
  end
75
75
 
76
76
  if attributes.has_key?(:'roomId')
77
- self.room_id = attributes[:'roomId']
77
+ self.roomId = attributes[:'roomId']
78
78
  end
79
79
 
80
80
  if attributes.has_key?(:'conversationId')
81
- self.conversation_id = attributes[:'conversationId']
81
+ self.conversationId = attributes[:'conversationId']
82
82
  end
83
83
 
84
84
  end
@@ -107,10 +107,10 @@ module SmoochApi
107
107
  return true if self.equal?(o)
108
108
  self.class == o.class &&
109
109
  type == o.type &&
110
- channel_id == o.channel_id &&
111
- ticket_id == o.ticket_id &&
112
- room_id == o.room_id &&
113
- conversation_id == o.conversation_id
110
+ channelId == o.channelId &&
111
+ ticketId == o.ticketId &&
112
+ roomId == o.roomId &&
113
+ conversationId == o.conversationId
114
114
  end
115
115
 
116
116
  # @see the `==` method
@@ -122,7 +122,7 @@ module SmoochApi
122
122
  # Calculates hash code according to all attributes.
123
123
  # @return [Fixnum] Hash code
124
124
  def hash
125
- [type, channel_id, ticket_id, room_id, conversation_id].hash
125
+ [type, channelId, ticketId, roomId, conversationId].hash
126
126
  end
127
127
 
128
128
  # 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: 4.1
6
+ OpenAPI spec version: 4.2
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3-SNAPSHOT
@@ -19,26 +19,26 @@ module SmoochApi
19
19
  attr_accessor :type
20
20
 
21
21
  # The phone number for a *twilio*, *messageBird* integration
22
- attr_accessor :phone_number
22
+ attr_accessor :phoneNumber
23
23
 
24
24
  # The userId for a *messenger*, *viber*, *line*, *wechat* integration
25
- attr_accessor :user_id
25
+ attr_accessor :userId
26
26
 
27
27
  # The email address for a *frontendEmail*, *mailgun* integration
28
28
  attr_accessor :address
29
29
 
30
30
  # The chat id for a *telegram* integration
31
- attr_accessor :chat_id
31
+ attr_accessor :chatId
32
32
 
33
33
 
34
34
  # Attribute mapping from ruby-style variable name to JSON key.
35
35
  def self.attribute_map
36
36
  {
37
37
  :'type' => :'type',
38
- :'phone_number' => :'phoneNumber',
39
- :'user_id' => :'userId',
38
+ :'phoneNumber' => :'phoneNumber',
39
+ :'userId' => :'userId',
40
40
  :'address' => :'address',
41
- :'chat_id' => :'chatId'
41
+ :'chatId' => :'chatId'
42
42
  }
43
43
  end
44
44
 
@@ -46,10 +46,10 @@ module SmoochApi
46
46
  def self.swagger_types
47
47
  {
48
48
  :'type' => :'String',
49
- :'phone_number' => :'String',
50
- :'user_id' => :'String',
49
+ :'phoneNumber' => :'String',
50
+ :'userId' => :'String',
51
51
  :'address' => :'String',
52
- :'chat_id' => :'String'
52
+ :'chatId' => :'String'
53
53
  }
54
54
  end
55
55
 
@@ -66,11 +66,11 @@ module SmoochApi
66
66
  end
67
67
 
68
68
  if attributes.has_key?(:'phoneNumber')
69
- self.phone_number = attributes[:'phoneNumber']
69
+ self.phoneNumber = attributes[:'phoneNumber']
70
70
  end
71
71
 
72
72
  if attributes.has_key?(:'userId')
73
- self.user_id = attributes[:'userId']
73
+ self.userId = attributes[:'userId']
74
74
  end
75
75
 
76
76
  if attributes.has_key?(:'address')
@@ -78,7 +78,7 @@ module SmoochApi
78
78
  end
79
79
 
80
80
  if attributes.has_key?(:'chatId')
81
- self.chat_id = attributes[:'chatId']
81
+ self.chatId = attributes[:'chatId']
82
82
  end
83
83
 
84
84
  end
@@ -107,10 +107,10 @@ module SmoochApi
107
107
  return true if self.equal?(o)
108
108
  self.class == o.class &&
109
109
  type == o.type &&
110
- phone_number == o.phone_number &&
111
- user_id == o.user_id &&
110
+ phoneNumber == o.phoneNumber &&
111
+ userId == o.userId &&
112
112
  address == o.address &&
113
- chat_id == o.chat_id
113
+ chatId == o.chatId
114
114
  end
115
115
 
116
116
  # @see the `==` method
@@ -122,7 +122,7 @@ module SmoochApi
122
122
  # Calculates hash code according to all attributes.
123
123
  # @return [Fixnum] Hash code
124
124
  def hash
125
- [type, phone_number, user_id, address, chat_id].hash
125
+ [type, phoneNumber, userId, address, chatId].hash
126
126
  end
127
127
 
128
128
  # Builds the object from hash