smooch-api 5.19.0 → 5.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -1
  3. data/docs/Coordinates.md +9 -0
  4. data/docs/Location.md +9 -0
  5. data/docs/Message.md +2 -0
  6. data/docs/MessagePost.md +2 -0
  7. data/lib/smooch-api.rb +3 -1
  8. data/lib/smooch-api/api/app_api.rb +1 -1
  9. data/lib/smooch-api/api/app_user_api.rb +1 -1
  10. data/lib/smooch-api/api/attachments_api.rb +1 -1
  11. data/lib/smooch-api/api/conversation_api.rb +1 -1
  12. data/lib/smooch-api/api/deployment_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/service_account_api.rb +1 -1
  16. data/lib/smooch-api/api/template_api.rb +1 -1
  17. data/lib/smooch-api/api/webhook_api.rb +1 -1
  18. data/lib/smooch-api/api_client.rb +1 -1
  19. data/lib/smooch-api/api_error.rb +1 -1
  20. data/lib/smooch-api/configuration.rb +1 -1
  21. data/lib/smooch-api/models/action.rb +1 -1
  22. data/lib/smooch-api/models/activity_response.rb +1 -1
  23. data/lib/smooch-api/models/app.rb +1 -1
  24. data/lib/smooch-api/models/app_create.rb +1 -1
  25. data/lib/smooch-api/models/app_response.rb +1 -1
  26. data/lib/smooch-api/models/app_settings.rb +1 -1
  27. data/lib/smooch-api/models/app_update.rb +1 -1
  28. data/lib/smooch-api/models/app_user.rb +1 -1
  29. data/lib/smooch-api/models/app_user_business_systems_response.rb +1 -1
  30. data/lib/smooch-api/models/app_user_channels_response.rb +1 -1
  31. data/lib/smooch-api/models/app_user_link.rb +1 -1
  32. data/lib/smooch-api/models/app_user_merge.rb +1 -1
  33. data/lib/smooch-api/models/app_user_pre_create.rb +1 -1
  34. data/lib/smooch-api/models/app_user_response.rb +1 -1
  35. data/lib/smooch-api/models/app_user_update.rb +1 -1
  36. data/lib/smooch-api/models/attachment_remove.rb +1 -1
  37. data/lib/smooch-api/models/attachment_response.rb +1 -1
  38. data/lib/smooch-api/models/auth_code_response.rb +1 -1
  39. data/lib/smooch-api/models/business_system_item.rb +1 -1
  40. data/lib/smooch-api/models/channel_entity_item.rb +1 -1
  41. data/lib/smooch-api/models/client.rb +1 -1
  42. data/lib/smooch-api/models/client_info.rb +1 -1
  43. data/lib/smooch-api/models/confirmation.rb +1 -1
  44. data/lib/smooch-api/models/conversation.rb +1 -1
  45. data/lib/smooch-api/models/conversation_activity.rb +1 -1
  46. data/lib/smooch-api/models/coordinates.rb +209 -0
  47. data/lib/smooch-api/models/deployment.rb +1 -1
  48. data/lib/smooch-api/models/deployment_activate_phone_number.rb +1 -1
  49. data/lib/smooch-api/models/deployment_confirm_code.rb +1 -1
  50. data/lib/smooch-api/models/deployment_create.rb +1 -1
  51. data/lib/smooch-api/models/deployment_response.rb +1 -1
  52. data/lib/smooch-api/models/destination.rb +1 -1
  53. data/lib/smooch-api/models/display_settings.rb +1 -1
  54. data/lib/smooch-api/models/enums.rb +1 -1
  55. data/lib/smooch-api/models/field.rb +1 -1
  56. data/lib/smooch-api/models/field_post.rb +1 -1
  57. data/lib/smooch-api/models/get_integration_profile_response.rb +1 -1
  58. data/lib/smooch-api/models/get_messages_response.rb +1 -1
  59. data/lib/smooch-api/models/integration.rb +1 -1
  60. data/lib/smooch-api/models/integration_create.rb +1 -1
  61. data/lib/smooch-api/models/integration_profile_update.rb +1 -1
  62. data/lib/smooch-api/models/integration_response.rb +1 -1
  63. data/lib/smooch-api/models/integration_update.rb +1 -1
  64. data/lib/smooch-api/models/jwt_response.rb +1 -1
  65. data/lib/smooch-api/models/link_request_response.rb +1 -1
  66. data/lib/smooch-api/models/link_request_response_link_requests.rb +1 -1
  67. data/lib/smooch-api/models/list_apps_response.rb +1 -1
  68. data/lib/smooch-api/models/list_deployments_response.rb +1 -1
  69. data/lib/smooch-api/models/list_integrations_response.rb +1 -1
  70. data/lib/smooch-api/models/list_secret_keys_response.rb +1 -1
  71. data/lib/smooch-api/models/list_service_accounts_response.rb +1 -1
  72. data/lib/smooch-api/models/list_templates_response.rb +1 -1
  73. data/lib/smooch-api/models/list_webhooks_response.rb +1 -1
  74. data/lib/smooch-api/models/location.rb +199 -0
  75. data/lib/smooch-api/models/menu.rb +1 -1
  76. data/lib/smooch-api/models/menu_item.rb +1 -1
  77. data/lib/smooch-api/models/menu_response.rb +1 -1
  78. data/lib/smooch-api/models/merged_user.rb +1 -1
  79. data/lib/smooch-api/models/message.rb +25 -5
  80. data/lib/smooch-api/models/message_item.rb +1 -1
  81. data/lib/smooch-api/models/message_override.rb +1 -1
  82. data/lib/smooch-api/models/message_override_whatsapp.rb +1 -1
  83. data/lib/smooch-api/models/message_post.rb +25 -5
  84. data/lib/smooch-api/models/message_response.rb +1 -1
  85. data/lib/smooch-api/models/option.rb +1 -1
  86. data/lib/smooch-api/models/quoted_message.rb +1 -1
  87. data/lib/smooch-api/models/secret_key.rb +1 -1
  88. data/lib/smooch-api/models/secret_key_create.rb +1 -1
  89. data/lib/smooch-api/models/secret_key_response.rb +1 -1
  90. data/lib/smooch-api/models/select.rb +1 -1
  91. data/lib/smooch-api/models/service_account.rb +1 -1
  92. data/lib/smooch-api/models/service_account_create.rb +1 -1
  93. data/lib/smooch-api/models/service_account_response.rb +1 -1
  94. data/lib/smooch-api/models/service_account_update.rb +1 -1
  95. data/lib/smooch-api/models/source.rb +1 -1
  96. data/lib/smooch-api/models/sub_menu_item.rb +1 -1
  97. data/lib/smooch-api/models/template.rb +1 -1
  98. data/lib/smooch-api/models/template_create.rb +1 -1
  99. data/lib/smooch-api/models/template_response.rb +1 -1
  100. data/lib/smooch-api/models/template_update.rb +1 -1
  101. data/lib/smooch-api/models/upload_integration_profile_photo_response.rb +1 -1
  102. data/lib/smooch-api/models/webhook.rb +1 -1
  103. data/lib/smooch-api/models/webhook_create.rb +1 -1
  104. data/lib/smooch-api/models/webhook_response.rb +1 -1
  105. data/lib/smooch-api/models/webhook_update.rb +1 -1
  106. data/lib/smooch-api/version.rb +2 -2
  107. data/smooch-api.gemspec +1 -1
  108. data/spec/api_client_spec.rb +1 -1
  109. data/spec/configuration_spec.rb +1 -1
  110. data/spec/spec_helper.rb +1 -1
  111. 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: 5.19
