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,400 +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 TwitterAllOf
|
14
|
-
# To set up a Twitter integration, please follow the steps outlined in the [Twitter Setup Guide](https://docs.smooch.io/guide/twitter/#setup).
|
15
|
-
attr_accessor :type
|
16
|
-
|
17
|
-
# Your Twitter app's tier. Only \"enterprise\" is supported for new integrations.
|
18
|
-
attr_accessor :tier
|
19
|
-
|
20
|
-
# The Twitter dev environments label. Only required / used for sandbox and premium tiers.
|
21
|
-
attr_accessor :env_name
|
22
|
-
|
23
|
-
# The consumer key for your Twitter app.
|
24
|
-
attr_accessor :consumer_key
|
25
|
-
|
26
|
-
# The consumer key secret for your Twitter app.
|
27
|
-
attr_accessor :consumer_secret
|
28
|
-
|
29
|
-
# The access token key obtained from your user via oauth.
|
30
|
-
attr_accessor :access_token_key
|
31
|
-
|
32
|
-
# The access token secret obtained from your user via oauth.
|
33
|
-
attr_accessor :access_token_secret
|
34
|
-
|
35
|
-
class EnumAttributeValidator
|
36
|
-
attr_reader :datatype
|
37
|
-
attr_reader :allowable_values
|
38
|
-
|
39
|
-
def initialize(datatype, allowable_values)
|
40
|
-
@allowable_values = allowable_values.map do |value|
|
41
|
-
case datatype.to_s
|
42
|
-
when /Integer/i
|
43
|
-
value.to_i
|
44
|
-
when /Float/i
|
45
|
-
value.to_f
|
46
|
-
else
|
47
|
-
value
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
51
|
-
|
52
|
-
def valid?(value)
|
53
|
-
!value || allowable_values.include?(value)
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
58
|
-
def self.attribute_map
|
59
|
-
{
|
60
|
-
:'type' => :'type',
|
61
|
-
:'tier' => :'tier',
|
62
|
-
:'env_name' => :'envName',
|
63
|
-
:'consumer_key' => :'consumerKey',
|
64
|
-
:'consumer_secret' => :'consumerSecret',
|
65
|
-
:'access_token_key' => :'accessTokenKey',
|
66
|
-
:'access_token_secret' => :'accessTokenSecret'
|
67
|
-
}
|
68
|
-
end
|
69
|
-
|
70
|
-
# Attribute type mapping.
|
71
|
-
def self.openapi_types
|
72
|
-
{
|
73
|
-
:'type' => :'String',
|
74
|
-
:'tier' => :'String',
|
75
|
-
:'env_name' => :'String',
|
76
|
-
:'consumer_key' => :'String',
|
77
|
-
:'consumer_secret' => :'String',
|
78
|
-
:'access_token_key' => :'String',
|
79
|
-
:'access_token_secret' => :'String'
|
80
|
-
}
|
81
|
-
end
|
82
|
-
|
83
|
-
# List of attributes with nullable: true
|
84
|
-
def self.openapi_nullable
|
85
|
-
Set.new([
|
86
|
-
:'consumer_secret',
|
87
|
-
:'access_token_secret'
|
88
|
-
])
|
89
|
-
end
|
90
|
-
|
91
|
-
# Initializes the object
|
92
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
93
|
-
def initialize(attributes = {})
|
94
|
-
if (!attributes.is_a?(Hash))
|
95
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `SunshineConversationsClient::TwitterAllOf` initialize method"
|
96
|
-
end
|
97
|
-
|
98
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
99
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
100
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
101
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `SunshineConversationsClient::TwitterAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
102
|
-
end
|
103
|
-
h[k.to_sym] = v
|
104
|
-
}
|
105
|
-
|
106
|
-
if attributes.key?(:'type')
|
107
|
-
self.type = attributes[:'type']
|
108
|
-
else
|
109
|
-
self.type = 'twitter'
|
110
|
-
end
|
111
|
-
|
112
|
-
if attributes.key?(:'tier')
|
113
|
-
self.tier = attributes[:'tier']
|
114
|
-
end
|
115
|
-
|
116
|
-
if attributes.key?(:'env_name')
|
117
|
-
self.env_name = attributes[:'env_name']
|
118
|
-
end
|
119
|
-
|
120
|
-
if attributes.key?(:'consumer_key')
|
121
|
-
self.consumer_key = attributes[:'consumer_key']
|
122
|
-
end
|
123
|
-
|
124
|
-
if attributes.key?(:'consumer_secret')
|
125
|
-
self.consumer_secret = attributes[:'consumer_secret']
|
126
|
-
end
|
127
|
-
|
128
|
-
if attributes.key?(:'access_token_key')
|
129
|
-
self.access_token_key = attributes[:'access_token_key']
|
130
|
-
end
|
131
|
-
|
132
|
-
if attributes.key?(:'access_token_secret')
|
133
|
-
self.access_token_secret = attributes[:'access_token_secret']
|
134
|
-
end
|
135
|
-
end
|
136
|
-
|
137
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
138
|
-
# @return Array for valid properties with the reasons
|
139
|
-
def list_invalid_properties
|
140
|
-
invalid_properties = Array.new
|
141
|
-
if @tier.nil?
|
142
|
-
invalid_properties.push('invalid value for "tier", tier cannot be nil.')
|
143
|
-
end
|
144
|
-
|
145
|
-
if !@env_name.nil? && @env_name.to_s.length < 1
|
146
|
-
invalid_properties.push('invalid value for "env_name", the character length must be great than or equal to 1.')
|
147
|
-
end
|
148
|
-
|
149
|
-
if @consumer_key.nil?
|
150
|
-
invalid_properties.push('invalid value for "consumer_key", consumer_key cannot be nil.')
|
151
|
-
end
|
152
|
-
|
153
|
-
if @consumer_key.to_s.length < 1
|
154
|
-
invalid_properties.push('invalid value for "consumer_key", the character length must be great than or equal to 1.')
|
155
|
-
end
|
156
|
-
|
157
|
-
if @consumer_secret.to_s.length < 1
|
158
|
-
invalid_properties.push('invalid value for "consumer_secret", the character length must be great than or equal to 1.')
|
159
|
-
end
|
160
|
-
|
161
|
-
if @access_token_key.nil?
|
162
|
-
invalid_properties.push('invalid value for "access_token_key", access_token_key cannot be nil.')
|
163
|
-
end
|
164
|
-
|
165
|
-
if @access_token_key.to_s.length < 1
|
166
|
-
invalid_properties.push('invalid value for "access_token_key", the character length must be great than or equal to 1.')
|
167
|
-
end
|
168
|
-
|
169
|
-
if @access_token_secret.to_s.length < 1
|
170
|
-
invalid_properties.push('invalid value for "access_token_secret", the character length must be great than or equal to 1.')
|
171
|
-
end
|
172
|
-
|
173
|
-
invalid_properties
|
174
|
-
end
|
175
|
-
|
176
|
-
# Check to see if the all the properties in the model are valid
|
177
|
-
# @return true if the model is valid
|
178
|
-
def valid?
|
179
|
-
return false if @tier.nil?
|
180
|
-
tier_validator = EnumAttributeValidator.new('String', ["enterprise"])
|
181
|
-
return false unless tier_validator.valid?(@tier)
|
182
|
-
return false if !@env_name.nil? && @env_name.to_s.length < 1
|
183
|
-
return false if @consumer_key.nil?
|
184
|
-
return false if @consumer_key.to_s.length < 1
|
185
|
-
return false if @consumer_secret.to_s.length < 1
|
186
|
-
return false if @access_token_key.nil?
|
187
|
-
return false if @access_token_key.to_s.length < 1
|
188
|
-
return false if @access_token_secret.to_s.length < 1
|
189
|
-
true
|
190
|
-
end
|
191
|
-
|
192
|
-
# Custom attribute writer method checking allowed values (enum).
|
193
|
-
# @param [Object] tier Object to be assigned
|
194
|
-
def tier=(tier)
|
195
|
-
validator = EnumAttributeValidator.new('String', ["enterprise"])
|
196
|
-
unless validator.valid?(tier)
|
197
|
-
fail ArgumentError, "invalid value for \"tier\", must be one of #{validator.allowable_values}."
|
198
|
-
end
|
199
|
-
@tier = tier
|
200
|
-
end
|
201
|
-
|
202
|
-
# Custom attribute writer method with validation
|
203
|
-
# @param [Object] env_name Value to be assigned
|
204
|
-
def env_name=(env_name)
|
205
|
-
if !env_name.nil? && env_name.to_s.length < 1
|
206
|
-
fail ArgumentError, 'invalid value for "env_name", the character length must be great than or equal to 1.'
|
207
|
-
end
|
208
|
-
|
209
|
-
@env_name = env_name
|
210
|
-
end
|
211
|
-
|
212
|
-
# Custom attribute writer method with validation
|
213
|
-
# @param [Object] consumer_key Value to be assigned
|
214
|
-
def consumer_key=(consumer_key)
|
215
|
-
if consumer_key.nil?
|
216
|
-
fail ArgumentError, 'consumer_key cannot be nil'
|
217
|
-
end
|
218
|
-
|
219
|
-
if consumer_key.to_s.length < 1
|
220
|
-
fail ArgumentError, 'invalid value for "consumer_key", the character length must be great than or equal to 1.'
|
221
|
-
end
|
222
|
-
|
223
|
-
@consumer_key = consumer_key
|
224
|
-
end
|
225
|
-
|
226
|
-
# Custom attribute writer method with validation
|
227
|
-
# @param [Object] consumer_secret Value to be assigned
|
228
|
-
def consumer_secret=(consumer_secret)
|
229
|
-
if consumer_secret.to_s.length < 1
|
230
|
-
fail ArgumentError, 'invalid value for "consumer_secret", the character length must be great than or equal to 1.'
|
231
|
-
end
|
232
|
-
|
233
|
-
@consumer_secret = consumer_secret
|
234
|
-
end
|
235
|
-
|
236
|
-
# Custom attribute writer method with validation
|
237
|
-
# @param [Object] access_token_key Value to be assigned
|
238
|
-
def access_token_key=(access_token_key)
|
239
|
-
if access_token_key.nil?
|
240
|
-
fail ArgumentError, 'access_token_key cannot be nil'
|
241
|
-
end
|
242
|
-
|
243
|
-
if access_token_key.to_s.length < 1
|
244
|
-
fail ArgumentError, 'invalid value for "access_token_key", the character length must be great than or equal to 1.'
|
245
|
-
end
|
246
|
-
|
247
|
-
@access_token_key = access_token_key
|
248
|
-
end
|
249
|
-
|
250
|
-
# Custom attribute writer method with validation
|
251
|
-
# @param [Object] access_token_secret Value to be assigned
|
252
|
-
def access_token_secret=(access_token_secret)
|
253
|
-
if access_token_secret.to_s.length < 1
|
254
|
-
fail ArgumentError, 'invalid value for "access_token_secret", the character length must be great than or equal to 1.'
|
255
|
-
end
|
256
|
-
|
257
|
-
@access_token_secret = access_token_secret
|
258
|
-
end
|
259
|
-
|
260
|
-
# Checks equality by comparing each attribute.
|
261
|
-
# @param [Object] Object to be compared
|
262
|
-
def ==(o)
|
263
|
-
return true if self.equal?(o)
|
264
|
-
self.class == o.class &&
|
265
|
-
type == o.type &&
|
266
|
-
tier == o.tier &&
|
267
|
-
env_name == o.env_name &&
|
268
|
-
consumer_key == o.consumer_key &&
|
269
|
-
consumer_secret == o.consumer_secret &&
|
270
|
-
access_token_key == o.access_token_key &&
|
271
|
-
access_token_secret == o.access_token_secret
|
272
|
-
end
|
273
|
-
|
274
|
-
# @see the `==` method
|
275
|
-
# @param [Object] Object to be compared
|
276
|
-
def eql?(o)
|
277
|
-
self == o
|
278
|
-
end
|
279
|
-
|
280
|
-
# Calculates hash code according to all attributes.
|
281
|
-
# @return [Integer] Hash code
|
282
|
-
def hash
|
283
|
-
[type, tier, env_name, consumer_key, consumer_secret, access_token_key, access_token_secret].hash
|
284
|
-
end
|
285
|
-
|
286
|
-
# Builds the object from hash
|
287
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
288
|
-
# @return [Object] Returns the model itself
|
289
|
-
def self.build_from_hash(attributes)
|
290
|
-
new.build_from_hash(attributes)
|
291
|
-
end
|
292
|
-
|
293
|
-
# Builds the object from hash
|
294
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
295
|
-
# @return [Object] Returns the model itself
|
296
|
-
def build_from_hash(attributes)
|
297
|
-
return nil unless attributes.is_a?(Hash)
|
298
|
-
self.class.openapi_types.each_pair do |key, type|
|
299
|
-
if type =~ /\AArray<(.*)>/i
|
300
|
-
# check to ensure the input is an array given that the attribute
|
301
|
-
# is documented as an array but the input is not
|
302
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
303
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
304
|
-
end
|
305
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
306
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
307
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
308
|
-
end
|
309
|
-
|
310
|
-
self
|
311
|
-
end
|
312
|
-
|
313
|
-
# Deserializes the data based on type
|
314
|
-
# @param string type Data type
|
315
|
-
# @param string value Value to be deserialized
|
316
|
-
# @return [Object] Deserialized data
|
317
|
-
def _deserialize(type, value)
|
318
|
-
case type.to_sym
|
319
|
-
when :DateTime
|
320
|
-
DateTime.parse(value)
|
321
|
-
when :Date
|
322
|
-
Date.parse(value)
|
323
|
-
when :String
|
324
|
-
value.to_s
|
325
|
-
when :Integer
|
326
|
-
value.to_i
|
327
|
-
when :Float
|
328
|
-
value.to_f
|
329
|
-
when :Boolean
|
330
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
331
|
-
true
|
332
|
-
else
|
333
|
-
false
|
334
|
-
end
|
335
|
-
when :Object
|
336
|
-
# generic object (usually a Hash), return directly
|
337
|
-
value
|
338
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
339
|
-
inner_type = Regexp.last_match[:inner_type]
|
340
|
-
value.map { |v| _deserialize(inner_type, v) }
|
341
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
342
|
-
k_type = Regexp.last_match[:k_type]
|
343
|
-
v_type = Regexp.last_match[:v_type]
|
344
|
-
{}.tap do |hash|
|
345
|
-
value.each do |k, v|
|
346
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
347
|
-
end
|
348
|
-
end
|
349
|
-
else # model
|
350
|
-
SunshineConversationsClient.const_get(type).build_from_hash(value)
|
351
|
-
end
|
352
|
-
end
|
353
|
-
|
354
|
-
# Returns the string representation of the object
|
355
|
-
# @return [String] String presentation of the object
|
356
|
-
def to_s
|
357
|
-
to_hash.to_s
|
358
|
-
end
|
359
|
-
|
360
|
-
# to_body is an alias to to_hash (backward compatibility)
|
361
|
-
# @return [Hash] Returns the object in the form of hash
|
362
|
-
def to_body
|
363
|
-
to_hash
|
364
|
-
end
|
365
|
-
|
366
|
-
# Returns the object in the form of hash
|
367
|
-
# @return [Hash] Returns the object in the form of hash
|
368
|
-
def to_hash
|
369
|
-
hash = {}
|
370
|
-
self.class.attribute_map.each_pair do |attr, param|
|
371
|
-
value = self.send(attr)
|
372
|
-
if value.nil?
|
373
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
374
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
375
|
-
end
|
376
|
-
|
377
|
-
hash[param] = _to_hash(value)
|
378
|
-
end
|
379
|
-
hash
|
380
|
-
end
|
381
|
-
|
382
|
-
# Outputs non-array value in the form of hash
|
383
|
-
# For object, use to_hash. Otherwise, just return the value
|
384
|
-
# @param [Object] value Any valid value
|
385
|
-
# @return [Hash] Returns the value in the form of hash
|
386
|
-
def _to_hash(value)
|
387
|
-
if value.is_a?(Array)
|
388
|
-
value.compact.map { |v| _to_hash(v) }
|
389
|
-
elsif value.is_a?(Hash)
|
390
|
-
{}.tap do |hash|
|
391
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
392
|
-
end
|
393
|
-
elsif value.respond_to? :to_hash
|
394
|
-
value.to_hash
|
395
|
-
else
|
396
|
-
value
|
397
|
-
end
|
398
|
-
end
|
399
|
-
end
|
400
|
-
end
|
@@ -1,236 +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 UnityAllOf
|
14
|
-
# To configure a Unity integration, create an integration with type 'unity' by calling the Create Integration endpoint.
|
15
|
-
attr_accessor :type
|
16
|
-
|
17
|
-
# 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`*.
|
18
|
-
attr_accessor :can_user_see_conversation_list
|
19
|
-
|
20
|
-
# Allows users to create more than one conversation on the Unity integration.
|
21
|
-
attr_accessor :can_user_create_more_conversations
|
22
|
-
|
23
|
-
# Allows users to send attachments. By default, the setting is set to true. This setting can only be configured in Zendesk Admin Center.
|
24
|
-
attr_accessor :attachments_enabled
|
25
|
-
|
26
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
27
|
-
def self.attribute_map
|
28
|
-
{
|
29
|
-
:'type' => :'type',
|
30
|
-
:'can_user_see_conversation_list' => :'canUserSeeConversationList',
|
31
|
-
:'can_user_create_more_conversations' => :'canUserCreateMoreConversations',
|
32
|
-
:'attachments_enabled' => :'attachmentsEnabled'
|
33
|
-
}
|
34
|
-
end
|
35
|
-
|
36
|
-
# Attribute type mapping.
|
37
|
-
def self.openapi_types
|
38
|
-
{
|
39
|
-
:'type' => :'String',
|
40
|
-
:'can_user_see_conversation_list' => :'Boolean',
|
41
|
-
:'can_user_create_more_conversations' => :'Boolean',
|
42
|
-
:'attachments_enabled' => :'Boolean'
|
43
|
-
}
|
44
|
-
end
|
45
|
-
|
46
|
-
# List of attributes with nullable: true
|
47
|
-
def self.openapi_nullable
|
48
|
-
Set.new([
|
49
|
-
])
|
50
|
-
end
|
51
|
-
|
52
|
-
# Initializes the object
|
53
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
54
|
-
def initialize(attributes = {})
|
55
|
-
if (!attributes.is_a?(Hash))
|
56
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `SunshineConversationsClient::UnityAllOf` initialize method"
|
57
|
-
end
|
58
|
-
|
59
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
60
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
61
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
62
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `SunshineConversationsClient::UnityAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
63
|
-
end
|
64
|
-
h[k.to_sym] = v
|
65
|
-
}
|
66
|
-
|
67
|
-
if attributes.key?(:'type')
|
68
|
-
self.type = attributes[:'type']
|
69
|
-
else
|
70
|
-
self.type = 'unity'
|
71
|
-
end
|
72
|
-
|
73
|
-
if attributes.key?(:'can_user_see_conversation_list')
|
74
|
-
self.can_user_see_conversation_list = attributes[:'can_user_see_conversation_list']
|
75
|
-
end
|
76
|
-
|
77
|
-
if attributes.key?(:'can_user_create_more_conversations')
|
78
|
-
self.can_user_create_more_conversations = attributes[:'can_user_create_more_conversations']
|
79
|
-
end
|
80
|
-
|
81
|
-
if attributes.key?(:'attachments_enabled')
|
82
|
-
self.attachments_enabled = attributes[:'attachments_enabled']
|
83
|
-
end
|
84
|
-
end
|
85
|
-
|
86
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
87
|
-
# @return Array for valid properties with the reasons
|
88
|
-
def list_invalid_properties
|
89
|
-
invalid_properties = Array.new
|
90
|
-
invalid_properties
|
91
|
-
end
|
92
|
-
|
93
|
-
# Check to see if the all the properties in the model are valid
|
94
|
-
# @return true if the model is valid
|
95
|
-
def valid?
|
96
|
-
true
|
97
|
-
end
|
98
|
-
|
99
|
-
# Checks equality by comparing each attribute.
|
100
|
-
# @param [Object] Object to be compared
|
101
|
-
def ==(o)
|
102
|
-
return true if self.equal?(o)
|
103
|
-
self.class == o.class &&
|
104
|
-
type == o.type &&
|
105
|
-
can_user_see_conversation_list == o.can_user_see_conversation_list &&
|
106
|
-
can_user_create_more_conversations == o.can_user_create_more_conversations &&
|
107
|
-
attachments_enabled == o.attachments_enabled
|
108
|
-
end
|
109
|
-
|
110
|
-
# @see the `==` method
|
111
|
-
# @param [Object] Object to be compared
|
112
|
-
def eql?(o)
|
113
|
-
self == o
|
114
|
-
end
|
115
|
-
|
116
|
-
# Calculates hash code according to all attributes.
|
117
|
-
# @return [Integer] Hash code
|
118
|
-
def hash
|
119
|
-
[type, can_user_see_conversation_list, can_user_create_more_conversations, attachments_enabled].hash
|
120
|
-
end
|
121
|
-
|
122
|
-
# Builds the object from hash
|
123
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
124
|
-
# @return [Object] Returns the model itself
|
125
|
-
def self.build_from_hash(attributes)
|
126
|
-
new.build_from_hash(attributes)
|
127
|
-
end
|
128
|
-
|
129
|
-
# Builds the object from hash
|
130
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
131
|
-
# @return [Object] Returns the model itself
|
132
|
-
def build_from_hash(attributes)
|
133
|
-
return nil unless attributes.is_a?(Hash)
|
134
|
-
self.class.openapi_types.each_pair do |key, type|
|
135
|
-
if type =~ /\AArray<(.*)>/i
|
136
|
-
# check to ensure the input is an array given that the attribute
|
137
|
-
# is documented as an array but the input is not
|
138
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
139
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
140
|
-
end
|
141
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
142
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
143
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
144
|
-
end
|
145
|
-
|
146
|
-
self
|
147
|
-
end
|
148
|
-
|
149
|
-
# Deserializes the data based on type
|
150
|
-
# @param string type Data type
|
151
|
-
# @param string value Value to be deserialized
|
152
|
-
# @return [Object] Deserialized data
|
153
|
-
def _deserialize(type, value)
|
154
|
-
case type.to_sym
|
155
|
-
when :DateTime
|
156
|
-
DateTime.parse(value)
|
157
|
-
when :Date
|
158
|
-
Date.parse(value)
|
159
|
-
when :String
|
160
|
-
value.to_s
|
161
|
-
when :Integer
|
162
|
-
value.to_i
|
163
|
-
when :Float
|
164
|
-
value.to_f
|
165
|
-
when :Boolean
|
166
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
167
|
-
true
|
168
|
-
else
|
169
|
-
false
|
170
|
-
end
|
171
|
-
when :Object
|
172
|
-
# generic object (usually a Hash), return directly
|
173
|
-
value
|
174
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
175
|
-
inner_type = Regexp.last_match[:inner_type]
|
176
|
-
value.map { |v| _deserialize(inner_type, v) }
|
177
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
178
|
-
k_type = Regexp.last_match[:k_type]
|
179
|
-
v_type = Regexp.last_match[:v_type]
|
180
|
-
{}.tap do |hash|
|
181
|
-
value.each do |k, v|
|
182
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
183
|
-
end
|
184
|
-
end
|
185
|
-
else # model
|
186
|
-
SunshineConversationsClient.const_get(type).build_from_hash(value)
|
187
|
-
end
|
188
|
-
end
|
189
|
-
|
190
|
-
# Returns the string representation of the object
|
191
|
-
# @return [String] String presentation of the object
|
192
|
-
def to_s
|
193
|
-
to_hash.to_s
|
194
|
-
end
|
195
|
-
|
196
|
-
# to_body is an alias to to_hash (backward compatibility)
|
197
|
-
# @return [Hash] Returns the object in the form of hash
|
198
|
-
def to_body
|
199
|
-
to_hash
|
200
|
-
end
|
201
|
-
|
202
|
-
# Returns the object in the form of hash
|
203
|
-
# @return [Hash] Returns the object in the form of hash
|
204
|
-
def to_hash
|
205
|
-
hash = {}
|
206
|
-
self.class.attribute_map.each_pair do |attr, param|
|
207
|
-
value = self.send(attr)
|
208
|
-
if value.nil?
|
209
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
210
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
211
|
-
end
|
212
|
-
|
213
|
-
hash[param] = _to_hash(value)
|
214
|
-
end
|
215
|
-
hash
|
216
|
-
end
|
217
|
-
|
218
|
-
# Outputs non-array value in the form of hash
|
219
|
-
# For object, use to_hash. Otherwise, just return the value
|
220
|
-
# @param [Object] value Any valid value
|
221
|
-
# @return [Hash] Returns the value in the form of hash
|
222
|
-
def _to_hash(value)
|
223
|
-
if value.is_a?(Array)
|
224
|
-
value.compact.map { |v| _to_hash(v) }
|
225
|
-
elsif value.is_a?(Hash)
|
226
|
-
{}.tap do |hash|
|
227
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
228
|
-
end
|
229
|
-
elsif value.respond_to? :to_hash
|
230
|
-
value.to_hash
|
231
|
-
else
|
232
|
-
value
|
233
|
-
end
|
234
|
-
end
|
235
|
-
end
|
236
|
-
end
|