sunshine-conversations-client 9.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG_RB.md +12 -0
- data/Gemfile +9 -0
- data/LICENSE +176 -0
- data/README.md +456 -0
- data/Rakefile +10 -0
- data/docs/AcceptControlBody.md +17 -0
- data/docs/Action.md +41 -0
- data/docs/ActionSubset.md +39 -0
- data/docs/ActivitiesApi.md +71 -0
- data/docs/Activity.md +21 -0
- data/docs/ActivityAllOf.md +19 -0
- data/docs/ActivityPost.md +19 -0
- data/docs/ActivityPostAllOf.md +17 -0
- data/docs/ActivityTypes.md +17 -0
- data/docs/Android.md +23 -0
- data/docs/AndroidAllOf.md +23 -0
- data/docs/AndroidUpdate.md +23 -0
- data/docs/AndroidUpdateAllOf.md +21 -0
- data/docs/ApiKey.md +21 -0
- data/docs/App.md +23 -0
- data/docs/AppCreateBody.md +21 -0
- data/docs/AppKey.md +21 -0
- data/docs/AppKeyCreateBody.md +17 -0
- data/docs/AppKeyListResponse.md +17 -0
- data/docs/AppKeyResponse.md +17 -0
- data/docs/AppKeysApi.md +250 -0
- data/docs/AppListFilter.md +17 -0
- data/docs/AppListResponse.md +21 -0
- data/docs/AppResponse.md +17 -0
- data/docs/AppSettings.md +31 -0
- data/docs/AppSubSchema.md +17 -0
- data/docs/AppUpdateBody.md +21 -0
- data/docs/Apple.md +23 -0
- data/docs/AppleAllOf.md +23 -0
- data/docs/AppleUpdate.md +16 -0
- data/docs/AppsApi.md +309 -0
- data/docs/AttachmentDeleteBody.md +17 -0
- data/docs/AttachmentMediaTokenBody.md +17 -0
- data/docs/AttachmentMediaTokenResponse.md +17 -0
- data/docs/AttachmentResponse.md +17 -0
- data/docs/AttachmentSchema.md +19 -0
- data/docs/AttachmentUploadBody.md +17 -0
- data/docs/AttachmentsApi.md +254 -0
- data/docs/Author.md +25 -0
- data/docs/AuthorWebhook.md +21 -0
- data/docs/Buy.md +25 -0
- data/docs/CarouselMessage.md +23 -0
- data/docs/CarouselMessageDisplaySettings.md +17 -0
- data/docs/Client.md +37 -0
- data/docs/ClientAssociation.md +19 -0
- data/docs/ClientCreate.md +21 -0
- data/docs/ClientListResponse.md +21 -0
- data/docs/ClientResponse.md +17 -0
- data/docs/ClientType.md +16 -0
- data/docs/ClientsApi.md +199 -0
- data/docs/Confirmation.md +19 -0
- data/docs/Content.md +41 -0
- data/docs/Conversation.md +37 -0
- data/docs/ConversationAllOf.md +29 -0
- data/docs/ConversationCreateBody.md +27 -0
- data/docs/ConversationCreateEvent.md +23 -0
- data/docs/ConversationCreateEventAllOf.md +17 -0
- data/docs/ConversationCreateEventAllOfPayload.md +25 -0
- data/docs/ConversationListFilter.md +19 -0
- data/docs/ConversationListResponse.md +21 -0
- data/docs/ConversationMessageDeliveryChannelEvent.md +23 -0
- data/docs/ConversationMessageDeliveryChannelEventAllOf.md +17 -0
- data/docs/ConversationMessageDeliveryFailureEvent.md +23 -0
- data/docs/ConversationMessageDeliveryFailureEventAllOf.md +17 -0
- data/docs/ConversationMessageDeliveryPayload.md +27 -0
- data/docs/ConversationMessageDeliveryPayloadDestination.md +19 -0
- data/docs/ConversationMessageDeliveryPayloadExternalMessages.md +17 -0
- data/docs/ConversationMessageDeliveryPayloadMessage.md +17 -0
- data/docs/ConversationMessageDeliveryUserEvent.md +23 -0
- data/docs/ConversationMessageEvent.md +23 -0
- data/docs/ConversationMessageEventAllOf.md +17 -0
- data/docs/ConversationMessageEventAllOfPayload.md +21 -0
- data/docs/ConversationPostbackEvent.md +23 -0
- data/docs/ConversationPostbackEventAllOf.md +17 -0
- data/docs/ConversationPostbackEventAllOfPayload.md +23 -0
- data/docs/ConversationReadEvent.md +23 -0
- data/docs/ConversationReadEventAllOf.md +17 -0
- data/docs/ConversationReadEventAllOfPayload.md +19 -0
- data/docs/ConversationResponse.md +17 -0
- data/docs/ConversationTruncated.md +23 -0
- data/docs/ConversationType.md +16 -0
- data/docs/ConversationTypingEvent.md +23 -0
- data/docs/ConversationTypingEventAllOf.md +17 -0
- data/docs/ConversationTypingEventAllOfPayload.md +19 -0
- data/docs/ConversationUpdateBody.md +23 -0
- data/docs/ConversationsApi.md +319 -0
- data/docs/Custom.md +19 -0
- data/docs/CustomAllOf.md +19 -0
- data/docs/CustomIntegrationApiKeysApi.md +258 -0
- data/docs/CustomUpdate.md +16 -0
- data/docs/Destination.md +19 -0
- data/docs/Device.md +35 -0
- data/docs/EventSubSchema.md +21 -0
- data/docs/ExtraChannelOptions.md +17 -0
- data/docs/ExtraChannelOptionsMessenger.md +19 -0
- data/docs/Field.md +35 -0
- data/docs/FileMessage.md +25 -0
- data/docs/FormMessage.md +21 -0
- data/docs/FormResponseMessage.md +21 -0
- data/docs/ImageMessage.md +23 -0
- data/docs/InlineObject.md +23 -0
- data/docs/Integration.md +23 -0
- data/docs/IntegrationApiKey.md +17 -0
- data/docs/IntegrationApiKeyListResponse.md +17 -0
- data/docs/IntegrationApiKeyResponse.md +17 -0
- data/docs/IntegrationId.md +17 -0
- data/docs/IntegrationListFilter.md +17 -0
- data/docs/IntegrationListResponse.md +21 -0
- data/docs/IntegrationResponse.md +17 -0
- data/docs/IntegrationType.md +17 -0
- data/docs/IntegrationUpdate.md +71 -0
- data/docs/IntegrationUpdateBase.md +17 -0
- data/docs/IntegrationsApi.md +319 -0
- data/docs/Ios.md +27 -0
- data/docs/IosAllOf.md +27 -0
- data/docs/IosUpdate.md +27 -0
- data/docs/IosUpdateAllOf.md +25 -0
- data/docs/Item.md +29 -0
- data/docs/Line.md +31 -0
- data/docs/LineAllOf.md +31 -0
- data/docs/LineUpdate.md +16 -0
- data/docs/Link.md +27 -0
- data/docs/Links.md +19 -0
- data/docs/ListMessage.md +21 -0
- data/docs/LocationMessage.md +23 -0
- data/docs/LocationMessageCoordinates.md +19 -0
- data/docs/LocationMessageLocation.md +19 -0
- data/docs/LocationRequest.md +21 -0
- data/docs/Mailgun.md +27 -0
- data/docs/MailgunAllOf.md +27 -0
- data/docs/MailgunUpdate.md +21 -0
- data/docs/MailgunUpdateAllOf.md +19 -0
- data/docs/MatchCriteria.md +27 -0
- data/docs/MatchCriteriaBase.md +21 -0
- data/docs/MatchCriteriaMailgun.md +25 -0
- data/docs/MatchCriteriaMailgunAllOf.md +21 -0
- data/docs/MatchCriteriaMessagebird.md +23 -0
- data/docs/MatchCriteriaMessagebirdAllOf.md +19 -0
- data/docs/MatchCriteriaTwilio.md +23 -0
- data/docs/MatchCriteriaTwilioAllOf.md +19 -0
- data/docs/MatchCriteriaWhatsapp.md +23 -0
- data/docs/MatchCriteriaWhatsappAllOf.md +19 -0
- data/docs/Message.md +31 -0
- data/docs/MessageBirdUpdate.md +16 -0
- data/docs/MessageListResponse.md +21 -0
- data/docs/MessageOverride.md +23 -0
- data/docs/MessageOverrideApple.md +17 -0
- data/docs/MessageOverrideLine.md +17 -0
- data/docs/MessageOverrideMessenger.md +17 -0
- data/docs/MessageOverridePayload.md +17 -0
- data/docs/MessageOverrideWhatsapp.md +17 -0
- data/docs/MessagePost.md +27 -0
- data/docs/MessagePostResponse.md +17 -0
- data/docs/MessageWebhook.md +31 -0
- data/docs/Messagebird.md +25 -0
- data/docs/MessagebirdAllOf.md +25 -0
- data/docs/MessagesApi.md +260 -0
- data/docs/Messenger.md +23 -0
- data/docs/MessengerAllOf.md +23 -0
- data/docs/MessengerUpdate.md +19 -0
- data/docs/MessengerUpdateAllOf.md +17 -0
- data/docs/Meta.md +21 -0
- data/docs/OAuthEndpointsApi.md +168 -0
- data/docs/OfferControlBody.md +19 -0
- data/docs/Page.md +21 -0
- data/docs/Participant.md +27 -0
- data/docs/ParticipantJoinBody.md +16 -0
- data/docs/ParticipantLeaveBody.md +21 -0
- data/docs/ParticipantLeaveBodyParticipantId.md +17 -0
- data/docs/ParticipantLeaveBodyUserExternalId.md +17 -0
- data/docs/ParticipantLeaveBodyUserId.md +17 -0
- data/docs/ParticipantListResponse.md +21 -0
- data/docs/ParticipantResponse.md +17 -0
- data/docs/ParticipantSubSchema.md +21 -0
- data/docs/ParticipantWithUserExternalId.md +19 -0
- data/docs/ParticipantWithUserId.md +19 -0
- data/docs/ParticipantsApi.md +199 -0
- data/docs/PassControlBody.md +19 -0
- data/docs/Postback.md +23 -0
- data/docs/PostbackWebhook.md +19 -0
- data/docs/PrechatCapture.md +23 -0
- data/docs/Profile.md +23 -0
- data/docs/QuotedMessage.md +21 -0
- data/docs/QuotedMessageExternalMessageId.md +19 -0
- data/docs/QuotedMessageMessage.md +19 -0
- data/docs/Referral.md +19 -0
- data/docs/ReferralDetails.md +21 -0
- data/docs/Reply.md +25 -0
- data/docs/Source.md +27 -0
- data/docs/SourceWebhook.md +27 -0
- data/docs/Status.md +16 -0
- data/docs/Switchboard.md +21 -0
- data/docs/SwitchboardAcceptControl.md +23 -0
- data/docs/SwitchboardAcceptControlAllOf.md +17 -0
- data/docs/SwitchboardAcceptControlAllOfPayload.md +19 -0
- data/docs/SwitchboardAcceptControlFailure.md +23 -0
- data/docs/SwitchboardAcceptControlFailureAllOf.md +17 -0
- data/docs/SwitchboardAcceptControlFailureAllOfPayload.md +21 -0
- data/docs/SwitchboardActionsApi.md +197 -0
- data/docs/SwitchboardIntegration.md +29 -0
- data/docs/SwitchboardIntegrationCreateBody.md +27 -0
- data/docs/SwitchboardIntegrationListResponse.md +17 -0
- data/docs/SwitchboardIntegrationResponse.md +17 -0
- data/docs/SwitchboardIntegrationUpdateBody.md +27 -0
- data/docs/SwitchboardIntegrationWebhook.md +23 -0
- data/docs/SwitchboardIntegrationsApi.md +260 -0
- data/docs/SwitchboardListResponse.md +17 -0
- data/docs/SwitchboardOfferControl.md +23 -0
- data/docs/SwitchboardOfferControlAllOf.md +17 -0
- data/docs/SwitchboardOfferControlAllOfPayload.md +19 -0
- data/docs/SwitchboardOfferControlFailure.md +23 -0
- data/docs/SwitchboardPassControl.md +23 -0
- data/docs/SwitchboardPassControlAllOf.md +17 -0
- data/docs/SwitchboardPassControlAllOfPayload.md +19 -0
- data/docs/SwitchboardPassControlFailure.md +23 -0
- data/docs/SwitchboardResponse.md +17 -0
- data/docs/SwitchboardUpdateBody.md +19 -0
- data/docs/SwitchboardsApi.md +250 -0
- data/docs/Target.md +17 -0
- data/docs/Telegram.md +23 -0
- data/docs/TelegramAllOf.md +23 -0
- data/docs/TelegramUpdate.md +16 -0
- data/docs/TextMessage.md +21 -0
- data/docs/Twilio.md +23 -0
- data/docs/TwilioAllOf.md +23 -0
- data/docs/TwilioUpdate.md +16 -0
- data/docs/Twitter.md +29 -0
- data/docs/TwitterAllOf.md +29 -0
- data/docs/TwitterUpdate.md +16 -0
- data/docs/User.md +25 -0
- data/docs/UserAllOf.md +21 -0
- data/docs/UserCreateBody.md +23 -0
- data/docs/UserMergeEvent.md +23 -0
- data/docs/UserMergeEventAllOf.md +17 -0
- data/docs/UserMergeEventAllOfPayload.md +21 -0
- data/docs/UserMergeEventAllOfPayloadMergedConversations.md +19 -0
- data/docs/UserMergeEventAllOfPayloadMergedUsers.md +19 -0
- data/docs/UserResponse.md +17 -0
- data/docs/UserTruncated.md +19 -0
- data/docs/UserUpdateBody.md +21 -0
- data/docs/UsersApi.md +315 -0
- data/docs/Viber.md +23 -0
- data/docs/ViberAllOf.md +23 -0
- data/docs/ViberUpdate.md +16 -0
- data/docs/Web.md +47 -0
- data/docs/WebAllOf.md +47 -0
- data/docs/WebUpdate.md +47 -0
- data/docs/WebUpdateAllOf.md +45 -0
- data/docs/Webhook.md +29 -0
- data/docs/WebhookBody.md +23 -0
- data/docs/WebhookCreateBody.md +16 -0
- data/docs/WebhookListResponse.md +17 -0
- data/docs/WebhookResponse.md +17 -0
- data/docs/WebhookSubSchema.md +19 -0
- data/docs/WebhooksApi.md +323 -0
- data/docs/Webview.md +33 -0
- data/docs/WhatsAppUpdate.md +23 -0
- data/docs/WhatsAppUpdateAllOf.md +21 -0
- data/docs/Whatsapp.md +25 -0
- data/docs/WhatsappAllOf.md +25 -0
- data/lib/sunshine-conversations-client.rb +306 -0
- data/lib/sunshine-conversations-client/api/activities_api.rb +95 -0
- data/lib/sunshine-conversations-client/api/app_keys_api.rb +287 -0
- data/lib/sunshine-conversations-client/api/apps_api.rb +339 -0
- data/lib/sunshine-conversations-client/api/attachments_api.rb +305 -0
- data/lib/sunshine-conversations-client/api/clients_api.rb +240 -0
- data/lib/sunshine-conversations-client/api/conversations_api.rb +373 -0
- data/lib/sunshine-conversations-client/api/custom_integration_api_keys_api.rb +311 -0
- data/lib/sunshine-conversations-client/api/integrations_api.rb +369 -0
- data/lib/sunshine-conversations-client/api/messages_api.rb +308 -0
- data/lib/sunshine-conversations-client/api/o_auth_endpoints_api.rb +213 -0
- data/lib/sunshine-conversations-client/api/participants_api.rb +242 -0
- data/lib/sunshine-conversations-client/api/switchboard_actions_api.rb +247 -0
- data/lib/sunshine-conversations-client/api/switchboard_integrations_api.rb +319 -0
- data/lib/sunshine-conversations-client/api/switchboards_api.rb +287 -0
- data/lib/sunshine-conversations-client/api/users_api.rb +369 -0
- data/lib/sunshine-conversations-client/api/webhooks_api.rb +393 -0
- data/lib/sunshine-conversations-client/api_client.rb +348 -0
- data/lib/sunshine-conversations-client/api_error.rb +54 -0
- data/lib/sunshine-conversations-client/configuration.rb +284 -0
- data/lib/sunshine-conversations-client/models/accept_control_body.rb +204 -0
- data/lib/sunshine-conversations-client/models/action.rb +421 -0
- data/lib/sunshine-conversations-client/models/action_subset.rb +409 -0
- data/lib/sunshine-conversations-client/models/activity.rb +265 -0
- data/lib/sunshine-conversations-client/models/activity_all_of.rb +213 -0
- data/lib/sunshine-conversations-client/models/activity_post.rb +266 -0
- data/lib/sunshine-conversations-client/models/activity_post_all_of.rb +204 -0
- data/lib/sunshine-conversations-client/models/activity_types.rb +238 -0
- data/lib/sunshine-conversations-client/models/android.rb +280 -0
- data/lib/sunshine-conversations-client/models/android_all_of.rb +268 -0
- data/lib/sunshine-conversations-client/models/android_update.rb +299 -0
- data/lib/sunshine-conversations-client/models/android_update_all_of.rb +256 -0
- data/lib/sunshine-conversations-client/models/api_key.rb +225 -0
- data/lib/sunshine-conversations-client/models/app.rb +234 -0
- data/lib/sunshine-conversations-client/models/app_create_body.rb +229 -0
- data/lib/sunshine-conversations-client/models/app_key.rb +224 -0
- data/lib/sunshine-conversations-client/models/app_key_create_body.rb +209 -0
- data/lib/sunshine-conversations-client/models/app_key_list_response.rb +203 -0
- data/lib/sunshine-conversations-client/models/app_key_response.rb +204 -0
- data/lib/sunshine-conversations-client/models/app_list_filter.rb +204 -0
- data/lib/sunshine-conversations-client/models/app_list_response.rb +221 -0
- data/lib/sunshine-conversations-client/models/app_response.rb +204 -0
- data/lib/sunshine-conversations-client/models/app_settings.rb +290 -0
- data/lib/sunshine-conversations-client/models/app_sub_schema.rb +205 -0
- data/lib/sunshine-conversations-client/models/app_update_body.rb +224 -0
- data/lib/sunshine-conversations-client/models/apple.rb +263 -0
- data/lib/sunshine-conversations-client/models/apple_all_of.rb +252 -0
- data/lib/sunshine-conversations-client/models/apple_update.rb +205 -0
- data/lib/sunshine-conversations-client/models/attachment_delete_body.rb +209 -0
- data/lib/sunshine-conversations-client/models/attachment_media_token_body.rb +208 -0
- data/lib/sunshine-conversations-client/models/attachment_media_token_response.rb +203 -0
- data/lib/sunshine-conversations-client/models/attachment_response.rb +204 -0
- data/lib/sunshine-conversations-client/models/attachment_schema.rb +214 -0
- data/lib/sunshine-conversations-client/models/attachment_upload_body.rb +208 -0
- data/lib/sunshine-conversations-client/models/author.rb +284 -0
- data/lib/sunshine-conversations-client/models/author_webhook.rb +264 -0
- data/lib/sunshine-conversations-client/models/buy.rb +262 -0
- data/lib/sunshine-conversations-client/models/carousel_message.rb +245 -0
- data/lib/sunshine-conversations-client/models/carousel_message_display_settings.rb +239 -0
- data/lib/sunshine-conversations-client/models/client.rb +345 -0
- data/lib/sunshine-conversations-client/models/client_association.rb +213 -0
- data/lib/sunshine-conversations-client/models/client_create.rb +236 -0
- data/lib/sunshine-conversations-client/models/client_list_response.rb +221 -0
- data/lib/sunshine-conversations-client/models/client_response.rb +203 -0
- data/lib/sunshine-conversations-client/models/client_type.rb +42 -0
- data/lib/sunshine-conversations-client/models/confirmation.rb +254 -0
- data/lib/sunshine-conversations-client/models/content.rb +380 -0
- data/lib/sunshine-conversations-client/models/conversation.rb +366 -0
- data/lib/sunshine-conversations-client/models/conversation_all_of.rb +317 -0
- data/lib/sunshine-conversations-client/models/conversation_create_body.rb +308 -0
- data/lib/sunshine-conversations-client/models/conversation_create_event.rb +241 -0
- data/lib/sunshine-conversations-client/models/conversation_create_event_all_of.rb +203 -0
- data/lib/sunshine-conversations-client/models/conversation_create_event_all_of_payload.rb +281 -0
- data/lib/sunshine-conversations-client/models/conversation_list_filter.rb +214 -0
- data/lib/sunshine-conversations-client/models/conversation_list_response.rb +221 -0
- data/lib/sunshine-conversations-client/models/conversation_message_delivery_channel_event.rb +241 -0
- data/lib/sunshine-conversations-client/models/conversation_message_delivery_channel_event_all_of.rb +203 -0
- data/lib/sunshine-conversations-client/models/conversation_message_delivery_failure_event.rb +241 -0
- data/lib/sunshine-conversations-client/models/conversation_message_delivery_failure_event_all_of.rb +203 -0
- data/lib/sunshine-conversations-client/models/conversation_message_delivery_payload.rb +253 -0
- data/lib/sunshine-conversations-client/models/conversation_message_delivery_payload_destination.rb +215 -0
- data/lib/sunshine-conversations-client/models/conversation_message_delivery_payload_external_messages.rb +204 -0
- data/lib/sunshine-conversations-client/models/conversation_message_delivery_payload_message.rb +205 -0
- data/lib/sunshine-conversations-client/models/conversation_message_delivery_user_event.rb +241 -0
- data/lib/sunshine-conversations-client/models/conversation_message_event.rb +241 -0
- data/lib/sunshine-conversations-client/models/conversation_message_event_all_of.rb +203 -0
- data/lib/sunshine-conversations-client/models/conversation_message_event_all_of_payload.rb +224 -0
- data/lib/sunshine-conversations-client/models/conversation_postback_event.rb +241 -0
- data/lib/sunshine-conversations-client/models/conversation_postback_event_all_of.rb +203 -0
- data/lib/sunshine-conversations-client/models/conversation_postback_event_all_of_payload.rb +235 -0
- data/lib/sunshine-conversations-client/models/conversation_read_event.rb +241 -0
- data/lib/sunshine-conversations-client/models/conversation_read_event_all_of.rb +203 -0
- data/lib/sunshine-conversations-client/models/conversation_read_event_all_of_payload.rb +215 -0
- data/lib/sunshine-conversations-client/models/conversation_response.rb +204 -0
- data/lib/sunshine-conversations-client/models/conversation_truncated.rb +235 -0
- data/lib/sunshine-conversations-client/models/conversation_type.rb +33 -0
- data/lib/sunshine-conversations-client/models/conversation_typing_event.rb +241 -0
- data/lib/sunshine-conversations-client/models/conversation_typing_event_all_of.rb +203 -0
- data/lib/sunshine-conversations-client/models/conversation_typing_event_all_of_payload.rb +215 -0
- data/lib/sunshine-conversations-client/models/conversation_update_body.rb +285 -0
- data/lib/sunshine-conversations-client/models/custom.rb +232 -0
- data/lib/sunshine-conversations-client/models/custom_all_of.rb +220 -0
- data/lib/sunshine-conversations-client/models/custom_update.rb +205 -0
- data/lib/sunshine-conversations-client/models/destination.rb +239 -0
- data/lib/sunshine-conversations-client/models/device.rb +343 -0
- data/lib/sunshine-conversations-client/models/event_sub_schema.rb +224 -0
- data/lib/sunshine-conversations-client/models/extra_channel_options.rb +204 -0
- data/lib/sunshine-conversations-client/models/extra_channel_options_messenger.rb +251 -0
- data/lib/sunshine-conversations-client/models/field.rb +522 -0
- data/lib/sunshine-conversations-client/models/file_message.rb +256 -0
- data/lib/sunshine-conversations-client/models/form_message.rb +236 -0
- data/lib/sunshine-conversations-client/models/form_response_message.rb +236 -0
- data/lib/sunshine-conversations-client/models/image_message.rb +245 -0
- data/lib/sunshine-conversations-client/models/inline_object.rb +254 -0
- data/lib/sunshine-conversations-client/models/integration.rb +260 -0
- data/lib/sunshine-conversations-client/models/integration_api_key.rb +209 -0
- data/lib/sunshine-conversations-client/models/integration_api_key_list_response.rb +203 -0
- data/lib/sunshine-conversations-client/models/integration_api_key_response.rb +203 -0
- data/lib/sunshine-conversations-client/models/integration_id.rb +204 -0
- data/lib/sunshine-conversations-client/models/integration_list_filter.rb +204 -0
- data/lib/sunshine-conversations-client/models/integration_list_response.rb +221 -0
- data/lib/sunshine-conversations-client/models/integration_response.rb +203 -0
- data/lib/sunshine-conversations-client/models/integration_type.rb +204 -0
- data/lib/sunshine-conversations-client/models/integration_update.rb +619 -0
- data/lib/sunshine-conversations-client/models/integration_update_base.rb +229 -0
- data/lib/sunshine-conversations-client/models/ios.rb +284 -0
- data/lib/sunshine-conversations-client/models/ios_all_of.rb +272 -0
- data/lib/sunshine-conversations-client/models/ios_update.rb +303 -0
- data/lib/sunshine-conversations-client/models/ios_update_all_of.rb +260 -0
- data/lib/sunshine-conversations-client/models/item.rb +381 -0
- data/lib/sunshine-conversations-client/models/line.rb +313 -0
- data/lib/sunshine-conversations-client/models/line_all_of.rb +302 -0
- data/lib/sunshine-conversations-client/models/line_update.rb +205 -0
- data/lib/sunshine-conversations-client/models/link.rb +272 -0
- data/lib/sunshine-conversations-client/models/links.rb +215 -0
- data/lib/sunshine-conversations-client/models/list_message.rb +235 -0
- data/lib/sunshine-conversations-client/models/location_message.rb +245 -0
- data/lib/sunshine-conversations-client/models/location_message_coordinates.rb +225 -0
- data/lib/sunshine-conversations-client/models/location_message_location.rb +215 -0
- data/lib/sunshine-conversations-client/models/location_request.rb +238 -0
- data/lib/sunshine-conversations-client/models/mailgun.rb +356 -0
- data/lib/sunshine-conversations-client/models/mailgun_all_of.rb +345 -0
- data/lib/sunshine-conversations-client/models/mailgun_update.rb +273 -0
- data/lib/sunshine-conversations-client/models/mailgun_update_all_of.rb +230 -0
- data/lib/sunshine-conversations-client/models/match_criteria.rb +312 -0
- data/lib/sunshine-conversations-client/models/match_criteria_base.rb +237 -0
- data/lib/sunshine-conversations-client/models/match_criteria_mailgun.rb +273 -0
- data/lib/sunshine-conversations-client/models/match_criteria_mailgun_all_of.rb +234 -0
- data/lib/sunshine-conversations-client/models/match_criteria_messagebird.rb +261 -0
- data/lib/sunshine-conversations-client/models/match_criteria_messagebird_all_of.rb +222 -0
- data/lib/sunshine-conversations-client/models/match_criteria_twilio.rb +261 -0
- data/lib/sunshine-conversations-client/models/match_criteria_twilio_all_of.rb +222 -0
- data/lib/sunshine-conversations-client/models/match_criteria_whatsapp.rb +261 -0
- data/lib/sunshine-conversations-client/models/match_criteria_whatsapp_all_of.rb +222 -0
- data/lib/sunshine-conversations-client/models/message.rb +274 -0
- data/lib/sunshine-conversations-client/models/message_bird_update.rb +205 -0
- data/lib/sunshine-conversations-client/models/message_list_response.rb +221 -0
- data/lib/sunshine-conversations-client/models/message_override.rb +253 -0
- data/lib/sunshine-conversations-client/models/message_override_apple.rb +203 -0
- data/lib/sunshine-conversations-client/models/message_override_line.rb +203 -0
- data/lib/sunshine-conversations-client/models/message_override_messenger.rb +203 -0
- data/lib/sunshine-conversations-client/models/message_override_payload.rb +204 -0
- data/lib/sunshine-conversations-client/models/message_override_whatsapp.rb +203 -0
- data/lib/sunshine-conversations-client/models/message_post.rb +263 -0
- data/lib/sunshine-conversations-client/models/message_post_response.rb +203 -0
- data/lib/sunshine-conversations-client/models/message_webhook.rb +274 -0
- data/lib/sunshine-conversations-client/models/messagebird.rb +330 -0
- data/lib/sunshine-conversations-client/models/messagebird_all_of.rb +319 -0
- data/lib/sunshine-conversations-client/models/messenger.rb +263 -0
- data/lib/sunshine-conversations-client/models/messenger_all_of.rb +252 -0
- data/lib/sunshine-conversations-client/models/messenger_update.rb +247 -0
- data/lib/sunshine-conversations-client/models/messenger_update_all_of.rb +204 -0
- data/lib/sunshine-conversations-client/models/meta.rb +225 -0
- data/lib/sunshine-conversations-client/models/offer_control_body.rb +219 -0
- data/lib/sunshine-conversations-client/models/page.rb +250 -0
- data/lib/sunshine-conversations-client/models/participant.rb +255 -0
- data/lib/sunshine-conversations-client/models/participant_join_body.rb +205 -0
- data/lib/sunshine-conversations-client/models/participant_leave_body.rb +249 -0
- data/lib/sunshine-conversations-client/models/participant_leave_body_participant_id.rb +204 -0
- data/lib/sunshine-conversations-client/models/participant_leave_body_user_external_id.rb +204 -0
- data/lib/sunshine-conversations-client/models/participant_leave_body_user_id.rb +204 -0
- data/lib/sunshine-conversations-client/models/participant_list_response.rb +221 -0
- data/lib/sunshine-conversations-client/models/participant_response.rb +204 -0
- data/lib/sunshine-conversations-client/models/participant_sub_schema.rb +244 -0
- data/lib/sunshine-conversations-client/models/participant_with_user_external_id.rb +214 -0
- data/lib/sunshine-conversations-client/models/participant_with_user_id.rb +214 -0
- data/lib/sunshine-conversations-client/models/pass_control_body.rb +219 -0
- data/lib/sunshine-conversations-client/models/postback.rb +252 -0
- data/lib/sunshine-conversations-client/models/postback_webhook.rb +215 -0
- data/lib/sunshine-conversations-client/models/prechat_capture.rb +239 -0
- data/lib/sunshine-conversations-client/models/profile.rb +335 -0
- data/lib/sunshine-conversations-client/models/quoted_message.rb +249 -0
- data/lib/sunshine-conversations-client/models/quoted_message_external_message_id.rb +216 -0
- data/lib/sunshine-conversations-client/models/quoted_message_message.rb +215 -0
- data/lib/sunshine-conversations-client/models/referral.rb +214 -0
- data/lib/sunshine-conversations-client/models/referral_details.rb +226 -0
- data/lib/sunshine-conversations-client/models/reply.rb +260 -0
- data/lib/sunshine-conversations-client/models/source.rb +265 -0
- data/lib/sunshine-conversations-client/models/source_webhook.rb +258 -0
- data/lib/sunshine-conversations-client/models/status.rb +34 -0
- data/lib/sunshine-conversations-client/models/switchboard.rb +234 -0
- data/lib/sunshine-conversations-client/models/switchboard_accept_control.rb +241 -0
- data/lib/sunshine-conversations-client/models/switchboard_accept_control_all_of.rb +203 -0
- data/lib/sunshine-conversations-client/models/switchboard_accept_control_all_of_payload.rb +216 -0
- data/lib/sunshine-conversations-client/models/switchboard_accept_control_failure.rb +241 -0
- data/lib/sunshine-conversations-client/models/switchboard_accept_control_failure_all_of.rb +203 -0
- data/lib/sunshine-conversations-client/models/switchboard_accept_control_failure_all_of_payload.rb +226 -0
- data/lib/sunshine-conversations-client/models/switchboard_integration.rb +333 -0
- data/lib/sunshine-conversations-client/models/switchboard_integration_create_body.rb +302 -0
- data/lib/sunshine-conversations-client/models/switchboard_integration_list_response.rb +203 -0
- data/lib/sunshine-conversations-client/models/switchboard_integration_response.rb +204 -0
- data/lib/sunshine-conversations-client/models/switchboard_integration_update_body.rb +294 -0
- data/lib/sunshine-conversations-client/models/switchboard_integration_webhook.rb +249 -0
- data/lib/sunshine-conversations-client/models/switchboard_list_response.rb +203 -0
- data/lib/sunshine-conversations-client/models/switchboard_offer_control.rb +241 -0
- data/lib/sunshine-conversations-client/models/switchboard_offer_control_all_of.rb +203 -0
- data/lib/sunshine-conversations-client/models/switchboard_offer_control_all_of_payload.rb +216 -0
- data/lib/sunshine-conversations-client/models/switchboard_offer_control_failure.rb +241 -0
- data/lib/sunshine-conversations-client/models/switchboard_pass_control.rb +241 -0
- data/lib/sunshine-conversations-client/models/switchboard_pass_control_all_of.rb +203 -0
- data/lib/sunshine-conversations-client/models/switchboard_pass_control_all_of_payload.rb +216 -0
- data/lib/sunshine-conversations-client/models/switchboard_pass_control_failure.rb +241 -0
- data/lib/sunshine-conversations-client/models/switchboard_response.rb +204 -0
- data/lib/sunshine-conversations-client/models/switchboard_update_body.rb +214 -0
- data/lib/sunshine-conversations-client/models/target.rb +210 -0
- data/lib/sunshine-conversations-client/models/telegram.rb +272 -0
- data/lib/sunshine-conversations-client/models/telegram_all_of.rb +261 -0
- data/lib/sunshine-conversations-client/models/telegram_update.rb +205 -0
- data/lib/sunshine-conversations-client/models/text_message.rb +245 -0
- data/lib/sunshine-conversations-client/models/twilio.rb +301 -0
- data/lib/sunshine-conversations-client/models/twilio_all_of.rb +290 -0
- data/lib/sunshine-conversations-client/models/twilio_update.rb +205 -0
- data/lib/sunshine-conversations-client/models/twitter.rb +419 -0
- data/lib/sunshine-conversations-client/models/twitter_all_of.rb +408 -0
- data/lib/sunshine-conversations-client/models/twitter_update.rb +205 -0
- data/lib/sunshine-conversations-client/models/user.rb +250 -0
- data/lib/sunshine-conversations-client/models/user_all_of.rb +221 -0
- data/lib/sunshine-conversations-client/models/user_create_body.rb +267 -0
- data/lib/sunshine-conversations-client/models/user_merge_event.rb +241 -0
- data/lib/sunshine-conversations-client/models/user_merge_event_all_of.rb +203 -0
- data/lib/sunshine-conversations-client/models/user_merge_event_all_of_payload.rb +225 -0
- data/lib/sunshine-conversations-client/models/user_merge_event_all_of_payload_merged_conversations.rb +215 -0
- data/lib/sunshine-conversations-client/models/user_merge_event_all_of_payload_merged_users.rb +215 -0
- data/lib/sunshine-conversations-client/models/user_response.rb +204 -0
- data/lib/sunshine-conversations-client/models/user_truncated.rb +215 -0
- data/lib/sunshine-conversations-client/models/user_update_body.rb +223 -0
- data/lib/sunshine-conversations-client/models/viber.rb +272 -0
- data/lib/sunshine-conversations-client/models/viber_all_of.rb +261 -0
- data/lib/sunshine-conversations-client/models/viber_update.rb +205 -0
- data/lib/sunshine-conversations-client/models/web.rb +383 -0
- data/lib/sunshine-conversations-client/models/web_all_of.rb +372 -0
- data/lib/sunshine-conversations-client/models/web_update.rb +402 -0
- data/lib/sunshine-conversations-client/models/web_update_all_of.rb +360 -0
- data/lib/sunshine-conversations-client/models/webhook.rb +277 -0
- data/lib/sunshine-conversations-client/models/webhook_body.rb +237 -0
- data/lib/sunshine-conversations-client/models/webhook_create_body.rb +205 -0
- data/lib/sunshine-conversations-client/models/webhook_list_response.rb +203 -0
- data/lib/sunshine-conversations-client/models/webhook_response.rb +204 -0
- data/lib/sunshine-conversations-client/models/webhook_sub_schema.rb +215 -0
- data/lib/sunshine-conversations-client/models/webview.rb +339 -0
- data/lib/sunshine-conversations-client/models/whats_app_update.rb +272 -0
- data/lib/sunshine-conversations-client/models/whats_app_update_all_of.rb +229 -0
- data/lib/sunshine-conversations-client/models/whatsapp.rb +268 -0
- data/lib/sunshine-conversations-client/models/whatsapp_all_of.rb +257 -0
- data/lib/sunshine-conversations-client/version.rb +12 -0
- data/spec/api_client_spec.rb +223 -0
- data/spec/configuration_spec.rb +39 -0
- data/spec/spec_helper.rb +108 -0
- data/sunshine-conversations-client.gemspec +36 -0
- metadata +641 -0
@@ -0,0 +1,383 @@
|
|
1
|
+
=begin
|
2
|
+
#Sunshine Conversations API
|
3
|
+
|
4
|
+
The version of the OpenAPI document: 9.1.0
|
5
|
+
|
6
|
+
Generated by: https://openapi-generator.tech
|
7
|
+
OpenAPI Generator version: 4.3.1
|
8
|
+
=end
|
9
|
+
|
10
|
+
require 'date'
|
11
|
+
|
12
|
+
module SunshineConversationsClient
|
13
|
+
class Web < Integration
|
14
|
+
# The type of integration.
|
15
|
+
attr_accessor :type
|
16
|
+
|
17
|
+
# This color will be used in the messenger header and the button or tab in idle state. Must be a 3 or 6-character hexadecimal color.
|
18
|
+
attr_accessor :brand_color
|
19
|
+
|
20
|
+
# When true, the introduction pane will be pinned at the top of the conversation instead of scrolling with it.
|
21
|
+
attr_accessor :fixed_intro_pane
|
22
|
+
|
23
|
+
# This color will be used for customer messages, quick replies and actions in the footer. Must be a 3 or 6-character hexadecimal color.
|
24
|
+
attr_accessor :conversation_color
|
25
|
+
|
26
|
+
# This color will be used for call-to-actions inside your messages. Must be a 3 or 6-character hexadecimal color.
|
27
|
+
attr_accessor :action_color
|
28
|
+
|
29
|
+
# Choose how the messenger will appear on your website. Must be either button or tab.
|
30
|
+
attr_accessor :display_style
|
31
|
+
|
32
|
+
# With the button style Web Messenger, you have the option of selecting your own button icon. The image must be at least 200 x 200 pixels and must be in either JPG, PNG, or GIF format.
|
33
|
+
attr_accessor :button_icon_url
|
34
|
+
|
35
|
+
# With the button style Web Messenger, you have the option of specifying the button width.
|
36
|
+
attr_accessor :button_width
|
37
|
+
|
38
|
+
# With the button style Web Messenger, you have the option of specifying the button height.
|
39
|
+
attr_accessor :button_height
|
40
|
+
|
41
|
+
# Array of integration IDs, order will be reflected in the Web Messenger. When set, only integrations from this list will be displayed in the Web Messenger. If unset, all integrations will be displayed.
|
42
|
+
attr_accessor :integration_order
|
43
|
+
|
44
|
+
# A custom business name for the Web Messenger.
|
45
|
+
attr_accessor :business_name
|
46
|
+
|
47
|
+
# A custom business icon url for the Web Messenger. The image must be at least 200 x 200 pixels and must be in either JPG, PNG, or GIF format.
|
48
|
+
attr_accessor :business_icon_url
|
49
|
+
|
50
|
+
# A background image url for the conversation. Image will be tiled to fit the window.
|
51
|
+
attr_accessor :background_image_url
|
52
|
+
|
53
|
+
# A list of origins to whitelist. When set, only the origins from this list will be able to initialize the Web Messenger. If unset, all origins are whitelisted. The elements in the list should follow the serialized-origin format from RFC 6454: scheme \"://\" host [ \":\" port ], where scheme is http or https.
|
54
|
+
attr_accessor :origin_whitelist
|
55
|
+
|
56
|
+
# Object whose properties can be set to specify the add-on’s options. See the [guide](https://docs.smooch.io/guide/web-messenger/#prechat-capture) to learn more about Prechat Capture.
|
57
|
+
attr_accessor :prechat_capture
|
58
|
+
|
59
|
+
# Allows users to create more than one conversation on the web messenger integration.
|
60
|
+
attr_accessor :can_user_create_more_conversations
|
61
|
+
|
62
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
63
|
+
def self.attribute_map
|
64
|
+
{
|
65
|
+
:'type' => :'type',
|
66
|
+
:'brand_color' => :'brandColor',
|
67
|
+
:'fixed_intro_pane' => :'fixedIntroPane',
|
68
|
+
:'conversation_color' => :'conversationColor',
|
69
|
+
:'action_color' => :'actionColor',
|
70
|
+
:'display_style' => :'displayStyle',
|
71
|
+
:'button_icon_url' => :'buttonIconUrl',
|
72
|
+
:'button_width' => :'buttonWidth',
|
73
|
+
:'button_height' => :'buttonHeight',
|
74
|
+
:'integration_order' => :'integrationOrder',
|
75
|
+
:'business_name' => :'businessName',
|
76
|
+
:'business_icon_url' => :'businessIconUrl',
|
77
|
+
:'background_image_url' => :'backgroundImageUrl',
|
78
|
+
:'origin_whitelist' => :'originWhitelist',
|
79
|
+
:'prechat_capture' => :'prechatCapture',
|
80
|
+
:'can_user_create_more_conversations' => :'canUserCreateMoreConversations'
|
81
|
+
}
|
82
|
+
end
|
83
|
+
|
84
|
+
# Attribute type mapping.
|
85
|
+
def self.openapi_types
|
86
|
+
{
|
87
|
+
:'type' => :'String',
|
88
|
+
:'brand_color' => :'String',
|
89
|
+
:'fixed_intro_pane' => :'Boolean',
|
90
|
+
:'conversation_color' => :'String',
|
91
|
+
:'action_color' => :'String',
|
92
|
+
:'display_style' => :'String',
|
93
|
+
:'button_icon_url' => :'String',
|
94
|
+
:'button_width' => :'String',
|
95
|
+
:'button_height' => :'String',
|
96
|
+
:'integration_order' => :'Array<String>',
|
97
|
+
:'business_name' => :'String',
|
98
|
+
:'business_icon_url' => :'String',
|
99
|
+
:'background_image_url' => :'String',
|
100
|
+
:'origin_whitelist' => :'Array<String>',
|
101
|
+
:'prechat_capture' => :'PrechatCapture',
|
102
|
+
:'can_user_create_more_conversations' => :'Boolean'
|
103
|
+
}
|
104
|
+
end
|
105
|
+
|
106
|
+
# List of attributes with nullable: true
|
107
|
+
def self.openapi_nullable
|
108
|
+
Set.new([
|
109
|
+
:'button_icon_url',
|
110
|
+
:'integration_order',
|
111
|
+
:'origin_whitelist',
|
112
|
+
])
|
113
|
+
end
|
114
|
+
|
115
|
+
# List of class defined in allOf (OpenAPI v3)
|
116
|
+
def self.openapi_all_of
|
117
|
+
[
|
118
|
+
:'Integration',
|
119
|
+
:'WebAllOf'
|
120
|
+
]
|
121
|
+
end
|
122
|
+
|
123
|
+
# Initializes the object
|
124
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
125
|
+
def initialize(attributes = {})
|
126
|
+
if (!attributes.is_a?(Hash))
|
127
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SunshineConversationsClient::Web` initialize method"
|
128
|
+
end
|
129
|
+
|
130
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
131
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
132
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
133
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SunshineConversationsClient::Web`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
134
|
+
end
|
135
|
+
h[k.to_sym] = v
|
136
|
+
}
|
137
|
+
|
138
|
+
# call parent's initialize
|
139
|
+
super(attributes)
|
140
|
+
|
141
|
+
if attributes.key?(:'type')
|
142
|
+
self.type = attributes[:'type']
|
143
|
+
else
|
144
|
+
self.type = 'web'
|
145
|
+
end
|
146
|
+
|
147
|
+
if attributes.key?(:'brand_color')
|
148
|
+
self.brand_color = attributes[:'brand_color']
|
149
|
+
else
|
150
|
+
self.brand_color = '65758e'
|
151
|
+
end
|
152
|
+
|
153
|
+
if attributes.key?(:'fixed_intro_pane')
|
154
|
+
self.fixed_intro_pane = attributes[:'fixed_intro_pane']
|
155
|
+
else
|
156
|
+
self.fixed_intro_pane = false
|
157
|
+
end
|
158
|
+
|
159
|
+
if attributes.key?(:'conversation_color')
|
160
|
+
self.conversation_color = attributes[:'conversation_color']
|
161
|
+
else
|
162
|
+
self.conversation_color = '0099ff'
|
163
|
+
end
|
164
|
+
|
165
|
+
if attributes.key?(:'action_color')
|
166
|
+
self.action_color = attributes[:'action_color']
|
167
|
+
else
|
168
|
+
self.action_color = '0099ff'
|
169
|
+
end
|
170
|
+
|
171
|
+
if attributes.key?(:'display_style')
|
172
|
+
self.display_style = attributes[:'display_style']
|
173
|
+
else
|
174
|
+
self.display_style = 'button'
|
175
|
+
end
|
176
|
+
|
177
|
+
if attributes.key?(:'button_icon_url')
|
178
|
+
self.button_icon_url = attributes[:'button_icon_url']
|
179
|
+
end
|
180
|
+
|
181
|
+
if attributes.key?(:'button_width')
|
182
|
+
self.button_width = attributes[:'button_width']
|
183
|
+
else
|
184
|
+
self.button_width = '58'
|
185
|
+
end
|
186
|
+
|
187
|
+
if attributes.key?(:'button_height')
|
188
|
+
self.button_height = attributes[:'button_height']
|
189
|
+
else
|
190
|
+
self.button_height = '58'
|
191
|
+
end
|
192
|
+
|
193
|
+
if attributes.key?(:'integration_order')
|
194
|
+
end
|
195
|
+
|
196
|
+
if attributes.key?(:'business_name')
|
197
|
+
self.business_name = attributes[:'business_name']
|
198
|
+
end
|
199
|
+
|
200
|
+
if attributes.key?(:'business_icon_url')
|
201
|
+
self.business_icon_url = attributes[:'business_icon_url']
|
202
|
+
end
|
203
|
+
|
204
|
+
if attributes.key?(:'background_image_url')
|
205
|
+
self.background_image_url = attributes[:'background_image_url']
|
206
|
+
end
|
207
|
+
|
208
|
+
if attributes.key?(:'origin_whitelist')
|
209
|
+
end
|
210
|
+
|
211
|
+
if attributes.key?(:'prechat_capture')
|
212
|
+
self.prechat_capture = attributes[:'prechat_capture']
|
213
|
+
end
|
214
|
+
|
215
|
+
if attributes.key?(:'can_user_create_more_conversations')
|
216
|
+
self.can_user_create_more_conversations = attributes[:'can_user_create_more_conversations']
|
217
|
+
end
|
218
|
+
end
|
219
|
+
|
220
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
221
|
+
# @return Array for valid properties with the reasons
|
222
|
+
def list_invalid_properties
|
223
|
+
invalid_properties = super
|
224
|
+
invalid_properties
|
225
|
+
end
|
226
|
+
|
227
|
+
# Check to see if the all the properties in the model are valid
|
228
|
+
# @return true if the model is valid
|
229
|
+
def valid?
|
230
|
+
true && super
|
231
|
+
end
|
232
|
+
|
233
|
+
# Checks equality by comparing each attribute.
|
234
|
+
# @param [Object] Object to be compared
|
235
|
+
def ==(o)
|
236
|
+
return true if self.equal?(o)
|
237
|
+
self.class == o.class &&
|
238
|
+
type == o.type &&
|
239
|
+
brand_color == o.brand_color &&
|
240
|
+
fixed_intro_pane == o.fixed_intro_pane &&
|
241
|
+
conversation_color == o.conversation_color &&
|
242
|
+
action_color == o.action_color &&
|
243
|
+
display_style == o.display_style &&
|
244
|
+
button_icon_url == o.button_icon_url &&
|
245
|
+
button_width == o.button_width &&
|
246
|
+
button_height == o.button_height &&
|
247
|
+
integration_order == o.integration_order &&
|
248
|
+
business_name == o.business_name &&
|
249
|
+
business_icon_url == o.business_icon_url &&
|
250
|
+
background_image_url == o.background_image_url &&
|
251
|
+
origin_whitelist == o.origin_whitelist &&
|
252
|
+
prechat_capture == o.prechat_capture &&
|
253
|
+
can_user_create_more_conversations == o.can_user_create_more_conversations && super(o)
|
254
|
+
end
|
255
|
+
|
256
|
+
# @see the `==` method
|
257
|
+
# @param [Object] Object to be compared
|
258
|
+
def eql?(o)
|
259
|
+
self == o
|
260
|
+
end
|
261
|
+
|
262
|
+
# Calculates hash code according to all attributes.
|
263
|
+
# @return [Integer] Hash code
|
264
|
+
def hash
|
265
|
+
[type, brand_color, fixed_intro_pane, conversation_color, action_color, display_style, button_icon_url, button_width, button_height, integration_order, business_name, business_icon_url, background_image_url, origin_whitelist, prechat_capture, can_user_create_more_conversations].hash
|
266
|
+
end
|
267
|
+
|
268
|
+
# Builds the object from hash
|
269
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
270
|
+
# @return [Object] Returns the model itself
|
271
|
+
def self.build_from_hash(attributes)
|
272
|
+
new.build_from_hash(attributes)
|
273
|
+
end
|
274
|
+
|
275
|
+
# Builds the object from hash
|
276
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
277
|
+
# @return [Object] Returns the model itself
|
278
|
+
def build_from_hash(attributes)
|
279
|
+
return nil unless attributes.is_a?(Hash)
|
280
|
+
super(attributes)
|
281
|
+
self.class.openapi_types.each_pair do |key, type|
|
282
|
+
if type =~ /\AArray<(.*)>/i
|
283
|
+
# check to ensure the input is an array given that the attribute
|
284
|
+
# is documented as an array but the input is not
|
285
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
286
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
287
|
+
end
|
288
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
289
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
290
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
291
|
+
end
|
292
|
+
|
293
|
+
self
|
294
|
+
end
|
295
|
+
|
296
|
+
# Deserializes the data based on type
|
297
|
+
# @param string type Data type
|
298
|
+
# @param string value Value to be deserialized
|
299
|
+
# @return [Object] Deserialized data
|
300
|
+
def _deserialize(type, value)
|
301
|
+
case type.to_sym
|
302
|
+
when :DateTime
|
303
|
+
DateTime.parse(value)
|
304
|
+
when :Date
|
305
|
+
Date.parse(value)
|
306
|
+
when :String
|
307
|
+
value.to_s
|
308
|
+
when :Integer
|
309
|
+
value.to_i
|
310
|
+
when :Float
|
311
|
+
value.to_f
|
312
|
+
when :Boolean
|
313
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
314
|
+
true
|
315
|
+
else
|
316
|
+
false
|
317
|
+
end
|
318
|
+
when :Object
|
319
|
+
# generic object (usually a Hash), return directly
|
320
|
+
value
|
321
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
322
|
+
inner_type = Regexp.last_match[:inner_type]
|
323
|
+
value.map { |v| _deserialize(inner_type, v) }
|
324
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
325
|
+
k_type = Regexp.last_match[:k_type]
|
326
|
+
v_type = Regexp.last_match[:v_type]
|
327
|
+
{}.tap do |hash|
|
328
|
+
value.each do |k, v|
|
329
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
330
|
+
end
|
331
|
+
end
|
332
|
+
else # model
|
333
|
+
SunshineConversationsClient.const_get(type).build_from_hash(value)
|
334
|
+
end
|
335
|
+
end
|
336
|
+
|
337
|
+
# Returns the string representation of the object
|
338
|
+
# @return [String] String presentation of the object
|
339
|
+
def to_s
|
340
|
+
to_hash.to_s
|
341
|
+
end
|
342
|
+
|
343
|
+
# to_body is an alias to to_hash (backward compatibility)
|
344
|
+
# @return [Hash] Returns the object in the form of hash
|
345
|
+
def to_body
|
346
|
+
to_hash
|
347
|
+
end
|
348
|
+
|
349
|
+
# Returns the object in the form of hash
|
350
|
+
# @return [Hash] Returns the object in the form of hash
|
351
|
+
def to_hash
|
352
|
+
hash = super
|
353
|
+
self.class.attribute_map.each_pair do |attr, param|
|
354
|
+
value = self.send(attr)
|
355
|
+
if value.nil?
|
356
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
357
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
358
|
+
end
|
359
|
+
|
360
|
+
hash[param] = _to_hash(value)
|
361
|
+
end
|
362
|
+
hash
|
363
|
+
end
|
364
|
+
|
365
|
+
# Outputs non-array value in the form of hash
|
366
|
+
# For object, use to_hash. Otherwise, just return the value
|
367
|
+
# @param [Object] value Any valid value
|
368
|
+
# @return [Hash] Returns the value in the form of hash
|
369
|
+
def _to_hash(value)
|
370
|
+
if value.is_a?(Array)
|
371
|
+
value.compact.map { |v| _to_hash(v) }
|
372
|
+
elsif value.is_a?(Hash)
|
373
|
+
{}.tap do |hash|
|
374
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
375
|
+
end
|
376
|
+
elsif value.respond_to? :to_hash
|
377
|
+
value.to_hash
|
378
|
+
else
|
379
|
+
value
|
380
|
+
end
|
381
|
+
end
|
382
|
+
end
|
383
|
+
end
|
@@ -0,0 +1,372 @@
|
|
1
|
+
=begin
|
2
|
+
#Sunshine Conversations API
|
3
|
+
|
4
|
+
The version of the OpenAPI document: 9.1.0
|
5
|
+
|
6
|
+
Generated by: https://openapi-generator.tech
|
7
|
+
OpenAPI Generator version: 4.3.1
|
8
|
+
=end
|
9
|
+
|
10
|
+
require 'date'
|
11
|
+
|
12
|
+
module SunshineConversationsClient
|
13
|
+
# To configure a Web Messenger integration, acquire the required information and call the Create Integration endpoint.
|
14
|
+
class WebAllOf
|
15
|
+
# The type of integration.
|
16
|
+
attr_accessor :type
|
17
|
+
|
18
|
+
# This color will be used in the messenger header and the button or tab in idle state. Must be a 3 or 6-character hexadecimal color.
|
19
|
+
attr_accessor :brand_color
|
20
|
+
|
21
|
+
# When true, the introduction pane will be pinned at the top of the conversation instead of scrolling with it.
|
22
|
+
attr_accessor :fixed_intro_pane
|
23
|
+
|
24
|
+
# This color will be used for customer messages, quick replies and actions in the footer. Must be a 3 or 6-character hexadecimal color.
|
25
|
+
attr_accessor :conversation_color
|
26
|
+
|
27
|
+
# This color will be used for call-to-actions inside your messages. Must be a 3 or 6-character hexadecimal color.
|
28
|
+
attr_accessor :action_color
|
29
|
+
|
30
|
+
# Choose how the messenger will appear on your website. Must be either button or tab.
|
31
|
+
attr_accessor :display_style
|
32
|
+
|
33
|
+
# With the button style Web Messenger, you have the option of selecting your own button icon. The image must be at least 200 x 200 pixels and must be in either JPG, PNG, or GIF format.
|
34
|
+
attr_accessor :button_icon_url
|
35
|
+
|
36
|
+
# With the button style Web Messenger, you have the option of specifying the button width.
|
37
|
+
attr_accessor :button_width
|
38
|
+
|
39
|
+
# With the button style Web Messenger, you have the option of specifying the button height.
|
40
|
+
attr_accessor :button_height
|
41
|
+
|
42
|
+
# Array of integration IDs, order will be reflected in the Web Messenger. When set, only integrations from this list will be displayed in the Web Messenger. If unset, all integrations will be displayed.
|
43
|
+
attr_accessor :integration_order
|
44
|
+
|
45
|
+
# A custom business name for the Web Messenger.
|
46
|
+
attr_accessor :business_name
|
47
|
+
|
48
|
+
# A custom business icon url for the Web Messenger. The image must be at least 200 x 200 pixels and must be in either JPG, PNG, or GIF format.
|
49
|
+
attr_accessor :business_icon_url
|
50
|
+
|
51
|
+
# A background image url for the conversation. Image will be tiled to fit the window.
|
52
|
+
attr_accessor :background_image_url
|
53
|
+
|
54
|
+
# A list of origins to whitelist. When set, only the origins from this list will be able to initialize the Web Messenger. If unset, all origins are whitelisted. The elements in the list should follow the serialized-origin format from RFC 6454: scheme \"://\" host [ \":\" port ], where scheme is http or https.
|
55
|
+
attr_accessor :origin_whitelist
|
56
|
+
|
57
|
+
# Object whose properties can be set to specify the add-on’s options. See the [guide](https://docs.smooch.io/guide/web-messenger/#prechat-capture) to learn more about Prechat Capture.
|
58
|
+
attr_accessor :prechat_capture
|
59
|
+
|
60
|
+
# Allows users to create more than one conversation on the web messenger integration.
|
61
|
+
attr_accessor :can_user_create_more_conversations
|
62
|
+
|
63
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
64
|
+
def self.attribute_map
|
65
|
+
{
|
66
|
+
:'type' => :'type',
|
67
|
+
:'brand_color' => :'brandColor',
|
68
|
+
:'fixed_intro_pane' => :'fixedIntroPane',
|
69
|
+
:'conversation_color' => :'conversationColor',
|
70
|
+
:'action_color' => :'actionColor',
|
71
|
+
:'display_style' => :'displayStyle',
|
72
|
+
:'button_icon_url' => :'buttonIconUrl',
|
73
|
+
:'button_width' => :'buttonWidth',
|
74
|
+
:'button_height' => :'buttonHeight',
|
75
|
+
:'integration_order' => :'integrationOrder',
|
76
|
+
:'business_name' => :'businessName',
|
77
|
+
:'business_icon_url' => :'businessIconUrl',
|
78
|
+
:'background_image_url' => :'backgroundImageUrl',
|
79
|
+
:'origin_whitelist' => :'originWhitelist',
|
80
|
+
:'prechat_capture' => :'prechatCapture',
|
81
|
+
:'can_user_create_more_conversations' => :'canUserCreateMoreConversations'
|
82
|
+
}
|
83
|
+
end
|
84
|
+
|
85
|
+
# Attribute type mapping.
|
86
|
+
def self.openapi_types
|
87
|
+
{
|
88
|
+
:'type' => :'String',
|
89
|
+
:'brand_color' => :'String',
|
90
|
+
:'fixed_intro_pane' => :'Boolean',
|
91
|
+
:'conversation_color' => :'String',
|
92
|
+
:'action_color' => :'String',
|
93
|
+
:'display_style' => :'String',
|
94
|
+
:'button_icon_url' => :'String',
|
95
|
+
:'button_width' => :'String',
|
96
|
+
:'button_height' => :'String',
|
97
|
+
:'integration_order' => :'Array<String>',
|
98
|
+
:'business_name' => :'String',
|
99
|
+
:'business_icon_url' => :'String',
|
100
|
+
:'background_image_url' => :'String',
|
101
|
+
:'origin_whitelist' => :'Array<String>',
|
102
|
+
:'prechat_capture' => :'PrechatCapture',
|
103
|
+
:'can_user_create_more_conversations' => :'Boolean'
|
104
|
+
}
|
105
|
+
end
|
106
|
+
|
107
|
+
# List of attributes with nullable: true
|
108
|
+
def self.openapi_nullable
|
109
|
+
Set.new([
|
110
|
+
:'button_icon_url',
|
111
|
+
:'integration_order',
|
112
|
+
:'origin_whitelist',
|
113
|
+
])
|
114
|
+
end
|
115
|
+
|
116
|
+
# Initializes the object
|
117
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
118
|
+
def initialize(attributes = {})
|
119
|
+
if (!attributes.is_a?(Hash))
|
120
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SunshineConversationsClient::WebAllOf` initialize method"
|
121
|
+
end
|
122
|
+
|
123
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
124
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
125
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
126
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SunshineConversationsClient::WebAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
127
|
+
end
|
128
|
+
h[k.to_sym] = v
|
129
|
+
}
|
130
|
+
|
131
|
+
if attributes.key?(:'type')
|
132
|
+
self.type = attributes[:'type']
|
133
|
+
else
|
134
|
+
self.type = 'web'
|
135
|
+
end
|
136
|
+
|
137
|
+
if attributes.key?(:'brand_color')
|
138
|
+
self.brand_color = attributes[:'brand_color']
|
139
|
+
else
|
140
|
+
self.brand_color = '65758e'
|
141
|
+
end
|
142
|
+
|
143
|
+
if attributes.key?(:'fixed_intro_pane')
|
144
|
+
self.fixed_intro_pane = attributes[:'fixed_intro_pane']
|
145
|
+
else
|
146
|
+
self.fixed_intro_pane = false
|
147
|
+
end
|
148
|
+
|
149
|
+
if attributes.key?(:'conversation_color')
|
150
|
+
self.conversation_color = attributes[:'conversation_color']
|
151
|
+
else
|
152
|
+
self.conversation_color = '0099ff'
|
153
|
+
end
|
154
|
+
|
155
|
+
if attributes.key?(:'action_color')
|
156
|
+
self.action_color = attributes[:'action_color']
|
157
|
+
else
|
158
|
+
self.action_color = '0099ff'
|
159
|
+
end
|
160
|
+
|
161
|
+
if attributes.key?(:'display_style')
|
162
|
+
self.display_style = attributes[:'display_style']
|
163
|
+
else
|
164
|
+
self.display_style = 'button'
|
165
|
+
end
|
166
|
+
|
167
|
+
if attributes.key?(:'button_icon_url')
|
168
|
+
self.button_icon_url = attributes[:'button_icon_url']
|
169
|
+
end
|
170
|
+
|
171
|
+
if attributes.key?(:'button_width')
|
172
|
+
self.button_width = attributes[:'button_width']
|
173
|
+
else
|
174
|
+
self.button_width = '58'
|
175
|
+
end
|
176
|
+
|
177
|
+
if attributes.key?(:'button_height')
|
178
|
+
self.button_height = attributes[:'button_height']
|
179
|
+
else
|
180
|
+
self.button_height = '58'
|
181
|
+
end
|
182
|
+
|
183
|
+
if attributes.key?(:'integration_order')
|
184
|
+
end
|
185
|
+
|
186
|
+
if attributes.key?(:'business_name')
|
187
|
+
self.business_name = attributes[:'business_name']
|
188
|
+
end
|
189
|
+
|
190
|
+
if attributes.key?(:'business_icon_url')
|
191
|
+
self.business_icon_url = attributes[:'business_icon_url']
|
192
|
+
end
|
193
|
+
|
194
|
+
if attributes.key?(:'background_image_url')
|
195
|
+
self.background_image_url = attributes[:'background_image_url']
|
196
|
+
end
|
197
|
+
|
198
|
+
if attributes.key?(:'origin_whitelist')
|
199
|
+
end
|
200
|
+
|
201
|
+
if attributes.key?(:'prechat_capture')
|
202
|
+
self.prechat_capture = attributes[:'prechat_capture']
|
203
|
+
end
|
204
|
+
|
205
|
+
if attributes.key?(:'can_user_create_more_conversations')
|
206
|
+
self.can_user_create_more_conversations = attributes[:'can_user_create_more_conversations']
|
207
|
+
end
|
208
|
+
end
|
209
|
+
|
210
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
211
|
+
# @return Array for valid properties with the reasons
|
212
|
+
def list_invalid_properties
|
213
|
+
invalid_properties = Array.new
|
214
|
+
invalid_properties
|
215
|
+
end
|
216
|
+
|
217
|
+
# Check to see if the all the properties in the model are valid
|
218
|
+
# @return true if the model is valid
|
219
|
+
def valid?
|
220
|
+
true
|
221
|
+
end
|
222
|
+
|
223
|
+
# Checks equality by comparing each attribute.
|
224
|
+
# @param [Object] Object to be compared
|
225
|
+
def ==(o)
|
226
|
+
return true if self.equal?(o)
|
227
|
+
self.class == o.class &&
|
228
|
+
type == o.type &&
|
229
|
+
brand_color == o.brand_color &&
|
230
|
+
fixed_intro_pane == o.fixed_intro_pane &&
|
231
|
+
conversation_color == o.conversation_color &&
|
232
|
+
action_color == o.action_color &&
|
233
|
+
display_style == o.display_style &&
|
234
|
+
button_icon_url == o.button_icon_url &&
|
235
|
+
button_width == o.button_width &&
|
236
|
+
button_height == o.button_height &&
|
237
|
+
integration_order == o.integration_order &&
|
238
|
+
business_name == o.business_name &&
|
239
|
+
business_icon_url == o.business_icon_url &&
|
240
|
+
background_image_url == o.background_image_url &&
|
241
|
+
origin_whitelist == o.origin_whitelist &&
|
242
|
+
prechat_capture == o.prechat_capture &&
|
243
|
+
can_user_create_more_conversations == o.can_user_create_more_conversations
|
244
|
+
end
|
245
|
+
|
246
|
+
# @see the `==` method
|
247
|
+
# @param [Object] Object to be compared
|
248
|
+
def eql?(o)
|
249
|
+
self == o
|
250
|
+
end
|
251
|
+
|
252
|
+
# Calculates hash code according to all attributes.
|
253
|
+
# @return [Integer] Hash code
|
254
|
+
def hash
|
255
|
+
[type, brand_color, fixed_intro_pane, conversation_color, action_color, display_style, button_icon_url, button_width, button_height, integration_order, business_name, business_icon_url, background_image_url, origin_whitelist, prechat_capture, can_user_create_more_conversations].hash
|
256
|
+
end
|
257
|
+
|
258
|
+
# Builds the object from hash
|
259
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
260
|
+
# @return [Object] Returns the model itself
|
261
|
+
def self.build_from_hash(attributes)
|
262
|
+
new.build_from_hash(attributes)
|
263
|
+
end
|
264
|
+
|
265
|
+
# Builds the object from hash
|
266
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
267
|
+
# @return [Object] Returns the model itself
|
268
|
+
def build_from_hash(attributes)
|
269
|
+
return nil unless attributes.is_a?(Hash)
|
270
|
+
self.class.openapi_types.each_pair do |key, type|
|
271
|
+
if type =~ /\AArray<(.*)>/i
|
272
|
+
# check to ensure the input is an array given that the attribute
|
273
|
+
# is documented as an array but the input is not
|
274
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
275
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
276
|
+
end
|
277
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
278
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
279
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
280
|
+
end
|
281
|
+
|
282
|
+
self
|
283
|
+
end
|
284
|
+
|
285
|
+
# Deserializes the data based on type
|
286
|
+
# @param string type Data type
|
287
|
+
# @param string value Value to be deserialized
|
288
|
+
# @return [Object] Deserialized data
|
289
|
+
def _deserialize(type, value)
|
290
|
+
case type.to_sym
|
291
|
+
when :DateTime
|
292
|
+
DateTime.parse(value)
|
293
|
+
when :Date
|
294
|
+
Date.parse(value)
|
295
|
+
when :String
|
296
|
+
value.to_s
|
297
|
+
when :Integer
|
298
|
+
value.to_i
|
299
|
+
when :Float
|
300
|
+
value.to_f
|
301
|
+
when :Boolean
|
302
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
303
|
+
true
|
304
|
+
else
|
305
|
+
false
|
306
|
+
end
|
307
|
+
when :Object
|
308
|
+
# generic object (usually a Hash), return directly
|
309
|
+
value
|
310
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
311
|
+
inner_type = Regexp.last_match[:inner_type]
|
312
|
+
value.map { |v| _deserialize(inner_type, v) }
|
313
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
314
|
+
k_type = Regexp.last_match[:k_type]
|
315
|
+
v_type = Regexp.last_match[:v_type]
|
316
|
+
{}.tap do |hash|
|
317
|
+
value.each do |k, v|
|
318
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
319
|
+
end
|
320
|
+
end
|
321
|
+
else # model
|
322
|
+
SunshineConversationsClient.const_get(type).build_from_hash(value)
|
323
|
+
end
|
324
|
+
end
|
325
|
+
|
326
|
+
# Returns the string representation of the object
|
327
|
+
# @return [String] String presentation of the object
|
328
|
+
def to_s
|
329
|
+
to_hash.to_s
|
330
|
+
end
|
331
|
+
|
332
|
+
# to_body is an alias to to_hash (backward compatibility)
|
333
|
+
# @return [Hash] Returns the object in the form of hash
|
334
|
+
def to_body
|
335
|
+
to_hash
|
336
|
+
end
|
337
|
+
|
338
|
+
# Returns the object in the form of hash
|
339
|
+
# @return [Hash] Returns the object in the form of hash
|
340
|
+
def to_hash
|
341
|
+
hash = {}
|
342
|
+
self.class.attribute_map.each_pair do |attr, param|
|
343
|
+
value = self.send(attr)
|
344
|
+
if value.nil?
|
345
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
346
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
347
|
+
end
|
348
|
+
|
349
|
+
hash[param] = _to_hash(value)
|
350
|
+
end
|
351
|
+
hash
|
352
|
+
end
|
353
|
+
|
354
|
+
# Outputs non-array value in the form of hash
|
355
|
+
# For object, use to_hash. Otherwise, just return the value
|
356
|
+
# @param [Object] value Any valid value
|
357
|
+
# @return [Hash] Returns the value in the form of hash
|
358
|
+
def _to_hash(value)
|
359
|
+
if value.is_a?(Array)
|
360
|
+
value.compact.map { |v| _to_hash(v) }
|
361
|
+
elsif value.is_a?(Hash)
|
362
|
+
{}.tap do |hash|
|
363
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
364
|
+
end
|
365
|
+
elsif value.respond_to? :to_hash
|
366
|
+
value.to_hash
|
367
|
+
else
|
368
|
+
value
|
369
|
+
end
|
370
|
+
end
|
371
|
+
end
|
372
|
+
end
|