6
+ OpenAPI spec version: 5.20
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: 5.19
6
+ OpenAPI spec version: 5.20
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: 5.19
6
+ OpenAPI spec version: 5.20
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: 5.19
6
+ OpenAPI spec version: 5.20
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: 5.19
6
+ OpenAPI spec version: 5.20
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3-SNAPSHOT
@@ -0,0 +1,199 @@
1
+ =begin
2
+ #Smooch
3
+
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
+
6
+ OpenAPI spec version: 5.20
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.2.3-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module SmoochApi
16
+
17
+ class Location
18
+ # The location's street address.
19
+ attr_accessor :address
20
+
21
+ # A name for the location.
22
+ attr_accessor :name
23
+
24
+
25
+ # Attribute mapping from ruby-style variable name to JSON key.
26
+ def self.attribute_map
27
+ {
28
+ :'address' => :'address',
29
+ :'name' => :'name'
30
+ }
31
+ end
32
+
33
+ # Attribute type mapping.
34
+ def self.swagger_types
35
+ {
36
+ :'address' => :'String',
37
+ :'name' => :'String'
38
+ }
39
+ end
40
+
41
+ # Initializes the object
42
+ # @param [Hash] attributes Model attributes in the form of hash
43
+ def initialize(attributes = {})
44
+ return unless attributes.is_a?(Hash)
45
+
46
+ # convert string to symbol for hash key
47
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
48
+
49
+ if attributes.has_key?(:'address')
50
+ self.address = attributes[:'address']
51
+ end
52
+
53
+ if attributes.has_key?(:'name')
54
+ self.name = attributes[:'name']
55
+ end
56
+
57
+ end
58
+
59
+ # Show invalid properties with the reasons. Usually used together with valid?
60
+ # @return Array for valid properies with the reasons
61
+ def list_invalid_properties
62
+ invalid_properties = Array.new
63
+ return invalid_properties
64
+ end
65
+
66
+ # Check to see if the all the properties in the model are valid
67
+ # @return true if the model is valid
68
+ def valid?
69
+ return true
70
+ end
71
+
72
+ # Checks equality by comparing each attribute.
73
+ # @param [Object] Object to be compared
74
+ def ==(o)
75
+ return true if self.equal?(o)
76
+ self.class == o.class &&
77
+ address == o.address &&
78
+ name == o.name
79
+ end
80
+
81
+ # @see the `==` method
82
+ # @param [Object] Object to be compared
83
+ def eql?(o)
84
+ self == o
85
+ end
86
+
87
+ # Calculates hash code according to all attributes.
88
+ # @return [Fixnum] Hash code
89
+ def hash
90
+ [address, name].hash
91
+ end
92
+
93
+ # Builds the object from hash
94
+ # @param [Hash] attributes Model attributes in the form of hash
95
+ # @return [Object] Returns the model itself
96
+ def build_from_hash(attributes)
97
+ return nil unless attributes.is_a?(Hash)
98
+ self.class.swagger_types.each_pair do |key, type|
99
+ if type =~ /\AArray<(.*)>/i
100
+ # check to ensure the input is an array given that the the attribute
101
+ # is documented as an array but the input is not
102
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
103
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
104
+ end
105
+ elsif !attributes[self.class.attribute_map[key]].nil?
106
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
107
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
108
+ end
109
+
110
+ self
111
+ end
112
+
113
+ # Deserializes the data based on type
114
+ # @param string type Data type
115
+ # @param string value Value to be deserialized
116
+ # @return [Object] Deserialized data
117
+ def _deserialize(type, value)
118
+ case type.to_sym
119
+ when :DateTime
120
+ DateTime.parse(value)
121
+ when :Date
122
+ Date.parse(value)
123
+ when :String
124
+ value.to_s
125
+ when :Integer
126
+ value.to_i
127
+ when :Float
128
+ value.to_f
129
+ when :BOOLEAN
130
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
131
+ true
132
+ else
133
+ false
134
+ end
135
+ when :Object
136
+ # generic object (usually a Hash), return directly
137
+ value
138
+ when /\AArray<(?<inner_type>.+)>\z/
139
+ inner_type = Regexp.last_match[:inner_type]
140
+ value.map { |v| _deserialize(inner_type, v) }
141
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
142
+ k_type = Regexp.last_match[:k_type]
143
+ v_type = Regexp.last_match[:v_type]
144
+ {}.tap do |hash|
145
+ value.each do |k, v|
146
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
147
+ end
148
+ end
149
+ else # model
150
+ temp_model = SmoochApi.const_get(type).new
151
+ temp_model.build_from_hash(value)
152
+ end
153
+ end
154
+
155
+ # Returns the string representation of the object
156
+ # @return [String] String presentation of the object
157
+ def to_s
158
+ to_hash.to_s
159
+ end
160
+
161
+ # to_body is an alias to to_hash (backward compatibility)
162
+ # @return [Hash] Returns the object in the form of hash
163
+ def to_body
164
+ to_hash
165
+ end
166
+
167
+ # Returns the object in the form of hash
168
+ # @return [Hash] Returns the object in the form of hash
169
+ def to_hash
170
+ hash = {}
171
+ self.class.attribute_map.each_pair do |attr, param|
172
+ value = self.send(attr)
173
+ next if value.nil?
174
+ hash[param] = _to_hash(value)
175
+ end
176
+ hash
177
+ end
178
+
179
+ # Outputs non-array value in the form of hash
180
+ # For object, use to_hash. Otherwise, just return the value
181
+ # @param [Object] value Any valid value
182
+ # @return [Hash] Returns the value in the form of hash
183
+ def _to_hash(value)
184
+ if value.is_a?(Array)
185
+ value.compact.map{ |v| _to_hash(v) }
186
+ elsif value.is_a?(Hash)
187
+ {}.tap do |hash|
188
+ value.each { |k, v| hash[k] = _to_hash(v) }
189
+ end
190
+ elsif value.respond_to? :to_hash
191
+ value.to_hash
192
+ else
193
+ value
194
+ end
195
+ end
196
+
197
+ end
198
+
199
+ 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: 5.19
6
+ OpenAPI spec version: 5.20
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: 5.19
6
+ OpenAPI spec version: 5.20
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: 5.19
6
+ OpenAPI spec version: 5.20
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: 5.19
6
+ OpenAPI spec version: 5.20
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: 5.19
6
+ OpenAPI spec version: 5.20
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3-SNAPSHOT
@@ -81,6 +81,12 @@ module SmoochApi
81
81
  # The text fallback displayed in channels that do not support form messages. Only for formResponse messages. Generated automatically.
