sunshine-conversations-client 16.0.1 → 17.0.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.
- checksums.yaml +4 -4
- data/CHANGELOG_RB.md +7 -0
- data/README.md +20 -72
- data/docs/AcceptControlBody.md +8 -7
- data/docs/Action.md +64 -34
- data/docs/ActionSubset.md +60 -32
- data/docs/ActivitiesApi.md +2 -2
- data/docs/Activity.md +12 -11
- data/docs/ActivityMessage.md +69 -9
- data/docs/ActivityPost.md +10 -9
- data/docs/ActivityTypes.md +8 -7
- data/docs/Android.md +28 -27
- data/docs/AndroidUpdate.md +24 -23
- data/docs/ApiKey.md +12 -11
- data/docs/App.md +14 -13
- data/docs/AppCreateBody.md +12 -11
- data/docs/AppKey.md +12 -11
- data/docs/AppKeyCreateBody.md +8 -7
- data/docs/AppKeyListResponse.md +8 -7
- data/docs/AppKeyResponse.md +8 -7
- data/docs/AppKeysApi.md +7 -7
- data/docs/AppListFilter.md +8 -7
- data/docs/AppListResponse.md +12 -11
- data/docs/AppResponse.md +8 -7
- data/docs/AppSettings.md +20 -19
- data/docs/AppSubSchema.md +8 -7
- data/docs/AppUpdateBody.md +12 -11
- data/docs/Apple.md +20 -19
- data/docs/AppleMessageOverridePayload.md +10 -9
- data/docs/AppleUpdate.md +12 -11
- data/docs/AppsApi.md +7 -7
- data/docs/AttachmentDeleteBody.md +8 -7
- data/docs/AttachmentResponse.md +8 -7
- data/docs/AttachmentSchema.md +10 -9
- data/docs/AttachmentsApi.md +7 -7
- data/docs/Author.md +18 -17
- data/docs/AuthorWebhook.md +12 -11
- data/docs/Buy.md +16 -15
- data/docs/Campaign.md +8 -7
- data/docs/CarouselMessage.md +16 -15
- data/docs/CarouselMessageDisplaySettings.md +8 -7
- data/docs/Client.md +28 -27
- data/docs/ClientAddEvent.md +14 -13
- data/docs/ClientAddEventAllOfPayload.md +16 -15
- data/docs/ClientAssociation.md +10 -9
- data/docs/ClientCreate.md +12 -11
- data/docs/ClientListResponse.md +12 -11
- data/docs/ClientRemoveEvent.md +14 -13
- data/docs/ClientRemoveEventAllOfPayload.md +18 -17
- data/docs/ClientResponse.md +8 -7
- data/docs/ClientType.md +4 -5
- data/docs/ClientUpdateEvent.md +14 -13
- data/docs/ClientUpdateEventAllOfPayload.md +14 -13
- data/docs/ClientsApi.md +9 -9
- data/docs/Confirmation.md +10 -9
- data/docs/Content.md +93 -48
- data/docs/Conversation.md +30 -29
- data/docs/ConversationCreateBody.md +18 -17
- data/docs/ConversationCreateEvent.md +14 -13
- data/docs/ConversationCreateEventAllOfPayload.md +16 -15
- data/docs/ConversationJoinEvent.md +14 -13
- data/docs/ConversationJoinEventAllOfPayload.md +10 -9
- data/docs/ConversationLeaveEvent.md +14 -13
- data/docs/ConversationLeaveEventAllOfPayload.md +10 -9
- data/docs/ConversationListFilter.md +10 -9
- data/docs/ConversationListResponse.md +12 -11
- data/docs/ConversationMessageDeliveryChannelEvent.md +14 -13
- data/docs/ConversationMessageDeliveryFailureEvent.md +14 -13
- data/docs/ConversationMessageDeliveryFailureEventAllOfPayload.md +30 -0
- data/docs/ConversationMessageDeliveryFailureEventAllOfPayloadAllOfError.md +20 -0
- data/docs/ConversationMessageDeliveryPayload.md +18 -17
- data/docs/ConversationMessageDeliveryPayloadDestination.md +10 -9
- data/docs/ConversationMessageDeliveryPayloadExternalMessagesInner.md +18 -0
- data/docs/ConversationMessageDeliveryPayloadMessage.md +8 -7
- data/docs/ConversationMessageDeliveryUserEvent.md +14 -13
- data/docs/ConversationMessageEvent.md +14 -13
- data/docs/ConversationMessageEventAllOfPayload.md +12 -11
- data/docs/ConversationPostbackEvent.md +14 -13
- data/docs/ConversationPostbackEventAllOfPayload.md +14 -13
- data/docs/ConversationReadEvent.md +14 -13
- data/docs/ConversationReadEventAllOfPayload.md +10 -9
- data/docs/ConversationReadEventAllOfPayloadActivity.md +22 -0
- data/docs/ConversationReferralEvent.md +14 -13
- data/docs/ConversationReferralEventAllOfPayload.md +14 -13
- data/docs/ConversationRemoveEvent.md +14 -13
- data/docs/ConversationRemoveEventAllOfPayload.md +8 -7
- data/docs/ConversationResponse.md +8 -7
- data/docs/ConversationTruncated.md +16 -15
- data/docs/ConversationType.md +4 -5
- data/docs/ConversationTypingEvent.md +14 -13
- data/docs/ConversationTypingEventAllOfPayload.md +10 -9
- data/docs/ConversationTypingEventAllOfPayloadActivity.md +22 -0
- data/docs/ConversationUpdateBody.md +14 -13
- data/docs/ConversationsApi.md +16 -16
- data/docs/ConversionEventsBody.md +41 -11
- data/docs/Custom.md +10 -9
- data/docs/CustomIntegrationApiKeysApi.md +11 -11
- data/docs/CustomUpdate.md +8 -7
- data/docs/DefaultResponder.md +8 -7
- data/docs/DefaultResponderDefaultResponder.md +20 -19
- data/docs/DefaultResponderId.md +8 -7
- data/docs/Destination.md +39 -9
- data/docs/Device.md +26 -25
- data/docs/DeviceListResponse.md +8 -7
- data/docs/DeviceResponse.md +8 -7
- data/docs/DevicesApi.md +5 -5
- data/docs/DownloadMessageRefBody.md +10 -6
- data/docs/DownloadMessageRefBodyAllOfApple.md +8 -7
- data/docs/DownloadMessageRefBodyAllOfAppleInteractiveDataRef.md +16 -15
- data/docs/Error.md +10 -9
- data/docs/ErrorResponse.md +8 -7
- data/docs/EventSubSchema.md +12 -11
- data/docs/ExtraChannelOptions.md +8 -7
- data/docs/ExtraChannelOptionsMessenger.md +10 -9
- data/docs/Field.md +18 -17
- data/docs/FileMessage.md +26 -25
- data/docs/FormMessage.md +14 -13
- data/docs/FormMessageField.md +26 -25
- data/docs/FormOptionsInner.md +20 -0
- data/docs/FormResponseMessage.md +12 -11
- data/docs/FormResponseMessageField.md +20 -19
- data/docs/GetToken200Response.md +20 -0
- data/docs/GetTokenRequest.md +24 -0
- data/docs/Identity.md +12 -11
- data/docs/ImageMessage.md +28 -27
- data/docs/Instagram.md +30 -29
- data/docs/InstagramConversionEventsBody.md +8 -7
- data/docs/InstagramUpdate.md +12 -11
- data/docs/Integration.md +14 -13
- data/docs/IntegrationApiKey.md +8 -7
- data/docs/IntegrationApiKeyListResponse.md +8 -7
- data/docs/IntegrationApiKeyResponse.md +8 -7
- data/docs/IntegrationId.md +8 -7
- data/docs/IntegrationListFilter.md +8 -7
- data/docs/IntegrationListResponse.md +12 -11
- data/docs/IntegrationResponse.md +8 -7
- data/docs/IntegrationType.md +8 -7
- data/docs/IntegrationUpdate.md +70 -76
- data/docs/IntegrationUpdateBase.md +10 -9
- data/docs/IntegrationsApi.md +11 -11
- data/docs/Ios.md +26 -25
- data/docs/IosUpdate.md +22 -21
- data/docs/Item.md +22 -21
- data/docs/Line.md +26 -25
- data/docs/LineUpdate.md +10 -6
- data/docs/Link.md +18 -17
- data/docs/Links.md +10 -9
- data/docs/ListMessage.md +14 -13
- data/docs/LocationMessage.md +16 -15
- data/docs/LocationMessageCoordinates.md +10 -9
- data/docs/LocationMessageLocation.md +10 -9
- data/docs/LocationRequest.md +12 -11
- data/docs/Mailgun.md +22 -21
- data/docs/MailgunUpdate.md +14 -13
- data/docs/MatchCriteria.md +76 -18
- data/docs/MatchCriteriaBase.md +12 -11
- data/docs/MatchCriteriaMailgun.md +16 -15
- data/docs/MatchCriteriaMessagebird.md +14 -13
- data/docs/MatchCriteriaTwilio.md +14 -13
- data/docs/MatchCriteriaWhatsapp.md +14 -13
- data/docs/Message.md +24 -23
- data/docs/MessageBirdUpdate.md +10 -6
- data/docs/MessageListResponse.md +12 -11
- data/docs/MessageOverride.md +14 -13
- data/docs/MessageOverrideApple.md +8 -7
- data/docs/MessageOverrideLine.md +8 -7
- data/docs/MessageOverrideMessenger.md +8 -7
- data/docs/MessageOverridePayload.md +8 -7
- data/docs/MessageOverrideWhatsapp.md +8 -7
- data/docs/MessagePost.md +18 -17
- data/docs/MessagePostResponse.md +8 -7
- data/docs/MessageWebhook.md +22 -21
- data/docs/MessageWebhookSource.md +30 -0
- data/docs/Messagebird.md +20 -19
- data/docs/MessagesApi.md +11 -11
- data/docs/Messenger.md +22 -21
- data/docs/MessengerConversionEventsBody.md +8 -7
- data/docs/MessengerUpdate.md +12 -11
- data/docs/Meta.md +12 -11
- data/docs/MetaConversionEvent.md +8 -7
- data/docs/MetaConversionEventPayload.md +8 -7
- data/docs/OAuthEndpointsApi.md +9 -9
- data/docs/OfferControlBody.md +10 -9
- data/docs/Page.md +12 -11
- data/docs/Participant.md +18 -17
- data/docs/ParticipantJoinBody.md +12 -6
- data/docs/ParticipantLeaveBody.md +41 -11
- data/docs/ParticipantLeaveBodyParticipantId.md +8 -7
- data/docs/ParticipantLeaveBodyUserExternalId.md +8 -7
- data/docs/ParticipantLeaveBodyUserId.md +8 -7
- data/docs/ParticipantListResponse.md +12 -11
- data/docs/ParticipantResponse.md +8 -7
- data/docs/ParticipantSubSchema.md +12 -11
- data/docs/ParticipantWithUserExternalId.md +10 -9
- data/docs/ParticipantWithUserId.md +10 -9
- data/docs/ParticipantsApi.md +7 -7
- data/docs/PassControlBody.md +12 -11
- data/docs/Postback.md +14 -13
- data/docs/PostbackWebhook.md +10 -9
- data/docs/PrechatCapture.md +14 -13
- data/docs/Profile.md +16 -15
- data/docs/QuotedMessage.md +69 -11
- data/docs/QuotedMessageExternalMessageId.md +10 -9
- data/docs/QuotedMessageMessage.md +10 -9
- data/docs/Referral.md +10 -9
- data/docs/ReferralDetails.md +12 -11
- data/docs/ReleaseControlBody.md +10 -9
- data/docs/Reply.md +16 -15
- data/docs/Source.md +18 -17
- data/docs/SourceWebhook.md +18 -17
- data/docs/SourceWithCampaignWebhook.md +20 -19
- data/docs/Status.md +4 -5
- data/docs/Switchboard.md +12 -11
- data/docs/SwitchboardAcceptControl.md +14 -13
- data/docs/SwitchboardAcceptControlAllOfPayload.md +10 -9
- data/docs/SwitchboardAcceptControlFailure.md +14 -13
- data/docs/SwitchboardAcceptControlFailureAllOfPayload.md +12 -11
- data/docs/SwitchboardActionsApi.md +12 -12
- data/docs/SwitchboardIntegration.md +20 -19
- data/docs/SwitchboardIntegrationCreateBody.md +18 -17
- data/docs/SwitchboardIntegrationListResponse.md +8 -7
- data/docs/SwitchboardIntegrationResponse.md +8 -7
- data/docs/SwitchboardIntegrationUpdateBody.md +18 -17
- data/docs/SwitchboardIntegrationWebhook.md +14 -13
- data/docs/SwitchboardIntegrationsApi.md +10 -10
- data/docs/SwitchboardListResponse.md +8 -7
- data/docs/SwitchboardOfferControl.md +14 -13
- data/docs/SwitchboardOfferControlAllOfPayload.md +10 -9
- data/docs/SwitchboardOfferControlFailure.md +14 -13
- data/docs/SwitchboardPassControl.md +14 -13
- data/docs/SwitchboardPassControlAllOfPayload.md +12 -11
- data/docs/SwitchboardPassControlFailure.md +14 -13
- data/docs/SwitchboardReleaseControl.md +14 -13
- data/docs/SwitchboardReleaseControlAllOfPayload.md +12 -11
- data/docs/SwitchboardResponse.md +8 -7
- data/docs/SwitchboardUpdateBody.md +10 -9
- data/docs/SwitchboardsApi.md +7 -7
- data/docs/SyncUserBody.md +8 -7
- data/docs/Target.md +8 -7
- data/docs/Telegram.md +18 -17
- data/docs/TelegramUpdate.md +10 -6
- data/docs/TemplateMessage.md +12 -11
- data/docs/TextMessage.md +20 -19
- data/docs/TicketClosed.md +10 -9
- data/docs/TransferToEmail.md +10 -9
- data/docs/Twilio.md +20 -19
- data/docs/TwilioUpdate.md +10 -6
- data/docs/Twitter.md +24 -23
- data/docs/TwitterUpdate.md +10 -6
- data/docs/Unity.md +18 -17
- data/docs/UnityUpdate.md +14 -13
- data/docs/User.md +24 -23
- data/docs/UserCreateBody.md +16 -15
- data/docs/UserMergeEvent.md +14 -13
- data/docs/UserMergeEventAllOfPayload.md +16 -15
- data/docs/UserMergeEventAllOfPayloadMergedClients.md +10 -9
- data/docs/UserMergeEventAllOfPayloadMergedConversations.md +10 -9
- data/docs/UserMergeEventAllOfPayloadMergedUsers.md +10 -9
- data/docs/UserRemoveEvent.md +14 -13
- data/docs/UserRemoveEventAllOfPayload.md +8 -7
- data/docs/UserResponse.md +8 -7
- data/docs/UserTruncated.md +14 -13
- data/docs/UserUpdateBody.md +14 -13
- data/docs/UserUpdateEvent.md +14 -13
- data/docs/UserUpdateEventAllOfPayload.md +12 -11
- data/docs/UsersApi.md +14 -14
- data/docs/Viber.md +18 -17
- data/docs/ViberUpdate.md +10 -6
- data/docs/Web.md +46 -45
- data/docs/WebUpdate.md +42 -41
- data/docs/Webhook.md +20 -19
- data/docs/WebhookBody.md +14 -13
- data/docs/WebhookCreateBody.md +14 -6
- data/docs/WebhookListResponse.md +8 -7
- data/docs/WebhookResponse.md +8 -7
- data/docs/WebhookSubSchema.md +10 -9
- data/docs/WebhooksApi.md +15 -15
- data/docs/Webview.md +24 -23
- data/docs/WhatsAppConversionEventsBody.md +8 -7
- data/docs/WhatsAppUpdate.md +16 -15
- data/docs/Whatsapp.md +20 -19
- data/lib/sunshine-conversations-client/api/activities_api.rb +11 -7
- data/lib/sunshine-conversations-client/api/app_keys_api.rb +26 -19
- data/lib/sunshine-conversations-client/api/apps_api.rb +35 -24
- data/lib/sunshine-conversations-client/api/attachments_api.rb +20 -12
- data/lib/sunshine-conversations-client/api/clients_api.rb +21 -15
- data/lib/sunshine-conversations-client/api/conversations_api.rb +53 -34
- data/lib/sunshine-conversations-client/api/custom_integration_api_keys_api.rb +26 -19
- data/lib/sunshine-conversations-client/api/devices_api.rb +12 -10
- data/lib/sunshine-conversations-client/api/integrations_api.rb +35 -24
- data/lib/sunshine-conversations-client/api/messages_api.rb +26 -19
- data/lib/sunshine-conversations-client/api/o_auth_endpoints_api.rb +36 -29
- data/lib/sunshine-conversations-client/api/participants_api.rb +25 -16
- data/lib/sunshine-conversations-client/api/switchboard_actions_api.rb +38 -22
- data/lib/sunshine-conversations-client/api/switchboard_integrations_api.rb +30 -20
- data/lib/sunshine-conversations-client/api/switchboards_api.rb +26 -19
- data/lib/sunshine-conversations-client/api/users_api.rb +44 -29
- data/lib/sunshine-conversations-client/api/webhooks_api.rb +35 -24
- data/lib/sunshine-conversations-client/api_client.rb +54 -9
- data/lib/sunshine-conversations-client/api_error.rb +3 -2
- data/lib/sunshine-conversations-client/configuration.rb +27 -29
- data/lib/sunshine-conversations-client/models/accept_control_body.rb +28 -25
- data/lib/sunshine-conversations-client/models/action.rb +30 -406
- data/lib/sunshine-conversations-client/models/action_subset.rb +24 -390
- data/lib/sunshine-conversations-client/models/activity.rb +24 -25
- data/lib/sunshine-conversations-client/models/activity_message.rb +30 -227
- data/lib/sunshine-conversations-client/models/activity_post.rb +42 -43
- data/lib/sunshine-conversations-client/models/activity_types.rb +23 -23
- data/lib/sunshine-conversations-client/models/android.rb +68 -47
- data/lib/sunshine-conversations-client/models/android_update.rb +24 -25
- data/lib/sunshine-conversations-client/models/api_key.rb +49 -24
- data/lib/sunshine-conversations-client/models/app.rb +52 -24
- data/lib/sunshine-conversations-client/models/app_create_body.rb +55 -24
- data/lib/sunshine-conversations-client/models/app_key.rb +24 -24
- data/lib/sunshine-conversations-client/models/app_key_create_body.rb +51 -23
- data/lib/sunshine-conversations-client/models/app_key_list_response.rb +26 -23
- data/lib/sunshine-conversations-client/models/app_key_response.rb +23 -23
- data/lib/sunshine-conversations-client/models/app_list_filter.rb +23 -23
- data/lib/sunshine-conversations-client/models/app_list_response.rb +27 -24
- data/lib/sunshine-conversations-client/models/app_response.rb +23 -23
- data/lib/sunshine-conversations-client/models/app_settings.rb +24 -24
- data/lib/sunshine-conversations-client/models/app_sub_schema.rb +23 -23
- data/lib/sunshine-conversations-client/models/app_update_body.rb +51 -24
- data/lib/sunshine-conversations-client/models/apple.rb +67 -46
- data/lib/sunshine-conversations-client/models/apple_message_override_payload.rb +27 -24
- data/lib/sunshine-conversations-client/models/apple_update.rb +24 -25
- data/lib/sunshine-conversations-client/models/attachment_delete_body.rb +23 -23
- data/lib/sunshine-conversations-client/models/attachment_response.rb +23 -23
- data/lib/sunshine-conversations-client/models/attachment_schema.rb +24 -24
- data/lib/sunshine-conversations-client/models/author.rb +51 -24
- data/lib/sunshine-conversations-client/models/author_webhook.rb +24 -24
- data/lib/sunshine-conversations-client/models/buy.rb +27 -24
- data/lib/sunshine-conversations-client/models/campaign.rb +23 -23
- data/lib/sunshine-conversations-client/models/carousel_message.rb +55 -24
- data/lib/sunshine-conversations-client/models/carousel_message_display_settings.rb +23 -23
- data/lib/sunshine-conversations-client/models/client.rb +24 -24
- data/lib/sunshine-conversations-client/models/client_add_event.rb +24 -25
- data/lib/sunshine-conversations-client/models/client_add_event_all_of_payload.rb +24 -24
- data/lib/sunshine-conversations-client/models/client_association.rb +46 -24
- data/lib/sunshine-conversations-client/models/client_create.rb +24 -24
- data/lib/sunshine-conversations-client/models/client_list_response.rb +27 -24
- data/lib/sunshine-conversations-client/models/client_remove_event.rb +24 -25
- data/lib/sunshine-conversations-client/models/client_remove_event_all_of_payload.rb +24 -24
- data/lib/sunshine-conversations-client/models/client_response.rb +23 -23
- data/lib/sunshine-conversations-client/models/client_type.rb +9 -5
- data/lib/sunshine-conversations-client/models/client_update_event.rb +24 -25
- data/lib/sunshine-conversations-client/models/client_update_event_all_of_payload.rb +24 -24
- data/lib/sunshine-conversations-client/models/confirmation.rb +24 -24
- data/lib/sunshine-conversations-client/models/content.rb +52 -502
- data/lib/sunshine-conversations-client/models/conversation.rb +74 -25
- data/lib/sunshine-conversations-client/models/conversation_create_body.rb +92 -24
- data/lib/sunshine-conversations-client/models/conversation_create_event.rb +24 -25
- data/lib/sunshine-conversations-client/models/conversation_create_event_all_of_payload.rb +24 -24
- data/lib/sunshine-conversations-client/models/conversation_join_event.rb +24 -25
- data/lib/sunshine-conversations-client/models/conversation_join_event_all_of_payload.rb +24 -24
- data/lib/sunshine-conversations-client/models/conversation_leave_event.rb +24 -25
- data/lib/sunshine-conversations-client/models/conversation_leave_event_all_of_payload.rb +24 -24
- data/lib/sunshine-conversations-client/models/conversation_list_filter.rb +24 -24
- data/lib/sunshine-conversations-client/models/conversation_list_response.rb +27 -24
- data/lib/sunshine-conversations-client/models/conversation_message_delivery_channel_event.rb +24 -25
- data/lib/sunshine-conversations-client/models/conversation_message_delivery_failure_event.rb +25 -26
- data/lib/sunshine-conversations-client/models/{conversation_message_delivery_channel_event_all_of.rb → conversation_message_delivery_failure_event_all_of_payload.rb} +101 -33
- data/lib/sunshine-conversations-client/models/{conversation_message_delivery_failure_event_all_of.rb → conversation_message_delivery_failure_event_all_of_payload_all_of_error.rb} +45 -33
- data/lib/sunshine-conversations-client/models/conversation_message_delivery_payload.rb +28 -25
- data/lib/sunshine-conversations-client/models/conversation_message_delivery_payload_destination.rb +24 -24
- data/lib/sunshine-conversations-client/models/{conversation_message_delivery_payload_external_messages.rb → conversation_message_delivery_payload_external_messages_inner.rb} +26 -26
- data/lib/sunshine-conversations-client/models/conversation_message_delivery_payload_message.rb +23 -23
- data/lib/sunshine-conversations-client/models/conversation_message_delivery_user_event.rb +24 -25
- data/lib/sunshine-conversations-client/models/conversation_message_event.rb +24 -25
- data/lib/sunshine-conversations-client/models/conversation_message_event_all_of_payload.rb +27 -24
- data/lib/sunshine-conversations-client/models/conversation_postback_event.rb +24 -25
- data/lib/sunshine-conversations-client/models/conversation_postback_event_all_of_payload.rb +24 -24
- data/lib/sunshine-conversations-client/models/conversation_read_event.rb +24 -25
- data/lib/sunshine-conversations-client/models/conversation_read_event_all_of_payload.rb +25 -26
- data/lib/sunshine-conversations-client/models/{custom_all_of.rb → conversation_read_event_all_of_payload_activity.rb} +53 -40
- data/lib/sunshine-conversations-client/models/conversation_referral_event.rb +24 -25
- data/lib/sunshine-conversations-client/models/conversation_referral_event_all_of_payload.rb +24 -24
- data/lib/sunshine-conversations-client/models/conversation_remove_event.rb +24 -25
- data/lib/sunshine-conversations-client/models/conversation_remove_event_all_of_payload.rb +23 -23
- data/lib/sunshine-conversations-client/models/conversation_response.rb +23 -23
- data/lib/sunshine-conversations-client/models/conversation_truncated.rb +49 -24
- data/lib/sunshine-conversations-client/models/conversation_type.rb +9 -5
- data/lib/sunshine-conversations-client/models/conversation_typing_event.rb +24 -25
- data/lib/sunshine-conversations-client/models/conversation_typing_event_all_of_payload.rb +25 -26
- data/lib/sunshine-conversations-client/models/{activity_all_of.rb → conversation_typing_event_all_of_payload_activity.rb} +45 -27
- data/lib/sunshine-conversations-client/models/conversation_update_body.rb +52 -24
- data/lib/sunshine-conversations-client/models/conversion_events_body.rb +78 -221
- data/lib/sunshine-conversations-client/models/custom.rb +77 -25
- data/lib/sunshine-conversations-client/models/custom_update.rb +23 -23
- data/lib/sunshine-conversations-client/models/default_responder.rb +23 -23
- data/lib/sunshine-conversations-client/models/default_responder_default_responder.rb +24 -24
- data/lib/sunshine-conversations-client/models/default_responder_id.rb +23 -23
- data/lib/sunshine-conversations-client/models/destination.rb +77 -213
- data/lib/sunshine-conversations-client/models/device.rb +27 -24
- data/lib/sunshine-conversations-client/models/device_list_response.rb +26 -23
- data/lib/sunshine-conversations-client/models/device_response.rb +23 -23
- data/lib/sunshine-conversations-client/models/download_message_ref_body.rb +52 -39
- data/lib/sunshine-conversations-client/models/download_message_ref_body_all_of_apple.rb +23 -23
- data/lib/sunshine-conversations-client/models/download_message_ref_body_all_of_apple_interactive_data_ref.rb +24 -24
- data/lib/sunshine-conversations-client/models/error.rb +24 -24
- data/lib/sunshine-conversations-client/models/error_response.rb +26 -23
- data/lib/sunshine-conversations-client/models/event_sub_schema.rb +24 -24
- data/lib/sunshine-conversations-client/models/extra_channel_options.rb +23 -23
- data/lib/sunshine-conversations-client/models/extra_channel_options_messenger.rb +24 -24
- data/lib/sunshine-conversations-client/models/field.rb +27 -24
- data/lib/sunshine-conversations-client/models/file_message.rb +24 -24
- data/lib/sunshine-conversations-client/models/form_message.rb +55 -24
- data/lib/sunshine-conversations-client/models/form_message_field.rb +47 -27
- data/lib/sunshine-conversations-client/models/{viber_all_of.rb → form_options_inner.rb} +82 -72
- data/lib/sunshine-conversations-client/models/form_response_message.rb +55 -24
- data/lib/sunshine-conversations-client/models/form_response_message_field.rb +28 -26
- data/lib/sunshine-conversations-client/models/{user_merge_event_all_of.rb → get_token200_response.rb} +44 -33
- data/lib/sunshine-conversations-client/models/{inline_object.rb → get_token_request.rb} +27 -27
- data/lib/sunshine-conversations-client/models/identity.rb +24 -24
- data/lib/sunshine-conversations-client/models/image_message.rb +27 -24
- data/lib/sunshine-conversations-client/models/instagram.rb +68 -47
- data/lib/sunshine-conversations-client/models/instagram_conversion_events_body.rb +23 -23
- data/lib/sunshine-conversations-client/models/instagram_update.rb +24 -25
- data/lib/sunshine-conversations-client/models/integration.rb +46 -24
- data/lib/sunshine-conversations-client/models/integration_api_key.rb +23 -23
- data/lib/sunshine-conversations-client/models/integration_api_key_list_response.rb +26 -23
- data/lib/sunshine-conversations-client/models/integration_api_key_response.rb +23 -23
- data/lib/sunshine-conversations-client/models/integration_id.rb +23 -23
- data/lib/sunshine-conversations-client/models/integration_list_filter.rb +23 -23
- data/lib/sunshine-conversations-client/models/integration_list_response.rb +27 -24
- data/lib/sunshine-conversations-client/models/integration_response.rb +23 -23
- data/lib/sunshine-conversations-client/models/integration_type.rb +23 -23
- data/lib/sunshine-conversations-client/models/integration_update.rb +95 -724
- data/lib/sunshine-conversations-client/models/integration_update_base.rb +24 -24
- data/lib/sunshine-conversations-client/models/ios.rb +69 -48
- data/lib/sunshine-conversations-client/models/ios_update.rb +25 -26
- data/lib/sunshine-conversations-client/models/item.rb +58 -24
- data/lib/sunshine-conversations-client/models/line.rb +68 -47
- data/lib/sunshine-conversations-client/models/line_update.rb +74 -32
- data/lib/sunshine-conversations-client/models/link.rb +27 -24
- data/lib/sunshine-conversations-client/models/links.rb +24 -24
- data/lib/sunshine-conversations-client/models/list_message.rb +82 -24
- data/lib/sunshine-conversations-client/models/location_message.rb +24 -24
- data/lib/sunshine-conversations-client/models/location_message_coordinates.rb +24 -24
- data/lib/sunshine-conversations-client/models/location_message_location.rb +24 -24
- data/lib/sunshine-conversations-client/models/location_request.rb +27 -24
- data/lib/sunshine-conversations-client/models/mailgun.rb +70 -49
- data/lib/sunshine-conversations-client/models/mailgun_update.rb +25 -26
- data/lib/sunshine-conversations-client/models/match_criteria.rb +34 -289
- data/lib/sunshine-conversations-client/models/match_criteria_base.rb +24 -24
- data/lib/sunshine-conversations-client/models/match_criteria_mailgun.rb +25 -26
- data/lib/sunshine-conversations-client/models/match_criteria_messagebird.rb +25 -26
- data/lib/sunshine-conversations-client/models/match_criteria_twilio.rb +25 -26
- data/lib/sunshine-conversations-client/models/match_criteria_whatsapp.rb +25 -26
- data/lib/sunshine-conversations-client/models/message.rb +29 -26
- data/lib/sunshine-conversations-client/models/message_bird_update.rb +74 -32
- data/lib/sunshine-conversations-client/models/message_list_response.rb +27 -24
- data/lib/sunshine-conversations-client/models/message_override.rb +79 -228
- data/lib/sunshine-conversations-client/models/message_override_apple.rb +23 -23
- data/lib/sunshine-conversations-client/models/message_override_line.rb +23 -23
- data/lib/sunshine-conversations-client/models/message_override_messenger.rb +23 -23
- data/lib/sunshine-conversations-client/models/message_override_payload.rb +23 -23
- data/lib/sunshine-conversations-client/models/message_override_whatsapp.rb +23 -23
- data/lib/sunshine-conversations-client/models/message_post.rb +27 -24
- data/lib/sunshine-conversations-client/models/message_post_response.rb +26 -23
- data/lib/sunshine-conversations-client/models/message_webhook.rb +30 -27
- data/lib/sunshine-conversations-client/models/{apple_all_of.rb → message_webhook_source.rb} +91 -86
- data/lib/sunshine-conversations-client/models/messagebird.rb +69 -48
- data/lib/sunshine-conversations-client/models/messenger.rb +69 -48
- data/lib/sunshine-conversations-client/models/messenger_conversion_events_body.rb +23 -23
- data/lib/sunshine-conversations-client/models/messenger_update.rb +24 -25
- data/lib/sunshine-conversations-client/models/meta.rb +24 -24
- data/lib/sunshine-conversations-client/models/meta_conversion_event.rb +23 -23
- data/lib/sunshine-conversations-client/models/meta_conversion_event_payload.rb +26 -23
- data/lib/sunshine-conversations-client/models/offer_control_body.rb +29 -26
- data/lib/sunshine-conversations-client/models/page.rb +24 -24
- data/lib/sunshine-conversations-client/models/participant.rb +27 -24
- data/lib/sunshine-conversations-client/models/participant_join_body.rb +58 -32
- data/lib/sunshine-conversations-client/models/participant_leave_body.rb +78 -224
- data/lib/sunshine-conversations-client/models/participant_leave_body_participant_id.rb +23 -23
- data/lib/sunshine-conversations-client/models/participant_leave_body_user_external_id.rb +23 -23
- data/lib/sunshine-conversations-client/models/participant_leave_body_user_id.rb +23 -23
- data/lib/sunshine-conversations-client/models/participant_list_response.rb +27 -24
- data/lib/sunshine-conversations-client/models/participant_response.rb +23 -23
- data/lib/sunshine-conversations-client/models/participant_sub_schema.rb +77 -220
- data/lib/sunshine-conversations-client/models/participant_with_user_external_id.rb +24 -24
- data/lib/sunshine-conversations-client/models/participant_with_user_id.rb +24 -24
- data/lib/sunshine-conversations-client/models/pass_control_body.rb +29 -26
- data/lib/sunshine-conversations-client/models/postback.rb +27 -24
- data/lib/sunshine-conversations-client/models/postback_webhook.rb +27 -24
- data/lib/sunshine-conversations-client/models/prechat_capture.rb +27 -24
- data/lib/sunshine-conversations-client/models/profile.rb +24 -24
- data/lib/sunshine-conversations-client/models/quoted_message.rb +30 -237
- data/lib/sunshine-conversations-client/models/quoted_message_external_message_id.rb +24 -24
- data/lib/sunshine-conversations-client/models/quoted_message_message.rb +24 -24
- data/lib/sunshine-conversations-client/models/referral.rb +24 -24
- data/lib/sunshine-conversations-client/models/referral_details.rb +24 -24
- data/lib/sunshine-conversations-client/models/release_control_body.rb +29 -26
- data/lib/sunshine-conversations-client/models/reply.rb +27 -24
- data/lib/sunshine-conversations-client/models/source.rb +24 -24
- data/lib/sunshine-conversations-client/models/source_webhook.rb +24 -24
- data/lib/sunshine-conversations-client/models/source_with_campaign_webhook.rb +25 -26
- data/lib/sunshine-conversations-client/models/status.rb +9 -5
- data/lib/sunshine-conversations-client/models/switchboard.rb +24 -24
- data/lib/sunshine-conversations-client/models/switchboard_accept_control.rb +25 -26
- data/lib/sunshine-conversations-client/models/switchboard_accept_control_all_of_payload.rb +27 -24
- data/lib/sunshine-conversations-client/models/switchboard_accept_control_failure.rb +25 -26
- data/lib/sunshine-conversations-client/models/switchboard_accept_control_failure_all_of_payload.rb +27 -24
- data/lib/sunshine-conversations-client/models/switchboard_integration.rb +24 -24
- data/lib/sunshine-conversations-client/models/switchboard_integration_create_body.rb +25 -24
- data/lib/sunshine-conversations-client/models/switchboard_integration_list_response.rb +26 -23
- data/lib/sunshine-conversations-client/models/switchboard_integration_response.rb +23 -23
- data/lib/sunshine-conversations-client/models/switchboard_integration_update_body.rb +24 -24
- data/lib/sunshine-conversations-client/models/switchboard_integration_webhook.rb +24 -24
- data/lib/sunshine-conversations-client/models/switchboard_list_response.rb +26 -23
- data/lib/sunshine-conversations-client/models/switchboard_offer_control.rb +25 -26
- data/lib/sunshine-conversations-client/models/switchboard_offer_control_all_of_payload.rb +27 -24
- data/lib/sunshine-conversations-client/models/switchboard_offer_control_failure.rb +25 -26
- data/lib/sunshine-conversations-client/models/switchboard_pass_control.rb +25 -26
- data/lib/sunshine-conversations-client/models/switchboard_pass_control_all_of_payload.rb +27 -24
- data/lib/sunshine-conversations-client/models/switchboard_pass_control_failure.rb +25 -26
- data/lib/sunshine-conversations-client/models/switchboard_release_control.rb +25 -26
- data/lib/sunshine-conversations-client/models/switchboard_release_control_all_of_payload.rb +27 -24
- data/lib/sunshine-conversations-client/models/switchboard_response.rb +23 -23
- data/lib/sunshine-conversations-client/models/switchboard_update_body.rb +24 -24
- data/lib/sunshine-conversations-client/models/sync_user_body.rb +23 -23
- data/lib/sunshine-conversations-client/models/target.rb +23 -23
- data/lib/sunshine-conversations-client/models/telegram.rb +69 -48
- data/lib/sunshine-conversations-client/models/telegram_update.rb +74 -32
- data/lib/sunshine-conversations-client/models/template_message.rb +24 -24
- data/lib/sunshine-conversations-client/models/text_message.rb +27 -24
- data/lib/sunshine-conversations-client/models/ticket_closed.rb +27 -24
- data/lib/sunshine-conversations-client/models/transfer_to_email.rb +27 -24
- data/lib/sunshine-conversations-client/models/twilio.rb +69 -48
- data/lib/sunshine-conversations-client/models/twilio_update.rb +74 -32
- data/lib/sunshine-conversations-client/models/twitter.rb +50 -51
- data/lib/sunshine-conversations-client/models/twitter_update.rb +74 -32
- data/lib/sunshine-conversations-client/models/unity.rb +68 -47
- data/lib/sunshine-conversations-client/models/unity_update.rb +25 -26
- data/lib/sunshine-conversations-client/models/user.rb +34 -27
- data/lib/sunshine-conversations-client/models/user_create_body.rb +27 -24
- data/lib/sunshine-conversations-client/models/user_merge_event.rb +25 -26
- data/lib/sunshine-conversations-client/models/user_merge_event_all_of_payload.rb +28 -26
- data/lib/sunshine-conversations-client/models/user_merge_event_all_of_payload_merged_clients.rb +24 -24
- data/lib/sunshine-conversations-client/models/user_merge_event_all_of_payload_merged_conversations.rb +24 -24
- data/lib/sunshine-conversations-client/models/user_merge_event_all_of_payload_merged_users.rb +24 -24
- data/lib/sunshine-conversations-client/models/user_remove_event.rb +25 -26
- data/lib/sunshine-conversations-client/models/user_remove_event_all_of_payload.rb +23 -23
- data/lib/sunshine-conversations-client/models/user_response.rb +23 -23
- data/lib/sunshine-conversations-client/models/user_truncated.rb +24 -24
- data/lib/sunshine-conversations-client/models/user_update_body.rb +29 -24
- data/lib/sunshine-conversations-client/models/user_update_event.rb +25 -26
- data/lib/sunshine-conversations-client/models/user_update_event_all_of_payload.rb +24 -24
- data/lib/sunshine-conversations-client/models/viber.rb +69 -48
- data/lib/sunshine-conversations-client/models/viber_update.rb +74 -32
- data/lib/sunshine-conversations-client/models/web.rb +75 -48
- data/lib/sunshine-conversations-client/models/web_update.rb +31 -26
- data/lib/sunshine-conversations-client/models/webhook.rb +27 -24
- data/lib/sunshine-conversations-client/models/webhook_body.rb +27 -24
- data/lib/sunshine-conversations-client/models/webhook_create_body.rb +84 -32
- data/lib/sunshine-conversations-client/models/webhook_list_response.rb +26 -23
- data/lib/sunshine-conversations-client/models/webhook_response.rb +23 -23
- data/lib/sunshine-conversations-client/models/webhook_sub_schema.rb +24 -24
- data/lib/sunshine-conversations-client/models/webview.rb +27 -24
- data/lib/sunshine-conversations-client/models/whats_app_conversion_events_body.rb +23 -23
- data/lib/sunshine-conversations-client/models/whats_app_update.rb +25 -26
- data/lib/sunshine-conversations-client/models/whatsapp.rb +70 -49
- data/lib/sunshine-conversations-client/version.rb +3 -3
- data/lib/sunshine-conversations-client.rb +11 -63
- data/spec/spec_helper.rb +2 -2
- data/sunshine-conversations-client.gemspec +5 -5
- metadata +21 -149
- data/docs/ActivityAllOf.md +0 -19
- data/docs/ActivityPostAllOf.md +0 -17
- data/docs/AndroidAllOf.md +0 -33
- data/docs/AndroidUpdateAllOf.md +0 -29
- data/docs/AppleAllOf.md +0 -25
- data/docs/AppleUpdateAllOf.md +0 -17
- data/docs/AttachmentUploadBody.md +0 -17
- data/docs/ClientAddEventAllOf.md +0 -17
- data/docs/ClientRemoveEventAllOf.md +0 -17
- data/docs/ClientUpdateEventAllOf.md +0 -17
- data/docs/ConversationAllOf.md +0 -29
- data/docs/ConversationCreateEventAllOf.md +0 -17
- data/docs/ConversationJoinEventAllOf.md +0 -17
- data/docs/ConversationLeaveEventAllOf.md +0 -17
- data/docs/ConversationMessageDeliveryChannelEventAllOf.md +0 -17
- data/docs/ConversationMessageDeliveryFailureEventAllOf.md +0 -17
- data/docs/ConversationMessageDeliveryPayloadExternalMessages.md +0 -17
- data/docs/ConversationMessageEventAllOf.md +0 -17
- data/docs/ConversationPostbackEventAllOf.md +0 -17
- data/docs/ConversationReadEventAllOf.md +0 -17
- data/docs/ConversationReferralEventAllOf.md +0 -17
- data/docs/ConversationRemoveEventAllOf.md +0 -17
- data/docs/ConversationTypingEventAllOf.md +0 -17
- data/docs/CustomAllOf.md +0 -19
- data/docs/DownloadMessageRefBodyAllOf.md +0 -19
- data/docs/FormMessageFieldAllOf.md +0 -23
- data/docs/FormResponseMessageFieldAllOf.md +0 -17
- data/docs/InlineObject.md +0 -23
- data/docs/InstagramAllOf.md +0 -35
- data/docs/InstagramUpdateAllOf.md +0 -17
- data/docs/IosAllOf.md +0 -31
- data/docs/IosUpdateAllOf.md +0 -27
- data/docs/LineAllOf.md +0 -31
- data/docs/MailgunAllOf.md +0 -27
- data/docs/MailgunUpdateAllOf.md +0 -19
- data/docs/MatchCriteriaMailgunAllOf.md +0 -21
- data/docs/MatchCriteriaMessagebirdAllOf.md +0 -19
- data/docs/MatchCriteriaTwilioAllOf.md +0 -19
- data/docs/MatchCriteriaWhatsappAllOf.md +0 -19
- data/docs/MessagebirdAllOf.md +0 -25
- data/docs/MessengerAllOf.md +0 -27
- data/docs/SourceWithCampaignWebhookAllOf.md +0 -17
- data/docs/SwitchboardAcceptControlAllOf.md +0 -17
- data/docs/SwitchboardAcceptControlFailureAllOf.md +0 -17
- data/docs/SwitchboardOfferControlAllOf.md +0 -17
- data/docs/SwitchboardPassControlAllOf.md +0 -17
- data/docs/SwitchboardReleaseControlAllOf.md +0 -17
- data/docs/TelegramAllOf.md +0 -23
- data/docs/TwilioAllOf.md +0 -25
- data/docs/TwitterAllOf.md +0 -29
- data/docs/UnityAllOf.md +0 -23
- data/docs/UnityUpdateAllOf.md +0 -19
- data/docs/UserAllOf.md +0 -25
- data/docs/UserMergeEventAllOf.md +0 -17
- data/docs/UserRemoveEventAllOf.md +0 -17
- data/docs/UserUpdateEventAllOf.md +0 -17
- data/docs/ViberAllOf.md +0 -23
- data/docs/WebAllOf.md +0 -51
- data/docs/WebUpdateAllOf.md +0 -47
- data/docs/WhatsAppUpdateAllOf.md +0 -21
- data/docs/WhatsappAllOf.md +0 -25
- data/lib/sunshine-conversations-client/models/activity_post_all_of.rb +0 -204
- data/lib/sunshine-conversations-client/models/android_all_of.rb +0 -366
- data/lib/sunshine-conversations-client/models/android_update_all_of.rb +0 -344
- data/lib/sunshine-conversations-client/models/apple_update_all_of.rb +0 -219
- data/lib/sunshine-conversations-client/models/attachment_upload_body.rb +0 -208
- data/lib/sunshine-conversations-client/models/client_add_event_all_of.rb +0 -203
- data/lib/sunshine-conversations-client/models/client_remove_event_all_of.rb +0 -203
- data/lib/sunshine-conversations-client/models/client_update_event_all_of.rb +0 -203
- data/lib/sunshine-conversations-client/models/conversation_all_of.rb +0 -316
- data/lib/sunshine-conversations-client/models/conversation_create_event_all_of.rb +0 -203
- data/lib/sunshine-conversations-client/models/conversation_join_event_all_of.rb +0 -203
- data/lib/sunshine-conversations-client/models/conversation_leave_event_all_of.rb +0 -203
- data/lib/sunshine-conversations-client/models/conversation_message_event_all_of.rb +0 -203
- data/lib/sunshine-conversations-client/models/conversation_postback_event_all_of.rb +0 -203
- data/lib/sunshine-conversations-client/models/conversation_read_event_all_of.rb +0 -203
- data/lib/sunshine-conversations-client/models/conversation_referral_event_all_of.rb +0 -203
- data/lib/sunshine-conversations-client/models/conversation_remove_event_all_of.rb +0 -203
- data/lib/sunshine-conversations-client/models/conversation_typing_event_all_of.rb +0 -203
- data/lib/sunshine-conversations-client/models/download_message_ref_body_all_of.rb +0 -213
- data/lib/sunshine-conversations-client/models/form_message_field_all_of.rb +0 -310
- data/lib/sunshine-conversations-client/models/form_response_message_field_all_of.rb +0 -205
- data/lib/sunshine-conversations-client/models/instagram_all_of.rb +0 -303
- data/lib/sunshine-conversations-client/models/instagram_update_all_of.rb +0 -204
- data/lib/sunshine-conversations-client/models/ios_all_of.rb +0 -292
- data/lib/sunshine-conversations-client/models/ios_update_all_of.rb +0 -270
- data/lib/sunshine-conversations-client/models/line_all_of.rb +0 -291
- data/lib/sunshine-conversations-client/models/mailgun_all_of.rb +0 -336
- data/lib/sunshine-conversations-client/models/mailgun_update_all_of.rb +0 -230
- data/lib/sunshine-conversations-client/models/match_criteria_mailgun_all_of.rb +0 -234
- data/lib/sunshine-conversations-client/models/match_criteria_messagebird_all_of.rb +0 -222
- data/lib/sunshine-conversations-client/models/match_criteria_twilio_all_of.rb +0 -222
- data/lib/sunshine-conversations-client/models/match_criteria_whatsapp_all_of.rb +0 -222
- data/lib/sunshine-conversations-client/models/messagebird_all_of.rb +0 -302
- data/lib/sunshine-conversations-client/models/messenger_all_of.rb +0 -263
- data/lib/sunshine-conversations-client/models/source_with_campaign_webhook_all_of.rb +0 -204
- data/lib/sunshine-conversations-client/models/switchboard_accept_control_all_of.rb +0 -203
- data/lib/sunshine-conversations-client/models/switchboard_accept_control_failure_all_of.rb +0 -203
- data/lib/sunshine-conversations-client/models/switchboard_offer_control_all_of.rb +0 -203
- data/lib/sunshine-conversations-client/models/switchboard_pass_control_all_of.rb +0 -203
- data/lib/sunshine-conversations-client/models/switchboard_release_control_all_of.rb +0 -203
- data/lib/sunshine-conversations-client/models/telegram_all_of.rb +0 -252
- data/lib/sunshine-conversations-client/models/twilio_all_of.rb +0 -297
- data/lib/sunshine-conversations-client/models/twitter_all_of.rb +0 -400
- data/lib/sunshine-conversations-client/models/unity_all_of.rb +0 -236
- data/lib/sunshine-conversations-client/models/unity_update_all_of.rb +0 -214
- data/lib/sunshine-conversations-client/models/user_all_of.rb +0 -239
- data/lib/sunshine-conversations-client/models/user_remove_event_all_of.rb +0 -203
- data/lib/sunshine-conversations-client/models/user_update_event_all_of.rb +0 -203
- data/lib/sunshine-conversations-client/models/web_all_of.rb +0 -391
- data/lib/sunshine-conversations-client/models/web_update_all_of.rb +0 -370
- data/lib/sunshine-conversations-client/models/whats_app_update_all_of.rb +0 -229
- data/lib/sunshine-conversations-client/models/whatsapp_all_of.rb +0 -252
- data/spec/api_client_spec.rb +0 -223
- data/spec/configuration_spec.rb +0 -39
@@ -1,745 +1,116 @@
|
|
1
1
|
=begin
|
2
2
|
#Sunshine Conversations API
|
3
3
|
|
4
|
-
The version of the OpenAPI document:
|
4
|
+
The version of the OpenAPI document: 17.0.0
|
5
5
|
|
6
6
|
Generated by: https://openapi-generator.tech
|
7
|
-
OpenAPI Generator version:
|
7
|
+
OpenAPI Generator version: 7.12.0
|
8
8
|
=end
|
9
9
|
|
10
10
|
require 'date'
|
11
|
+
require 'time'
|
11
12
|
|
12
13
|
module SunshineConversationsClient
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
attr_accessor :production
|
55
|
-
|
56
|
-
# Use the unread count of the conversation as the application badge.
|
57
|
-
attr_accessor :auto_update_badge
|
58
|
-
|
59
|
-
# A boolean value indicating whether the unsubscribe link should be omitted from outgoing emails. When enabled, it is expected that the business is providing the user a way to unsubscribe by some other means. By default, the unsubscribe link will be included in all outgoing emails.
|
60
|
-
attr_accessor :hide_unsubscribe_link
|
61
|
-
|
62
|
-
# Email address to use as the From and Reply-To address if it must be different from incomingAddress. Only use this option if the address that you supply is configured to forward emails to the incomingAddress, otherwise user replies will be lost. You must also make sure that the domain is properly configured as a mail provider so as to not be flagged as spam by the user’s email client. May be unset with null.
|
63
|
-
attr_accessor :from_address
|
64
|
-
|
65
|
-
# 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.
|
66
|
-
attr_accessor :brand_color
|
67
|
-
|
68
|
-
# When true, the introduction pane will be pinned at the top of the conversation instead of scrolling with it.
|
69
|
-
attr_accessor :fixed_intro_pane
|
70
|
-
|
71
|
-
# This color will be used for customer messages, quick replies and actions in the footer. Must be a 3 or 6-character hexadecimal color.
|
72
|
-
attr_accessor :conversation_color
|
73
|
-
|
74
|
-
# This color will be used for call-to-actions inside your messages. Must be a 3 or 6-character hexadecimal color.
|
75
|
-
attr_accessor :action_color
|
76
|
-
|
77
|
-
# Choose how the messenger will appear on your website. Must be either button or tab.
|
78
|
-
attr_accessor :display_style
|
79
|
-
|
80
|
-
# 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.
|
81
|
-
attr_accessor :button_icon_url
|
82
|
-
|
83
|
-
# With the button style Web Messenger, you have the option of specifying the button width.
|
84
|
-
attr_accessor :button_width
|
85
|
-
|
86
|
-
# With the button style Web Messenger, you have the option of specifying the button height.
|
87
|
-
attr_accessor :button_height
|
88
|
-
|
89
|
-
# 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.
|
90
|
-
attr_accessor :integration_order
|
91
|
-
|
92
|
-
# A custom business name for the Web Messenger.
|
93
|
-
attr_accessor :business_name
|
94
|
-
|
95
|
-
# 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.
|
96
|
-
attr_accessor :business_icon_url
|
97
|
-
|
98
|
-
# A background image url for the conversation. Image will be tiled to fit the window.
|
99
|
-
attr_accessor :background_image_url
|
100
|
-
|
101
|
-
# 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.
|
102
|
-
attr_accessor :origin_whitelist
|
103
|
-
|
104
|
-
# 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.
|
105
|
-
attr_accessor :prechat_capture
|
106
|
-
|
107
|
-
# Specify a fallback language to use when sending WhatsApp message template using the short hand syntax. Defaults to en_US. See WhatsApp documentation for more info.
|
108
|
-
attr_accessor :hsm_fallback_language
|
109
|
-
|
110
|
-
# The business ID associated with the WhatsApp account. In combination with accountManagementAccessToken, it’s used for Message Template Reconstruction.
|
111
|
-
attr_accessor :account_id
|
112
|
-
|
113
|
-
# An access token associated with the accountId used to query the WhatsApp Account Management API. In combination with accountId, it’s used for Message Template Reconstruction.
|
114
|
-
attr_accessor :account_management_access_token
|
115
|
-
|
116
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
117
|
-
def self.attribute_map
|
118
|
-
{
|
119
|
-
:'display_name' => :'displayName',
|
120
|
-
:'default_responder_id' => :'defaultResponderId',
|
121
|
-
:'project_id' => :'projectId',
|
122
|
-
:'client_email' => :'clientEmail',
|
123
|
-
:'private_key' => :'privateKey',
|
124
|
-
:'server_key' => :'serverKey',
|
125
|
-
:'sender_id' => :'senderId',
|
126
|
-
:'can_user_see_conversation_list' => :'canUserSeeConversationList',
|
127
|
-
:'can_user_create_more_conversations' => :'canUserCreateMoreConversations',
|
128
|
-
:'authentication_message_secret' => :'authenticationMessageSecret',
|
129
|
-
:'page_access_token' => :'pageAccessToken',
|
130
|
-
:'certificate' => :'certificate',
|
131
|
-
:'password' => :'password',
|
132
|
-
:'production' => :'production',
|
133
|
-
:'auto_update_badge' => :'autoUpdateBadge',
|
134
|
-
:'hide_unsubscribe_link' => :'hideUnsubscribeLink',
|
135
|
-
:'from_address' => :'fromAddress',
|
136
|
-
:'brand_color' => :'brandColor',
|
137
|
-
:'fixed_intro_pane' => :'fixedIntroPane',
|
138
|
-
:'conversation_color' => :'conversationColor',
|
139
|
-
:'action_color' => :'actionColor',
|
140
|
-
:'display_style' => :'displayStyle',
|
141
|
-
:'button_icon_url' => :'buttonIconUrl',
|
142
|
-
:'button_width' => :'buttonWidth',
|
143
|
-
:'button_height' => :'buttonHeight',
|
144
|
-
:'integration_order' => :'integrationOrder',
|
145
|
-
:'business_name' => :'businessName',
|
146
|
-
:'business_icon_url' => :'businessIconUrl',
|
147
|
-
:'background_image_url' => :'backgroundImageUrl',
|
148
|
-
:'origin_whitelist' => :'originWhitelist',
|
149
|
-
:'prechat_capture' => :'prechatCapture',
|
150
|
-
:'hsm_fallback_language' => :'hsmFallbackLanguage',
|
151
|
-
:'account_id' => :'accountId',
|
152
|
-
:'account_management_access_token' => :'accountManagementAccessToken'
|
153
|
-
}
|
154
|
-
end
|
155
|
-
|
156
|
-
# Attribute type mapping.
|
157
|
-
def self.openapi_types
|
158
|
-
{
|
159
|
-
:'display_name' => :'String',
|
160
|
-
:'default_responder_id' => :'String',
|
161
|
-
:'project_id' => :'String',
|
162
|
-
:'client_email' => :'String',
|
163
|
-
:'private_key' => :'String',
|
164
|
-
:'server_key' => :'String',
|
165
|
-
:'sender_id' => :'String',
|
166
|
-
:'can_user_see_conversation_list' => :'Boolean',
|
167
|
-
:'can_user_create_more_conversations' => :'Boolean',
|
168
|
-
:'authentication_message_secret' => :'String',
|
169
|
-
:'page_access_token' => :'String',
|
170
|
-
:'certificate' => :'String',
|
171
|
-
:'password' => :'String',
|
172
|
-
:'production' => :'Boolean',
|
173
|
-
:'auto_update_badge' => :'Boolean',
|
174
|
-
:'hide_unsubscribe_link' => :'Boolean',
|
175
|
-
:'from_address' => :'String',
|
176
|
-
:'brand_color' => :'String',
|
177
|
-
:'fixed_intro_pane' => :'Boolean',
|
178
|
-
:'conversation_color' => :'String',
|
179
|
-
:'action_color' => :'String',
|
180
|
-
:'display_style' => :'String',
|
181
|
-
:'button_icon_url' => :'String',
|
182
|
-
:'button_width' => :'String',
|
183
|
-
:'button_height' => :'String',
|
184
|
-
:'integration_order' => :'Array<String>',
|
185
|
-
:'business_name' => :'String',
|
186
|
-
:'business_icon_url' => :'String',
|
187
|
-
:'background_image_url' => :'String',
|
188
|
-
:'origin_whitelist' => :'Array<String>',
|
189
|
-
:'prechat_capture' => :'PrechatCapture',
|
190
|
-
:'hsm_fallback_language' => :'String',
|
191
|
-
:'account_id' => :'String',
|
192
|
-
:'account_management_access_token' => :'String'
|
193
|
-
}
|
194
|
-
end
|
195
|
-
|
196
|
-
# List of attributes with nullable: true
|
197
|
-
def self.openapi_nullable
|
198
|
-
Set.new([
|
199
|
-
:'display_name',
|
200
|
-
:'default_responder_id',
|
201
|
-
:'project_id',
|
202
|
-
:'client_email',
|
203
|
-
:'private_key',
|
204
|
-
:'server_key',
|
205
|
-
:'sender_id',
|
206
|
-
:'certificate',
|
207
|
-
:'from_address',
|
208
|
-
:'button_icon_url',
|
209
|
-
:'integration_order',
|
210
|
-
:'origin_whitelist',
|
211
|
-
:'hsm_fallback_language',
|
212
|
-
:'account_id',
|
213
|
-
:'account_management_access_token'
|
214
|
-
])
|
215
|
-
end
|
216
|
-
|
217
|
-
# List of class defined in oneOf (OpenAPI v3)
|
218
|
-
def self.openapi_one_of
|
219
|
-
[
|
220
|
-
:'AndroidUpdate',
|
221
|
-
:'AppleUpdate',
|
222
|
-
:'CustomUpdate',
|
223
|
-
:'InstagramUpdate',
|
224
|
-
:'IosUpdate',
|
225
|
-
:'LineUpdate',
|
226
|
-
:'MailgunUpdate',
|
227
|
-
:'MessageBirdUpdate',
|
228
|
-
:'MessengerUpdate',
|
229
|
-
:'TelegramUpdate',
|
230
|
-
:'TwilioUpdate',
|
231
|
-
:'TwitterUpdate',
|
232
|
-
:'UnityUpdate',
|
233
|
-
:'ViberUpdate',
|
234
|
-
:'WebUpdate',
|
235
|
-
:'WhatsAppUpdate'
|
236
|
-
]
|
237
|
-
end
|
238
|
-
|
239
|
-
# Initializes the object
|
240
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
241
|
-
def initialize(attributes = {})
|
242
|
-
if (!attributes.is_a?(Hash))
|
243
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `SunshineConversationsClient::IntegrationUpdate` initialize method"
|
244
|
-
end
|
245
|
-
|
246
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
247
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
248
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
249
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `SunshineConversationsClient::IntegrationUpdate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
250
|
-
end
|
251
|
-
h[k.to_sym] = v
|
252
|
-
}
|
253
|
-
|
254
|
-
if attributes.key?(:'display_name')
|
255
|
-
self.display_name = attributes[:'display_name']
|
256
|
-
end
|
257
|
-
|
258
|
-
if attributes.key?(:'default_responder_id')
|
259
|
-
self.default_responder_id = attributes[:'default_responder_id']
|
260
|
-
end
|
261
|
-
|
262
|
-
if attributes.key?(:'project_id')
|
263
|
-
self.project_id = attributes[:'project_id']
|
264
|
-
end
|
265
|
-
|
266
|
-
if attributes.key?(:'client_email')
|
267
|
-
self.client_email = attributes[:'client_email']
|
268
|
-
end
|
269
|
-
|
270
|
-
if attributes.key?(:'private_key')
|
271
|
-
self.private_key = attributes[:'private_key']
|
272
|
-
end
|
273
|
-
|
274
|
-
if attributes.key?(:'server_key')
|
275
|
-
self.server_key = attributes[:'server_key']
|
276
|
-
end
|
277
|
-
|
278
|
-
if attributes.key?(:'sender_id')
|
279
|
-
self.sender_id = attributes[:'sender_id']
|
280
|
-
end
|
281
|
-
|
282
|
-
if attributes.key?(:'can_user_see_conversation_list')
|
283
|
-
self.can_user_see_conversation_list = attributes[:'can_user_see_conversation_list']
|
284
|
-
end
|
285
|
-
|
286
|
-
if attributes.key?(:'can_user_create_more_conversations')
|
287
|
-
self.can_user_create_more_conversations = attributes[:'can_user_create_more_conversations']
|
288
|
-
end
|
289
|
-
|
290
|
-
if attributes.key?(:'authentication_message_secret')
|
291
|
-
self.authentication_message_secret = attributes[:'authentication_message_secret']
|
292
|
-
end
|
293
|
-
|
294
|
-
if attributes.key?(:'page_access_token')
|
295
|
-
self.page_access_token = attributes[:'page_access_token']
|
296
|
-
end
|
297
|
-
|
298
|
-
if attributes.key?(:'certificate')
|
299
|
-
self.certificate = attributes[:'certificate']
|
300
|
-
end
|
301
|
-
|
302
|
-
if attributes.key?(:'password')
|
303
|
-
self.password = attributes[:'password']
|
304
|
-
end
|
305
|
-
|
306
|
-
if attributes.key?(:'production')
|
307
|
-
self.production = attributes[:'production']
|
308
|
-
end
|
309
|
-
|
310
|
-
if attributes.key?(:'auto_update_badge')
|
311
|
-
self.auto_update_badge = attributes[:'auto_update_badge']
|
312
|
-
end
|
313
|
-
|
314
|
-
if attributes.key?(:'hide_unsubscribe_link')
|
315
|
-
self.hide_unsubscribe_link = attributes[:'hide_unsubscribe_link']
|
316
|
-
end
|
317
|
-
|
318
|
-
if attributes.key?(:'from_address')
|
319
|
-
self.from_address = attributes[:'from_address']
|
320
|
-
end
|
321
|
-
|
322
|
-
if attributes.key?(:'brand_color')
|
323
|
-
self.brand_color = attributes[:'brand_color']
|
324
|
-
else
|
325
|
-
self.brand_color = '65758e'
|
326
|
-
end
|
327
|
-
|
328
|
-
if attributes.key?(:'fixed_intro_pane')
|
329
|
-
self.fixed_intro_pane = attributes[:'fixed_intro_pane']
|
330
|
-
else
|
331
|
-
self.fixed_intro_pane = false
|
332
|
-
end
|
333
|
-
|
334
|
-
if attributes.key?(:'conversation_color')
|
335
|
-
self.conversation_color = attributes[:'conversation_color']
|
336
|
-
else
|
337
|
-
self.conversation_color = '0099ff'
|
338
|
-
end
|
339
|
-
|
340
|
-
if attributes.key?(:'action_color')
|
341
|
-
self.action_color = attributes[:'action_color']
|
342
|
-
else
|
343
|
-
self.action_color = '0099ff'
|
344
|
-
end
|
345
|
-
|
346
|
-
if attributes.key?(:'display_style')
|
347
|
-
self.display_style = attributes[:'display_style']
|
348
|
-
else
|
349
|
-
self.display_style = 'button'
|
350
|
-
end
|
351
|
-
|
352
|
-
if attributes.key?(:'button_icon_url')
|
353
|
-
self.button_icon_url = attributes[:'button_icon_url']
|
354
|
-
end
|
355
|
-
|
356
|
-
if attributes.key?(:'button_width')
|
357
|
-
self.button_width = attributes[:'button_width']
|
358
|
-
else
|
359
|
-
self.button_width = '58'
|
360
|
-
end
|
361
|
-
|
362
|
-
if attributes.key?(:'button_height')
|
363
|
-
self.button_height = attributes[:'button_height']
|
364
|
-
else
|
365
|
-
self.button_height = '58'
|
366
|
-
end
|
367
|
-
|
368
|
-
if attributes.key?(:'integration_order')
|
369
|
-
end
|
370
|
-
|
371
|
-
if attributes.key?(:'business_name')
|
372
|
-
self.business_name = attributes[:'business_name']
|
373
|
-
end
|
374
|
-
|
375
|
-
if attributes.key?(:'business_icon_url')
|
376
|
-
self.business_icon_url = attributes[:'business_icon_url']
|
377
|
-
end
|
378
|
-
|
379
|
-
if attributes.key?(:'background_image_url')
|
380
|
-
self.background_image_url = attributes[:'background_image_url']
|
381
|
-
end
|
382
|
-
|
383
|
-
if attributes.key?(:'origin_whitelist')
|
384
|
-
end
|
385
|
-
|
386
|
-
if attributes.key?(:'prechat_capture')
|
387
|
-
self.prechat_capture = attributes[:'prechat_capture']
|
388
|
-
end
|
389
|
-
|
390
|
-
if attributes.key?(:'hsm_fallback_language')
|
391
|
-
self.hsm_fallback_language = attributes[:'hsm_fallback_language']
|
392
|
-
else
|
393
|
-
self.hsm_fallback_language = 'en_US'
|
394
|
-
end
|
395
|
-
|
396
|
-
if attributes.key?(:'account_id')
|
397
|
-
self.account_id = attributes[:'account_id']
|
398
|
-
end
|
399
|
-
|
400
|
-
if attributes.key?(:'account_management_access_token')
|
401
|
-
self.account_management_access_token = attributes[:'account_management_access_token']
|
402
|
-
end
|
403
|
-
end
|
404
|
-
|
405
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
406
|
-
# @return Array for valid properties with the reasons
|
407
|
-
def list_invalid_properties
|
408
|
-
invalid_properties = Array.new
|
409
|
-
if !@display_name.nil? && @display_name.to_s.length > 100
|
410
|
-
invalid_properties.push('invalid value for "display_name", the character length must be smaller than or equal to 100.')
|
411
|
-
end
|
412
|
-
|
413
|
-
if !@display_name.nil? && @display_name.to_s.length < 1
|
414
|
-
invalid_properties.push('invalid value for "display_name", the character length must be great than or equal to 1.')
|
415
|
-
end
|
416
|
-
|
417
|
-
if !@project_id.nil? && @project_id.to_s.length < 1
|
418
|
-
invalid_properties.push('invalid value for "project_id", the character length must be great than or equal to 1.')
|
419
|
-
end
|
420
|
-
|
421
|
-
if !@client_email.nil? && @client_email.to_s.length < 1
|
422
|
-
invalid_properties.push('invalid value for "client_email", the character length must be great than or equal to 1.')
|
423
|
-
end
|
424
|
-
|
425
|
-
if !@private_key.nil? && @private_key.to_s.length < 1
|
426
|
-
invalid_properties.push('invalid value for "private_key", the character length must be great than or equal to 1.')
|
427
|
-
end
|
428
|
-
|
429
|
-
if !@server_key.nil? && @server_key.to_s.length < 1
|
430
|
-
invalid_properties.push('invalid value for "server_key", the character length must be great than or equal to 1.')
|
431
|
-
end
|
432
|
-
|
433
|
-
if !@sender_id.nil? && @sender_id.to_s.length < 1
|
434
|
-
invalid_properties.push('invalid value for "sender_id", the character length must be great than or equal to 1.')
|
435
|
-
end
|
436
|
-
|
437
|
-
if !@authentication_message_secret.nil? && @authentication_message_secret.to_s.length < 88
|
438
|
-
invalid_properties.push('invalid value for "authentication_message_secret", the character length must be great than or equal to 88.')
|
439
|
-
end
|
440
|
-
|
441
|
-
if !@certificate.nil? && @certificate.to_s.length < 1
|
442
|
-
invalid_properties.push('invalid value for "certificate", the character length must be great than or equal to 1.')
|
443
|
-
end
|
444
|
-
|
445
|
-
if !@from_address.nil? && @from_address.to_s.length < 1
|
446
|
-
invalid_properties.push('invalid value for "from_address", the character length must be great than or equal to 1.')
|
447
|
-
end
|
448
|
-
|
449
|
-
invalid_properties
|
450
|
-
end
|
451
|
-
|
452
|
-
# Check to see if the all the properties in the model are valid
|
453
|
-
# @return true if the model is valid
|
454
|
-
def valid?
|
455
|
-
return false if !@display_name.nil? && @display_name.to_s.length > 100
|
456
|
-
return false if !@display_name.nil? && @display_name.to_s.length < 1
|
457
|
-
return false if !@project_id.nil? && @project_id.to_s.length < 1
|
458
|
-
return false if !@client_email.nil? && @client_email.to_s.length < 1
|
459
|
-
return false if !@private_key.nil? && @private_key.to_s.length < 1
|
460
|
-
return false if !@server_key.nil? && @server_key.to_s.length < 1
|
461
|
-
return false if !@sender_id.nil? && @sender_id.to_s.length < 1
|
462
|
-
return false if !@authentication_message_secret.nil? && @authentication_message_secret.to_s.length < 88
|
463
|
-
return false if !@certificate.nil? && @certificate.to_s.length < 1
|
464
|
-
return false if !@from_address.nil? && @from_address.to_s.length < 1
|
465
|
-
_one_of_found = false
|
466
|
-
self.class.openapi_one_of.each do |_class|
|
467
|
-
_one_of = SunshineConversationsClient.const_get(_class).build_from_hash(self.to_hash)
|
468
|
-
if _one_of.valid?
|
469
|
-
if _one_of_found
|
470
|
-
return false
|
471
|
-
else
|
472
|
-
_one_of_found = true
|
14
|
+
module IntegrationUpdate
|
15
|
+
class << self
|
16
|
+
# List of class defined in oneOf (OpenAPI v3)
|
17
|
+
def openapi_one_of
|
18
|
+
[
|
19
|
+
:'AndroidUpdate',
|
20
|
+
:'AppleUpdate',
|
21
|
+
:'CustomUpdate',
|
22
|
+
:'InstagramUpdate',
|
23
|
+
:'IosUpdate',
|
24
|
+
:'LineUpdate',
|
25
|
+
:'MailgunUpdate',
|
26
|
+
:'MessageBirdUpdate',
|
27
|
+
:'MessengerUpdate',
|
28
|
+
:'TelegramUpdate',
|
29
|
+
:'TwilioUpdate',
|
30
|
+
:'TwitterUpdate',
|
31
|
+
:'UnityUpdate',
|
32
|
+
:'ViberUpdate',
|
33
|
+
:'WebUpdate',
|
34
|
+
:'WhatsAppUpdate'
|
35
|
+
]
|
36
|
+
end
|
37
|
+
|
38
|
+
# Builds the object
|
39
|
+
# @param [Mixed] Data to be matched against the list of oneOf items
|
40
|
+
# @return [Object] Returns the model or the data itself
|
41
|
+
def build(data)
|
42
|
+
# Go through the list of oneOf items and attempt to identify the appropriate one.
|
43
|
+
# Note:
|
44
|
+
# - We do not attempt to check whether exactly one item matches.
|
45
|
+
# - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 })
|
46
|
+
# due to the way the deserialization is made in the base_object template (it just casts without verifying).
|
47
|
+
# - TODO: scalar values are de facto behaving as if they were nullable.
|
48
|
+
# - TODO: logging when debugging is set.
|
49
|
+
openapi_one_of.each do |klass|
|
50
|
+
begin
|
51
|
+
next if klass == :AnyType # "nullable: true"
|
52
|
+
typed_data = find_and_cast_into_type(klass, data)
|
53
|
+
return typed_data if typed_data
|
54
|
+
rescue # rescue all errors so we keep iterating even if the current item lookup raises
|
473
55
|
end
|
474
56
|
end
|
475
|
-
end
|
476
|
-
|
477
|
-
if !_one_of_found
|
478
|
-
return false
|
479
|
-
end
|
480
|
-
|
481
|
-
true
|
482
|
-
end
|
483
57
|
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
@client_email = client_email
|
516
|
-
end
|
517
|
-
|
518
|
-
# Custom attribute writer method with validation
|
519
|
-
# @param [Object] private_key Value to be assigned
|
520
|
-
def private_key=(private_key)
|
521
|
-
if !private_key.nil? && private_key.to_s.length < 1
|
522
|
-
fail ArgumentError, 'invalid value for "private_key", the character length must be great than or equal to 1.'
|
523
|
-
end
|
524
|
-
|
525
|
-
@private_key = private_key
|
526
|
-
end
|
527
|
-
|
528
|
-
# Custom attribute writer method with validation
|
529
|
-
# @param [Object] server_key Value to be assigned
|
530
|
-
def server_key=(server_key)
|
531
|
-
if !server_key.nil? && server_key.to_s.length < 1
|
532
|
-
fail ArgumentError, 'invalid value for "server_key", the character length must be great than or equal to 1.'
|
533
|
-
end
|
534
|
-
|
535
|
-
@server_key = server_key
|
536
|
-
end
|
537
|
-
|
538
|
-
# Custom attribute writer method with validation
|
539
|
-
# @param [Object] sender_id Value to be assigned
|
540
|
-
def sender_id=(sender_id)
|
541
|
-
if !sender_id.nil? && sender_id.to_s.length < 1
|
542
|
-
fail ArgumentError, 'invalid value for "sender_id", the character length must be great than or equal to 1.'
|
543
|
-
end
|
544
|
-
|
545
|
-
@sender_id = sender_id
|
546
|
-
end
|
547
|
-
|
548
|
-
# Custom attribute writer method with validation
|
549
|
-
# @param [Object] authentication_message_secret Value to be assigned
|
550
|
-
def authentication_message_secret=(authentication_message_secret)
|
551
|
-
if !authentication_message_secret.nil? && authentication_message_secret.to_s.length < 88
|
552
|
-
fail ArgumentError, 'invalid value for "authentication_message_secret", the character length must be great than or equal to 88.'
|
553
|
-
end
|
554
|
-
|
555
|
-
@authentication_message_secret = authentication_message_secret
|
556
|
-
end
|
557
|
-
|
558
|
-
# Custom attribute writer method with validation
|
559
|
-
# @param [Object] certificate Value to be assigned
|
560
|
-
def certificate=(certificate)
|
561
|
-
if !certificate.nil? && certificate.to_s.length < 1
|
562
|
-
fail ArgumentError, 'invalid value for "certificate", the character length must be great than or equal to 1.'
|
563
|
-
end
|
564
|
-
|
565
|
-
@certificate = certificate
|
566
|
-
end
|
567
|
-
|
568
|
-
# Custom attribute writer method with validation
|
569
|
-
# @param [Object] from_address Value to be assigned
|
570
|
-
def from_address=(from_address)
|
571
|
-
if !from_address.nil? && from_address.to_s.length < 1
|
572
|
-
fail ArgumentError, 'invalid value for "from_address", the character length must be great than or equal to 1.'
|
573
|
-
end
|
574
|
-
|
575
|
-
@from_address = from_address
|
576
|
-
end
|
577
|
-
|
578
|
-
# Checks equality by comparing each attribute.
|
579
|
-
# @param [Object] Object to be compared
|
580
|
-
def ==(o)
|
581
|
-
return true if self.equal?(o)
|
582
|
-
self.class == o.class &&
|
583
|
-
display_name == o.display_name &&
|
584
|
-
default_responder_id == o.default_responder_id &&
|
585
|
-
project_id == o.project_id &&
|
586
|
-
client_email == o.client_email &&
|
587
|
-
private_key == o.private_key &&
|
588
|
-
server_key == o.server_key &&
|
589
|
-
sender_id == o.sender_id &&
|
590
|
-
can_user_see_conversation_list == o.can_user_see_conversation_list &&
|
591
|
-
can_user_create_more_conversations == o.can_user_create_more_conversations &&
|
592
|
-
authentication_message_secret == o.authentication_message_secret &&
|
593
|
-
page_access_token == o.page_access_token &&
|
594
|
-
certificate == o.certificate &&
|
595
|
-
password == o.password &&
|
596
|
-
production == o.production &&
|
597
|
-
auto_update_badge == o.auto_update_badge &&
|
598
|
-
hide_unsubscribe_link == o.hide_unsubscribe_link &&
|
599
|
-
from_address == o.from_address &&
|
600
|
-
brand_color == o.brand_color &&
|
601
|
-
fixed_intro_pane == o.fixed_intro_pane &&
|
602
|
-
conversation_color == o.conversation_color &&
|
603
|
-
action_color == o.action_color &&
|
604
|
-
display_style == o.display_style &&
|
605
|
-
button_icon_url == o.button_icon_url &&
|
606
|
-
button_width == o.button_width &&
|
607
|
-
button_height == o.button_height &&
|
608
|
-
integration_order == o.integration_order &&
|
609
|
-
business_name == o.business_name &&
|
610
|
-
business_icon_url == o.business_icon_url &&
|
611
|
-
background_image_url == o.background_image_url &&
|
612
|
-
origin_whitelist == o.origin_whitelist &&
|
613
|
-
prechat_capture == o.prechat_capture &&
|
614
|
-
hsm_fallback_language == o.hsm_fallback_language &&
|
615
|
-
account_id == o.account_id &&
|
616
|
-
account_management_access_token == o.account_management_access_token
|
617
|
-
end
|
618
|
-
|
619
|
-
# @see the `==` method
|
620
|
-
# @param [Object] Object to be compared
|
621
|
-
def eql?(o)
|
622
|
-
self == o
|
623
|
-
end
|
624
|
-
|
625
|
-
# Calculates hash code according to all attributes.
|
626
|
-
# @return [Integer] Hash code
|
627
|
-
def hash
|
628
|
-
[display_name, default_responder_id, project_id, client_email, private_key, server_key, sender_id, can_user_see_conversation_list, can_user_create_more_conversations, authentication_message_secret, page_access_token, certificate, password, production, auto_update_badge, hide_unsubscribe_link, from_address, 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, hsm_fallback_language, account_id, account_management_access_token].hash
|
629
|
-
end
|
630
|
-
|
631
|
-
# Builds the object from hash
|
632
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
633
|
-
# @return [Object] Returns the model itself
|
634
|
-
def self.build_from_hash(attributes)
|
635
|
-
new.build_from_hash(attributes)
|
636
|
-
end
|
637
|
-
|
638
|
-
# Builds the object from hash
|
639
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
640
|
-
# @return [Object] Returns the model itself
|
641
|
-
def build_from_hash(attributes)
|
642
|
-
return nil unless attributes.is_a?(Hash)
|
643
|
-
self.class.openapi_types.each_pair do |key, type|
|
644
|
-
if type =~ /\AArray<(.*)>/i
|
645
|
-
# check to ensure the input is an array given that the attribute
|
646
|
-
# is documented as an array but the input is not
|
647
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
648
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
58
|
+
openapi_one_of.include?(:AnyType) ? data : nil
|
59
|
+
end
|
60
|
+
|
61
|
+
private
|
62
|
+
|
63
|
+
SchemaMismatchError = Class.new(StandardError)
|
64
|
+
|
65
|
+
# Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse.
|
66
|
+
def find_and_cast_into_type(klass, data)
|
67
|
+
return if data.nil?
|
68
|
+
|
69
|
+
case klass.to_s
|
70
|
+
when 'Boolean'
|
71
|
+
return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass)
|
72
|
+
when 'Float'
|
73
|
+
return data if data.instance_of?(Float)
|
74
|
+
when 'Integer'
|
75
|
+
return data if data.instance_of?(Integer)
|
76
|
+
when 'Time'
|
77
|
+
return Time.parse(data)
|
78
|
+
when 'Date'
|
79
|
+
return Date.parse(data)
|
80
|
+
when 'String'
|
81
|
+
return data if data.instance_of?(String)
|
82
|
+
when 'Object' # "type: object"
|
83
|
+
return data if data.instance_of?(Hash)
|
84
|
+
when /\AArray<(?<sub_type>.+)>\z/ # "type: array"
|
85
|
+
if data.instance_of?(Array)
|
86
|
+
sub_type = Regexp.last_match[:sub_type]
|
87
|
+
return data.map { |item| find_and_cast_into_type(sub_type, item) }
|
649
88
|
end
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
Date.parse(value)
|
668
|
-
when :String
|
669
|
-
value.to_s
|
670
|
-
when :Integer
|
671
|
-
value.to_i
|
672
|
-
when :Float
|
673
|
-
value.to_f
|
674
|
-
when :Boolean
|
675
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
676
|
-
true
|
677
|
-
else
|
678
|
-
false
|
679
|
-
end
|
680
|
-
when :Object
|
681
|
-
# generic object (usually a Hash), return directly
|
682
|
-
value
|
683
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
684
|
-
inner_type = Regexp.last_match[:inner_type]
|
685
|
-
value.map { |v| _deserialize(inner_type, v) }
|
686
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
687
|
-
k_type = Regexp.last_match[:k_type]
|
688
|
-
v_type = Regexp.last_match[:v_type]
|
689
|
-
{}.tap do |hash|
|
690
|
-
value.each do |k, v|
|
691
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
89
|
+
when /\AHash<String, (?<sub_type>.+)>\z/ # "type: object" with "additionalProperties: { ... }"
|
90
|
+
if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) }
|
91
|
+
sub_type = Regexp.last_match[:sub_type]
|
92
|
+
return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) }
|
93
|
+
end
|
94
|
+
else # model
|
95
|
+
const = SunshineConversationsClient.const_get(klass)
|
96
|
+
if const
|
97
|
+
if const.respond_to?(:openapi_one_of) # nested oneOf model
|
98
|
+
model = const.build(data)
|
99
|
+
return model if model
|
100
|
+
else
|
101
|
+
# raise if data contains keys that are not known to the model
|
102
|
+
raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty?
|
103
|
+
model = const.build_from_hash(data)
|
104
|
+
return model if model
|
105
|
+
end
|
692
106
|
end
|
693
107
|
end
|
694
|
-
else # model
|
695
|
-
SunshineConversationsClient.const_get(type).build_from_hash(value)
|
696
|
-
end
|
697
|
-
end
|
698
|
-
|
699
|
-
# Returns the string representation of the object
|
700
|
-
# @return [String] String presentation of the object
|
701
|
-
def to_s
|
702
|
-
to_hash.to_s
|
703
|
-
end
|
704
|
-
|
705
|
-
# to_body is an alias to to_hash (backward compatibility)
|
706
|
-
# @return [Hash] Returns the object in the form of hash
|
707
|
-
def to_body
|
708
|
-
to_hash
|
709
|
-
end
|
710
|
-
|
711
|
-
# Returns the object in the form of hash
|
712
|
-
# @return [Hash] Returns the object in the form of hash
|
713
|
-
def to_hash
|
714
|
-
hash = {}
|
715
|
-
self.class.attribute_map.each_pair do |attr, param|
|
716
|
-
value = self.send(attr)
|
717
|
-
if value.nil?
|
718
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
719
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
720
|
-
end
|
721
|
-
|
722
|
-
hash[param] = _to_hash(value)
|
723
|
-
end
|
724
|
-
hash
|
725
|
-
end
|
726
108
|
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
# @return [Hash] Returns the value in the form of hash
|
731
|
-
def _to_hash(value)
|
732
|
-
if value.is_a?(Array)
|
733
|
-
value.compact.map { |v| _to_hash(v) }
|
734
|
-
elsif value.is_a?(Hash)
|
735
|
-
{}.tap do |hash|
|
736
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
737
|
-
end
|
738
|
-
elsif value.respond_to? :to_hash
|
739
|
-
value.to_hash
|
740
|
-
else
|
741
|
-
value
|
109
|
+
raise # if no match by now, raise
|
110
|
+
rescue
|
111
|
+
raise SchemaMismatchError, "#{data} doesn't match the #{klass} type"
|
742
112
|
end
|
743
113
|
end
|
744
114
|
end
|
115
|
+
|
745
116
|
end
|