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,13 +1,14 @@
|
|
1
1
|
=begin
|
2
2
|
#Sunshine Conversations API
|
3
3
|
|
4
|
-
The version of the OpenAPI document:
|
4
|
+
The version of the OpenAPI document: 17.0.0
|
5
5
|
|
6
6
|
Generated by: https://openapi-generator.tech
|
7
|
-
OpenAPI Generator version:
|
7
|
+
OpenAPI Generator version: 7.12.0
|
8
8
|
=end
|
9
9
|
|
10
10
|
require 'date'
|
11
|
+
require 'time'
|
11
12
|
|
12
13
|
module SunshineConversationsClient
|
13
14
|
class IntegrationUpdateBase
|
@@ -120,44 +121,40 @@ module SunshineConversationsClient
|
|
120
121
|
# Calculates hash code according to all attributes.
|
121
122
|
# @return [Integer] Hash code
|
122
123
|
def hash
|
123
|
-
[
|
124
|
+
[display_namedefault_responder_id].hash
|
124
125
|
end
|
125
126
|
|
126
127
|
# Builds the object from hash
|
127
128
|
# @param [Hash] attributes Model attributes in the form of hash
|
128
129
|
# @return [Object] Returns the model itself
|
129
130
|
def self.build_from_hash(attributes)
|
130
|
-
new.build_from_hash(attributes)
|
131
|
-
end
|
132
|
-
|
133
|
-
# Builds the object from hash
|
134
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
135
|
-
# @return [Object] Returns the model itself
|
136
|
-
def build_from_hash(attributes)
|
137
131
|
return nil unless attributes.is_a?(Hash)
|
138
|
-
|
139
|
-
|
132
|
+
attributes = attributes.transform_keys(&:to_sym)
|
133
|
+
transformed_hash = {}
|
134
|
+
openapi_types.each_pair do |key, type|
|
135
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
136
|
+
transformed_hash["#{key}"] = nil
|
137
|
+
elsif type =~ /\AArray<(.*)>/i
|
140
138
|
# check to ensure the input is an array given that the attribute
|
141
139
|
# is documented as an array but the input is not
|
142
|
-
if attributes[
|
143
|
-
|
140
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
141
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
144
142
|
end
|
145
|
-
elsif !attributes[
|
146
|
-
|
147
|
-
end
|
143
|
+
elsif !attributes[attribute_map[key]].nil?
|
144
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
145
|
+
end
|
148
146
|
end
|
149
|
-
|
150
|
-
self
|
147
|
+
new(transformed_hash)
|
151
148
|
end
|
152
149
|
|
153
150
|
# Deserializes the data based on type
|
154
151
|
# @param string type Data type
|
155
152
|
# @param string value Value to be deserialized
|
156
153
|
# @return [Object] Deserialized data
|
157
|
-
def _deserialize(type, value)
|
154
|
+
def self._deserialize(type, value)
|
158
155
|
case type.to_sym
|
159
|
-
when :
|
160
|
-
|
156
|
+
when :Time
|
157
|
+
Time.parse(value)
|
161
158
|
when :Date
|
162
159
|
Date.parse(value)
|
163
160
|
when :String
|
@@ -187,7 +184,9 @@ module SunshineConversationsClient
|
|
187
184
|
end
|
188
185
|
end
|
189
186
|
else # model
|
190
|
-
|
187
|
+
# models (e.g. Pet) or oneOf
|
188
|
+
klass = SunshineConversationsClient.const_get(type)
|
189
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
191
190
|
end
|
192
191
|
end
|
193
192
|
|
@@ -213,7 +212,7 @@ module SunshineConversationsClient
|
|
213
212
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
214
213
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
215
214
|
end
|
216
|
-
|
215
|
+
|
217
216
|
hash[param] = _to_hash(value)
|
218
217
|
end
|
219
218
|
hash
|
@@ -236,5 +235,6 @@ module SunshineConversationsClient
|
|
236
235
|
value
|
237
236
|
end
|
238
237
|
end
|
238
|
+
|
239
239
|
end
|
240
240
|
end
|
@@ -1,16 +1,22 @@
|
|
1
1
|
=begin
|
2
2
|
#Sunshine Conversations API
|
3
3
|
|
4
|
-
The version of the OpenAPI document:
|
4
|
+
The version of the OpenAPI document: 17.0.0
|
5
5
|
|
6
6
|
Generated by: https://openapi-generator.tech
|
7
|
-
OpenAPI Generator version:
|
7
|
+
OpenAPI Generator version: 7.12.0
|
8
8
|
=end
|
9
9
|
|
10
10
|
require 'date'
|
11
|
+
require 'time'
|
11
12
|
|
12
13
|
module SunshineConversationsClient
|
13
14
|
class Ios < Integration
|
15
|
+
# The default responder ID for the integration. This is the ID of the responder that will be used to send messages to the user. For more information, refer to the <a href=\"https://developer.zendesk.com/documentation/conversations/messaging-platform/programmable-conversations/switchboard/#default-integration-assignment\">Switchboard guide</a>.
|
16
|
+
attr_accessor :default_responder_id
|
17
|
+
|
18
|
+
attr_accessor :default_responder
|
19
|
+
|
14
20
|
# To configure an ios integration, call the create integration endpoint with a base64 encoded Apple Push Notification certificate from the [Apple Developer Portal](https://developer.apple.com/).
|
15
21
|
attr_accessor :type
|
16
22
|
|
@@ -35,14 +41,33 @@ module SunshineConversationsClient
|
|
35
41
|
# Allows users to send attachments. By default, the setting is set to true. This setting can only be configured in Zendesk Admin Center.
|
36
42
|
attr_accessor :attachments_enabled
|
37
43
|
|
38
|
-
|
39
|
-
|
44
|
+
class EnumAttributeValidator
|
45
|
+
attr_reader :datatype
|
46
|
+
attr_reader :allowable_values
|
47
|
+
|
48
|
+
def initialize(datatype, allowable_values)
|
49
|
+
@allowable_values = allowable_values.map do |value|
|
50
|
+
case datatype.to_s
|
51
|
+
when /Integer/i
|
52
|
+
value.to_i
|
53
|
+
when /Float/i
|
54
|
+
value.to_f
|
55
|
+
else
|
56
|
+
value
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
40
60
|
|
41
|
-
|
61
|
+
def valid?(value)
|
62
|
+
!value || allowable_values.include?(value)
|
63
|
+
end
|
64
|
+
end
|
42
65
|
|
43
66
|
# Attribute mapping from ruby-style variable name to JSON key.
|
44
67
|
def self.attribute_map
|
45
68
|
{
|
69
|
+
:'default_responder_id' => :'defaultResponderId',
|
70
|
+
:'default_responder' => :'defaultResponder',
|
46
71
|
:'type' => :'type',
|
47
72
|
:'certificate' => :'certificate',
|
48
73
|
:'password' => :'password',
|
@@ -50,15 +75,15 @@ module SunshineConversationsClient
|
|
50
75
|
:'auto_update_badge' => :'autoUpdateBadge',
|
51
76
|
:'can_user_see_conversation_list' => :'canUserSeeConversationList',
|
52
77
|
:'can_user_create_more_conversations' => :'canUserCreateMoreConversations',
|
53
|
-
:'attachments_enabled' => :'attachmentsEnabled'
|
54
|
-
:'default_responder_id' => :'defaultResponderId',
|
55
|
-
:'default_responder' => :'defaultResponder'
|
78
|
+
:'attachments_enabled' => :'attachmentsEnabled'
|
56
79
|
}
|
57
80
|
end
|
58
81
|
|
59
82
|
# Attribute type mapping.
|
60
83
|
def self.openapi_types
|
61
84
|
{
|
85
|
+
:'default_responder_id' => :'String',
|
86
|
+
:'default_responder' => :'DefaultResponderDefaultResponder',
|
62
87
|
:'type' => :'String',
|
63
88
|
:'certificate' => :'String',
|
64
89
|
:'password' => :'String',
|
@@ -66,18 +91,16 @@ module SunshineConversationsClient
|
|
66
91
|
:'auto_update_badge' => :'Boolean',
|
67
92
|
:'can_user_see_conversation_list' => :'Boolean',
|
68
93
|
:'can_user_create_more_conversations' => :'Boolean',
|
69
|
-
:'attachments_enabled' => :'Boolean'
|
70
|
-
:'default_responder_id' => :'String',
|
71
|
-
:'default_responder' => :'DefaultResponderDefaultResponder'
|
94
|
+
:'attachments_enabled' => :'Boolean'
|
72
95
|
}
|
73
96
|
end
|
74
97
|
|
75
98
|
# List of attributes with nullable: true
|
76
99
|
def self.openapi_nullable
|
77
100
|
Set.new([
|
78
|
-
:'certificate',
|
79
101
|
:'default_responder_id',
|
80
|
-
:'default_responder'
|
102
|
+
:'default_responder',
|
103
|
+
:'certificate',
|
81
104
|
])
|
82
105
|
end
|
83
106
|
|
@@ -86,8 +109,7 @@ module SunshineConversationsClient
|
|
86
109
|
[
|
87
110
|
:'DefaultResponder',
|
88
111
|
:'DefaultResponderId',
|
89
|
-
:'Integration'
|
90
|
-
:'IosAllOf'
|
112
|
+
:'Integration'
|
91
113
|
]
|
92
114
|
end
|
93
115
|
|
@@ -109,6 +131,14 @@ module SunshineConversationsClient
|
|
109
131
|
# call parent's initialize
|
110
132
|
super(attributes)
|
111
133
|
|
134
|
+
if attributes.key?(:'default_responder_id')
|
135
|
+
self.default_responder_id = attributes[:'default_responder_id']
|
136
|
+
end
|
137
|
+
|
138
|
+
if attributes.key?(:'default_responder')
|
139
|
+
self.default_responder = attributes[:'default_responder']
|
140
|
+
end
|
141
|
+
|
112
142
|
if attributes.key?(:'type')
|
113
143
|
self.type = attributes[:'type']
|
114
144
|
else
|
@@ -142,14 +172,6 @@ module SunshineConversationsClient
|
|
142
172
|
if attributes.key?(:'attachments_enabled')
|
143
173
|
self.attachments_enabled = attributes[:'attachments_enabled']
|
144
174
|
end
|
145
|
-
|
146
|
-
if attributes.key?(:'default_responder_id')
|
147
|
-
self.default_responder_id = attributes[:'default_responder_id']
|
148
|
-
end
|
149
|
-
|
150
|
-
if attributes.key?(:'default_responder')
|
151
|
-
self.default_responder = attributes[:'default_responder']
|
152
|
-
end
|
153
175
|
end
|
154
176
|
|
155
177
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -185,6 +207,8 @@ module SunshineConversationsClient
|
|
185
207
|
def ==(o)
|
186
208
|
return true if self.equal?(o)
|
187
209
|
self.class == o.class &&
|
210
|
+
default_responder_id == o.default_responder_id &&
|
211
|
+
default_responder == o.default_responder &&
|
188
212
|
type == o.type &&
|
189
213
|
certificate == o.certificate &&
|
190
214
|
password == o.password &&
|
@@ -192,9 +216,7 @@ module SunshineConversationsClient
|
|
192
216
|
auto_update_badge == o.auto_update_badge &&
|
193
217
|
can_user_see_conversation_list == o.can_user_see_conversation_list &&
|
194
218
|
can_user_create_more_conversations == o.can_user_create_more_conversations &&
|
195
|
-
attachments_enabled == o.attachments_enabled &&
|
196
|
-
default_responder_id == o.default_responder_id &&
|
197
|
-
default_responder == o.default_responder && super(o)
|
219
|
+
attachments_enabled == o.attachments_enabled && super(o)
|
198
220
|
end
|
199
221
|
|
200
222
|
# @see the `==` method
|
@@ -206,45 +228,41 @@ module SunshineConversationsClient
|
|
206
228
|
# Calculates hash code according to all attributes.
|
207
229
|
# @return [Integer] Hash code
|
208
230
|
def hash
|
209
|
-
[
|
231
|
+
[default_responder_iddefault_respondertypecertificatepasswordproductionauto_update_badgecan_user_see_conversation_listcan_user_create_more_conversationsattachments_enabled].hash
|
210
232
|
end
|
211
233
|
|
212
234
|
# Builds the object from hash
|
213
235
|
# @param [Hash] attributes Model attributes in the form of hash
|
214
236
|
# @return [Object] Returns the model itself
|
215
237
|
def self.build_from_hash(attributes)
|
216
|
-
new.build_from_hash(attributes)
|
217
|
-
end
|
218
|
-
|
219
|
-
# Builds the object from hash
|
220
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
221
|
-
# @return [Object] Returns the model itself
|
222
|
-
def build_from_hash(attributes)
|
223
238
|
return nil unless attributes.is_a?(Hash)
|
224
239
|
super(attributes)
|
225
|
-
|
226
|
-
|
240
|
+
attributes = attributes.transform_keys(&:to_sym)
|
241
|
+
transformed_hash = {}
|
242
|
+
openapi_types.each_pair do |key, type|
|
243
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
244
|
+
transformed_hash["#{key}"] = nil
|
245
|
+
elsif type =~ /\AArray<(.*)>/i
|
227
246
|
# check to ensure the input is an array given that the attribute
|
228
247
|
# is documented as an array but the input is not
|
229
|
-
if attributes[
|
230
|
-
|
248
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
249
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
231
250
|
end
|
232
|
-
elsif !attributes[
|
233
|
-
|
234
|
-
end
|
251
|
+
elsif !attributes[attribute_map[key]].nil?
|
252
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
253
|
+
end
|
235
254
|
end
|
236
|
-
|
237
|
-
self
|
255
|
+
new(transformed_hash)
|
238
256
|
end
|
239
257
|
|
240
258
|
# Deserializes the data based on type
|
241
259
|
# @param string type Data type
|
242
260
|
# @param string value Value to be deserialized
|
243
261
|
# @return [Object] Deserialized data
|
244
|
-
def _deserialize(type, value)
|
262
|
+
def self._deserialize(type, value)
|
245
263
|
case type.to_sym
|
246
|
-
when :
|
247
|
-
|
264
|
+
when :Time
|
265
|
+
Time.parse(value)
|
248
266
|
when :Date
|
249
267
|
Date.parse(value)
|
250
268
|
when :String
|
@@ -274,7 +292,9 @@ module SunshineConversationsClient
|
|
274
292
|
end
|
275
293
|
end
|
276
294
|
else # model
|
277
|
-
|
295
|
+
# models (e.g. Pet) or oneOf
|
296
|
+
klass = SunshineConversationsClient.const_get(type)
|
297
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
278
298
|
end
|
279
299
|
end
|
280
300
|
|
@@ -300,7 +320,7 @@ module SunshineConversationsClient
|
|
300
320
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
301
321
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
302
322
|
end
|
303
|
-
|
323
|
+
|
304
324
|
hash[param] = _to_hash(value)
|
305
325
|
end
|
306
326
|
hash
|
@@ -323,5 +343,6 @@ module SunshineConversationsClient
|
|
323
343
|
value
|
324
344
|
end
|
325
345
|
end
|
346
|
+
|
326
347
|
end
|
327
348
|
end
|
@@ -1,13 +1,14 @@
|
|
1
1
|
=begin
|
2
2
|
#Sunshine Conversations API
|
3
3
|
|
4
|
-
The version of the OpenAPI document:
|
4
|
+
The version of the OpenAPI document: 17.0.0
|
5
5
|
|
6
6
|
Generated by: https://openapi-generator.tech
|
7
|
-
OpenAPI Generator version:
|
7
|
+
OpenAPI Generator version: 7.12.0
|
8
8
|
=end
|
9
9
|
|
10
10
|
require 'date'
|
11
|
+
require 'time'
|
11
12
|
|
12
13
|
module SunshineConversationsClient
|
13
14
|
class IosUpdate
|
@@ -75,8 +76,7 @@ module SunshineConversationsClient
|
|
75
76
|
# List of class defined in allOf (OpenAPI v3)
|
76
77
|
def self.openapi_all_of
|
77
78
|
[
|
78
|
-
:'IntegrationUpdateBase'
|
79
|
-
:'IosUpdateAllOf'
|
79
|
+
:'IntegrationUpdateBase'
|
80
80
|
]
|
81
81
|
end
|
82
82
|
|
@@ -204,44 +204,40 @@ module SunshineConversationsClient
|
|
204
204
|
# Calculates hash code according to all attributes.
|
205
205
|
# @return [Integer] Hash code
|
206
206
|
def hash
|
207
|
-
[
|
207
|
+
[display_namedefault_responder_idcertificatepasswordproductionauto_update_badgecan_user_see_conversation_listcan_user_create_more_conversations].hash
|
208
208
|
end
|
209
209
|
|
210
210
|
# Builds the object from hash
|
211
211
|
# @param [Hash] attributes Model attributes in the form of hash
|
212
212
|
# @return [Object] Returns the model itself
|
213
213
|
def self.build_from_hash(attributes)
|
214
|
-
new.build_from_hash(attributes)
|
215
|
-
end
|
216
|
-
|
217
|
-
# Builds the object from hash
|
218
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
219
|
-
# @return [Object] Returns the model itself
|
220
|
-
def build_from_hash(attributes)
|
221
214
|
return nil unless attributes.is_a?(Hash)
|
222
|
-
|
223
|
-
|
215
|
+
attributes = attributes.transform_keys(&:to_sym)
|
216
|
+
transformed_hash = {}
|
217
|
+
openapi_types.each_pair do |key, type|
|
218
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
219
|
+
transformed_hash["#{key}"] = nil
|
220
|
+
elsif type =~ /\AArray<(.*)>/i
|
224
221
|
# check to ensure the input is an array given that the attribute
|
225
222
|
# is documented as an array but the input is not
|
226
|
-
if attributes[
|
227
|
-
|
223
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
224
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
228
225
|
end
|
229
|
-
elsif !attributes[
|
230
|
-
|
231
|
-
end
|
226
|
+
elsif !attributes[attribute_map[key]].nil?
|
227
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
228
|
+
end
|
232
229
|
end
|
233
|
-
|
234
|
-
self
|
230
|
+
new(transformed_hash)
|
235
231
|
end
|
236
232
|
|
237
233
|
# Deserializes the data based on type
|
238
234
|
# @param string type Data type
|
239
235
|
# @param string value Value to be deserialized
|
240
236
|
# @return [Object] Deserialized data
|
241
|
-
def _deserialize(type, value)
|
237
|
+
def self._deserialize(type, value)
|
242
238
|
case type.to_sym
|
243
|
-
when :
|
244
|
-
|
239
|
+
when :Time
|
240
|
+
Time.parse(value)
|
245
241
|
when :Date
|
246
242
|
Date.parse(value)
|
247
243
|
when :String
|
@@ -271,7 +267,9 @@ module SunshineConversationsClient
|
|
271
267
|
end
|
272
268
|
end
|
273
269
|
else # model
|
274
|
-
|
270
|
+
# models (e.g. Pet) or oneOf
|
271
|
+
klass = SunshineConversationsClient.const_get(type)
|
272
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
275
273
|
end
|
276
274
|
end
|
277
275
|
|
@@ -297,7 +295,7 @@ module SunshineConversationsClient
|
|
297
295
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
298
296
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
299
297
|
end
|
300
|
-
|
298
|
+
|
301
299
|
hash[param] = _to_hash(value)
|
302
300
|
end
|
303
301
|
hash
|
@@ -320,5 +318,6 @@ module SunshineConversationsClient
|
|
320
318
|
value
|
321
319
|
end
|
322
320
|
end
|
321
|
+
|
323
322
|
end
|
324
323
|
end
|
@@ -1,13 +1,14 @@
|
|
1
1
|
=begin
|
2
2
|
#Sunshine Conversations API
|
3
3
|
|
4
|
-
The version of the OpenAPI document:
|
4
|
+
The version of the OpenAPI document: 17.0.0
|
5
5
|
|
6
6
|
Generated by: https://openapi-generator.tech
|
7
|
-
OpenAPI Generator version:
|
7
|
+
OpenAPI Generator version: 7.12.0
|
8
8
|
=end
|
9
9
|
|
10
10
|
require 'date'
|
11
|
+
require 'time'
|
11
12
|
|
12
13
|
module SunshineConversationsClient
|
13
14
|
class Item
|
@@ -132,9 +133,15 @@ module SunshineConversationsClient
|
|
132
133
|
end
|
133
134
|
|
134
135
|
if attributes.key?(:'actions')
|
136
|
+
if (value = attributes[:'actions']).is_a?(Array)
|
137
|
+
self.actions = value
|
138
|
+
end
|
135
139
|
end
|
136
140
|
|
137
141
|
if attributes.key?(:'metadata')
|
142
|
+
if (value = attributes[:'metadata']).is_a?(Hash)
|
143
|
+
self.metadata = value
|
144
|
+
end
|
138
145
|
end
|
139
146
|
end
|
140
147
|
|
@@ -174,6 +181,14 @@ module SunshineConversationsClient
|
|
174
181
|
invalid_properties.push('invalid value for "actions", actions cannot be nil.')
|
175
182
|
end
|
176
183
|
|
184
|
+
if @actions.length > 3
|
185
|
+
invalid_properties.push('invalid value for "actions", number of items must be less than or equal to 3.')
|
186
|
+
end
|
187
|
+
|
188
|
+
if @actions.length < 1
|
189
|
+
invalid_properties.push('invalid value for "actions", number of items must be greater than or equal to 1.')
|
190
|
+
end
|
191
|
+
|
177
192
|
invalid_properties
|
178
193
|
end
|
179
194
|
|
@@ -190,6 +205,8 @@ module SunshineConversationsClient
|
|
190
205
|
size_validator = EnumAttributeValidator.new('String', ["compact", "large"])
|
191
206
|
return false unless size_validator.valid?(@size)
|
192
207
|
return false if @actions.nil?
|
208
|
+
return false if @actions.length > 3
|
209
|
+
return false if @actions.length < 1
|
193
210
|
true
|
194
211
|
end
|
195
212
|
|
@@ -261,6 +278,24 @@ module SunshineConversationsClient
|
|
261
278
|
@size = size
|
262
279
|
end
|
263
280
|
|
281
|
+
# Custom attribute writer method with validation
|
282
|
+
# @param [Object] actions Value to be assigned
|
283
|
+
def actions=(actions)
|
284
|
+
if actions.nil?
|
285
|
+
fail ArgumentError, 'actions cannot be nil'
|
286
|
+
end
|
287
|
+
|
288
|
+
if actions.length > 3
|
289
|
+
fail ArgumentError, 'invalid value for "actions", number of items must be less than or equal to 3.'
|
290
|
+
end
|
291
|
+
|
292
|
+
if actions.length < 1
|
293
|
+
fail ArgumentError, 'invalid value for "actions", number of items must be greater than or equal to 1.'
|
294
|
+
end
|
295
|
+
|
296
|
+
@actions = actions
|
297
|
+
end
|
298
|
+
|
264
299
|
# Checks equality by comparing each attribute.
|
265
300
|
# @param [Object] Object to be compared
|
266
301
|
def ==(o)
|
@@ -285,44 +320,40 @@ module SunshineConversationsClient
|
|
285
320
|
# Calculates hash code according to all attributes.
|
286
321
|
# @return [Integer] Hash code
|
287
322
|
def hash
|
288
|
-
[
|
323
|
+
[titledescriptionmedia_urlmedia_typealt_textsizeactionsmetadata].hash
|
289
324
|
end
|
290
325
|
|
291
326
|
# Builds the object from hash
|
292
327
|
# @param [Hash] attributes Model attributes in the form of hash
|
293
328
|
# @return [Object] Returns the model itself
|
294
329
|
def self.build_from_hash(attributes)
|
295
|
-
new.build_from_hash(attributes)
|
296
|
-
end
|
297
|
-
|
298
|
-
# Builds the object from hash
|
299
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
300
|
-
# @return [Object] Returns the model itself
|
301
|
-
def build_from_hash(attributes)
|
302
330
|
return nil unless attributes.is_a?(Hash)
|
303
|
-
|
304
|
-
|
331
|
+
attributes = attributes.transform_keys(&:to_sym)
|
332
|
+
transformed_hash = {}
|
333
|
+
openapi_types.each_pair do |key, type|
|
334
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
335
|
+
transformed_hash["#{key}"] = nil
|
336
|
+
elsif type =~ /\AArray<(.*)>/i
|
305
337
|
# check to ensure the input is an array given that the attribute
|
306
338
|
# is documented as an array but the input is not
|
307
|
-
if attributes[
|
308
|
-
|
339
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
340
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
309
341
|
end
|
310
|
-
elsif !attributes[
|
311
|
-
|
312
|
-
end
|
342
|
+
elsif !attributes[attribute_map[key]].nil?
|
343
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
344
|
+
end
|
313
345
|
end
|
314
|
-
|
315
|
-
self
|
346
|
+
new(transformed_hash)
|
316
347
|
end
|
317
348
|
|
318
349
|
# Deserializes the data based on type
|
319
350
|
# @param string type Data type
|
320
351
|
# @param string value Value to be deserialized
|
321
352
|
# @return [Object] Deserialized data
|
322
|
-
def _deserialize(type, value)
|
353
|
+
def self._deserialize(type, value)
|
323
354
|
case type.to_sym
|
324
|
-
when :
|
325
|
-
|
355
|
+
when :Time
|
356
|
+
Time.parse(value)
|
326
357
|
when :Date
|
327
358
|
Date.parse(value)
|
328
359
|
when :String
|
@@ -352,7 +383,9 @@ module SunshineConversationsClient
|
|
352
383
|
end
|
353
384
|
end
|
354
385
|
else # model
|
355
|
-
|
386
|
+
# models (e.g. Pet) or oneOf
|
387
|
+
klass = SunshineConversationsClient.const_get(type)
|
388
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
356
389
|
end
|
357
390
|
end
|
358
391
|
|
@@ -378,7 +411,7 @@ module SunshineConversationsClient
|
|
378
411
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
379
412
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
380
413
|
end
|
381
|
-
|
414
|
+
|
382
415
|
hash[param] = _to_hash(value)
|
383
416
|
end
|
384
417
|
hash
|
@@ -401,5 +434,6 @@ module SunshineConversationsClient
|
|
401
434
|
value
|
402
435
|
end
|
403
436
|
end
|
437
|
+
|
404
438
|
end
|
405
439
|
end
|