smooch-api 5.7.0 → 5.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (126) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +13 -1
  3. data/docs/Action.md +2 -2
  4. data/docs/AppUserLink.md +1 -1
  5. data/docs/BusinessSystemItem.md +1 -1
  6. data/docs/ChannelEntityItem.md +1 -1
  7. data/docs/Client.md +1 -1
  8. data/docs/Confirmation.md +1 -1
  9. data/docs/ConversationActivity.md +2 -2
  10. data/docs/Deployment.md +17 -0
  11. data/docs/DeploymentActivatePhoneNumber.md +10 -0
  12. data/docs/DeploymentApi.md +325 -0
  13. data/docs/DeploymentConfirmCode.md +8 -0
  14. data/docs/DeploymentCreate.md +12 -0
  15. data/docs/DeploymentResponse.md +8 -0
  16. data/docs/Destination.md +1 -1
  17. data/docs/DisplaySettings.md +1 -1
  18. data/docs/Enums.md +3 -0
  19. data/docs/Integration.md +6 -5
  20. data/docs/IntegrationCreate.md +5 -4
  21. data/docs/LinkRequestResponseLinkRequests.md +1 -1
  22. data/docs/ListDeploymentsResponse.md +8 -0
  23. data/docs/MenuItem.md +1 -1
  24. data/docs/Message.md +2 -2
  25. data/docs/MessageItem.md +1 -1
  26. data/docs/MessagePost.md +2 -2
  27. data/docs/Source.md +1 -1
  28. data/docs/SubMenuItem.md +1 -1
  29. data/docs/Webhook.md +1 -1
  30. data/docs/WebhookCreate.md +1 -1
  31. data/docs/WebhookUpdate.md +1 -1
  32. data/lib/smooch-api.rb +8 -1
  33. data/lib/smooch-api/api/app_api.rb +1 -1
  34. data/lib/smooch-api/api/app_user_api.rb +1 -1
  35. data/lib/smooch-api/api/attachments_api.rb +1 -1
  36. data/lib/smooch-api/api/conversation_api.rb +1 -1
  37. data/lib/smooch-api/api/deployment_api.rb +358 -0
  38. data/lib/smooch-api/api/integration_api.rb +1 -1
  39. data/lib/smooch-api/api/menu_api.rb +1 -1
  40. data/lib/smooch-api/api/service_account_api.rb +1 -1
  41. data/lib/smooch-api/api/template_api.rb +1 -1
  42. data/lib/smooch-api/api/webhook_api.rb +1 -1
  43. data/lib/smooch-api/api_client.rb +1 -1
  44. data/lib/smooch-api/api_error.rb +1 -1
  45. data/lib/smooch-api/configuration.rb +1 -1
  46. data/lib/smooch-api/models/action.rb +3 -3
  47. data/lib/smooch-api/models/app.rb +1 -1
  48. data/lib/smooch-api/models/app_create.rb +1 -1
  49. data/lib/smooch-api/models/app_response.rb +1 -1
  50. data/lib/smooch-api/models/app_settings.rb +1 -1
  51. data/lib/smooch-api/models/app_update.rb +1 -1
  52. data/lib/smooch-api/models/app_user.rb +1 -1
  53. data/lib/smooch-api/models/app_user_business_systems_response.rb +1 -1
  54. data/lib/smooch-api/models/app_user_channels_response.rb +1 -1
  55. data/lib/smooch-api/models/app_user_link.rb +2 -2
  56. data/lib/smooch-api/models/app_user_pre_create.rb +1 -1
  57. data/lib/smooch-api/models/app_user_response.rb +1 -1
  58. data/lib/smooch-api/models/app_user_update.rb +1 -1
  59. data/lib/smooch-api/models/attachment_remove.rb +1 -1
  60. data/lib/smooch-api/models/attachment_response.rb +1 -1
  61. data/lib/smooch-api/models/auth_code_response.rb +1 -1
  62. data/lib/smooch-api/models/business_system_item.rb +2 -2
  63. data/lib/smooch-api/models/channel_entity_item.rb +2 -2
  64. data/lib/smooch-api/models/client.rb +2 -2
  65. data/lib/smooch-api/models/client_info.rb +1 -1
  66. data/lib/smooch-api/models/confirmation.rb +2 -2
  67. data/lib/smooch-api/models/conversation.rb +1 -1
  68. data/lib/smooch-api/models/conversation_activity.rb +3 -3
  69. data/lib/smooch-api/models/deployment.rb +294 -0
  70. data/lib/smooch-api/models/deployment_activate_phone_number.rb +224 -0
  71. data/lib/smooch-api/models/deployment_confirm_code.rb +194 -0
  72. data/lib/smooch-api/models/deployment_create.rb +234 -0
  73. data/lib/smooch-api/models/deployment_response.rb +194 -0
  74. data/lib/smooch-api/models/destination.rb +2 -2
  75. data/lib/smooch-api/models/display_settings.rb +2 -2
  76. data/lib/smooch-api/models/enums.rb +68 -5
  77. data/lib/smooch-api/models/get_integration_profile_response.rb +1 -1
  78. data/lib/smooch-api/models/get_messages_response.rb +1 -1
  79. data/lib/smooch-api/models/integration.rb +17 -7
  80. data/lib/smooch-api/models/integration_create.rb +16 -6
  81. data/lib/smooch-api/models/integration_profile_update.rb +1 -1
  82. data/lib/smooch-api/models/integration_response.rb +1 -1
  83. data/lib/smooch-api/models/integration_update.rb +1 -1
  84. data/lib/smooch-api/models/jwt_response.rb +1 -1
  85. data/lib/smooch-api/models/link_request_response.rb +1 -1
  86. data/lib/smooch-api/models/link_request_response_link_requests.rb +2 -2
  87. data/lib/smooch-api/models/list_apps_response.rb +1 -1
  88. data/lib/smooch-api/models/list_deployments_response.rb +196 -0
  89. data/lib/smooch-api/models/list_integrations_response.rb +1 -1
  90. data/lib/smooch-api/models/list_secret_keys_response.rb +1 -1
  91. data/lib/smooch-api/models/list_service_accounts_response.rb +1 -1
  92. data/lib/smooch-api/models/list_templates_response.rb +1 -1
  93. data/lib/smooch-api/models/list_webhooks_response.rb +1 -1
  94. data/lib/smooch-api/models/menu.rb +1 -1
  95. data/lib/smooch-api/models/menu_item.rb +2 -2
  96. data/lib/smooch-api/models/menu_response.rb +1 -1
  97. data/lib/smooch-api/models/message.rb +3 -3
  98. data/lib/smooch-api/models/message_item.rb +2 -2
  99. data/lib/smooch-api/models/message_override.rb +1 -1
  100. data/lib/smooch-api/models/message_override_whatsapp.rb +1 -1
  101. data/lib/smooch-api/models/message_post.rb +3 -3
  102. data/lib/smooch-api/models/message_response.rb +1 -1
  103. data/lib/smooch-api/models/secret_key.rb +1 -1
  104. data/lib/smooch-api/models/secret_key_create.rb +1 -1
  105. data/lib/smooch-api/models/secret_key_response.rb +1 -1
  106. data/lib/smooch-api/models/service_account.rb +1 -1
  107. data/lib/smooch-api/models/service_account_create.rb +1 -1
  108. data/lib/smooch-api/models/service_account_response.rb +1 -1
  109. data/lib/smooch-api/models/service_account_update.rb +1 -1
  110. data/lib/smooch-api/models/source.rb +2 -2
  111. data/lib/smooch-api/models/sub_menu_item.rb +2 -2
  112. data/lib/smooch-api/models/template.rb +1 -1
  113. data/lib/smooch-api/models/template_create.rb +1 -1
  114. data/lib/smooch-api/models/template_response.rb +1 -1
  115. data/lib/smooch-api/models/template_update.rb +1 -1
  116. data/lib/smooch-api/models/upload_integration_profile_photo_response.rb +1 -1
  117. data/lib/smooch-api/models/webhook.rb +2 -2
  118. data/lib/smooch-api/models/webhook_create.rb +2 -2
  119. data/lib/smooch-api/models/webhook_response.rb +1 -1
  120. data/lib/smooch-api/models/webhook_update.rb +2 -2
  121. data/lib/smooch-api/version.rb +2 -2
  122. data/smooch-api.gemspec +1 -1
  123. data/spec/api_client_spec.rb +1 -1
  124. data/spec/configuration_spec.rb +1 -1
  125. data/spec/spec_helper.rb +1 -1
  126. metadata +16 -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.7