82
82
  attr_accessor :textFallback
83
83
 
84
+ # Data representing the location being sent in the message.
85
+ attr_accessor :coordinates
86
+
87
+ # Additional information about the location being sent in the message.
88
+ attr_accessor :location
89
+
84
90
 
85
91
  # Attribute mapping from ruby-style variable name to JSON key.
86
92
  def self.attribute_map
@@ -106,7 +112,9 @@ module SmoochApi
106
112
  :'fields' => :'fields',
107
113
  :'submitted' => :'submitted',
108
114
  :'quotedMessage' => :'quotedMessage',
109
- :'textFallback' => :'textFallback'
115
+ :'textFallback' => :'textFallback',
116
+ :'coordinates' => :'coordinates',
117
+ :'location' => :'location'
110
118
  }
111
119
  end
112
120
 
@@ -134,7 +142,9 @@ module SmoochApi
134
142
  :'fields' => :'Array<Field>',
135
143
  :'submitted' => :'BOOLEAN',
136
144
  :'quotedMessage' => :'QuotedMessage',
137
- :'textFallback' => :'String'
145
+ :'textFallback' => :'String',
146
+ :'coordinates' => :'Coordinates',
147
+ :'location' => :'Location'
138
148
  }
139
149
  end
140
150
 
@@ -240,6 +250,14 @@ module SmoochApi
240
250
  self.textFallback = attributes[:'textFallback']
