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
data/docs/WebUpdateAllOf.md
DELETED
@@ -1,47 +0,0 @@
|
|
1
|
-
# SunshineConversationsClient::WebUpdateAllOf
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**brand_color** | **String** | 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. | [optional] [default to '65758e']
|
8
|
-
**fixed_intro_pane** | **Boolean** | When true, the introduction pane will be pinned at the top of the conversation instead of scrolling with it. | [optional] [default to false]
|
9
|
-
**conversation_color** | **String** | This color will be used for customer messages, quick replies and actions in the footer. Must be a 3 or 6-character hexadecimal color. | [optional] [default to '0099ff']
|
10
|
-
**action_color** | **String** | This color will be used for call-to-actions inside your messages. Must be a 3 or 6-character hexadecimal color. | [optional] [default to '0099ff']
|
11
|
-
**display_style** | **String** | Choose how the messenger will appear on your website. Must be either button or tab. | [optional] [default to 'button']
|
12
|
-
**button_icon_url** | **String** | 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. | [optional]
|
13
|
-
**button_width** | **String** | With the button style Web Messenger, you have the option of specifying the button width. | [optional] [default to '58']
|
14
|
-
**button_height** | **String** | With the button style Web Messenger, you have the option of specifying the button height. | [optional] [default to '58']
|
15
|
-
**integration_order** | **Array<String>** | 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. | [optional]
|
16
|
-
**business_name** | **String** | A custom business name for the Web Messenger. | [optional]
|
17
|
-
**business_icon_url** | **String** | 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. | [optional]
|
18
|
-
**background_image_url** | **String** | A background image url for the conversation. Image will be tiled to fit the window. | [optional]
|
19
|
-
**origin_whitelist** | **Array<String>** | 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. | [optional]
|
20
|
-
**prechat_capture** | [**PrechatCapture**](PrechatCapture.md) | 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. | [optional]
|
21
|
-
**can_user_see_conversation_list** | **Boolean** | Allows users to view their list of conversations. By default, the list of conversations will be visible. *This setting only applies to apps where `settings.multiConvoEnabled` is set to `true`*. | [optional]
|
22
|
-
**can_user_create_more_conversations** | **Boolean** | Allows users to create more than one conversation on the web messenger integration. | [optional]
|
23
|
-
|
24
|
-
## Code Sample
|
25
|
-
|
26
|
-
```ruby
|
27
|
-
require 'SunshineConversationsClient'
|
28
|
-
|
29
|
-
instance = SunshineConversationsClient::WebUpdateAllOf.new(brand_color: null,
|
30
|
-
fixed_intro_pane: null,
|
31
|
-
conversation_color: null,
|
32
|
-
action_color: null,
|
33
|
-
display_style: null,
|
34
|
-
button_icon_url: null,
|
35
|
-
button_width: null,
|
36
|
-
button_height: null,
|
37
|
-
integration_order: ["59fc8466260f48003505228b","59d79780481d34002b7d3617"],
|
38
|
-
business_name: Kent Shop,
|
39
|
-
business_icon_url: https://www.gravatar.com/image.jpg,
|
40
|
-
background_image_url: https://a-beautiful-tile.png,
|
41
|
-
origin_whitelist: null,
|
42
|
-
prechat_capture: null,
|
43
|
-
can_user_see_conversation_list: false,
|
44
|
-
can_user_create_more_conversations: null)
|
45
|
-
```
|
46
|
-
|
47
|
-
|
data/docs/WhatsAppUpdateAllOf.md
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
# SunshineConversationsClient::WhatsAppUpdateAllOf
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**hsm_fallback_language** | **String** | 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. | [optional] [default to 'en_US']
|
8
|
-
**account_id** | **String** | The business ID associated with the WhatsApp account. In combination with accountManagementAccessToken, it’s used for Message Template Reconstruction. | [optional]
|
9
|
-
**account_management_access_token** | **String** | 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. | [optional]
|
10
|
-
|
11
|
-
## Code Sample
|
12
|
-
|
13
|
-
```ruby
|
14
|
-
require 'SunshineConversationsClient'
|
15
|
-
|
16
|
-
instance = SunshineConversationsClient::WhatsAppUpdateAllOf.new(hsm_fallback_language: null,
|
17
|
-
account_id: your_whatsApp_account_id,
|
18
|
-
account_management_access_token: your_access_token)
|
19
|
-
```
|
20
|
-
|
21
|
-
|
data/docs/WhatsappAllOf.md
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
# SunshineConversationsClient::WhatsappAllOf
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**type** | **String** | To configure a WhatsApp integration, use your WhatsApp API Client connection information. Sunshine Conversations can provide WhatsApp API Client hosting for approved brands. See our [WhatsApp guide](https://docs.smooch.io/guide/whatsapp/#whatsapp-api-client) for more details on WhatsApp API Client hosting. | [optional] [default to 'whatsapp']
|
8
|
-
**hsm_fallback_language** | **String** | 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. | [optional] [default to 'en_US']
|
9
|
-
**account_id** | **String** | The business ID associated with the WhatsApp account. In combination with accountManagementAccessToken, it’s used for Message Template Reconstruction. | [optional]
|
10
|
-
**account_management_access_token** | **String** | 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. | [optional]
|
11
|
-
**phone_number** | **String** | The phone number that is associated with the deployment of this integration, if one exists. | [optional] [readonly]
|
12
|
-
|
13
|
-
## Code Sample
|
14
|
-
|
15
|
-
```ruby
|
16
|
-
require 'SunshineConversationsClient'
|
17
|
-
|
18
|
-
instance = SunshineConversationsClient::WhatsappAllOf.new(type: null,
|
19
|
-
hsm_fallback_language: null,
|
20
|
-
account_id: your_whatsApp_account_id,
|
21
|
-
account_management_access_token: your_access_token,
|
22
|
-
phone_number: 15144441919)
|
23
|
-
```
|
24
|
-
|
25
|
-
|
@@ -1,204 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Sunshine Conversations API
|
3
|
-
|
4
|
-
The version of the OpenAPI document: 16.0.1
|
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 ActivityPostAllOf
|
14
|
-
# The author of the activity.
|
15
|
-
attr_accessor :author
|
16
|
-
|
17
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
18
|
-
def self.attribute_map
|
19
|
-
{
|
20
|
-
:'author' => :'author'
|
21
|
-
}
|
22
|
-
end
|
23
|
-
|
24
|
-
# Attribute type mapping.
|
25
|
-
def self.openapi_types
|
26
|
-
{
|
27
|
-
:'author' => :'Author'
|
28
|
-
}
|
29
|
-
end
|
30
|
-
|
31
|
-
# List of attributes with nullable: true
|
32
|
-
def self.openapi_nullable
|
33
|
-
Set.new([
|
34
|
-
])
|
35
|
-
end
|
36
|
-
|
37
|
-
# Initializes the object
|
38
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
39
|
-
def initialize(attributes = {})
|
40
|
-
if (!attributes.is_a?(Hash))
|
41
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `SunshineConversationsClient::ActivityPostAllOf` initialize method"
|
42
|
-
end
|
43
|
-
|
44
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
45
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
46
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
47
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `SunshineConversationsClient::ActivityPostAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
48
|
-
end
|
49
|
-
h[k.to_sym] = v
|
50
|
-
}
|
51
|
-
|
52
|
-
if attributes.key?(:'author')
|
53
|
-
self.author = attributes[:'author']
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
58
|
-
# @return Array for valid properties with the reasons
|
59
|
-
def list_invalid_properties
|
60
|
-
invalid_properties = Array.new
|
61
|
-
invalid_properties
|
62
|
-
end
|
63
|
-
|
64
|
-
# Check to see if the all the properties in the model are valid
|
65
|
-
# @return true if the model is valid
|
66
|
-
def valid?
|
67
|
-
true
|
68
|
-
end
|
69
|
-
|
70
|
-
# Checks equality by comparing each attribute.
|
71
|
-
# @param [Object] Object to be compared
|
72
|
-
def ==(o)
|
73
|
-
return true if self.equal?(o)
|
74
|
-
self.class == o.class &&
|
75
|
-
author == o.author
|
76
|
-
end
|
77
|
-
|
78
|
-
# @see the `==` method
|
79
|
-
# @param [Object] Object to be compared
|
80
|
-
def eql?(o)
|
81
|
-
self == o
|
82
|
-
end
|
83
|
-
|
84
|
-
# Calculates hash code according to all attributes.
|
85
|
-
# @return [Integer] Hash code
|
86
|
-
def hash
|
87
|
-
[author].hash
|
88
|
-
end
|
89
|
-
|
90
|
-
# Builds the object from hash
|
91
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
92
|
-
# @return [Object] Returns the model itself
|
93
|
-
def self.build_from_hash(attributes)
|
94
|
-
new.build_from_hash(attributes)
|
95
|
-
end
|
96
|
-
|
97
|
-
# Builds the object from hash
|
98
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
99
|
-
# @return [Object] Returns the model itself
|
100
|
-
def build_from_hash(attributes)
|
101
|
-
return nil unless attributes.is_a?(Hash)
|
102
|
-
self.class.openapi_types.each_pair do |key, type|
|
103
|
-
if type =~ /\AArray<(.*)>/i
|
104
|
-
# check to ensure the input is an array given that the attribute
|
105
|
-
# is documented as an array but the input is not
|
106
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
107
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
108
|
-
end
|
109
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
110
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
111
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
112
|
-
end
|
113
|
-
|
114
|
-
self
|
115
|
-
end
|
116
|
-
|
117
|
-
# Deserializes the data based on type
|
118
|
-
# @param string type Data type
|
119
|
-
# @param string value Value to be deserialized
|
120
|
-
# @return [Object] Deserialized data
|
121
|
-
def _deserialize(type, value)
|
122
|
-
case type.to_sym
|
123
|
-
when :DateTime
|
124
|
-
DateTime.parse(value)
|
125
|
-
when :Date
|
126
|
-
Date.parse(value)
|
127
|
-
when :String
|
128
|
-
value.to_s
|
129
|
-
when :Integer
|
130
|
-
value.to_i
|
131
|
-
when :Float
|
132
|
-
value.to_f
|
133
|
-
when :Boolean
|
134
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
135
|
-
true
|
136
|
-
else
|
137
|
-
false
|
138
|
-
end
|
139
|
-
when :Object
|
140
|
-
# generic object (usually a Hash), return directly
|
141
|
-
value
|
142
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
143
|
-
inner_type = Regexp.last_match[:inner_type]
|
144
|
-
value.map { |v| _deserialize(inner_type, v) }
|
145
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
146
|
-
k_type = Regexp.last_match[:k_type]
|
147
|
-
v_type = Regexp.last_match[:v_type]
|
148
|
-
{}.tap do |hash|
|
149
|
-
value.each do |k, v|
|
150
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
151
|
-
end
|
152
|
-
end
|
153
|
-
else # model
|
154
|
-
SunshineConversationsClient.const_get(type).build_from_hash(value)
|
155
|
-
end
|
156
|
-
end
|
157
|
-
|
158
|
-
# Returns the string representation of the object
|
159
|
-
# @return [String] String presentation of the object
|
160
|
-
def to_s
|
161
|
-
to_hash.to_s
|
162
|
-
end
|
163
|
-
|
164
|
-
# to_body is an alias to to_hash (backward compatibility)
|
165
|
-
# @return [Hash] Returns the object in the form of hash
|
166
|
-
def to_body
|
167
|
-
to_hash
|
168
|
-
end
|
169
|
-
|
170
|
-
# Returns the object in the form of hash
|
171
|
-
# @return [Hash] Returns the object in the form of hash
|
172
|
-
def to_hash
|
173
|
-
hash = {}
|
174
|
-
self.class.attribute_map.each_pair do |attr, param|
|
175
|
-
value = self.send(attr)
|
176
|
-
if value.nil?
|
177
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
178
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
179
|
-
end
|
180
|
-
|
181
|
-
hash[param] = _to_hash(value)
|
182
|
-
end
|
183
|
-
hash
|
184
|
-
end
|
185
|
-
|
186
|
-
# Outputs non-array value in the form of hash
|
187
|
-
# For object, use to_hash. Otherwise, just return the value
|
188
|
-
# @param [Object] value Any valid value
|
189
|
-
# @return [Hash] Returns the value in the form of hash
|
190
|
-
def _to_hash(value)
|
191
|
-
if value.is_a?(Array)
|
192
|
-
value.compact.map { |v| _to_hash(v) }
|
193
|
-
elsif value.is_a?(Hash)
|
194
|
-
{}.tap do |hash|
|
195
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
196
|
-
end
|
197
|
-
elsif value.respond_to? :to_hash
|
198
|
-
value.to_hash
|
199
|
-
else
|
200
|
-
value
|
201
|
-
end
|
202
|
-
end
|
203
|
-
end
|
204
|
-
end
|
@@ -1,366 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Sunshine Conversations API
|
3
|
-
|
4
|
-
The version of the OpenAPI document: 16.0.1
|
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 AndroidAllOf
|
14
|
-
# <aside class=\"notice\"><strong>Note:</strong> Firebase Cloud Messaging has deprecated its legacy APIs for HTTP and XMPP. Legacy credentials <code>serverKey</code> and <code>senderId</code> will stop working as of June 2024 and must be replaced with OAuth 2.0 access token based credentials.</aside> To configure an android integration, first visit the [Firebase Console](https://console.firebase.google.com/). Generate a private key from the Service accounts tab in the settings. Copy the `project_id`, `client_email` and `private_key` from the generated JSON file and call the create integrations endpoint with this data.
|
15
|
-
attr_accessor :type
|
16
|
-
|
17
|
-
# Your project ID from your generated private key file.
|
18
|
-
attr_accessor :project_id
|
19
|
-
|
20
|
-
# Your client email from your generated private key file.
|
21
|
-
attr_accessor :client_email
|
22
|
-
|
23
|
-
# Your private key from your generated private key file.
|
24
|
-
attr_accessor :private_key
|
25
|
-
|
26
|
-
# Your server key from the fcm console.
|
27
|
-
attr_accessor :server_key
|
28
|
-
|
29
|
-
# Your sender id from the fcm console.
|
30
|
-
attr_accessor :sender_id
|
31
|
-
|
32
|
-
# Allows users to view their list of conversations. By default, the list of conversations will be visible. *This setting only applies to apps where `settings.multiConvoEnabled` is set to `true`*.
|
33
|
-
attr_accessor :can_user_see_conversation_list
|
34
|
-
|
35
|
-
# Allows users to create more than one conversation on the android integration.
|
36
|
-
attr_accessor :can_user_create_more_conversations
|
37
|
-
|
38
|
-
# Allows users to send attachments. By default, the setting is set to true. This setting can only be configured in Zendesk Admin Center.
|
39
|
-
attr_accessor :attachments_enabled
|
40
|
-
|
41
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
42
|
-
def self.attribute_map
|
43
|
-
{
|
44
|
-
:'type' => :'type',
|
45
|
-
:'project_id' => :'projectId',
|
46
|
-
:'client_email' => :'clientEmail',
|
47
|
-
:'private_key' => :'privateKey',
|
48
|
-
:'server_key' => :'serverKey',
|
49
|
-
:'sender_id' => :'senderId',
|
50
|
-
:'can_user_see_conversation_list' => :'canUserSeeConversationList',
|
51
|
-
:'can_user_create_more_conversations' => :'canUserCreateMoreConversations',
|
52
|
-
:'attachments_enabled' => :'attachmentsEnabled'
|
53
|
-
}
|
54
|
-
end
|
55
|
-
|
56
|
-
# Attribute type mapping.
|
57
|
-
def self.openapi_types
|
58
|
-
{
|
59
|
-
:'type' => :'String',
|
60
|
-
:'project_id' => :'String',
|
61
|
-
:'client_email' => :'String',
|
62
|
-
:'private_key' => :'String',
|
63
|
-
:'server_key' => :'String',
|
64
|
-
:'sender_id' => :'String',
|
65
|
-
:'can_user_see_conversation_list' => :'Boolean',
|
66
|
-
:'can_user_create_more_conversations' => :'Boolean',
|
67
|
-
:'attachments_enabled' => :'Boolean'
|
68
|
-
}
|
69
|
-
end
|
70
|
-
|
71
|
-
# List of attributes with nullable: true
|
72
|
-
def self.openapi_nullable
|
73
|
-
Set.new([
|
74
|
-
:'project_id',
|
75
|
-
:'client_email',
|
76
|
-
:'private_key',
|
77
|
-
:'server_key',
|
78
|
-
:'sender_id',
|
79
|
-
])
|
80
|
-
end
|
81
|
-
|
82
|
-
# Initializes the object
|
83
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
84
|
-
def initialize(attributes = {})
|
85
|
-
if (!attributes.is_a?(Hash))
|
86
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `SunshineConversationsClient::AndroidAllOf` initialize method"
|
87
|
-
end
|
88
|
-
|
89
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
90
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
91
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
92
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `SunshineConversationsClient::AndroidAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
93
|
-
end
|
94
|
-
h[k.to_sym] = v
|
95
|
-
}
|
96
|
-
|
97
|
-
if attributes.key?(:'type')
|
98
|
-
self.type = attributes[:'type']
|
99
|
-
else
|
100
|
-
self.type = 'android'
|
101
|
-
end
|
102
|
-
|
103
|
-
if attributes.key?(:'project_id')
|
104
|
-
self.project_id = attributes[:'project_id']
|
105
|
-
end
|
106
|
-
|
107
|
-
if attributes.key?(:'client_email')
|
108
|
-
self.client_email = attributes[:'client_email']
|
109
|
-
end
|
110
|
-
|
111
|
-
if attributes.key?(:'private_key')
|
112
|
-
self.private_key = attributes[:'private_key']
|
113
|
-
end
|
114
|
-
|
115
|
-
if attributes.key?(:'server_key')
|
116
|
-
self.server_key = attributes[:'server_key']
|
117
|
-
end
|
118
|
-
|
119
|
-
if attributes.key?(:'sender_id')
|
120
|
-
self.sender_id = attributes[:'sender_id']
|
121
|
-
end
|
122
|
-
|
123
|
-
if attributes.key?(:'can_user_see_conversation_list')
|
124
|
-
self.can_user_see_conversation_list = attributes[:'can_user_see_conversation_list']
|
125
|
-
end
|
126
|
-
|
127
|
-
if attributes.key?(:'can_user_create_more_conversations')
|
128
|
-
self.can_user_create_more_conversations = attributes[:'can_user_create_more_conversations']
|
129
|
-
end
|
130
|
-
|
131
|
-
if attributes.key?(:'attachments_enabled')
|
132
|
-
self.attachments_enabled = attributes[:'attachments_enabled']
|
133
|
-
end
|
134
|
-
end
|
135
|
-
|
136
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
137
|
-
# @return Array for valid properties with the reasons
|
138
|
-
def list_invalid_properties
|
139
|
-
invalid_properties = Array.new
|
140
|
-
if !@project_id.nil? && @project_id.to_s.length < 1
|
141
|
-
invalid_properties.push('invalid value for "project_id", the character length must be great than or equal to 1.')
|
142
|
-
end
|
143
|
-
|
144
|
-
if !@client_email.nil? && @client_email.to_s.length < 1
|
145
|
-
invalid_properties.push('invalid value for "client_email", the character length must be great than or equal to 1.')
|
146
|
-
end
|
147
|
-
|
148
|
-
if !@private_key.nil? && @private_key.to_s.length < 1
|
149
|
-
invalid_properties.push('invalid value for "private_key", the character length must be great than or equal to 1.')
|
150
|
-
end
|
151
|
-
|
152
|
-
if !@server_key.nil? && @server_key.to_s.length < 1
|
153
|
-
invalid_properties.push('invalid value for "server_key", the character length must be great than or equal to 1.')
|
154
|
-
end
|
155
|
-
|
156
|
-
if !@sender_id.nil? && @sender_id.to_s.length < 1
|
157
|
-
invalid_properties.push('invalid value for "sender_id", the character length must be great than or equal to 1.')
|
158
|
-
end
|
159
|
-
|
160
|
-
invalid_properties
|
161
|
-
end
|
162
|
-
|
163
|
-
# Check to see if the all the properties in the model are valid
|
164
|
-
# @return true if the model is valid
|
165
|
-
def valid?
|
166
|
-
return false if !@project_id.nil? && @project_id.to_s.length < 1
|
167
|
-
return false if !@client_email.nil? && @client_email.to_s.length < 1
|
168
|
-
return false if !@private_key.nil? && @private_key.to_s.length < 1
|
169
|
-
return false if !@server_key.nil? && @server_key.to_s.length < 1
|
170
|
-
return false if !@sender_id.nil? && @sender_id.to_s.length < 1
|
171
|
-
true
|
172
|
-
end
|
173
|
-
|
174
|
-
# Custom attribute writer method with validation
|
175
|
-
# @param [Object] project_id Value to be assigned
|
176
|
-
def project_id=(project_id)
|
177
|
-
if !project_id.nil? && project_id.to_s.length < 1
|
178
|
-
fail ArgumentError, 'invalid value for "project_id", the character length must be great than or equal to 1.'
|
179
|
-
end
|
180
|
-
|
181
|
-
@project_id = project_id
|
182
|
-
end
|
183
|
-
|
184
|
-
# Custom attribute writer method with validation
|
185
|
-
# @param [Object] client_email Value to be assigned
|
186
|
-
def client_email=(client_email)
|
187
|
-
if !client_email.nil? && client_email.to_s.length < 1
|
188
|
-
fail ArgumentError, 'invalid value for "client_email", the character length must be great than or equal to 1.'
|
189
|
-
end
|
190
|
-
|
191
|
-
@client_email = client_email
|
192
|
-
end
|
193
|
-
|
194
|
-
# Custom attribute writer method with validation
|
195
|
-
# @param [Object] private_key Value to be assigned
|
196
|
-
def private_key=(private_key)
|
197
|
-
if !private_key.nil? && private_key.to_s.length < 1
|
198
|
-
fail ArgumentError, 'invalid value for "private_key", the character length must be great than or equal to 1.'
|
199
|
-
end
|
200
|
-
|
201
|
-
@private_key = private_key
|
202
|
-
end
|
203
|
-
|
204
|
-
# Custom attribute writer method with validation
|
205
|
-
# @param [Object] server_key Value to be assigned
|
206
|
-
def server_key=(server_key)
|
207
|
-
if !server_key.nil? && server_key.to_s.length < 1
|
208
|
-
fail ArgumentError, 'invalid value for "server_key", the character length must be great than or equal to 1.'
|
209
|
-
end
|
210
|
-
|
211
|
-
@server_key = server_key
|
212
|
-
end
|
213
|
-
|
214
|
-
# Custom attribute writer method with validation
|
215
|
-
# @param [Object] sender_id Value to be assigned
|
216
|
-
def sender_id=(sender_id)
|
217
|
-
if !sender_id.nil? && sender_id.to_s.length < 1
|
218
|
-
fail ArgumentError, 'invalid value for "sender_id", the character length must be great than or equal to 1.'
|
219
|
-
end
|
220
|
-
|
221
|
-
@sender_id = sender_id
|
222
|
-
end
|
223
|
-
|
224
|
-
# Checks equality by comparing each attribute.
|
225
|
-
# @param [Object] Object to be compared
|
226
|
-
def ==(o)
|
227
|
-
return true if self.equal?(o)
|
228
|
-
self.class == o.class &&
|
229
|
-
type == o.type &&
|
230
|
-
project_id == o.project_id &&
|
231
|
-
client_email == o.client_email &&
|
232
|
-
private_key == o.private_key &&
|
233
|
-
server_key == o.server_key &&
|
234
|
-
sender_id == o.sender_id &&
|
235
|
-
can_user_see_conversation_list == o.can_user_see_conversation_list &&
|
236
|
-
can_user_create_more_conversations == o.can_user_create_more_conversations &&
|
237
|
-
attachments_enabled == o.attachments_enabled
|
238
|
-
end
|
239
|
-
|
240
|
-
# @see the `==` method
|
241
|
-
# @param [Object] Object to be compared
|
242
|
-
def eql?(o)
|
243
|
-
self == o
|
244
|
-
end
|
245
|
-
|
246
|
-
# Calculates hash code according to all attributes.
|
247
|
-
# @return [Integer] Hash code
|
248
|
-
def hash
|
249
|
-
[type, project_id, client_email, private_key, server_key, sender_id, can_user_see_conversation_list, can_user_create_more_conversations, attachments_enabled].hash
|
250
|
-
end
|
251
|
-
|
252
|
-
# Builds the object from hash
|
253
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
254
|
-
# @return [Object] Returns the model itself
|
255
|
-
def self.build_from_hash(attributes)
|
256
|
-
new.build_from_hash(attributes)
|
257
|
-
end
|
258
|
-
|
259
|
-
# Builds the object from hash
|
260
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
261
|
-
# @return [Object] Returns the model itself
|
262
|
-
def build_from_hash(attributes)
|
263
|
-
return nil unless attributes.is_a?(Hash)
|
264
|
-
self.class.openapi_types.each_pair do |key, type|
|
265
|
-
if type =~ /\AArray<(.*)>/i
|
266
|
-
# check to ensure the input is an array given that the attribute
|
267
|
-
# is documented as an array but the input is not
|
268
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
269
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
270
|
-
end
|
271
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
272
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
273
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
274
|
-
end
|
275
|
-
|
276
|
-
self
|
277
|
-
end
|
278
|
-
|
279
|
-
# Deserializes the data based on type
|
280
|
-
# @param string type Data type
|
281
|
-
# @param string value Value to be deserialized
|
282
|
-
# @return [Object] Deserialized data
|
283
|
-
def _deserialize(type, value)
|
284
|
-
case type.to_sym
|
285
|
-
when :DateTime
|
286
|
-
DateTime.parse(value)
|
287
|
-
when :Date
|
288
|
-
Date.parse(value)
|
289
|
-
when :String
|
290
|
-
value.to_s
|
291
|
-
when :Integer
|
292
|
-
value.to_i
|
293
|
-
when :Float
|
294
|
-
value.to_f
|
295
|
-
when :Boolean
|
296
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
297
|
-
true
|
298
|
-
else
|
299
|
-
false
|
300
|
-
end
|
301
|
-
when :Object
|
302
|
-
# generic object (usually a Hash), return directly
|
303
|
-
value
|
304
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
305
|
-
inner_type = Regexp.last_match[:inner_type]
|
306
|
-
value.map { |v| _deserialize(inner_type, v) }
|
307
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
308
|
-
k_type = Regexp.last_match[:k_type]
|
309
|
-
v_type = Regexp.last_match[:v_type]
|
310
|
-
{}.tap do |hash|
|
311
|
-
value.each do |k, v|
|
312
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
313
|
-
end
|
314
|
-
end
|
315
|
-
else # model
|
316
|
-
SunshineConversationsClient.const_get(type).build_from_hash(value)
|
317
|
-
end
|
318
|
-
end
|
319
|
-
|
320
|
-
# Returns the string representation of the object
|
321
|
-
# @return [String] String presentation of the object
|
322
|
-
def to_s
|
323
|
-
to_hash.to_s
|
324
|
-
end
|
325
|
-
|
326
|
-
# to_body is an alias to to_hash (backward compatibility)
|
327
|
-
# @return [Hash] Returns the object in the form of hash
|
328
|
-
def to_body
|
329
|
-
to_hash
|
330
|
-
end
|
331
|
-
|
332
|
-
# Returns the object in the form of hash
|
333
|
-
# @return [Hash] Returns the object in the form of hash
|
334
|
-
def to_hash
|
335
|
-
hash = {}
|
336
|
-
self.class.attribute_map.each_pair do |attr, param|
|
337
|
-
value = self.send(attr)
|
338
|
-
if value.nil?
|
339
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
340
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
341
|
-
end
|
342
|
-
|
343
|
-
hash[param] = _to_hash(value)
|
344
|
-
end
|
345
|
-
hash
|
346
|
-
end
|
347
|
-
|
348
|
-
# Outputs non-array value in the form of hash
|
349
|
-
# For object, use to_hash. Otherwise, just return the value
|
350
|
-
# @param [Object] value Any valid value
|
351
|
-
# @return [Hash] Returns the value in the form of hash
|
352
|
-
def _to_hash(value)
|
353
|
-
if value.is_a?(Array)
|
354
|
-
value.compact.map { |v| _to_hash(v) }
|
355
|
-
elsif value.is_a?(Hash)
|
356
|
-
{}.tap do |hash|
|
357
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
358
|
-
end
|
359
|
-
elsif value.respond_to? :to_hash
|
360
|
-
value.to_hash
|
361
|
-
else
|
362
|
-
value
|
363
|
-
end
|
364
|
-
end
|
365
|
-
end
|
366
|
-
end
|