6
+ OpenAPI spec version: 5.8
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3-SNAPSHOT
@@ -15,7 +15,7 @@ require 'date'
15
15
  module SmoochApi
16
16
 
17
17
  class IntegrationCreate
18
- # The integration type. See Enums.md for available values.
18
+ # The integration type. See [**IntegrationTypeEnum**](Enums.md#IntegrationTypeEnum) for available values.
19
19
  attr_accessor :type
20
20
 
21
21
  # The integration display name. Used to map a human-friendly name to an integration.
@@ -36,7 +36,7 @@ module SmoochApi
36
36
  # Twilio Auth Token. Required for *twilio* integrations.
37
37
  attr_accessor :authToken
38
38
 
39
- # Your WhatsApp API client's URL. Required for *WhatsApp* integrations.
39
+ # Your WhatsApp API client's URL. Required for *WhatsApp* integrations. (this usage is deprecated)
40
40
  attr_accessor :baseUrl
41
41
 
42
42
  # Specification of a fallback language. (Optional) Used for *WhatsApp* integrations.
@@ -57,6 +57,9 @@ module SmoochApi
57
57
  # LINE Channel Access Token. Required for *line* integrations.
58
58
  attr_accessor :channelAccessToken
59
59
 
60
+ # Your WhatsApp deployment ID. Required for *WhatsApp* integrations.
61
+ attr_accessor :deploymentId
62
+
60
63
  # LINE Service Code.