241
251
  end
242
252
 
253
+ if attributes.has_key?(:'coordinates')
254
+ self.coordinates = attributes[:'coordinates']
255
+ end
256
+
257
+ if attributes.has_key?(:'location')
258
+ self.location = attributes[:'location']
259
+ end
260
+
243
261
  end
244
262
 
245
263
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -321,7 +339,9 @@ module SmoochApi
321
339
  fields == o.fields &&
322
340
  submitted == o.submitted &&
323
341
  quotedMessage == o.quotedMessage &&
324
- textFallback == o.textFallback
342
+ textFallback == o.textFallback &&
343
+ coordinates == o.coordinates &&
344
+ location == o.location
325
345
  end
326
346
 
327
347
  # @see the `==` method
@@ -333,7 +353,7 @@ module SmoochApi
333
353
  # Calculates hash code according to all attributes.
334
354
  # @return [Fixnum] Hash code
335
355
  def hash
336
- [id, authorId, role, type, source, name, text, email, avatarUrl, received, mediaUrl, mediaType, metadata, items, actions, payload, displaySettings, blockChatInput, fields, submitted, quotedMessage, textFallback].hash
356
+ [id, authorId, role, type, source, name, text, email, avatarUrl, received, mediaUrl, mediaType, metadata, items, actions, payload, displaySettings, blockChatInput, fields, submitted, quotedMessage, textFallback, coordinates, location].hash
337
357
  end