61
64
  attr_accessor :serviceCode
62
65
 
@@ -72,10 +75,10 @@ module SmoochApi
72
75
  # The binary of your APN certificate base64 encoded. Required for *apn* integrations.
73
76
  attr_accessor :certificate
74
77
 
75
- # The password for your APN certificate or WhatsApp API client. Required for *WhatsApp* integrations. (Optional) Used for *apn* integrations.
78
+ # The password for your APN certificate or WhatsApp API client. Required for *WhatsApp* integrations. (this usage is deprecated) (Optional) Used for *apn* integrations.
76
79
  attr_accessor :password
77
80
 
78
- # The username for the account. Required for *WhatsApp* integrations. Returned on successful *twitter* and *telegram* integrations.
81
+ # The username for the account. Returned on successful *twitter* and *telegram* integrations. Required for *WhatsApp* integrations. (this usage is deprecated)
79
82
  attr_accessor :username
80
83
 
81
84
  # Use the unread count of the conversation as the application badge. (Optional) Used for *apn* integrations.
@@ -171,6 +174,7 @@ module SmoochApi
171
174
  :'channelId' => :'channelId',
172
175
  :'channelSecret' => :'channelSecret',
173
176
  :'channelAccessToken' => :'channelAccessToken',
177
+ :'deploymentId' => :'deploymentId',
174
178
  :'serviceCode' => :'serviceCode',
175
179
  :'switcherSecret' => :'switcherSecret',
176
180
  :'encodingAesKey' => :'encodingAesKey',
@@ -223,6 +227,7 @@ module SmoochApi
223
227
  :'channelId' => :'String',
224
228
  :'channelSecret' => :'String',
225
229
  :'channelAccessToken' => :'String',
230
+ :'deploymentId' => :'String',
226
231
  :'serviceCode' => :'String',
227
232
  :'switcherSecret' => :'String',
228
233
  :'encodingAesKey' => :'String',
@@ -322,6 +327,10 @@ module SmoochApi
322
327
  self.channelAccessToken = attributes[:'channelAccessToken']
323
328
  end
324
329
 
330
+ if attributes.has_key?(:'deploymentId')
331
+ self.deploymentId = attributes[:'deploymentId']
332
+ end
333
+
325
334
  if attributes.has_key?(:'serviceCode')
326
335
  self.serviceCode = attributes[:'serviceCode']
327
336
  end
@@ -493,6 +502,7 @@ module SmoochApi
493
502
  channelId == o.channelId &&
494
503
  channelSecret == o.channelSecret &&
495
504
  channelAccessToken == o.channelAccessToken &&
505
+ deploymentId == o.deploymentId &&
496
506
  serviceCode == o.serviceCode &&
497
507
  switcherSecret == o.switcherSecret &&
498
508
  encodingAesKey == o.encodingAesKey &&
@@ -536,7 +546,7 @@ module SmoochApi
536
546
  # Calculates hash code according to all attributes.
537
547
  # @return [Fixnum] Hash code
538
548
  def hash
539
- [type, displayName, pageAccessToken, appId, appSecret, accountSid, authToken, baseUrl, hsmFallbackLanguage, phoneNumberSid, token, channelId, channelSecret, channelAccessToken, serviceCode, switcherSecret, encodingAesKey, fromAddress, certificate, password, username, autoUpdateBadge, serverKey, senderId, tier, envName, consumerKey, consumerSecret, accessTokenKey, accessTokenSecret, accessTokenUrl, accessKey, originator, brandColor, fixedIntroPane, conversationColor, actionColor, displayStyle, buttonIconUrl, buttonWidth, buttonHeight, integrationOrder, businessName, businessIconUrl, backgroundImageUrl, originWhitelist].hash
549
+ [type, displayName, pageAccessToken, appId, appSecret, accountSid, authToken, baseUrl, hsmFallbackLanguage, phoneNumberSid, token, channelId, channelSecret, channelAccessToken, deploymentId, serviceCode, switcherSecret, encodingAesKey, fromAddress, certificate, password, username, autoUpdateBadge, serverKey, senderId, tier, envName, consumerKey, consumerSecret, accessTokenKey, accessTokenSecret, accessTokenUrl, accessKey, originator, brandColor, fixedIntroPane, conversationColor, actionColor, displayStyle, buttonIconUrl, buttonWidth, buttonHeight, integrationOrder, businessName, businessIconUrl, backgroundImageUrl, originWhitelist].hash
540
550
  end
541
551
 
542
552
  # 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.7
6
+ OpenAPI spec version: 5.8
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.7
6
+ OpenAPI spec version: 5.8
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.7
6
+ OpenAPI spec version: 5.8
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.7
6
+ OpenAPI spec version: 5.8
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.7
6
+ OpenAPI spec version: 5.8
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.7
6
+ OpenAPI spec version: 5.8
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3-SNAPSHOT
@@ -18,7 +18,7 @@ module SmoochApi
18
18
  # The integration ID.
19
19
  attr_accessor :integrationId
20
20
 
21
- # The integration type. See Enums.md for available values.
21
+ # The integration type. See [**IntegrationTypeEnum**](Enums.md#IntegrationTypeEnum) for available values.
22
22
  attr_accessor :type
23
23
 
24
24
  # The link request code.