338
358
 
339
359
  # 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: 5.19
6
+ OpenAPI spec version: 5.20
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: 5.19
6
+ OpenAPI spec version: 5.20
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: 5.19
6
+ OpenAPI spec version: 5.20
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: 5.19
6
+ OpenAPI spec version: 5.20
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3-SNAPSHOT
@@ -66,6 +66,12 @@ module SmoochApi
66
66
  # Specifies channel-specific overrides to use in order to bypass Smooch's message translation logic.
67
67
  attr_accessor :override
68
68
 
69
+ # Data representing the location being sent in the message.
70
+ attr_accessor :coordinates
71
+
72
+ # Additional information about the location being sent in the message.
73
+ attr_accessor :location
74
+
69
75
 
70
76
  # Attribute mapping from ruby-style variable name to JSON key.
71
77
  def self.attribute_map
@@ -86,7 +92,9 @@ module SmoochApi
86
92
  :'displaySettings' => :'displaySettings',
87
93
  :'fields' => :'fields',
88
94
  :'destination' => :'destination',
89
- :'override' => :'override'
95
+ :'override' => :'override',
96
+ :'coordinates' => :'coordinates',
97
+ :'location' => :'location'
90
98
  }
91
99
  end
92
100
 
@@ -109,7 +117,9 @@ module SmoochApi
109
117
  :'displaySettings' => :'DisplaySettings',
110
118
  :'fields' => :'Array<FieldPost>',
111
119
  :'destination' => :'Destination',
112
- :'override' => :'MessageOverride'
120
+ :'override' => :'MessageOverride',
121
+ :'coordinates' => :'Coordinates',
122
+ :'location' => :'Location'
113
123
  }
114
124
  end
115
125
 
@@ -195,6 +205,14 @@ module SmoochApi
195
205
  self.override = attributes[:'override']
196
206
  end
197
207
 
208
+ if attributes.has_key?(:'coordinates')
209
+ self.coordinates = attributes[:'coordinates']
210
+ end
211
+
212
+ if attributes.has_key?(:'location')
213
+ self.location = attributes[:'location']
214
+ end
215
+
198
216
  end
199
217
 
200
218
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -241,7 +259,9 @@ module SmoochApi
241
259
  displaySettings == o.displaySettings &&
242
260
  fields == o.fields &&
243
261
  destination == o.destination &&
244
- override == o.override
262
+ override == o.override &&
263
+ coordinates == o.coordinates &&
264
+ location == o.location
245
265
  end
246
266
 
247
267
  # @see the `==` method
@@ -253,7 +273,7 @@ module SmoochApi
253
273
  # Calculates hash code according to all attributes.
254
274
  # @return [Fixnum] Hash code
255
275
  def hash
256
- [role, type, name, email, avatarUrl, metadata, payload, text, mediaUrl, mediaType, items, actions, blockChatInput, displaySettings, fields, destination, override].hash
276
+ [role, type, name, email, avatarUrl, metadata, payload, text, mediaUrl, mediaType, items, actions, blockChatInput, displaySettings, fields, destination, override, coordinates, location].hash
257
277
  end
258
278
 
259
279
  # Builds the object from hash