@@ -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.7
6
+ OpenAPI spec version: 5.8
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,196 @@
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.8
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 ListDeploymentsResponse
18
+ # The list of deployments.
19
+ attr_accessor :deployments
20
+
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'deployments' => :'deployments'
26
+ }
27
+ end
28
+
29
+ # Attribute type mapping.
30
+ def self.swagger_types
31
+ {
32
+ :'deployments' => :'Array<Deployment>'
33
+ }
34
+ end
35
+
36
+ # Initializes the object
37
+ # @param [Hash] attributes Model attributes in the form of hash
38
+ def initialize(attributes = {})
39
+ return unless attributes.is_a?(Hash)
40
+
41
+ # convert string to symbol for hash key
42
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
43
+
44
+ if attributes.has_key?(:'deployments')
45
+ if (value = attributes[:'deployments']).is_a?(Array)
46
+ self.deployments = value
47
+ end
48
+ end
49
+
50
+ end
51
+
52
+ # Show invalid properties with the reasons. Usually used together with valid?
53
+ # @return Array for valid properies with the reasons
54
+ def list_invalid_properties
55
+ invalid_properties = Array.new
56
+ if @deployments.nil?
57
+ invalid_properties.push("invalid value for 'deployments', deployments cannot be nil.")
58
+ end
59
+
60
+ return invalid_properties
61
+ end
62
+
63
+ # Check to see if the all the properties in the model are valid
64
+ # @return true if the model is valid
65
+ def valid?
66
+ return false if @deployments.nil?
67
+ return true
68
+ end
69
+
70
+ # Checks equality by comparing each attribute.
71
+ # @param [Object] Object to be compared
72
+ def ==(o)
73
+ return true if self.equal?(o)
74
+ self.class == o.class &&
75
+ deployments == o.deployments
76
+ end
77
+
78
+ # @see the `==` method
79
+ # @param [Object] Object to be compared
80
+ def eql?(o)
81
+ self == o
82
+ end
83
+
84
+ # Calculates hash code according to all attributes.
85
+ # @return [Fixnum] Hash code
86
+ def hash
87
+ [deployments].hash
88
+ end
89
+
90
+ # Builds the object from hash
91
+ # @param [Hash] attributes Model attributes in the form of hash
92
+ # @return [Object] Returns the model itself
93
+ def build_from_hash(attributes)
94
+ return nil unless attributes.is_a?(Hash)
95
+ self.class.swagger_types.each_pair do |key, type|
96
+ if type =~ /\AArray<(.*)>/i
97
+ # check to ensure the input is an array given that the the attribute
98
+ # is documented as an array but the input is not
99
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
100
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
101
+ end
102
+ elsif !attributes[self.class.attribute_map[key]].nil?
103
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
104
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
105
+ end
106
+
107
+ self
108
+ end
109
+
110
+ # Deserializes the data based on type
111
+ # @param string type Data type
112
+ # @param string value Value to be deserialized
113
+ # @return [Object] Deserialized data
114
+ def _deserialize(type, value)
115
+ case type.to_sym
116
+ when :DateTime
117
+ DateTime.parse(value)
118
+ when :Date
119
+ Date.parse(value)
120
+ when :String
121
+ value.to_s
122
+ when :Integer
123
+ value.to_i
124
+ when :Float
125
+ value.to_f
126
+ when :BOOLEAN
127
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
128
+ true
129
+ else
130
+ false
131
+ end
132
+ when :Object
133
+ # generic object (usually a Hash), return directly
134
+ value
135
+ when /\AArray<(?<inner_type>.+)>\z/
136
+ inner_type = Regexp.last_match[:inner_type]
137
+ value.map { |v| _deserialize(inner_type, v) }
138
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
139
+ k_type = Regexp.last_match[:k_type]
140
+ v_type = Regexp.last_match[:v_type]
141
+ {}.tap do |hash|
142
+ value.each do |k, v|
143
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
144
+ end
145
+ end
146
+ else # model
147
+ temp_model = SmoochApi.const_get(type).new
148
+ temp_model.build_from_hash(value)
149
+ end
150
+ end
151
+
152
+ # Returns the string representation of the object
153
+ # @return [String] String presentation of the object
154
+ def to_s
155
+ to_hash.to_s
156
+ end
157
+
158
+ # to_body is an alias to to_hash (backward compatibility)
159
+ # @return [Hash] Returns the object in the form of hash
160
+ def to_body
161
+ to_hash
162
+ end
163
+
164
+ # Returns the object in the form of hash
165
+ # @return [Hash] Returns the object in the form of hash
166
+ def to_hash
167
+ hash = {}
168
+ self.class.attribute_map.each_pair do |attr, param|
169
+ value = self.send(attr)
170
+ next if value.nil?
171
+ hash[param] = _to_hash(value)
172
+ end
173
+ hash
174
+ end
175
+
176
+ # Outputs non-array value in the form of hash
177
+ # For object, use to_hash. Otherwise, just return the value
178
+ # @param [Object] value Any valid value
179
+ # @return [Hash] Returns the value in the form of hash
180
+ def _to_hash(value)
181
+ if value.is_a?(Array)
182
+ value.compact.map{ |v| _to_hash(v) }
183
+ elsif value.is_a?(Hash)
184
+ {}.tap do |hash|
185
+ value.each { |k, v| hash[k] = _to_hash(v) }
186
+ end
187
+ elsif value.respond_to? :to_hash
188
+ value.to_hash
189
+ else
190
+ value
191
+ end
192
+ end
193
+
194
+ end
195
+
196
+ 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.7
6
+ OpenAPI spec version: 5.8
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.7
6
+ OpenAPI spec version: 5.8
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.7
6
+ OpenAPI spec version: 5.8
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.7
6
+ OpenAPI spec version: 5.8
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.7
6
+ OpenAPI spec version: 5.8
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.7
6
+ OpenAPI spec version: 5.8
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.7
6
+ OpenAPI spec version: 5.8
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3-SNAPSHOT
@@ -21,7 +21,7 @@ module SmoochApi
21
21
  # A valid address, like http://smooch.io. Required for a link type item.
22
22
  attr_accessor :uri
23
23
 
24
- # Can either be link, postback, which correspond to Smooch’s link and postback actions, or submenu for nested menus. See Enums.md for available values.
24
+ # Can either be link, postback, which correspond to Smooch’s link and postback actions, or submenu for nested menus. See [**MenuItemTypeEnum**](Enums.md#MenuItemTypeEnum) for available values.
25
25
  attr_accessor :type
26
26
 
27
27
  # A payload for a postback. Required for a postback type item.
@@ -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.7
6
+ OpenAPI spec version: 5.8
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3-SNAPSHOT